Shop OBEX P1 Docs P2 Docs Learn Events
Led light intensity — Parallax Forums

Led light intensity

SAMYTRIXSAMYTRIX Posts: 11
edited 2006-04-01 05:13 in BASIC Stamp
When I plug in LED anode to VSS and cathode to broard, and from there I plug in resistor 470 ohms from led side to VDD, the LED turns on very bright. But when I program the Basic stamp for LED on and off, the light is not as bright. Why anyone?

Comments

  • SAMYTRIXSAMYTRIX Posts: 11
    edited 2006-04-01 02:48
    Also I put in this code in BS1 pbasic 1.0

    ' {$STAMP BS1}
    ' {$PBASIC 1.0}
    DO
    · HIGH 7
    · PAUSE 500
    · LOW 7
    · PAUSE 500
    LOOP

    but it asks me to put a colon after the DO and the LOOP. Is that right? is BS1 that much different from BS2?
  • PJAllenPJAllen Banned Posts: 5,065
    edited 2006-04-01 02:52
    The cathode goes to Ground.· Output pin to anode, cathode to resistor, resistor to Ground (VSS.)

    PS -- BS1 does not·"do" DO...LOOP.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-04-01 05:13
    SAMMYTRIX -

    The reason you're seeing the error message is that you've specified ' {$PBASIC 1.0} and you're using commands that are only available in ' {$PBASIC 2.5}. Above and beyond that, YES, the BS-1 and BS-2 commnd sets are significantly different, in a number of areas. Both the PBASIC Stamp Manual, and the PBASIC Stamp IDE Help File will indicate those differences.

    Regard,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
Sign In or Register to comment.