About Us Knowledge Base Community Forum Electronics Toolbox FAQ Shipping & Delivery

Community Forum

Share your projects and post your questions

Search
Register or Sign In
Forum

node-red support for Servo PWM Pi Zero

2616 Views - Created 27/04/2017

27/04/2017

Posted by:
wildfire

Users Avatar

hello, i just got 2 Servo PWM boards for the Pi Zero

i 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 advance

matthieu

27/04/2017

Posted by:
andrew

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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.

AB Electronics UK Tech Support

27/04/2017

Posted by:
wildfire

Last edited: 27/04/2017

Users 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

Users 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 that

Matthieu

08/05/2017

Posted by:
andrew

Users Avatar

Location:
United Kingdom

Users Twitter  Users 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.

AB Electronics UK Tech Support

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.