Presentation on theme: "Project: Electronic Cricket"— Presentation transcript:
1 Project: Electronic Cricket Idea:Use photoresistor to detect light, only chirp when darkCreate sort-of-realistic cricket noise using several oscillatorsMatch to real cricket calls: google “cricket chirping”Potential uses: annoy people; investigate cricket social interactions (see Genetic Control of Acoustic Behavior in Crickets – Ron Hoy)Components:PhotoresistorOscillatorsSpeaker
2 Structure of a Cricket Call Field cricket:Syll. frequency 4-5 kHz.Syll. Repeat 35 mSecDuty Cycle ~50%Chirp repeat rate ~2-4/secFrom
3 LM555 Timer Used as an oscillator to drive a speaker Trigger: when < 1/3 Vcc, the output is high (Vcc)Threshold input: when > 2/3 Vcc and the trigger is > 1/3 Vcc, the output is low (0V). If the trigger is < 1/3 Vcc, it overrides the threshold input and holds the output high.Reset input: when less than about 0.7V, all other inputs are overridden and the output is low.Discharge pin: This is connected to 0V when the timer output is low and is used to discharge the timing capacitor in astable operation.
4 LM555 Timer as an oscillator Astable operation: The circuit oscillates on its own.With the output high, the capacitor C is charged by current flowing through RA and RB.The threshold and trigger inputs monitor the capacitor voltage and when it reaches 2/3Vcc (threshold), the output becomes low and the discharge pin is connected to 0V.The capacitor discharges with current flowing through RB into the discharge pin. When the voltage falls to 1/3Vcc (trigger) the output becomes high again and the discharge pin is disconnected, allowing the capacitor to start charging again.Adjust duty cycle (time on : total time) by adjusting the ratio between RA and RB.Note that pin 4 (reset) is held at Vcc here. You will need change the connection for light sensitivity.From
5 D = t1/(t1 + t2) =(RA + RB )/(RA + 2RB) LM555 TimerSome equations for astable operation:The charge time (output high) is given by:t1 = (RA + RB) CAnd the discharge time (output low) by:t2 = (RB) CThus the total period is:T = t1 + t2 = (RA + 2RB) CThe frequency of oscillation is:f = 1/T = 1.44/ (RA + 2RB) CAnd the duty cycle is:D = t1/(t1 + t2) =(RA + RB )/(RA + 2RB)t1t2T
6 LM555 Testing: Next, add the speaker Pick a large-ish capacitor (say 10µF), and a few different resistors (1kΩ, 10kΩ, 51kΩ, 100kΩ, etc…) or a couple of 10 or 100kΩ potentiometers (variable resistors)Build the circuit to the right without the speakerProbe the output with the oscilloscope (Do you see a square wave?)Try different resistorsWhat happens to the frequency?What happens to the duty cycle?Next, add the speakerCan you hear anything? Adjust the resistors (or cap) until you doCHALLENGE: Achieve a <50% duty cycleHint: you might need an additional component
7 Photoresistor Photoresistor Testing: Use the Ohm meter to measure the resistance of the photoresistor.Shine light on the photoresistor. What happens to the resistance?What is the resistance range going from room light to complete darkness?The 555 timer turns on if the voltage at pin 4 is greater than 1 volt. Build a voltage divider to connect to pin 4 which goes above 1 volt in the dark.