Ok so my friend is a computing student and he's asked me for help with his project, basically he's doing something with RC cars and needs them to recognise traffic lights. He wants to control the traffic lights using an arduino.
The arduino has about 9 GPIO pins and my plan would be to run one set of traffic lights off each pin.
My plan is as follows;
for green the arduino outputs a 10hz square wave
for amber a 100hz wave
and for red a 1khz wave
The waves would then go through a band pass filter, into a rectifier and then to the led.
I was wondering if this would actually work and if its the most practical solution?
All I can say is, if it works, it would give him the ability to control 9 sets of lights simultaneously.
Would he be able to run multiple leds off one rectified signal?
The arduino has about 9 GPIO pins and my plan would be to run one set of traffic lights off each pin.
My plan is as follows;
for green the arduino outputs a 10hz square wave
for amber a 100hz wave
and for red a 1khz wave
The waves would then go through a band pass filter, into a rectifier and then to the led.
I was wondering if this would actually work and if its the most practical solution?
All I can say is, if it works, it would give him the ability to control 9 sets of lights simultaneously.
Would he be able to run multiple leds off one rectified signal?