PDA

View Full Version : H-Bridge on Stingray Controller not working?



Adam Wiesler
12-26-2009, 05:29 AM
I just got a Stingray today, and it's awesome, except that the H-bridge on control board is not working, at all. I checked the input voltages, from the prop and it seems to be fine. To check it I had the prop turning P26 high, and on the h-bridge the only input that was on was the one coming from P26. Vin and the 5v signal from the power switch seemed fine also. Any Ideas? Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My website www.quigleyelectronics.com/ (http://www.quigleyelectronics.com/)

hover1
12-26-2009, 06:38 AM
Sadly Santa did not deliver my Stingray today :(

I would suggest moving to the Robotics forum as most Stingray questions are being answered there. Chris is pretty much on top of stuff in that forum.

Jim


Adam Wiesler said...
I just got a Stingray today, and it's awesome, except that the H-bridge on control board is not working, at all. I checked the input voltages, from the prop and it seems to be fine. To check it I had the prop turning P26 high, and on the h-bridge the only input that was on was the one coming from P26. Vin and the 5v signal from the power switch seemed fine also. Any Ideas? Thanks.

John Abshier
12-26-2009, 07:11 AM
I think you need to turn one side of the H-bridge high and turn the other low. If you left the other as an input that could cause a problem.

John Abshier

Adam Wiesler
12-26-2009, 07:41 AM
Thanks,
I made sure that the other pin weren't inputs, and that didn't work.
BTW, I'm using the the demo program from the Stingray's manual.




'' File: Right Motor Test.spin
CON
_xinfreq = 5_000_000 ' External Crystal Frequency
_clkmode = xtal1 + pll16x ' Enabled External Crystal and PLL X16
PUB Main
dira[27..24] := %1111 ' Set P24 Through P27 To Output
outa[26] := 1 ' Right Motor Forward
waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
outa[26] := 0 ' Right Motor Stop
waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
outa[27] := 1 ' Right Motor Reverse
waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
outa[27] := 0 ' Right Motor Stop
repeat


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
My website www.quigleyelectronics.com/ (http://www.quigleyelectronics.com/)