Motor issues when running ESC calibration
-
The change was pretty easy, i enabled the board current to be used as ESC current for the calibration plot purposes. the change is on
dev
branch ofvoxl-esc
: (commit) . so you can use that latest code for testing. -
@Alex-Kushleyev wonderful, thank you, as always!
We will get to this as soon as we can for testing. Looking forward to the results.
RDJ
-
@rdjarvis, i found the correct motor 2850kV and just wanted to double check your propeller selection. 3in 3052 seems too small for this motor. Can you please confirm? Tmotor provides test data for 4in and 5in props for this motor : https://store.tmotor.com/product/f2203_5-fpv-motor.html . edit: they do also provide data for 3in (but 5 blade prop) - believe your propeller is tri-blade?
Either way is fine, just let me know and I will run the tests. I can start with the same params you did and see if i can reproduce the issue using FPV ESC. I have a 3076 propeller (tri-blade) which i can use for testing, which will be more aggressive than 3052 (i don't think i have 3052 available to test). I also have 3030.
Alex
-
@Alex-Kushleyev thanks for digging up the motor.
The 3in tri-blade prop works well with this motor, for our use case. We have more aggressively pitched props as well. Please test and send those params! That would be great. This will eliminate tons of trouble shooting.
Thank you,
RDJ -
@rdjarvis , I loaded the same params that you were testing and I was able to reproduce the issue.
The issue is that the old spin-up procedure is not working well for this particular motor and the ESC incorrectly synchronized with the motor phases (de-sync), resulting in incorrect motor control and motor overheating.
We recommend using our new sinusoidal spin-up procedure which is a lot more reliable.
I will make a new parameter file for the Tmotor 2850kV motor with a 3076 propeller and share with you as well as resulting plots for your reference.
Alex
-
@Alex-Kushleyev Wonderful! Thank you for the hard work! Im happy you were able to reproduce. As you see, the motor heats up very early on the calibration cycle.
We are ready to test as soon as you can send those params!
Thank you,
RDJ -
I have added the parameter file (here) . I used your exact motor and 3076 tri-blade propeller.
If you have slightly different propeller, all you should have to do is just run the calibration procedure (please use
voxl-esc
tools from main branch) , update the a0,a1,a2 params and upload the new esc param file to the ESC.I think this should perform pretty well, i did some aggressive testing (rpm step from 10k to 30k rpm), using the following command, and the results are very smooth. You can use this test and start with a lower step amplitude and make sure that works well and then increase the step size as you gain confidence. you should see smooth results like this, if you see any unusual spikes, let me know and send a plot.
#only test this with battery (not power supply) due to regenerative spikes ./voxl-esc-spin-step.py --id 2 --rpm 10000 --step-amplitude 20000 --timeout 3 --enable-plot 1 --cmd-rate 2000
Please upload this param file, and run the calibration, you can also do the ramp test to 100% using
./voxl-esc-spin.py --id 2 --power 100 --ramp-time 2.0 --timeout 2.5 --enable-plot 1 --cmd-rate 250
Produces the following results on my setup (very smooth):
You can update your max rpm based on this result, but beware that max rpm is a function of voltage.
-
-
We ran the calibration script and failing to see where/which directory the html file is being stored. Could you point me to the location?
-
-
@Alexander-Saunders , the file should be saved in the same directory where you are running the calibration script from (current directory). here is the line of code in the calibration script, which saves the figure right before trying to plot it in a browser.
-
here is the calibration result i got with my setup (and the a0, a1, a2 params are already in the xml file i linked before):
-
@Alex-Kushleyev after uploading the new params you sent the ESC no longer communicates with the VOXL2.
The ESC board is no longer recognized by VOXL2. All hardware is set up properly.
Screenshot 2024-04-17 110112.pngvoxl_uart_read_byte bus 12 is not initiated
Please point us in the right direction.
-
@rdjarvis , the latest params switched baud rate from 250k to 2mbit, but that should not be an issue. You should make sure voxl esc param in px4 is 20000000.
Please try voxl-esc python tools directly and make sure px4 is disabled when you run them (instead of running the voxl-esc wrapper like you did).
Sometimes stopping px4 gets the dsp in a weird state, in which case you can disable px4 from autostart, reboot and then do a voxl-esc-scan.py
-
@Alex-Kushleyev Copy all, we will try. Thank you.
-
For the esc tools, we were running the commands from /usr/share/modalai/voxl-esc-tools. To clarify, for the baud rate changes, do you want 2,000,000 or 20,000,000. We will try the tools again and confirm px4 is stopped via systemctl stop voxl-px4.
-
@Alexander-Saunders, my bad too many zeros. 2,000,000 (2Mbit)
-
The screen shot in earlier post today shows running “voxl-esc” which is a wrapper for the python tools, sometimes it is easier just to use python tools directly, but make sure they are latest version. the version in /usr/share/modalai is probably not latest. Normally you dont need to update the tools but if something is not working as expected, it is good to try the latest.
-
-
No worries. We also verified if the issue was with the particular param file and ran the command to upload a different one. No luck with that and we still receive the same error (Bus 12, ESC not detected, etc)
-
Can you please try voxl-esc tools from dev branch on github? Instead of /usr/share/modalai/voxl-esc-tools