IR sensors
jackijack
Posts: 1
hello,
im tryin to make an anti collision boe-bot that goes for a certain path and avoid obsticals while its going, well im using
FOR pulseCount = 1 TO 500
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
DEBUG ? PulseCount,CR
PAUSE 2
NEXT
and i dont know how to connect the IR commands to make my boe bot know or see the obsticals while its moving , i tried to use IF IN0 = 0 for the left and the right IR sensors but it didnt work.
im having hard time knowing how to connect the servo commands with the IR commands sothat it sees the obsticals and go for a certain path that i need it to go for .
FREQOUT 8,1,38500·········· ' Check IR detectors
irleft = IN9
FREQOUT 2,1,38500
irRight = IN0
i identified my sensors but it doesnt work while the for NEXT command is working. it etheir read the FOR NEXT command or my Sensors Commands.
im tryin to make an anti collision boe-bot that goes for a certain path and avoid obsticals while its going, well im using
FOR pulseCount = 1 TO 500
PULSOUT 13, 850
PULSOUT 12, 650
PAUSE 20
DEBUG ? PulseCount,CR
PAUSE 2
NEXT
and i dont know how to connect the IR commands to make my boe bot know or see the obsticals while its moving , i tried to use IF IN0 = 0 for the left and the right IR sensors but it didnt work.
im having hard time knowing how to connect the servo commands with the IR commands sothat it sees the obsticals and go for a certain path that i need it to go for .
FREQOUT 8,1,38500·········· ' Check IR detectors
irleft = IN9
FREQOUT 2,1,38500
irRight = IN0
i identified my sensors but it doesnt work while the for NEXT command is working. it etheir read the FOR NEXT command or my Sensors Commands.
Comments
This is a great tutorial that will answer all your questions!