Git Product home page Git Product logo

p2-mult-servo-exerciser's Introduction

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:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.