Cyton --> NodeJS on Raspberry?
in Cyton
Hey all... this might be a super noob Q, but I couldn't find a definitive answer on my search so thought I would get to the point.
Currently, I have the Cyton board talking via bluetooth to the dongle which is in my laptop. On my laptop, I'm running nodeJS to pick up the signal data, stuff it into a JSON object and fling it to a messaging Q.
All that is solid, working well and happy.
Now my Q: I would like to remove my laptop from the equation and would like to have this running on a Raspberry Pi (3 B+ with wifi). Does anyone see any issues with me imaging a Pi with linux, setting up nodeJS and connecting it?
Any hardware compatibility issues? Any drivers I need?
thanks for helping me short circuit the trial and error phase!
Comments
BrownJon, hi.
The dongle just appears as a usb serial port, whether you plug it into your laptop, or the Pi. So your NodeJS setup should work on either platform. You may be better off sticking with the latest Raspbian OS instead of larger and possibly slower general Linux distro.
https://linuxize.com/post/how-to-install-node-js-on-raspberry-pi/
The Pi is likely too small to run the GUI and Hub, but there are a range of apps that talk directly to the dongle serial port. Including NodeJS, Python, etc.
Regards, William
https://www.google.com/search?q=nodejs+raspbian
Thanks William!
I did the same google search and realized nodeJS + Raspbian is a great combo. I guess I was just confirming that the dongle in the USB port would be seen the same way... which you seem to have confirmed as well!
Time to build and bring up nodejs in raspbian
.
For the record, I have the nodejs taking the "raw" signal data from the sensors and sending them to a data science platform for additional logic. I'm not really using the hib or the gui for the Cyton, so not worried about that horsepower
.
Thank you!
-Rishi