Thank you,
Adam
--
You received this message because you are subscribed to the Google Groups "Ardublock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ardublock+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ardublock/6693e3c5-7ce1-44a9-b8ba-1e1c1752187a%40googlegroups.com.
Sorry, no Spanish here :-(
I have played with this chip. It needs a bunch of initialization before you can send it the servo commands:1. Put it onto sleep mode: send 0x40, 0, 0x30, where 0x40 is its address, 0 is the register and 0x30 the data2. Set pre-scaler to get a 50Hz cycle time: send 0x40, 0xfe, 0x833. Wake up again: send 0x40, 0, 0xa04. To set servo send: 0x40, addr, start.low, start.high, end.low, end.highwhere:addr is the set of control registers for a servo, addr = 6+4*servo#;start.low, start.high is the start-time of the pulse, so 0x0123 would be 0x23,0x01end,low, end.high is end time for pulse.So, if you keep start-time at 0, then end-tie can range from about 160-450 to get 800-2200ms pulse length,and the command for servo0 would be 0x40, 6, 0, 0, end.low, end.highand for servo1: 0x40, 10, 0, 0, end.low, end.highSee Adafruit's library for more details.Good luck!DavidPS -- this is from memory, so might have error. These sites are useful:
On Tue, May 5, 2020 at 12:36 PM Canarias Vive <raul.ig...@gmail.com> wrote:
No, yo tambien lo estoy buscando. Es tan comun, pero sorprendentemente no esta incluido en las librerias. Lo conseguiste?--
El lunes, 24 de septiembre de 2018, 23:47:11 (UTC+1), Adarom escribió:Has anyone tried to or had success with controlling the adafruit PCA9685 16 channel servo board using Ardublock? I've started experimenting, but if anyone already knew how to do it, I would really appreciate some help/advice.Thank you,
Adam
You received this message because you are subscribed to the Google Groups "Ardublock" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ardu...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to ardublock+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ardublock/4d46679a-20b0-4b1e-9cf1-ca11bee4fbb5%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ardublock/CAA_RDQXbWmX9RGjmpc8EGZDu2ASRE4-mcDKcPe1pZREeSXDkvQ%40mail.gmail.com.