1. Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.
    Dismiss Notice

Project: Night Buzzer

Discussion in 'Electronic Projects' started by zachtheterrible, Jan 14, 2005.

Thread Status:
Not open for further replies.
  1. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    here's the surce code of the PIC in mikroBasic
    Code (text):

    program beeper

    dim light as  word
    main:
      CMCON = 7
      ADCON1 = $00
      TRISA  = $FF
      TRISB  = $0
      PORTB = $FF
      Sound_Init(PORTB,2)
     
    el:

    light = ADC_read(2)

      If light < 200 then
       Sound_Play(10,10)
       delay_ms(5000)
      end if
     
    goto el
    end.
     
    As for the conections there is an piezo speker on RB2 and the phototransistor output voltage to RA2.

    The PIC is runing on its internal oscilator so no crystal

    This one behaves like the one zatch made and as you see the code is very simple.

    Il post the new code that has timing based on how fast do the lights get thurnded on.

    btw:
    what did you do whith your amp mether? (mine has an fused 200mA max input and an unfused 20A max input so its kinda hard to blow it)
     
  2. zachtheterrible

    zachtheterrible Active Member

    Joined:
    May 4, 2004
    Messages:
    2,154
    Likes:
    2
    Location:
    California, USA
    Hey electro. Do you have microsoft instant messenger? Or AOL? I could redownload the AOL.

    Not sure what I did with my ammeter. I think I connected across a 9volt battery while it was on a very small reading. Its a cheapo $3 one so i just got another one.
     
  3. subahu

    subahu New Member

    Joined:
    Jun 21, 2005
    Messages:
    2
    Likes:
    0
    where Do we give an input to the circuit?
     
  4. dave

    Dave New Member

    Joined:
    Jan 12, 1997
    Messages:
    -
    Likes:
    0


     
  5. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,442
    Likes:
    933
    Location:
    Canada, of course!

    Light is the input to the circuit. The Light Dependent Resistor's resistance changes a lot with the amount of light shining on it.
     
  6. geethurs

    geethurs New Member

    Joined:
    Jul 12, 2005
    Messages:
    1
    Likes:
    0
    seems interesting. :roll:
     
  7. charle08

    charle08 New Member

    Joined:
    Jul 15, 2005
    Messages:
    5
    Likes:
    0
    Location:
    Philippines
    hmm.. a nasty project! lolz! nice and cool one! but it's kinda better if it trigger when he/she is in the middle of his/her dreams! :D about 5-10 minutes.
     
  8. zachtheterrible

    zachtheterrible Active Member

    Joined:
    May 4, 2004
    Messages:
    2,154
    Likes:
    2
    Location:
    California, USA
    that could be done charle. only problem is you would need a rather large capacitor.

    you could do it with a 555 and you wouldnt need so large a cap.
     
  9. electronic mind

    electronic mind New Member

    Joined:
    Nov 30, 2003
    Messages:
    24
    Likes:
    0
    Question?

    how can a buzer which is (3-16) VDC be able to generate a sound when the Vcc is only 1.5 V (forgetting about the resistors)
     
  10. zachtheterrible

    zachtheterrible Active Member

    Joined:
    May 4, 2004
    Messages:
    2,154
    Likes:
    2
    Location:
    California, USA
    Re: Question?

    Ummmm, i dunno, it just does :lol: Its not loud or anything.
     
  11. pike

    pike Member

    Joined:
    Oct 25, 2003
    Messages:
    588
    Likes:
    0
    Location:
    Sydney, Australia
    it just doesn't go at the specified frequency, i suppose. I'm assuming its a mechanical buzzer that is.
     
  12. zachtheterrible

    zachtheterrible Active Member

    Joined:
    May 4, 2004
    Messages:
    2,154
    Likes:
    2
    Location:
    California, USA
    Is there a difference between mechanical and piezo? Cuz mine is piezo.
     
  13. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    Mechanical ones use more power.

    Its just an reley that is constantly switching it self on/off.
     
  14. res2

    res2 New Member

    Joined:
    Sep 18, 2005
    Messages:
    1
    Likes:
    0
    Location:
    penang,malaysia
    problem

    :| i want to know..
    that project have problem like noise..or others.. :roll: :wink: :wink:
     
  15. zachtheterrible

    zachtheterrible Active Member

    Joined:
    May 4, 2004
    Messages:
    2,154
    Likes:
    2
    Location:
    California, USA
    Re: problem

    Does it have problems like noise? How is noise a problem in this circuit? Noise is the what you want it to make.

    I think you might have to clarify yourself a bit :lol:
     
  16. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    Its ment to make noise to drive the victim nuts
     
  17. Macka

    Macka New Member

    Joined:
    Mar 28, 2005
    Messages:
    96
    Likes:
    1
    Location:
    Australia
    This project has so many things that could be improved and made better, I would Like to see it evolve a sensor, maybe a microphone that could detect people within 3 metres and switch itself off or drop the volume to make it harder to find. :twisted: :twisted:
     
  18. Someone Electro

    Someone Electro New Member

    Joined:
    Sep 10, 2003
    Messages:
    2,579
    Likes:
    2
    Location:
    A boring village in Europe (slovene)
    It is prosible so do whith an MCU.It cod make the worlds most ophisitcated nuts driver.LOL
     
  19. feejay

    feejay New Member

    Joined:
    Jun 5, 2006
    Messages:
    1
    Likes:
    0
    i've implemented each and every step and designed the circuit on a bradboard but it isn't working i dont know why could you please send me a tutorial which could help me in each and every step so that may be i'll be able to correct the mistake which i am doing in making this circuit
     
  20. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,442
    Likes:
    933
    Location:
    Canada, of course!
    The 2nd transistor doesn't have a current-limiting resistor in series with its base. So the 1st time you connect the battery, the capacitor charges through the base of the 2nd transistor with unlimited current and blows-out the base.
    If the base does survive, does your buzzer work on the low voltage battery?
    Disconnect the photoresistor to see if the circuit makes the buzzer work.
     
  21. hartc2697

    hartc2697 New Member

    Joined:
    Jun 30, 2006
    Messages:
    2
    Likes:
    0
    Night Buzzer Capacitor Questions

    I'm interested in making the night buzzer that was posted some time ago. It uses two 1000 micro-farad capacitors along with the 9V power supply. I am aware of he energy storing potential of capacitors and want to verify that capacitors are discharged once I start playing with the system. Since this project uses rather large caps, I was wondering if anyone had input on using these safely. I assume I can put 22k capacitor accross the leads but just want to be sure.
     
Thread Status:
Not open for further replies.

Share This Page