Blinking red led on Boe-Bot
abpccpba
Posts: 3
Hello
I have a blinking red led next to the USB port on the BOE-BOT.
When I run the code below the red light blinks rapidly.
Also the debug screen has a blinking green circle in the upper right hand of the window.
The green dot blinks next to an abbreviation RX.
The photo resistors seem to work fine. I get a value for both resistors.
If I push the reset button the light will go off until the sound ends.
What is up.
Thank You
Paul
'testbothphotoresistors.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
time_left VAR Word 'declare variable
time_right VAR Word 'declare variable
DEBUG "Photoresistor Values", CR,
"time_left time_right", CR,
"
"
FREQOUT 4, 2000, 5000
DO
HIGH 6 'set p6 high to start measurment of resistor capaitor circuit
PAUSE 3 'wait for RC to charge
RCTIME 6,1,time_left 'read p6 set to state 1 store to var time_left
HIGH 3 'set p3 high to start measurment of resistor capaitor circuit
PAUSE 3 'wait for RC to charge
RCTIME 3,1,time_right 'read p3 set to state 1 store to var time_right
DEBUG CRSRXY, 0,3,
DEC5 time_left,
" ",
DEC5 time_right
PAUSE 100 'pause so one can read the values
LOOP
I have a blinking red led next to the USB port on the BOE-BOT.
When I run the code below the red light blinks rapidly.
Also the debug screen has a blinking green circle in the upper right hand of the window.
The green dot blinks next to an abbreviation RX.
The photo resistors seem to work fine. I get a value for both resistors.
If I push the reset button the light will go off until the sound ends.
What is up.
Thank You
Paul
'testbothphotoresistors.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
time_left VAR Word 'declare variable
time_right VAR Word 'declare variable
DEBUG "Photoresistor Values", CR,
"time_left time_right", CR,
"
"
FREQOUT 4, 2000, 5000
DO
HIGH 6 'set p6 high to start measurment of resistor capaitor circuit
PAUSE 3 'wait for RC to charge
RCTIME 6,1,time_left 'read p6 set to state 1 store to var time_left
HIGH 3 'set p3 high to start measurment of resistor capaitor circuit
PAUSE 3 'wait for RC to charge
RCTIME 3,1,time_right 'read p3 set to state 1 store to var time_right
DEBUG CRSRXY, 0,3,
DEC5 time_left,
" ",
DEC5 time_right
PAUSE 100 'pause so one can read the values
LOOP
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Casey
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I fish, therefore I lie!