Hello guys.
I am currently working on a project where an Arduino presence would be helpful.
Picture a car with two headlight levelling sensors on both front suspension arms, and two green LED's and two red leds, i would need the arduino to read the imput from the sensors and turn on the green LED accordingly. Example, left sensors shows a value of X, turn left green led on. Shouldnt be too hard for an expert to do it, but i dont have experience with arduino.. also if possible for an arduino nano?
A little more detail would help. Do we assume the levelling sensors are there already, or are you adding those? Also the LEDs are new and will be connected to the Arduino?
An existing sensor would most likely be connected to a CAN bus, so you might be able to connect a can bus module to your Arduino and read the sensor data that way. You'd need to know the CAN messages the sensors send and how the data is encoded though, which may not be easy to find. Have you got a diagnostic scanner for the car that can see the sensor datastream? That would be a start.
Forgot sorry.. anyways, the sensors are NOT stock to the car,neither are the LED's, those would all be added by me.
I assume the 3 pin levelling sensors are basically potentiometers? So it would have to read the potentiometer value and power an LED accordingly, under an x value light the red one, and over an y light the other one. Can this be fairly easy to do that someone could write me a code for, so i can add the values later?
It does sound fairly straightforward, why don't you give it a go yourself? Arduino is a great platform to 'learn by doing'. Perhaps start with one of the 'Analog' example sketches included with the IDE and extend it.
The only unknown here is your sensors.
An Arduino (Nano or other flavour) can readily read most sensors. You didn't specify the sensor so can't comment on yours.
An Arduino can easily switch on and off LEDs.
The rest is program logic.