Pages: [1]   Go Down
Author Topic: Timer Circuit using a laser and an LDR?  (Read 1205 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey there! I'm pretty new to Arduinos and programming, but I am keen to get started on a project during the school holidays. I want to make a timing device for my mountain bike track using an arduino controller. My original thought was to have a laser being sent into a tube with a LDR at the end, and when a bike goes past, it will record a time.
Another idea was to have a starting beep sound, such as 3 low tones followed by a higher tone with one second intervals, perhaps coming from a Piezo transducer or small speaker.
I would really appreciate anyone who could tell me basic things such as coding help, as I have a decent understanding of electronics, just not good with programming.
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

For the laser LDR setup, all you need is to hook up the LDR togeter with a fixed resistor as a voltage divider to an analog pin, then constantly read the analog pin and wait for a large change in value. The tube has to be fairly deep to shield the LDR from fluctuations in ambient light levels. A photo transistor might be a better option than the LDR. It is switching faster and is probably not so sensitive to changes in ambient light levels.

For the beep, there's a tone function in the Arduino programming language you can use.'

I recomend breaking your project down into smallish tasks that can easily be build and tested individually, like laseer / LDR triggering, beeping, timing.

Make small test setups for each task, make it work, and in the end put it all together. This way it's much easier to find and fix errors.

The three things you want (laser/LDR - Beeping - Timing) has all been done many times, so you should be able to search the forum for lot's of usefull info.

EDIT:

Don't forget that you also need some way to display the time, like an LCD display, or by sending it to a PC.
« Last Edit: September 03, 2011, 03:36:59 am by MikMo » Logged

Pages: [1]   Go Up
Jump to: