E-Turbo Controller Code

Update. Few hrs of Google and I have it RUNNING! I had not connected the electrically common negative from esc to Arduino. This was preventing the esc from calibrating to the Arduino in the way that it would normally calibrate to a receiver / transmitter.

I will need to slow the motor down a little in the sketch as at full tilt feels like it is going to bend some connecting rods at low rpm 😬. Congrats on the sledgehammer’s first boost pull. I took a deep breath when it crabbed sideways.
 
Congrats. I was going to suggest the common ground thing - if only because when I was replacing the arduino that got fried, I accidentally clipped the ground wire in the control box and had the same issue. FWIW, you don't need the +5 volt line connected. I just have two wires going to the ESC. I think you'll find that scope useful in the future. One thing I am seeing that's a little odd is 0.5 volts peak reading. Are you using a x10 probe? It should be +5 volts. Typically anything from 3-5 volts works fine. It's not super important as long as the ESC is registering the pulses.
 
Congrats. I was going to suggest the common ground thing - if only because when I was replacing the arduino that got fried, I accidentally clipped the ground wire in the control box and had the same issue. FWIW, you don't need the +5 volt line connected. I just have two wires going to the ESC. I think you'll find that scope useful in the future. One thing I am seeing that's a little odd is 0.5 volts peak reading. Are you using a x10 probe? It should be +5 volts. Typically anything from 3-5 volts works fine. It's not super important as long as the ESC is registering the pulses.
Yes mate I had the scope on the wrong setting, (came with no manual) spent half hour playing with it and got a much better reading. Also was able to increase my soft start to 3 seconds and limit my power to 75%. For some reason when i switch it off (pin2/gnd), my esc tries to stop the motor instantly. I guess that is the esc taking over from the Arduino. It’s a shame I can’t get it to just free spin or slowly ramp down.
 
The ESC may be applying a brake. You should be able to change that in the ESC (assuming you can program it). I apologize for the delayed response - things have been less than calm around these parts lately.
 
Top