Hello friends,
i have a very specific problem i dont know how to solve.
I have a digital clock that im using to set up alarms.
I want to take the output of the piezo buzzer of the alarm and use it to activate some other stuff with arduino.
I have 2 issues:
Can i use the piezo buzzer cable as an input for arduino to detect? can it have its own separate power(the clock battery)?
How can i detect properly this input of the piezo buzzer? im not sure how it works but i can see its not like an on off switch. The output just changes in volts.
The clock is only battery driven (I.e. not mains powered) ?
The buzzer is probably driven at some frequency in the audio range say 2KHz.
If you don’t know much about the circuit you are interfacing with, an opto coupler is usually a good solution. You’ll need to meet its forward voltage requirements (say minimum 1.2volts) . Use a series resistor to limit current to it.
Search for Arduino opto coupler circuits.