Shop OBEX P1 Docs P2 Docs Learn Events
LED light show (pretty cool) — Parallax Forums

LED light show (pretty cool)

WestonWeston Posts: 34
edited 2006-09-16 18:06 in BASIC Stamp
ok this is one of my best projects (well one of my first)
but its pretty cool. i used some different LED's, resisors, the piezo speaker, and jumper wires

here is some code i used

DO
HIGH 0
PAUSE 100
HIGH 1
PAUSE 100
HIGH 2
PAUSE 100
LOW 0
PAUSE 100
LOW 1
PAUSE 100
LOW 2
PAUSE 100
LOOP

well i wanted to show everyone what i did, i thought it was pretty cool

Comments

  • WestonWeston Posts: 34
    edited 2006-09-15 00:19
    heres some pictures
    2048 x 1536 - 604K
    2816 x 2112 - 1M
    2048 x 1536 - 620K
    2048 x 1536 - 623K
    2048 x 1536 - 611K
  • BeanBean Posts: 8,129
    edited 2006-09-15 19:11
    Weston,
    That's a nice first project. I don't see anything to drive the speaker. What is it's function ?

    P.S. Your pictures are really blurry.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    There are only two guaranteed ways to become weathy.
    Spend less than you make.
    Make more than you spend.
    ·
  • WestonWeston Posts: 34
    edited 2006-09-15 20:18
    oh heres one of the other codes for when i used the speaker


    DO
    HIGH 0
    FREQOUT 4, 2000, 3000
    PAUSE 300
    HIGH 1
    FREQOUT 4, 2000, 3200
    PAUSE 300
    HIGH 2
    FREQOUT 4, 2000, 3400
    PAUSE 300
    HIGH 3
    FREQOUT 4, 2000, 3600
    PAUSE 500
    LOW 0
    FREQOUT 4, 2000 3600
    PAUSE 300
    LOW 1
    FREQOUT 4, 2000 3400
    PAUSE 300
    LOW 2
    FREQOUT 4, 2000 3200
    PAUSE 300
    LOW 3
    FREQOUT 4, 2000 3000
    PAUSE 300
    LOOP

    and you could make a little jingle if you like with the lights going with it


    sorry i forgot about the piezo speaker

    thank you,
    Weston
  • SzarzynskiSzarzynski Posts: 16
    edited 2006-09-15 20:41
    Neat.· I am curious - how old are you?· Dont answer that if you dont want to, it's none of my business, I'm just curious.

    I noticed that you are changing the amount of time that your program pauses over and over again.· Try making the time the program pauses a variable.· You can do·a lot more that way.

    For example:

    myVariable·VAR word

    main:

    DO

    myVariable = 100

    DO WHILE (myVariable < 500)· 'the WHILE statement makes the loop repeat while myVariable is less than 500

    myVariable =·myVariable + 10 'this will make·myVariable bigger by·10 each loop
    HIGH 0
    FREQOUT 4, 2000, 3000
    PAUSE myVariable········· 'you can use the variable instead of a fixed number.
    HIGH 1
    FREQOUT 4, 2000, 3200
    PAUSE myVariable
    HIGH 2
    FREQOUT 4, 2000, 3400
    PAUSE myVariable
    HIGH 3
    FREQOUT 4, 2000, 3600
    PAUSE myVariable
    LOW 0

    LOOP 'takes you back to the DO WHILE
    LOOP 'takes you back to the DO that sets myVariable to 100

    You can use more than one variable too, so your speaker and lights act very differently.· If you have any questions, check the Help and Index in the Basic Stamp Editor.

    Have fun.

    Jonathan
  • WestonWeston Posts: 34
    edited 2006-09-15 21:21
    thanks

    well im 15 and im a freshman

    when i was younger i would take stuff apart and make things with the motors and
    LED's (the LED's would burn out because it had to much power) and i would make cars out of the motor but no microchips

    on my 15th birthday i really got into electronics
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-09-15 22:47
    This thread is being moved from the·Completed Projects·Forum to the·BASIC Stamp·Forum.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • BeanBean Posts: 8,129
    edited 2006-09-15 23:02
    Weston,
    · Welcome to the forums. Electronics/Robotics is a facinating hobby.

    · Do you have any ideas for your next project ?

    Bean

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    There are only two guaranteed ways to become weathy.
    Spend less than you make.
    Make more than you spend.
    ·
  • WestonWeston Posts: 34
    edited 2006-09-15 23:17
    yes i do,

    i was thinking about making a small box that is drilled with 5 hole and put LED's in them and then find somthing to keep the memory of what i make the LED's do

    well any one else have ideas for me
  • BeanBean Posts: 8,129
    edited 2006-09-15 23:26
    Weston,
    What electronics stuff do you have ? Equipment and parts ?
    I'm sure we can come up with some cool projects.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap used 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com
    SX-Video Display Modules www.sxvm.com

    There are only two guaranteed ways to become weathy.
    Spend less than you make.
    Make more than you spend.
    ·
  • WestonWeston Posts: 34
    edited 2006-09-16 00:49
    well like i said i really got into electronics on my 15th birthday so i dont have much equipment

    all i really have is the boe-bot and everything it came with
  • willthiswork89willthiswork89 Posts: 359
    edited 2006-09-16 01:15
    Weston, Lookup Eeprom writing, and reading and maybe randomnization, how about making a random combination of lights go off, and have it write it to the eeprom. then when it turns on it checks for anything in the eeprom, if it has somthing in the eeprom then dont do random play the eeprom image. I know this is difficult but set your mind for difficult tasks, use the Help syntax guide, its your best friend. type EEprom and Random, it will give you examples of both! post back here and we can help you

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    -Learn somthing about everything, and Everthing about somthing-
  • WestonWeston Posts: 34
    edited 2006-09-16 18:06
    thank you
    i looked up EEprom and random and learned things that i might be able to do
Sign In or Register to comment.