Question about the H-Bridge in the MSR-1 Controller
GeorgeCollins
Posts: 132
I do not seem to be getting power out of the socket of the motor A or motor B plug of my MSR-1 Robot Controller board. I am running it on two NiMH batteries (at 14.4 v 1600mAh) connected into the power plug. The board seems to be operating fine on this power, I have run it with two Ping Sensors and two continuous rotation servos and it works great. But when I tried to run a motor off the H-Bridge, no response.
Here is the code I was using:
I have been using this motor servocity.com/html/303_rpm_gear_motor.html plugged into the motor A socket. No motion from the code above or the stingray sample code.
I tried unplugging the motor and connecting a volt meter to the motor A and motor B socket pins, testing each one in case their was a problem with the motor or the plug. The volt meter registers nothing positive or negative when the code above is started or finishes.
Any suggestions? Could I have burned out the H bridge? Are those batteries too much? Does it matter that I am using one motor socket and have nothing plugged into the second one?
Thanks,
George
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
Here is the code I was using:
CON _clkmode = xtal1 + pll16x _xinfreq = 5_000_000 PUB Init dira[noparse][[/noparse]27..24] := %1111 ' Set P24 Through P27 To Output outa[noparse][[/noparse]24] := 0 outa[noparse][[/noparse]25] := 1 outa[noparse][[/noparse]26]:=0 outa[noparse][[/noparse]27]:=1 waitcnt(clkfreq * 30 + cnt) '30 Second Pause
I have been using this motor servocity.com/html/303_rpm_gear_motor.html plugged into the motor A socket. No motion from the code above or the stingray sample code.
I tried unplugging the motor and connecting a volt meter to the motor A and motor B socket pins, testing each one in case their was a problem with the motor or the plug. The volt meter registers nothing positive or negative when the code above is started or finishes.
Any suggestions? Could I have burned out the H bridge? Are those batteries too much? Does it matter that I am using one motor socket and have nothing plugged into the second one?
Thanks,
George
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
Comments
Jax
update:
Try removing the outa[noparse][[/noparse]24] and the outa[noparse][[/noparse]26] from your list if you are just trying to move the motors.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..
Post Edited (GWJax) : 12/21/2009 6:06:28 PM GMT
I doubled checked and yes I have the switch in the power on/ motor on position. I put a picture of the board layout and a video of testing with a motor and a VOM at the bottom of www.trailofdestruction.com/combot.htm.
I tried this with the code for outa[noparse][[/noparse]24] & outa[noparse][[/noparse]26] in and out. It did not seem to matter. I am not sure what you mean by the frequency, do you mean the interval at which you change pin states? In the video I set the pin states as above, wait 15 seconds, and then run the servo forward (so I know when 15 seconds are up.) It also shows that the power is working.
Thank you very much for your help. Any ideas?
George
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
It's unlikely there's an issue with the H-Bridge, but being we're so close to being closed until January, it might be a good idea to call Tech Support as soon as possible.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Check out the new Savage Circuits TV!
·
Thanks, I will probably call after the holiday. Just wanted to check first in case their was something simple.
G
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My Robots
Rest assured, if something is wrong with it we will take care of it. I apologize it took us so long to get this far. It may just be one of those weird things.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Engineering
Check out the new Savage Circuits TV!
·
Here is a shorten version of your program that works great..
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
PUB Init
dira[noparse][[/noparse]25..24] := %11 ' Set P24 Through P25 To Output
outa[noparse][[/noparse]25] :=1 'Start motor A forward
waitcnt(clkfreq * 30 + cnt) '30 Second Pause
outa[noparse][[/noparse]25] :=0 'Stop motor A
repeat
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
If a robot has a screw then it must be romoved and hacked into..