Every button is a Momentary 2 pin switch but I have written how i'd like the button to function.
Relay module
Relay 1 - Starter Trigger (D22)
Button - Momentary
Wiring - Normally Open
Function - Trigger relay Closed while button is held
Relay 2 - ECU Power (D23)
Button - Latching
Wiring - Normally Closed
Function - Trigger relay Open when button is pressed
Relay 3 - Front window wash (D24)
Button - momentary
Wiring - Normally open
Function - Trigger relay Closed while button is held
Relay 4 - Rear window wash (D25)
Button - momentary
Wiring - Normally open
Function - Trigger relay Closed while button is held
Relay 5 - Intercooler Spray (D26)
Button - Latching
Wiring - Normally open
Function - Trigger relay closed for 30 seconds. wait 2 mins and repeat until button is pressed again
Relay 6 - Drivers spotlight (D27)
Button - latching
Wiring - normally open
Function - trigger relay closed when button is pressed
Relay 7 - passengers spotlight (D28)
Button - latching
Wiring - normally open
Function - trigger relay closed when button is pressed
Both spotlights are wired to one switch.
Relay 8 - Rain Light (D29)
Button - Latching
Wiring - Normally Open
Function - trigger relay closed for 1 second then open for 1 second until button is pressed again
Relay 9 - Ignition cut (D30)
Button - momentary
Wiring - normally closed
Function - trigger relay open for 500ms and closed for 500ms while button is held
Relay 10 - Nitrous Spray (D31)
Button - momentary
Wiring - normally open
Function - trigger relay closed while button is held
Relay 11 - Overdrive gear (D32)
Button - latching
Wiring - normally closed
Function - trigger relay open when button is pressed.
Relay 12 - drivers low beam (D33)
Button - latching
Wiring - normally closed
Function - trigger relay open when button is pressed
Relay 13 - passengers low beam (D34)
Button - latching
Wiring - normally closed
Function - trigger relay open when button is pressed
Both low beams are wired to one switch
Relay 14 - Engine bay lights (D35)
Button - Latching
Wiring - Normally open
Function - Trigger relay closed when button is pressed
Relay 15 - spare currently (D36)
Button -
Wiring -
Function -
Relay 16 - spare currently (D37)
Button -
Wiring -
Function -
Shifter Set Up
Servo starts at 5 degrees when arduino is powered on and displays "P" on the 8X8 MAX7219 Matrix.
Switch 1 - D38
Switch 2 - D39
When switch 1 is pressed servo moves +15 degrees and displays "R" on the matrix
When switch 1 is pressed servo moves +15 degrees and displays "N" on the matrix
When switch 1 is pressed servo moves +15 degrees and displays "3" on the matrix
When switch 1 is pressed servo moves +15 degrees and displays "2" on the matrix
When switch 1 is pressed servo moves +15 degrees and displays "1" on the matrix
I also have a neutral switch that I would like to move the servo to 35 degrees when held and then move back to the position it was in prior to the switch being pressed.
and same in reverse. I am using a sim sequential to move a servo hooked up to my auto trans shifter and would like to see what gear I'm in.
Button Box
Engine Start - D40
ECU Power - D41
Ignition Cut - D42
Front Wash - D43
Overdrive - D44
Intercooler spray - D45
Nitrous - D46
Rear Wash - D47
Neutral - D48
Spotlights - D49
Rain Light - D50
Party - D51
Flash - D52
I have a "Party" button that I would like to trigger relays for the low beams and spot lights to flash. So when I push the button the drivers low beam and passengers spot light trigger at the same time and then trigger the passengers low beam and the drivers spotlight to flash like police lights. This is purely for show aesthetics. Hence why the low beams and the spotlights are wired to their own relay.
The "Flash" Button is to flash the spotlights every 500ms to signal that i intend to pass while on a push lap.
ALL PWM pins are free besides the servo in D7
I currently have no code for this project. all my code is for other projects on my nano (Neopixel strips for the house)