#why does my motor randomly stop for a second?

18 messages · Page 1 of 1 (latest)

weak dagger
#

Attached is a video in case I don’t describe it correctly, but my motor will randomly slow down or stop for a split second when spinning.

I calibrated my esc correctly, and the instructions are being run off of a python script on a raspberry pi.

junior owl
#

Are you running that on PWM, or are you using Dshot?
If it's PWM, i would suspect the ESC is not liking the incoming signal. either it's desyncing or the signal is floating a bit, and the signal the ESC receives is momentarily higher than it thinks full throttle should be. try backing the throttle down to 75% and see if it still does it.

weak dagger
weak dagger
#

im gonna try a low pass R/C filter

weak dagger
#

ok so I Found my own issue out

#

the raspberry pi cannot do clean PWM out on account of its lack of true analog pins

#

i think

#

idk i did it with an arduino and it seems to be fine

#

but i wanna use tensor flow so I need to figure out how to do this from a pi

#

im currently controlling the arduino from the raspberry pi

#

and getting the motor to spin via the arduino controlled by the raspberry pi

#

does anyone know a simpler way to do this

#

like how do get a clean pwm signal from the raspberry pi

weak dagger
#

im gonna try servoblaster

weak dagger
#

Servo blaster works to get a working PWM signal directly from the pi’s GPIO

#

Idk why but the pi doesn’t have any actual analog pins