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

Whistle Switch/Clap Switch circuit

Discussion in 'Homework Help' started by Sbuda, Oct 12, 2017.

  1. Sbuda

    Sbuda New Member

    Joined:
    Oct 12, 2017
    Messages:
    4
    Likes:
    0
    Hi people.

    Can you help me with building a circuit with an LED that turns ON when you whistle, and OFF when you whistle again. It's a school project. It's should have the high pass and low pass filters.

    I am supposed to measure the frequency on the microphone and an amplitude by whistling, then choose choose the capacitor values for the filters and calculate the gain and the resistor values.

    For now I have measured the the frequency to be 2,016 kHz and amplitude to be 208 mV.

    I now have no idea how to continue. Please help.
     

    Attached Files:

  2. Sbuda

    Sbuda New Member

    Joined:
    Oct 12, 2017
    Messages:
    4
    Likes:
    0
    Please note: I have uploaded the block diagram and the circuit diagram as given the teacher, but i will accept any other way as long as it has got the filters.
     
  3. AnalogKid

    AnalogKid Well-Known Member

    Joined:
    Sep 22, 2011
    Messages:
    1,135
    Likes:
    161
    Location:
    Ohio - GMT-5
    ONLINE
    Looks good so far, although the images you posted are upside down and sideways. 2 kHz is awfully high for a human whistle; are you sure about that measurement?

    What have you been taught about single-pole filters, corner frequencies, etc?

    ak
     
  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,573
    Likes:
    950
    Location:
    Canada, of course!

    The filters are so simple (first order) that they are almost useless. You need third order filters or better.
    Usually the output level from a microphone is very low and is amplified before being filtered.
    Your "precision" rectifier is not precision because it has a diode voltage drop. The rectifier diode must be inside the negative feedback loop of the opamp to cancel the diode's voltage drop.
     
  6. magvitron

    magvitron Active Member

    Joined:
    Jan 11, 2013
    Messages:
    257
    Likes:
    28
    Location:
    John Lennon !magine land.
    Hello Sbuda,
    The method is good just as an input, can you use PLL IC 565 and a filter for around 1Khz for the same? As AnalogKid said, 2Khz is a bit high for human whistle.

    Regards,
    Manu
     
  7. ci139

    ci139 Active Member

    Joined:
    Apr 12, 2012
    Messages:
    470
    Likes:
    37
  8. Colin

    Colin Member

    Joined:
    Sep 25, 2003
    Messages:
    418
    Likes:
    23
    Location:
    Australia
    WhistleCct.gif
    I did it all with a PIC chip.
    Otherwise it takes a lot of parts
     
  9. Ian Rogers

    Ian Rogers Super Moderator Most Helpful Member

    Joined:
    Mar 28, 2011
    Messages:
    9,304
    Likes:
    914
    Location:
    Rochdale UK
    I would imagine by the text that this is a "filter" project!!! Once upon a time there was analogue electronics...
     
  10. ci139

    ci139 Active Member

    Joined:
    Apr 12, 2012
    Messages:
    470
    Likes:
    37
  11. Sbuda

    Sbuda New Member

    Joined:
    Oct 12, 2017
    Messages:
    4
    Likes:
    0
    i was too close to the mic when i whistled, but i will try to redo measurements again with the lower frequency.... about the single pole filters and corner frequencies i think it's my first time hearing about those.
     
    Last edited: Oct 16, 2017
  12. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,573
    Likes:
    950
    Location:
    Canada, of course!
    The tone controls on your stereo are single pole filters. They reduce the high and low frequencies a little, they do not remove them. The simple "whistle" detector will also detect a dog barking or an airplane or a motorcycle.
     
  13. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,573
    Likes:
    950
    Location:
    Canada, of course!
    2kHz is too high for a human to whistle? I am a human and I can easily whistle 2kHz or 1kHz or 500Hz and many more frequencies.
     
  14. Sbuda

    Sbuda New Member

    Joined:
    Oct 12, 2017
    Messages:
    4
    Likes:
    0
    how to make it?
     
  15. audioguru

    audioguru Well-Known Member Most Helpful Member

    Joined:
    Mar 16, 2004
    Messages:
    32,573
    Likes:
    950
    Location:
    Canada, of course!
    The simple useless filters are 1st-order. You can use 2nd-order or 3rd-order Sallen and Key highpass and lowpass filters. If your frequency is fairly accurate then you can us a Multiple Feedback Bandpass filter. Look at them in Google.
     

Share This Page