Pages: [1]   Go Down
Author Topic: Piezo beep with flash detection  (Read 1535 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


I want to know if is it possible to make a beep tone when light(flash) detected with arduino. how is the latency from the detection to beep tone?
Is it constant in order to measure it?
I don't want to connect with pc so i want to have an external power (ex.battery, Dc), i think that it isn't difficult, am i right?

Thank's for your time

Offline Offline
God Member
Karma: 14
Posts: 644
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It's very possible to do what you want, and it isn't very difficult. 

With regards to latency, the only delays will be the signal propagation down the wires and how many clock cycles your code requires to detect the flash and then output to a speaker.  Even with very inefficient code, their probably won't be a noticable delay (to human) between the detection and sound. 

You should start by looking the Playground's example code for light sensors and audio output devices.  If you want to do something else with the sketch while waiting for a flash, you should also read about interrupts in the Reference section of the main website.

Pages: [1]   Go Up
Jump to: