Node.js -> johhnyfive -> Arduino - Raspberry Pi Forums


hi all,
i've got problem controlling arduino mega 2560 rpi trough node.js.

why trying achieve:
raspberry has node.js server on , , using express, socket.io , johnnyfive controls arduino. goal create simple webapi turn off/on lamp on desk. works, it's bit tricky.

problem:
raspberry isnt comunicating arduino - every time when click on/off button in webapi, registered socket.io - server running guess. doesnt turn off/on lamp every time.

diagnosis:
@ first thought because due lack of power (i used power arduino usb , had 0.8a charger) i'm not sure it.
im powering arduino trough usb , gpio raspberry , im using 1a charger. not use active hubs now.


weird thing is, looks working every 5seconds (i can turn on/off lamp 5s without problem, 5s arduino doesnt commands). on debian jessy laptop runs well, , power arduino usb. (it used work on debian wheezy week ago, changed testing due other problems). thats why think problem connected raspberry or raspian itself.

dont know now, perhaps of had same or similar problem , know how sovle problem.
ask me config need know me.

(sorry english, there can awful mistakes in post , apologize)

well, appears bug buffersize in serialport. here's link solution.

https://github.com/rwaldron/johnny-five/issues/296


raspberrypi



Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

Rasperry Wifi LAN Controller - Raspberry Pi Forums

Unlock car with bluetooth and car key