I'm new to the forum and to the Arduino so go easy on me.
A friend and I are currently working on a project for his car that I'm almost certain the Arduino can handle. I just need some guidance on how to get there.
Basically, he has two hood scoops and we are looking to install two different color LED strips in each scoop - one amber and one red. The basic premise is to tie the intensity of the respective lights to his throttle position sensor (basically a 5V PWM source). What we are looking to have happen is the following:
1. Foot off the throttle: The amber strip is roughly full bright and the red strip is completely off.
2. As the pedal is pressed, the amber light begins to fade while the red light begins to slowly turn on.
3. Ideally, with the pedal pressed approximately halfway, the amber and red should both be about "half on" creating something of a red-orange glow.
4. With the pedal to the floor the amber light should be completely gone and the red light should be full on.
5. Naturally, I want varying light intensity through the full range of travel of the gas pedal.
I'm comfortable with the analogRead() function of the Arduino but where I'm coming across creative troubles in my code is the best way for the Arduino to monitor a single analog input while simultaneously controlling two independently varying outputs.
Any ideas or advice would be very much appreciated.