My Scribbler stall sensor has issues...
I have had this problem ever since i got the thing... When i program it to do something when the stall sensor is triggered, it keeps false triggering! First, when it triggers, it keeps triggering after that, then after a while, it continues on it's way, then keeps false triggering! I don't get it... Well, if you think you have the solution, i have attached the program.
Post Edited (Robofreak) : 11/4/2007 12:17:08 PM GMT
Post Edited (Robofreak) : 11/4/2007 12:17:08 PM GMT
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Joshua Donelson
www.parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Post Edited (Robofreak) : 11/2/2007 3:07:34 PM GMT
Here is the code I am running:
' Scribbler PBASIC Programming Guide - CheckStall.bs2
' Display stall sensor I/O pin status in Debug Terminal
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program running!"
' I/O Pin Definitions
Stall····· PIN 7
MotorRight PIN 12
MotorLeft· PIN 13
' Variable Declaration
stuck VAR Bit
' Motor Initialization
LOW MotorRight
LOW MotorLeft
PAUSE 100
' Main Program
PULSOUT MotorRight, 3000 ' motors full speed forward
PULSOUT MotorLeft, 3000
DO······················ ' Put status of Stall I/O pin
· stuck = Stall········· '· into the variable "stuck"
· DEBUG HOME, BIN stuck· ' Display binary value of stuck
· PAUSE 50·············· ' time to read display
LOOP
If either of you are still having the stall sensor issue with the Scribbler; please contact Technical Support at 888-998-8267 to set up an RMA for testing.·Thank You
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Joshua Donelson
www.parallax.com
Post Edited (Joshua Donelson (Parallax)) : 6/26/2008 4:52:26 PM GMT