Shop OBEX P1 Docs P2 Docs Learn Events
BS2 Problem — Parallax Forums

BS2 Problem

ArchiverArchiver Posts: 46,084
edited 2002-02-04 12:00 in General Discussion
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

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2000-11-27 14:39
    You may use the command DIRS instead of FOR.
    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
    >
    >
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2000-11-27 15:05
    Hello:

    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
  • ArchiverArchiver Posts: 46,084
    edited 2002-02-04 12:00
    My PC cannot detect anymore one of my BS2's what may be the problem?
Sign In or Register to comment.