Hi Guys,
Just wanted to start off with I am not an EE, but rather a hobbyist (My actual profession is a Network Engineer), so if I am making an obvious mistake, as from an EE's standpoint, it wouldn't surprise me. I also want to preemptively say thanks to any help that I may get. Here is my situation:
I have an Arduino Uno Rev 3. I am trying to drive a 12V choke solenoid on a gas-powered motor. Obviously, I cannot directly drive that voltage or amperage from my little Arduino. So, on my D4 port, I connected a 10K resistor to a NPN Transistor (BC547) which gives ground to a little 5V SPST relay. I am using a fly-back diode (1N4004) right on the poles of the relay. When ground is given to that relay, it bridges 12V from a lawn mower battery over to the solenoid. The problem is there isn't any fly-back diode on the solenoid and it's grounded to the chassis of the motor.
If I just disconnect the solenoid, I can have the Arduino turn the choke "relay" on and off practically forever it seems with no issues, but the instance I put the solenoid back into the circuit, the Arduino will freeze after the choke opens and closes once or twice. I have to unplug the Arduino and plug it back on to get it work again after that.
The solenoid draws around 1.0 amps when I put my amp-meter on it and have it engaged. I suspect fly-back noise is what is causing my problem, and I would guess placing a fly-back diode on the solenoid would resolve this. However, the issue becomes problematic as I can't really get to the solenoid to solder anything on it, and it one has one lead. It's other "lead" is that it is grounded to the motor chassis, so I am forced to turn it on by giving it 12V.
I read another post on here (SOLVED: Solenoid woes - causing arduino to freeze up when used via relay (Help!) - General Electronics - Arduino Forum) that this guy had a similar problem, which he eventually fixed by simply putting on a fly-back diode on the solenoid. I cannot do this. Basically I have a 10 foot AWG-16 wire coming out of the relay that runs to the solenoid, giving it it's 12V to turn on.
What suggestions could be done to resolve this issue?
Please, let me know if there are any questions I can answer to derive a more correct answer?