BS2 Problem
I am building a very simple circuit using BS2. After testing it
thoroughly and sucessfully on the Board of Education, I build a
permanent circuit, and found out that it does not work. The circuit
is built identically to that on the BOE. Then I realized that even a
circuit as simple as a blinking LED would not work if I do it on a
breadboard independent of the BOE (where it does work)! I am getting
5v on the regulated voltage pin.
When I connect a switch to one of the pins, I can read it correctly.
But the problem is that I can not output anything.
This program works fine from the BOE but not from an indepentdent
circuit!
timer var byte
i var byte
for i = 0 to 15
output i ' set all pins to be outputs
next
again:
low 0
pause timer
high 0
pause timer
goto again
Anyone has experience with this?
Al Najjar
thoroughly and sucessfully on the Board of Education, I build a
permanent circuit, and found out that it does not work. The circuit
is built identically to that on the BOE. Then I realized that even a
circuit as simple as a blinking LED would not work if I do it on a
breadboard independent of the BOE (where it does work)! I am getting
5v on the regulated voltage pin.
When I connect a switch to one of the pins, I can read it correctly.
But the problem is that I can not output anything.
This program works fine from the BOE but not from an indepentdent
circuit!
timer var byte
i var byte
for i = 0 to 15
output i ' set all pins to be outputs
next
again:
low 0
pause timer
high 0
pause timer
goto again
Anyone has experience with this?
Al Najjar
Comments
PAUSE "timer"... what's the value??? If the Led blinks more than 10 times
per second, the human eye can't notice the blink.
If you use more than one power supply, be sure that the negative pole is
common to the circuits.
cheers
Fabiano
Original Message
From: <alnajjar@s...>
To: <basicstamps@egroups.com>
Sent: Monday, November 27, 2000 11:47 AM
Subject: [noparse][[/noparse]basicstamps] BS2 Problem
> I am building a very simple circuit using BS2. After testing it
> thoroughly and sucessfully on the Board of Education, I build a
> permanent circuit, and found out that it does not work. The circuit
> is built identically to that on the BOE. Then I realized that even a
> circuit as simple as a blinking LED would not work if I do it on a
> breadboard independent of the BOE (where it does work)! I am getting
> 5v on the regulated voltage pin.
>
> When I connect a switch to one of the pins, I can read it correctly.
> But the problem is that I can not output anything.
>
> This program works fine from the BOE but not from an indepentdent
> circuit!
>
> timer var byte
> i var byte
>
> for i = 0 to 15
> output i ' set all pins to be outputs
> next
>
> again:
> low 0
> pause timer
> high 0
> pause timer
> goto again
>
> Anyone has experience with this?
>
> Al Najjar
>
>
>
>
>
Maybe you have to specify a value for the variable
timer because if it doesn't have a value the pause
will be so short and you don't see the led blinking.
--- alnajjar@s... escribi