| August 9th, 2009 Well I got around to making my own 2-way street traffic light. Source code has no complicated math, just timed events that loop. Here is a video. Below is a photo & the source code (copy & paste), and the resistor near bottom center of breadboard was left in by accident from LCD I had hooked up earlier (not needed in this layout). Also, I cheated and didn't use resistors for the LEDs (why they are so bright), this would be more of a battery drainer in a real world application. I removed the USB to serial RS232 that writes the hex files to the MCU (not an ISP), now the circuit looks so basic and is now a working prototype of a (microcontroller controlling at least 6 devices) toy traffic signal set (could be used by kids when playing cars, train collecting enthusiasts, etc).
Another source code for a 6 LED light chaser effect (Cylon Fighter): |
Free image widgets HERE.