node-red support for Servo PWM Pi Zero
The Expander Pi is an Analogue, Digital and RTC development Interface for the Raspberry Pi
27/04/2017
Posted by:
wildfire
hello, i just got 2 Servo PWM boards for the Pi Zeroi can get it working with the python demo programs but i would love to use node-red.i dont know python and all. i was under the impression that this board would work with Adafruit 16-Channel 12-bit PWM node-red code.but i cant get it to work, i also tryed johnny five but i cant get it to work.is this board using the same code/ chip? thanks in advancematthieu
27/04/2017
Posted by:
andrew
Hello Matthieu
Our Servo PWM board does use the same PCA9685 PWM controller as the Adafruit board so libraries designed for the Adafruit board should work on our board. The only difference between the boards is the Adafruit version includes an EEPROM for the Raspberry Pi device tree so the problem could be that the Adafruit library is trying to access that EEPROM and failing.
I found this node-red library for the PCA9685 which should work on our Servo PWM Pi. We also have a Node JS library for the Servo Pi which you may be able to use or modify to make it compatible with node-red.
Our Servo PWM board does use the same PCA9685 PWM controller as the Adafruit board so libraries designed for the Adafruit board should work on our board. The only difference between the boards is the Adafruit version includes an EEPROM for the Raspberry Pi device tree so the problem could be that the Adafruit library is trying to access that EEPROM and failing.
I found this node-red library for the PCA9685 which should work on our Servo PWM Pi. We also have a Node JS library for the Servo Pi which you may be able to use or modify to make it compatible with node-red.
27/04/2017
Posted by:
wildfire
Andrew,i also tryed this node-red-contrib-pca9685, but i tink i did it witht the wrong rights, i have node red running as root now, i will retry this.i keep getting pwm errors from the node.i will retry this! Thanks for the fast reply!!
07/05/2017
Posted by:
wildfire
08/05/2017
Posted by:
andrew
Thank you for letting me know you got it working. I will do a bit of research into node-red and see how hard it will be to design nodes for all of our boards.
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view.
Download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.