Giter Club home page Giter Club logo

Comments (4)

KurtE avatar KurtE commented on August 30, 2024

Sorry these days I am doing very little with the Phoenix code base, although keep meaning to get back to it.

And for the most part I have no interest in working with RC servos... Using mostly Robotis servos these days.

However if anyone wishes to implement it for this Servo Driver and issue a Pull request it would be great.

As for Teensy only? No, should work with most Arduinos. The code originally was done for the Lynxmotion board Botboarduino (Atmega 328 like UNO), have run on Megas as well as on the Trossen Arbotix boards,... At one point it was running on Chipkit M32 boards (not sure if that works any more).

Good Luck

from arduino_phoenix_parts.

KurtE avatar KurtE commented on August 30, 2024

If it were me trying to do this, I would probably start off with looking at the Adafruit library:
https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
They have an example program that controls some servos.

The example has a function that in theory can convert seconds (float) into the right value to output of I2C.
If it were me, I would probably change that function to take an int or uint16_t of microseconds and convert it into the appropriate value...

Then I would look how the SSC-32 driver converts the desired angle into pulse width in microseconds and then combine the two parts to figure out the right values to send out... I would also experiment with then seeing how close I am... Send out a request for 45 degrees how close are we...

from arduino_phoenix_parts.

mano1979 avatar mano1979 commented on August 30, 2024

from arduino_phoenix_parts.

Auc7us avatar Auc7us commented on August 30, 2024

If it were me trying to do this, I would probably start off with looking at the Adafruit library:
https://github.com/adafruit/Adafruit-PWM-Servo-Driver-Library
They have an example program that controls some servos.

The example has a function that in theory can convert seconds (float) into the right value to output of I2C.
If it were me, I would probably change that function to take an int or uint16_t of microseconds and convert it into the appropriate value...

Then I would look how the SSC-32 driver converts the desired angle into pulse width in microseconds and then combine the two parts to figure out the right values to send out... I would also experiment with then seeing how close I am... Send out a request for 45 degrees how close are we...

I have been working for some time now, trying to make a PCA9685 driver for the same. I'm new to C++ and would appreciate it if you could explain a few parts of the code where I'm facing problems so that I can finish the driver.
TIA

Edit: Im making the driver based on your ServoEx driver and library

from arduino_phoenix_parts.

Related Issues (8)

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.