Support Forum

Share your projects and post your questions

Register   or   Sign In
The Forum

node-red support for Servo PWM Pi Zero

3883 Views - Created 27/04/2017

27/04/2017

Posted by:
wildfire

wildfire Avatar

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

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

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.

27/04/2017

Posted by:
wildfire

wildfire Avatar

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

wildfire Avatar

Just so you knw,i managed to get this node working: PCA9685, it lookst like it asks for a hexadecimal address but it actualy needs a decimal address.nice expansion! im gonna have great fun with thatMatthieu

08/05/2017

Posted by:
andrew

andrew Avatar

Location:
United Kingdom

andrew Twitter  andrew Website  

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.

Sign in to post your reply

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.