STREET LIGHT THAT GLOWS ON DETECTING VEHICLE MOVEMENT

Hi, I am currently doing a project on the street light system.
I bought 6 potentiometers with 10 LEDs.
I am still new to arduino
Can someone guide me on doing the coding.
I have already done the hardware part.
Have wired the potentiometers to the leds and to the arduino.

This is how it suppose to work:

Detect vehicle movement(using potentiometers) on highways to switch ON only a block of street lights (about 3 LEDs) ahead of it (vehicle), and to switch OFF the trailing lights to save energy. The 10 LED's will be dimmed to about 50% and only lights up to full brightness when detecting vehicle.

shadz92:
Detect vehicle movement(using potentiometers)

Most of it seems straight forward enough and should be no problem if you tackle it one step at a time. However, I'm not sure how you propose to detect vehicles using a potentiometer, and wiring a potentiometer in series with the LED also sounds wrong. You will need a current-limiting resistor for each LED, but a potentiometer is far from ideal for that job.

Other than the code (which you really can't do much with until you sort out the vehicle detection system) you need to find a way to make sure it really is a moving vehicle and not a human/cat/dog/fox/bat etc which is not as simple as it looks.

Mark

My first observation is that street lights are primarily for pedestrian safety rather than vehicles, but I suppose on an actual highway, it is indeed for the benefit fo vehicles.

The second comment is that traditional discharge lamps take well over a minute to ignite, and a further time to achieve full operating temperature and brilliance, and have a limited lifetime of ignition cycles.

These are however, being progressively replaced by more efficient LED fixtures which should arguably (but not necessarily) have a much greater lifetime of turn-on cycles (but the higher powered ones heat significantly, so thermal stress is important). For high power LEDs, switchmode current regulating supplies are used instead of resistors.

The timing delay in itself can be performed entirely by a good old CMOS 555, and "block" switching (the next three lights in a longer chain) by diodes.

I require program of this project

Swapnilbdesai:
I require program of this project

Well start by posting the code you wrote so far, along with a schematic of the hardware, and explain what help you need.

Nobody's likely to have your exact hardware configuration and know your exact requirements to just dash off a software solution, and if they did you should be posting in Gig$$$ and Collaboration$$$.