Complete alarm with sound
goofybud16
Posts: 9
I have completed my alarm with a buzzer, leds and a few push buttons
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16
Comments
Read this...
http://forums.parallax.com/showthread.php?p=775521
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16
Post Edited (goofybud16) : 1/16/2010 4:00:56 AM GMT
By the way, please don't post uncommented code. It's not very helpful without at least some general comments about what various I/O pins are used for and what the program does.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16
Post Edited (goofybud16) : 1/17/2010 4:55:08 PM GMT
For the Red, Yellow, and Green unidirectional LEDs, what you did is fine, but, if you're tight on I/O pins, you don't need two I/O pins per LED. You could connect the cathodes to ground, the anodes to their 470 Ohm resistors, and the other end of the resistors to the associated I/O pin, then make the I/O pin high to turn it on.
On the pushbutton parts of the schematic, did you mean a 10K Ohm instead of a 10 Ohm resistor? A 10 Ohm resistor would be way too low, would let nearly 500mA flow through the switch when closed, would cause damage to the switch contacts and the resistor, and would drain the battery quickly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
PG
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16