Shop OBEX P1 Docs P2 Docs Learn Events
Complete alarm with sound — Parallax Forums

Complete alarm with sound

goofybud16goofybud16 Posts: 9
edited 2010-01-11 01:33 in Robotics
I have completed my alarm with a buzzer, leds and a few push buttons

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
--
goofybud16

Comments

  • kf4ixmkf4ixm Posts: 529
    edited 2010-01-09 21:24
    I don't believe you, prove it! nono.gif

    Read this...
    http://forums.parallax.com/showthread.php?p=775521
    ·
  • goofybud16goofybud16 Posts: 9
    edited 2010-01-09 22:13
    OK. I'll upload the code, and upload the schematics when the server will let me. Keeps saying it has an error when I try.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --
    goofybud16

    Post Edited (goofybud16) : 1/16/2010 4:00:56 AM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-10 00:59
    @goofybud16 - Please read the link given by kf4ixm. You'll see that this forum is about much more than just uploading code. You're expected to provide a description of your project including schematics (or at least a detailed description of the hardware) and code, enough so someone else can duplicate it. If you just want to announce what you've done, you could post a message in the Stamp or SX or Propeller forum, whatever is appropriate. People will ask you to post a complete description here because they're interested, but, if you're unwilling to do the work, at least you'll have posted the announcement in the right place.

    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.
  • goofybud16goofybud16 Posts: 9
    edited 2010-01-10 03:19
    Here is a are schematics

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --
    goofybud16
    2550 x 3300 - 1M
  • goofybud16goofybud16 Posts: 9
    edited 2010-01-10 03:54
    Here is a better schematic and code with commenting. on the schematic, at the top where the bi color led is, the plus is always the opposite side of the flat side on a round LED. The new schematic is here now. It should have been 10 K Ohm resistors.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --
    goofybud16

    Post Edited (goofybud16) : 1/17/2010 4:55:08 PM GMT
  • Mike GreenMike Green Posts: 23,101
    edited 2010-01-10 15:57
    Thank you for the schematic and updated code. A couple of comments on the schematic:

    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.
  • P!-RoP!-Ro Posts: 1,189
    edited 2010-01-10 21:13
    Looks great! Could you provide a picture of it in action?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    PG
  • goofybud16goofybud16 Posts: 9
    edited 2010-01-11 01:33
    I'm working on getting a video of it on youtube and will post the link here when its uploaded.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --
    goofybud16
Sign In or Register to comment.