Posts: 3
Threads: 1
Likes Received: 0 in 0 posts
Likes Given: 0
Joined: Mar 2024
Reputation:
0 Hi all, I did some motor thrust testing and recorded the PWM signal I sent to the motor as well as the RPMs of the motor. I would like to figure out what RPM my motors are spinning at from the blackbox data, but only the DShot signal sent to the motor is shown. Is there a way to convert PWM to DShot300 so that I could get an estimate of rpm values at different DShot300 signals?
• Posts: 1,729
Threads: 60
Likes Received: 1,003 in 728 posts
Likes Given: 96
Joined: Jan 2023
Reputation:
52 If you change your ESC protocol to dshot and enable bi-directional dshot, the ESC will send back the RPM value via telemetry. I believe setting blackbox debug mode to DSHOT_RPM_TELEMETRY should then record those values in blackbox. Otherwise you can see them in the configurator motors tab.
PWM is a one way signal, there would be no rpm feedback from the ESCs. You would have to use a separate rpm sensor on the motor itself.
• Posts: 6,092
Threads: 172
Likes Received: 2,283 in 1,830 posts
Likes Given: 4,721
Joined: Feb 2019
Reputation:
100 Pwm is an analog signal and dshot is a fast digital signal, im not sure but i believe there is no easy way to make them compareable thisway.
A single esc which can do dshot is very inexpwnsive these days, for 10$ you could upgrade your test bench.
Wouldnt that fit your needs?
Can you maybe describe the goal more, what information would you like to get by compare the values? How do you line to use that informations?
• Posts: 1,729
Threads: 60
Likes Received: 1,003 in 728 posts
Likes Given: 96
Joined: Jan 2023
Reputation:
52 27-Mar-2024, 01:00 AM (This post was last modified: 27-Mar-2024, 01:01 AM by mstc.) ESCs use the same PWM protocol as servos, and that is actually digital and not analog. It just has a much larger frame rate than something like DSHOT and can only transmit one channel. However controlling ESCs with PWM will really depend on the ESC setting as there is a throttle calibration step that sets the minimum and maximum pwm signals (on the ESC) which would be the equivalent of 0% and 100%.
Assuming your ESC response is linear, you can test this yourself. Use the BF motors tab, move up the slider just enough to get the motors spinning, say it was 5% and take a rpm reading. Then ramp up the slider to 100% and take another rpm reading. If you like you can measure a few more points to check, but the slope should basically give you the conversion value you need to convert from throttle % to an approx rpm.
•