I had this incredibly minor issue where when the Arduino is initially turned on it goes through the setup bit of the code setting pins to be what ever you want them to be and making them inputs or outputs. As it was doing this and where I had relays attached to these outputs, the relays would momentarily come go into the on position before being turned off in the body of the code as the input is pulled down and then the switch position read. This only really became an issue when I get the horn working on the Arduino. Each time the ignition was turned on the horn would just do the tiniest beep. I did some reading on forums and found a easy coding fix for this. This fix was to add the digitalWrite in before the pin is set to be an output. Simple eh? it’s […]
Recent Comments