Comments (4)
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.
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.
from arduino_phoenix_parts.
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)
- code for putting the standard servos to their starting position?
- additional support requested HOT 2
- Project not open for collaboration HOT 2
- Request to share your ax-12 library HOT 1
- Need help understanding the codes
- Serial Communication with PowerPod or Arduino Serial port
- ServoEx 12 servos possible?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino_phoenix_parts.