BS2p and the HB-25
JerryB
Posts: 10
Hi All,
I've been playing with the HB25. Using the BS2 it works just great. I have it hooked up to my BS2p right now and its not behaving as it should. I guess I have to adjust the timing of the pulsout instruction but haven't hit on the right combo yet.·Would someone look at this snippit of code·and tell me what values I should change for the BS2p to get the same results I get with the BS2? Thanks a lot....in the meantime I'll keep trying.
Jerry
· DO : DEBUG ".":LOOP UNTIL HB25 = 1··············· ' Wait For HB-25 Power Up
· LOW HB25······························· ' Make I/O Pin Output/Low
· PAUSE 5································ ' Wait For HB-25 To Initialize
· PULSOUT HB25, 750······················ ' Stop Motor 1
· PAUSE 20
· PAUSE 20····························· ' Wait 20 mS Before Ramping
· FOR index = 0 TO 250················· ' Ramp Up To Full Speed
··· PULSOUT HB25, 750 + index·········· ' Motor 1 Forward
··· PAUSE 20··························· ' 20 mS Smoothing Delay
·· NEXT
· ·STOP
I've been playing with the HB25. Using the BS2 it works just great. I have it hooked up to my BS2p right now and its not behaving as it should. I guess I have to adjust the timing of the pulsout instruction but haven't hit on the right combo yet.·Would someone look at this snippit of code·and tell me what values I should change for the BS2p to get the same results I get with the BS2? Thanks a lot....in the meantime I'll keep trying.
Jerry
· DO : DEBUG ".":LOOP UNTIL HB25 = 1··············· ' Wait For HB-25 Power Up
· LOW HB25······························· ' Make I/O Pin Output/Low
· PAUSE 5································ ' Wait For HB-25 To Initialize
· PULSOUT HB25, 750······················ ' Stop Motor 1
· PAUSE 20
· PAUSE 20····························· ' Wait 20 mS Before Ramping
· FOR index = 0 TO 250················· ' Ramp Up To Full Speed
··· PULSOUT HB25, 750 + index·········· ' Motor 1 Forward
··· PAUSE 20··························· ' 20 mS Smoothing Delay
·· NEXT
· ·STOP
Comments
Function
Generate a pulse on Pin with a width of Duration.
Quick Facts
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
I just used PJ Allen's ref to calculate the center value of 1875. Fixing to try it right now.
Jerry
Jerry.......