Skip to content

Exercise/Characterize Multiple servos connected via PCA9685 PWM controller

License

Notifications You must be signed in to change notification settings

ironsheep/P2-mult-servo-exerciser

Repository files navigation

P2 Multi-servo Exerciser

Exercise/Characterize multiple servos connected via PCA9685 PWM controller

Project Maintenance

License

Table of Contents

On this Page:

Additional pages:

Exerciser with OLED display and Rotary Encoder for control

Most of us playing with servos in our projects have a single servo tester:

But when we are using a 16-channel PWM controller driving our servos we can either unplug each servo to test it or we can do something like this project!

Bringing together the parts we need

I grabbed a TIMI-130 serial attached OLED display and a rotary encoder with pushbutton feature as be my interface and I used code I already had for the PCA9685 controller.

I then wrote a driver for the encoder which provided distance and velocity for the turning part a single, double-click for the push button part. See RotaryEncoder page

Then I created a single TIMI interface object by porting the python TIMI library. Now I can drive the display. See TIMI Displays page

Using the tester

In the end my cobbled together tester looks like this:

And this is the tester connected to the back of the 6-servo hardware I'm characterizing:

Lastly, this is the output from the tester:

Features

To use this exercisor simply connect to the PCA9685 i2c bus and run the project.

  • Steps through each of the servos from 0-15
  • Cycles LO and HI for each servo
  • Reminds which end of the range is currently being tested
  • Emits (via debug_ the final LO, HI values for each servo tested.

Enjoy!

How to Contribute

This is a project supporting our P2 Development Community. Please feel free to contribute to this project. You can contribute in the following ways:

  • File Feature Requests or Issues (describing things you are seeing while using our code) at the Project Issue Tracking Page
  • Fork this repo and then add your code to it. Finally, create a Pull Request to contribute your code back to this repository for inclusion with the projects code. See CONTRIBUTING

If you like my work and/or this has helped you in some way then feel free to help me out for a couple of ☕'s or 🍕 slices!

coffee    -OR-    PatreonPatreon.com/IronSheep


Disclaimer and Legal

Parallax, Propeller Spin, and the Parallax and Propeller Hat logos are trademarks of Parallax Inc., dba Parallax Semiconductor

This project is a community project not for commercial use.

This project is in no way affiliated with, authorized, maintained, sponsored or endorsed by Parallax Inc., dba Parallax Semiconductor or any of its affiliates or subsidiaries.


License

Licensed under the MIT License.

Follow these links for more information: