Manipulate a Boe-Bot using Light Sensors
heavy-freelancer
Posts: 23
Hey,
I have to manipulate my Boe-Bot so he can stop or move forward or turn left/right when he see an object in front of him using light sensors.
But the problem here is that I don't know where I must place the light sensors under my Education Board.
Also I don't know how to manipulate them.
Is there any one who have a picture of the schema and some code on how to do this thing I'm talking about ?
Thanks already.
I have to manipulate my Boe-Bot so he can stop or move forward or turn left/right when he see an object in front of him using light sensors.
But the problem here is that I don't know where I must place the light sensors under my Education Board.
Also I don't know how to manipulate them.
Is there any one who have a picture of the schema and some code on how to do this thing I'm talking about ?
Thanks already.
Comments
Hmmm... I didn't do a lot with the photo-resistors. In the manual Chapter 6, figures 6-11 and 6-12 show a couple of illustrations on mounting them. (Downloadable from the Parallax website, I think.)
Not sure how you would place them "under" the BOE.
I'm working on mounting the IR circuits on a small prototype board that could be mounted under the main board.
HTH,
Amanda
Didn't you get the "Robotics with the Boe Bot" with your kit?
Anyway... You can download the .pdf file here: http://bit.ly/fJV0rR
Amanda
Its just the right servo motor who is moving, and both moves when I turn out the light.
DEBUG "Program Running!"
FREQOUT 4, 2000, 3000 ' Start/restart signal.
DO
IF (IN6 = 0) AND (IN3 = 0) THEN ' Both detect shadows, forward.
PULSOUT 13, 850
PULSOUT 12, 650
ELSEIF (IN6 = 0) THEN ' Left detects shadow,
PULSOUT 13, 750 ' pivot left.
PULSOUT 12, 650
ELSEIF (IN3 = 0) THEN ' Right detects shadow,
PULSOUT 13, 850 ' pivot right.
PULSOUT 12, 750
ELSE
PULSOUT 13, 750 ' No shadow, sit still
PULSOUT 12, 750
ENDIF
PAUSE 20
LOOP
The general rule of debugging is that if it doesn't work and you've copied what was shown in the book, then you copied something incorrectly and your job is to find out where the mistake is. It won't be in the book.
Else what's the role of the black round thing with the + sign.
The FREQOUT statement generates a pulse train at audio frequencies and this is sent to the piezo-speaker.
Hey! You have the Boe Bot. Did you get the full kit or, maybe, just the hardware?
Amanda
Amanda
then double, triple check your resistors and their values...