I have bought an Arduino Uno and have been playing around with it for a while and have finally come up with a project i'd like to do - Fully adaptive headlights as per top of the range BMWs Mercedes etc except on a Landrover Defender!
-The physical movement of the headlight units is not a problem, i'll use servos and linkages to move the lights. -For vehicle level detection I plan to use a single potentiometer on the rear axle top mount to detect how loaded the truck is and send this analogue input to the Arduino. -For the cornering i was going to use another potentiometer connected to the steering arm to sense steering angle again into the Arduino. -Light sensing would be nice (i.e turn the lights on when dark/off with light)
Now for the bit I'm really struggling with, I have played around with the "knob" sketch that is on the arduino software and can get basic control of the servos movements but that is as far is I've got.
I'd like to integrate electronic damping into the setup so the lights aren't bouncing everywhere over bumps and also have a snap to forwards code so that small steering corrections when going in a straight line don't make the lights "wonder" around
I have no idea how to add the automatic lights on function
It would be sweet if the lights did a test movement when the first switched on, for example full down then up to the correct level
If you have read this far, Thank you! and perhaps you'll read a little further?
I have next to no knowledge when it comes to programming but my mechanical and physical electrical skills are good, if someone would be willing to help walk me through writing a program to make this happen i would be most grateful, I believe that no other Landrover Defender in the world will have fully adaptive headlights if i can make this work with your help!
Many Thanks in Advance, George