Shop OBEX P1 Docs P2 Docs Learn Events
H-Bridge on Stingray Controller not working? — Parallax Forums

H-Bridge on Stingray Controller not working?

Adam WieslerAdam Wiesler Posts: 81
edited 2009-12-26 00:41 in Propeller 1
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/

Comments

  • hover1hover1 Posts: 1,929
    edited 2009-12-25 23:38
    Sadly Santa did not deliver my Stingray today [noparse]:([/noparse]

    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 AbshierJohn Abshier Posts: 1,116
    edited 2009-12-26 00:11
    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 WieslerAdam Wiesler Posts: 81
    edited 2009-12-26 00:41
    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[noparse][[/noparse]27..24] := %1111 ' Set P24 Through P27 To Output
    outa[noparse][[/noparse]26] := 1 ' Right Motor Forward 
    waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
    outa[noparse][[/noparse]26] := 0 ' Right Motor Stop
    waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
    outa[noparse][[/noparse]27] := 1 ' Right Motor Reverse
    waitcnt(clkfreq * 2 + cnt) ' 2 Second Pause
    outa[noparse][[/noparse]27] := 0 ' Right Motor Stop
    repeat
    
    

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    My website www.quigleyelectronics.com/
Sign In or Register to comment.