• The power supply definitely isnt, unless you got a defective unit (or the motor is shorted or something)

    Maybe the Espruino's self-resetting fuse is tripping - but if that's the case, i'd say your motor is drawing more current than you think it is, or the self-resetting fuse doesn't tolerate inductive loads well. In any event, you can bypass this by just connecting the + side of the motor to the power supply, rather than the espruino's VBat pin. That's probably better in general, as it provides less of a path for noise to get into the Espruino.

    Did you remember the diode across the terminals of the motor to clamp the back EMF? PWMing a DC motor will put a lot of noise on the power line.

    I'd put the filter cap between power and ground where it enters the Espruino. Could even solder it onto the board onto the pins of the JST connector (probably make sure it fixes the problem first, though ;-) )

About

Avatar for DrAzzy @DrAzzy started