Thanks for view my Project or helping in learning some programming.
Recently bought an arduino to help with this map switch project. What I need to make is a circuit which has 3 inputs (switched) + Arduino + 1 PWM 3 stage (voltages 0v, 2.5v, 5v)
Inputs: These are simple push buttons, like you find on keyboard, remote and etc
Arduino: Requires programming I'm a total noob which come to this.
Outputs: Variable output which goes to the Emerald ECU. The has a single input channel and requires 3 different voltage levels to switch the maps. This is why I require the PWM output on the arduino.
This is an example of how the map switching would be done normally.
I can connect the switch up to the arduino. for example
Pins 10, 1, and 7 to Aduino inputs pin 13, 12, and 11
output connect the ECU to PIN 5
On the programming side I need to help to do this.
Pin 13 receives push signal, arduino puts 5volts to pin 5
Now Pin 12 receives signal, arduino puts 2.5 volts to pin 5
Next Pin 11 receives signal, arduino puts 0volts to pin 5
This is what I require to do please help.