Motor running at startup


I'm driving a motor using a MOSFET (and a relay for reverse). When connecting everything, the motor runs at 100% until I analogWrite(throttlePin, 0).

Is it a problem related to the Arduino (Nano) or the MOSFET itself? It has a pull-down resistor at the gate.


Jesus! I found there is no pull-down resistor in that circuit!

PErhaps writing 0 to that pin on startup would help.