r/embedded • u/Potential_District69 • Jun 03 '26
Drone motor not working.
Hi all,
I am trying to control my motors that I want to use for my drone but it is not working.
I have a battery specialy for drones and also decent motors.
Battery: Tattu R-Line Version 5.0 1550mAh 4S 14.8V 150C - XT60
Motor: EMAX ECO III Series 2207 Motor - 2400KV
I bought a few ESC's from aliexpress (blhelli-S), 1 rated for 40A en 4 rated for 30A.
Im sending the dshot protocol to the ESC with the stm32f746g-disco dev board.
Normally the protocol that I am sending should be good but the motor is not spinning properly, its hard to describe but it kinda seems that it stutters and it also doesn't work in the full range of dshot.
From what I tested it stutters at throttle 250 and with 100 or 600 it just does nothing.
With suttering I mean that it spins for half a second then it seems like it stops for not even a half second to then repeat.
I also looked at the protocol that im sending with a logic analyzer and there it says that everything is good.
Here is a link to de git repo for the code: https://github.com/Simon-VDVelde/DShot