Boe bot iR test
I have been trying this for hours and still dont work
Code is:
' {$STAMP BS2}
' {$PBASIC 2.5}
irdetectright VAR Bit
DO
·· FREQOUT 2, 1, 38500
·· irdetectright = IN0
·· DEBUG HOME, "irdetectright = ", BIN1 irdetectright
·· PAUSE 100
LOOP
why is irdetectright = 0 all the time
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Code is:
' {$STAMP BS2}
' {$PBASIC 2.5}
irdetectright VAR Bit
DO
·· FREQOUT 2, 1, 38500
·· irdetectright = IN0
·· DEBUG HOME, "irdetectright = ", BIN1 irdetectright
·· PAUSE 100
LOOP
why is irdetectright = 0 all the time
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
ir led to P2
detector to p0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
when i touch the receiver it turn to 1
when i remove my hand it turns to 0
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
i hate when i get frustrated
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
is this code right?
' {$STAMP BS2}
' {$PBASIC 2.5}
···················· 'led
HIGH 15
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
help me [noparse][[/noparse]pls]
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Post Edited (Batman) : 2/2/2006 2:06:31 AM GMT
' {$STAMP BS2}
' {$PBASIC 2.5}
DEBUG "Program running..."
HIGH 15
When you download the program (from the previous post), does the Debug Terminal appear with the message "Program Running..."?
' {$PBASIC 2.5}
DEBUG "Program running..."
HIGH 15
didnt work
and yes it says program running
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Post Edited (Batman) : 2/2/2006 2:34:38 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
pls help me out
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Make sure to follow the step-by-step instructions in Robotics with the Boe-Bot, in Chapter 7, Activity #1.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
idk but when i touch the receiver it turns. but it looks like the irled arnt working how can i fix that?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
The instructions in Chapter 7, Activity #1 in Robotics with the Boe-Bot v.2.2 show how you should be pointing the IR LEDs and receivers.
The IR LEDs and receivers are not designed to be contact sensors. They should not respond to touch. They should respond to an obstacle in front of them. See page 236.
works now
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Post Edited (Batman) : 2/2/2006 4:37:25 AM GMT
Download What's a Microcontroller v2.2.
Chapter 3 has lots of pushbutton examples.
Post Edited (Andy Lindsay (Parallax)) : 2/2/2006 4:41:57 AM GMT
but if i put my hands infront it goes to zero.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
frustration is geting the best of me
but i have 15 more leds
nvm it works
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Happy new year
Post Edited (Batman) : 2/3/2006 7:19:31 PM GMT