Talked to a guy on reddit, he made a trickery on his ECU
easy enough, input VSS - output to ECU - use a 12V relay, a button to enable to add delay to the signal, when turned off and back on, it's normallised signal
i do have connection and no errors from ECU, just no function on push the button!
i can't get the relay to switch from NO to NC
Link to simulation, often when hitting reset, the NC reacts. but only S2 blinks and NO lights as it should
wokwi.com simulation
i'll post code he wrote here ![]()
#define push_button 4
#define relay 3
#define signal 2
bool derestriction = 0;
void setup() {
pinMode(push_button, INPUT);
pinMode(relay, INPUT);
pinMode(signal, OUTPUT);
digitalWrite(relay, 0);
digitalWrite(signal, 0);
}
void loop() {
if(digitalRead(push_button) == 1) {
digitalWrite(relay, 1);
derestriction = 1;
}
if(derestriction == 1) {
digitalWrite(signal, 1);
delay(1);
digitalWrite(signal, 0);
delay(3);
}
}
components used
arduino nano "Clone"
2x 1/w w 10k resistor
push button
SRD-12VDC-SL-C RELAY
NPN resister 2n2222
diode 1n4007
wire
He then made a diagram on how to wire it all up.

i got everything wired up exactly, can post pictures if wanted, how ever i noticed he him self had the diode and npn other way around then me. ANYWAY
i can't even get a simulation of code to work probely, guessing something is wrong, and i'm not the best on coding skills yet. so giving the backstory, code and diagram. anyone able to see a flaw or why it wont work ?
Relay is NOT changing to NC, i understand that NO is normally open, and NC is normally closed. and in different simulations, it still doest change when pushing the button.
i'll be happy to provide pictures of my sodlering, just ask! dont want to spam a full article, altho it feels like it now
but im guessin is the code still