Nodejs library quite dated and doesn't seem to function properly


I eventually got things working with Python, and have been trying to use Nodejs with brickpi-raspberry. The current version of this NPM package uses a very old version of the serialport NPM package which will not build on more recent versions of the Raspberry Pi OS. I tried getting it working with the latest serialport package by tweaking the code, and while it will start and read the serialport, it does not get accurate sensor data. Motors do seem to work OK with intial testing, but I’ll have to explore it further.



Some updates: It does seem to work if the sensors are in specific locations. Notably, the Ultrasonic sensor only seems to work in S2 or S4.


Hi Rick, I’m going to try to answer this forum post over here, and close this post so we can streamline the response in one place.