Motors keep running??? strange....
Technic-R-C
Posts: 117
Hello,
·· Hi have a question in regards to a motor that i am controlling with a HB-25.· The problem arises from the fact that·my DC·motor does not stop at the end of the program execution.· Instead it keeps on spinning very slowly.· At the moment, I am using a 9.6 volt fairly high amperage rechargable battery, a HB-25, a BS2px,·and a very small DC motor.· I have tried stopping the wheel that is driven by the motor with my hand after the program has executed, but the motor continues to spin.· Can anyone provide me with some information on what is going on.· I think that the·DC motor might still somehow be receiving power from the battery even after shut down, but I am just guessing. (code below)· I tried replacing the small motor with another bigger motor and·the bigger DC motor stops at the end of the ocde and does not continue spinning.· I have also incorporated LED's into the design to check if the program gets executed until the very end and the LED's indicated the the program had executed all the way.
All help is appreciated
Technic-R-C
·· Hi have a question in regards to a motor that i am controlling with a HB-25.· The problem arises from the fact that·my DC·motor does not stop at the end of the program execution.· Instead it keeps on spinning very slowly.· At the moment, I am using a 9.6 volt fairly high amperage rechargable battery, a HB-25, a BS2px,·and a very small DC motor.· I have tried stopping the wheel that is driven by the motor with my hand after the program has executed, but the motor continues to spin.· Can anyone provide me with some information on what is going on.· I think that the·DC motor might still somehow be receiving power from the battery even after shut down, but I am just guessing. (code below)· I tried replacing the small motor with another bigger motor and·the bigger DC motor stops at the end of the ocde and does not continue spinning.· I have also incorporated LED's into the design to check if the program gets executed until the very end and the LED's indicated the the program had executed all the way.
All help is appreciated
Technic-R-C
' {$STAMP BS2px} ' {$PBASIC 2.5} ' -----[noparse][[/noparse] I/O Definitions ]------------------------------------------------- HB25 PIN 15 ' I/O Pin For HB-25 ' -----[noparse][[/noparse] Variables ]------------------------------------------------------- index VAR Word ' Counter For Ramping ' -----[noparse][[/noparse] Initialization ]-------------------------------------------------- DO : 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, 1875 ' Stop Motor 1 ' -----[noparse][[/noparse] Program Code ]---------------------------------------------------- Main: PAUSE 20 ' Wait 20 mS Before Ramping FOR index = 0 TO 150 ' Ramp Up To Full Speed PULSOUT HB25, 1875 + index ' Motor 1 Forward PAUSE 20 ' 20 mS Smoothing Delay NEXT PAUSE 2500 ' Wait 2.5 Seconds FOR index = 150 TO 0 ' Ramp Back Down PULSOUT HB25, 1875 + index ' Motor 1 Forward Slowing PAUSE 20 ' 20 mS Smoothing Delay NEXT STOP ' Use STOP To Prevent State Change END
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Any other ideas?
Technic-R-C