MD22 on SSC32 issues
Hi all!
Has anyone succesfully used a MD22 motor driver with a SSC32 controller? I seem to be having some strange issues, when i write a value <1500 to any of the channels both motors start running in reverse and with a value >1500 both motors just stop, =1500 sometimes stops the motor(s) sometimes not. The only way 1 motor will do what it is supposed to do is to write a 0 to one of the channels then the other channel will work as it is supposed to.
I've tried several RC-Servo modes, non-turning, tried several logic power sources etc.etc. no luck so far.
Any help would be appriciated.
Has anyone succesfully used a MD22 motor driver with a SSC32 controller? I seem to be having some strange issues, when i write a value <1500 to any of the channels both motors start running in reverse and with a value >1500 both motors just stop, =1500 sometimes stops the motor(s) sometimes not. The only way 1 motor will do what it is supposed to do is to write a 0 to one of the channels then the other channel will work as it is supposed to.
I've tried several RC-Servo modes, non-turning, tried several logic power sources etc.etc. no luck so far.
Any help would be appriciated.
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
www.robot-electronics.co.uk/htm/md22tech.htm
Motor 1 on the 2 'Motor 1' pins
Motor 2 on the 2 'Motor 2' pins
SDA and SCL go to 2 pulse pins of the SSC32, grounds to their resp. ground, the motor side gets its power from a 6V battery and the logic from a USB port, i can (and had to to test) easily change that to 2 other sources; the regulated 5V from the SSC32 or a separate 5V power supply.
The code is very simple, the SSC32 runs as default as can be so i just send commands like:
#2 P1500<cr>
or
#2 P1200<cr>
or
#3 P1900<cr>
using channels 2 and 3 for the MD22. Tried some others channels already but giving exactly the same results.
Also, have you tried running this directly from the stamp?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Stamp? I have the SSC32 connected to a netbook.
Would it be possible for someone to test this setup (MD22 + SSC32)? You guys at Parallax for example? I believe you have the possibility to test stuff fairly easy. It would or could tackle where my problem lies, although MD22s don't leave the factory without passing a test it could be possible this one passed the test because it actually does some stuff as it should but not all of what it should do.
Just trying to figure out if the MD22 could be faulty or not.
Post Edited (Burk) : 2/2/2010 10:22:34 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I'm gonna check with Antratek (Netherlands) where i ordered them to see if they can and want to do a test-run with the same parts, if not... i'll be back...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
I'm getting a replacement from Antratek, although they doubt the MD22 could be partially faulty, but i hope it is and not the combination of the two components causing the trouble...
Ok, just in short, in any servo-mode without turning each channel operates like driving a tank with 2 handles for example or is this where i'm going wrong?. Both with a range of 1000-2000 and 1500 center.
Post your code. Your pseudo-code snippets do not accurately show whether or not you are actually sending the values you think you are.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
I made a little test-program apart from my robot-program to do some testing, servo's are on channel 0,1 and the MD22 on channel 2 and 3.
The actual commands are from the # till the last digit and a <CR> is included of course.
And this works too for the servo, the MD22 reacts only on positions <1500, >1500 just stops the motor(s).
Post Edited (Burk) : 2/9/2010 10:26:54 PM GMT
RC Servo On Off On Off
So use that setting. With one motor full forward (2000us) and one full backward (1000us) your platform should spin. With both at 2000us, you should go full forward. Both at 1500us should stop both motors.
Make sure everything has a common ground and no ground loops. Remember that logic ground and motor ground are already connected by a track on the MD22. I use the MD22 all the time w/o problems.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
But I agree with Franklin -- do you have a micro or an R/C transmitter/receiver so you can test just the MD22 servo in / motor out setup and at least lock down exactly where your problem is?
You might also try your motors at half speed -- 1750 and 1250.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Thanks for the help so far, not sure what i'll try next...