HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller

Useful guides, libraries, and example sketches to support our Arduino based products.
johnhb
Posts: 1
Joined: Mon Nov 09, 2020 12:43 am

Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller

Post by johnhb » Sun Dec 20, 2020 9:32 am

I simply want to operate one sg90 servo at a time for a few seconds to move a model train point. I want to connect 11 servos via the hcpca9685 module so I can use just two Arduino pins. Is the hcpca9685 library for Arduino suitable.

andrew
Site Admin
Posts: 1292
Joined: Sun Aug 05, 2012 4:15 pm

Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller

Post by andrew » Mon Dec 21, 2020 9:48 am

Yes, you can independently control up to 16 servos per module. If you haven't already got an Arduino board then I would recommend using an ATMega328 based Arduino such as an Uno or Nano with this library.
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Juan1344
Posts: 1
Joined: Sat Nov 19, 2022 5:04 am

Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller

Post by Juan1344 » Sat Nov 19, 2022 5:13 am

Hi i am a bit of a noob with all this but
i am trying to download the
HCPCA9685 library but it isn't working. I downloaded the file above but then what do I do?

andrew
Site Admin
Posts: 1292
Joined: Sun Aug 05, 2012 4:15 pm

Re: HCPCA9685 - Library for PCA9685 16ch 12bit PWM controller

Post by andrew » Sat Nov 19, 2022 8:46 am

downloaded the file above but then what do I do?


If you've managed to download the file correctly you should have a ZIP file named HCPCA9685.ZIP

Don't unzip the file, instead in the Arduino IDE click on the 'Sketch' menu option then select Include Library->Add .ZIP Library

In the file requester that opens up, navigate to wherever you downloaded the ZIP file and open it.

The Arduino IDE should then automatically install the library to your Documents/Arduino/Librarys folder (assuming you're using Windows).

If it did install correctly you will then find the library example sketchs under File->Examples->HCPCA9685
Comments made by this poster do not necessarily reflect the views of Hobby Components Ltd.

Post Reply

Return to “Arduino”