LED light show (pretty cool)
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
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
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.
·
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
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
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 Savage
Parallax Tech Support
· 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.
·
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
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.
·
all i really have is the boe-bot and everything it came with
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-Learn somthing about everything, and Everthing about somthing-
i looked up EEprom and random and learned things that i might be able to do