Starting to experiment with multiple motors
I was searching the obex for Spin code so I could learn to control more than one servo. This is my focus at the moment.
The code I've seen uses PASM. I have begun to study asm but I must first code it in Spin which I understand and then translate it to PASM. I just bought two servos and I want to learn to control them with methods, counters and cogs. My goal down the road is to understand how to build a robotic arm that uses servos and wheels that use quadrature encoders. But one thing at a time.
I completed a project that used a stepper but I always wanted to learn steppers, servos and quadrature encoders, in that order. Thanks
The code I've seen uses PASM. I have begun to study asm but I must first code it in Spin which I understand and then translate it to PASM. I just bought two servos and I want to learn to control them with methods, counters and cogs. My goal down the road is to understand how to build a robotic arm that uses servos and wheels that use quadrature encoders. But one thing at a time.
I completed a project that used a stepper but I always wanted to learn steppers, servos and quadrature encoders, in that order. Thanks
Comments
John Abshier
You can "roll your own", but you'd be better off starting with this and modifying it as needed for your use.
For a simple Spin-only driver, look at Servo-4 from the Object Exchange or the servo driver that's built-into BoeBotBasic (also in the Object Exchange) which can handle 3 servos as written.
It is a great object, and well tested.
On the other hand it is a proppeller assembly highly optimized code, so if you want to have a good understandiong of the code is better to look for something else, easing the learning curve...
As a side note, mainly if you also use motors, it could happen the motor engine startup resets the propeller. The easiest way to solve it is to split the power supply (one for the propeller and one for the servo/ESC), remembering to have a common ground (all the grounds must be connected togheter).
Massimo