The AVR is a Modified Harvard architecture 8-bit RISC single chip microcontroller (µC) which was developed by Atmel in 1996. The AVR was one of the first microcontroller families to use on-chip flash memory for program storage, as opposed to One-Time Programmable ROM, EPROM, or EEPROM used by other microcontrollers at the time.

Two Way Traffic Light AVR Demo

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).

Source code for 2way traffic signals AVR project:

Another source code for a 6 LED light chaser effect (Cylon Fighter):

Well it's about 4am now, I better get some sleep. Another day, another learning experience.



Comments:

No comments yet. You could be the first person to comment!

Make A Comment:

Name:

Your message/comment:

characters left.
For AVR codes, use my PasteBin & post link.

Prove you are human (enter the text seen in image):


Make your own email signatures like this @ www.text2logo.com


Free image widgets HERE.