Shop OBEX P1 Docs P2 Docs Learn Events
Blinking red led on Boe-Bot — Parallax Forums

Blinking red led on Boe-Bot

abpccpbaabpccpba Posts: 3
edited 2010-06-24 06:38 in BASIC Stamp
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

Comments

  • FranklinFranklin Posts: 4,747
    edited 2010-06-21 02:00
    That should blink every time it sends data to the debug screen.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • IroneIrone Posts: 116
    edited 2010-06-24 06:38
    How Ya Doin'? I'm just new here but when I first fired up my stamp lights flashed buzzers went off·and I thought to myself, there goes another $50. They should tell you about what happens first. New people should look at your post! You asked reasonable questions, explained your problem and included your code. It made it very easy to answer your questions and put your mind to ease. Nice Job. If you have any more questions please come back. Also come back and read other persons questions because a lot of good information is broadcast here.

    Casey

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I fish, therefore I lie!
Sign In or Register to comment.