Car front lights controller
This car has been scrapped.
Lights controller for high beams and fog lights on my Subaru. Uses an AVR ATtiny2313 microcontroller.
This unit is used for controlling additional car headlights, such as high beams and fog/running lights. The module also controls a RGB LED on the dashboard, indicating the status of the lights and used as a alarm LED. It's connected directly to the cars battery, and sensing the status of the cars built-in park light, low beam and high beam.
The fog/running lights are controlled in such a way that they do not violate Norwegian law. Meaning; they can only be on during the day and must be used together with the parking lights. They can not be used together with low or high beam. Using the switch it's possible to still use the fog/running lights together with the low beam, but this is only permitted in extreme weather conditions or fog. The fog/running lights are turned or kept on for one minute after the car has been turned off, to illuminate the front of the car in dark situations. They also have a three second start up delay, so not to
The high beam is activated together with the cars build-in high beam lamps. If the fog/running lights are on they will be turned off, even if just using the headlamp flasher. The use of fog/running lights together with the high beam is according to Norwegian law only permitted when running at low speed (5-15 mph), but this combination is not possible.
- PD0 Parking lights
- PD1 Low beam
- PD2 High beam
- PD3 Switch
- PB3 Green LED indication
- PB4 Blue LED indication
- PB5 Signal active
- PB6 Fog/running lights
- PB7 High beam
|3||Green||Parking lights in +|
|4||Brown||Parking lights in -|
|5||Yellow||Low beam in +|
|6||Gray||Low beam in -|
|7||Purple||High beam in +|
|8||White||High beam in -|
|9||Pink||Switch in +|
|10||Blue||Switch in -|
|11 & 12||Yellow (separate)||Relays fog/running lights and high beam out -|
|13||Red (separate)||Green LED indication|
|14||White (separate)||Blue LED indication|
|15||Yellow (separate)||Signal active|
A RBG LED is used for indication of which lights are active.
- Red High beams
- Green bright Running lights
- Green dimmed Fog lights
- Blue Alarm LED