This tutorial has been designed as a next step, following the fantastic tutorial 'Ghetto Programming: Getting started with AVR microprocessor on the cheap.' by The Real Elliot link you should read this before progressing onto this next step.
Today my friends we are going to make a pelican crossing using an Ateml ATTiny2313. This is probably more common in the UK but a pelican crossing allows pedestrians to stop road traffic and cross in a safe manner.
At the end of this project you might like to mess about with the code and get the lights to sequence for your countries equivalent system, or for a junction like a cross roads (intersection).
Remove these ads by
Signing UpStep 1: Parts
These are minimum requirements you could order more for backup or expansion of this project.
1x ATTiny2313-20PU (73-4316)
1x 20 pin socket (22-0170)
1x Parallel port plug (15-0510)
1x Breadboard (34-0655)
1x Jumper Links (34-0495)
2x Red Led's (55-0155)
1x Orange (not amber) Led (55-0124)
2x Green Led's (55-0120)
1x White Led *(55-1640)
1x Electronic Buzzer (35-0072)
1x Push to make button (78-0350)
3x 1K Resistors (62-0370)
6x 150ohm Resistors (62-0350)
5x Head Plug (22-0515)
2x Head Socket (22-5114)
1x Battery Box (18-3685)
Rapid Online
In total this came to £17.18 ex vat (approx $35.42) however you might find it cheaper else where but I doubt it.
Rapid Online offers free shipping when you spend over £5 it might be worth looking about for a few goodies and upping the led's and chips for backup if you intend to explore microchip programming further.
As well as the above parts you will need some basic stuff which you may already have...
Wire (probably about 0.5mm stranded wire)
Solder (around 22swg lead free stuff)
You will also need these tools...
Soldering Iron + Stand + Sponge
Solder Sucker/Pump
Side Cutters
Wire Strippers
Once you have all the parts you are ready to assemble your project.


































![Artoo [R2] (ATtiny2313 Wall Avoiding Robot)](http://www.instructables.com/files/deriv/FQ5/VD0W/HH2VMVRB/FQ5VD0WHH2VMVRB.SQUARE.jpg)





Visit Our Store »
Go Pro Today »




you can contact me at mukesh_9134@yahoo.in
but heres and idea make it like this
when the train comes close to the crossing somehow the train useing a microconntroller slows down and the crossing uses motors or something finds out that the train is coming up and plays the better and closes the arms would be a fun build
what do you think
red, red & amber, green, amber, red. — right?
Since my train-set days I dreamed of making traffic lights but couldn't conceive of how... since getting to Arduino..!! oh yeah! It's the business.
That's interresting. I was not aware there was a 4 states sequence used in various countries. And contrary to what i tought, it's not the same in all countries of the EU ...
"Red + Yellow/Amber/Orange" == "prepare your engine" :-)