SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By Greghouse69
#193815
Hi guys, new to the whole Arduino shabang. I plan to take a degree in a computer science course and some of the specs say that Arduino will be included in some coursework.

So after some digging I found some example assignments and naturally I have picked a fairly basic looking one up. It is based on a traffic light system which it should have 3 different modes, so my question is simply this:

How would i get this portion of the assignment to work both in the layout of the Arduino & Breadboard as well as the code..

***Pedestrian Mode: - This mode uses the SRF05 Ultrasonic Range Finder to
detect the proximity of any object. The lights should operate as defined in
the regular mode UNTIL an object is detected less than 10 cm from the
TLC. The buzzer should then beep and the Yellow LED must blink ON/OFF
(flashing intervals of 0.1 sec) repeatedly 10 times. The buzzer should then
stop beeping and the operation of the lights (not the system) must behave
as it would in the regular mode. The operation stays the same until the
mode changes.***

Any tips, hints or code would be appreciated as I am a total Noob at this.

(Background info, my current request is based on an already existing first mode that simply turns 3 LED's on and off based on an already existing delay in the code, this is mode 2 that im asking for)

If my mode 1 code is needed please let me know