boe bot not working
my boebots power connector (for the battery pack) doesnt work. i put fresh batteries and checked connections, it doesnt work, the 9v port does though.
and my servos dont work. im sending a simple pulsout and they dont move. anybody know whats up?
and my servos dont work. im sending a simple pulsout and they dont move. anybody know whats up?
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
OS-X: because making Unix user-friendly was easier than debugging Windows
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
well, my serovs work by themselves. but the power jack on the BOE still doesnt work, and the stamp is able to do math and print stuff to the debug window, but not able to control the servos, at least thru the BOE, so im thinking that i may have fried the I/O pins that control the servos. im going to try and pulse the servos using different pins when i get home, i still havent talke to tech support, havent had the time. im gonna borrow a multimeter and test my theorys. thanks for all the help.
k, my i/o pins must be fried. i tried hooking the servos up the way your supposed to hook them up on a homework board. i tried all of the pins. servos dont even flinch. yet they work when voltage is directly applied.
EDIT:
i think i fired the battery pack. it no longer puts out any voltage. fresh batteries. i saw some smoke come off of the battery pack when i hooked it up like it was hooked up in the manual. soooo...... maybe the stamp isnt fried. i dunno. i just know this sucks.
Post Edited (HavoKane) : 5/23/2006 1:27:39 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Ryan
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ryan Clarke
Parallax Tech Support
RClarke@Parallax.com
' {$PBASIC 2.5}
DEBUG "program running"
DO
PULSOUT 0, 750
PULSOUT 1, 750
PAUSE 20
LOOP
ive tried using pins 0 thru 13 with no avail.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
EDIT:
ok, well, i thouhgt that had fixt it, but apparently not. im just now toying with the robot, ive been pretty busy, i can communicate with the stamp, but i cant control the servos from any pin. but the servos are not fried. so, i think this comes down to having to buy a new bot...
Post Edited (HavoKane) : 7/16/2006 5:21:01 AM GMT
' {$STAMP BS2}
' {$PBASIC 2.5}
'
Variables
MyVar VAR Nib
InPutVar VAR Nib
pulseCOUNT VAR Byte
counter VAR Nib
old7 VAR Nib
old5 VAR Nib
'
Declarations
counter = 1
old7 = 0
old5 = 1
'
Pins
Right_Servo_Wheel PIN 12
Left_Servo_Wheel PIN 13
'
Constants
CRMid CON 750
CRDeviation CON 225
CRMax CON CRMid + CRDeviation
CRMin CON CRMid - CRDeviation
CRHMid CON CRMid + 200
CRLMid CON CRMid - 200
CLMid CON 750
CLDeviation CON 225
CLMax CON CLMid + CLDeviation
CLMin CON CLMid - CLDeviation
CLHMid CON CLMid + 200
CLLMid CON CLMid - 200
Stopped CON 5
Forward CON 8
back CON 2
Turn_Right_Sharp CON 6
Turn_Left_Sharp CON 4
Autopilot CON 0
'
'
Manual Operation code
'
DO
DEBUG CLS
InPutVar = Stopped
SERIN 16, $4054, 30,LoopBegin,[noparse][[/noparse]InPutVar]
LoopBegin:
myvar = InPutVar
SELECT myvar
CASE = Stopped
PULSOUT Right_Servo_Wheel, CRMid
PULSOUT Left_Servo_Wheel , CLMid
DEBUG "Stopped"
CASE = Forward
PULSOUT Right_Servo_Wheel, CRMin
PULSOUT Left_Servo_Wheel , CLMax
DEBUG "Go FWD"
CASE = Back
PULSOUT Right_Servo_Wheel, CRMax
PULSOUT Left_Servo_Wheel , CLMin
DEBUG "Go RVS"
CASE = Turn_Right_Sharp
PULSOUT Right_Servo_Wheel, CRMax
PULSOUT Left_Servo_Wheel , CLMax
DEBUG "Turn Right"
CASE = Turn_Left_Sharp
PULSOUT Right_Servo_Wheel, CRMin
PULSOUT Left_Servo_Wheel , CLMin
DEBUG "Turn Left"
'
END MANUAL OPERATION
'
'
ENTER AUTOPILOT
CASE Autopilot
DO
IF (IN7 <> IN5) THEN
IF (old7 <> IN7) AND (old5 <> IN7) THEN
counter = counter + 1
old7 = IN7
old5 = IN5
IF (counter > 4) THEN
counter = 1
GOSUB Back_Up
GOSUB Turn_Left
GOSUB Turn_Left
ENDIF
ELSE
counter = 1
ENDIF
ENDIF
IF (IN5 = 0) AND (IN7 = 0) THEN
HIGH 15
HIGH 1
FREQOUT 4, 250, 3550
FREQOUT 4, 200, 3550
GOSUB Back_Up
GOSUB Turn_Left
GOSUB Turn_Left
ELSEIF (IN5 = 0) THEN
HIGH 15
FREQOUT 4, 200, 3575
GOSUB Back_Up
GOSUB Turn_Right
ELSEIF (IN7 = 0) THEN
HIGH 1
FREQOUT 4, 200, 3575
GOSUB Back_Up
GOSUB Turn_Left
ELSE
LOW 15
LOW 1
GOSUB Forward_Pulse
ENDIF
LOOP
Forward_Pulse:
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
DEBUG "Go FWD"
RETURN
Turn_Left:
FOR pulseCount = 0 TO 20
PULSOUT 13, 650
PULSOUT 12, 650
PAUSE 20
DEBUG "Turn Left"
NEXT
RETURN
Turn_Right:
FOR pulseCount = 0 TO 20
PULSOUT 13, 850
PULSOUT 12, 850
PAUSE 20
DEBUG "Turn Right"
NEXT
RETURN
Back_Up:
FOR pulseCount = 0 TO 20
PULSOUT 13, 650
PULSOUT 12, 850
PAUSE 20
DEBUG "Go RVS"
NEXT
RETURN
'
END AUTOPILOT
ENDSELECT
LOOP
EDIT 1: although, now that it can move the servos, it doesnt follow the code uploaded to it. it just spins the servos.
EDIT 2a: According to my code, and the way it used to work, its not supposed to move at all until i press a movement or autopilot key...
EDIT 2b: I cant make the bot turn. it will only go FWD. i think some code is burned into the eeprom or something. i have it running off of a DC wallwort at 6v. so i have the jumper in the VDD position, but it behaves the same in either position. in the debug, the RX light blinks so fast, that its almost solid, and the TX light only comes on when i press a key, like it should. and i have an echo and a loop. i am completley stumped.
Post Edited (HavoKane) : 7/16/2006 5:44:56 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ron Giuntini
San Francisco