-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
thrust test #6
Comments
Awesome ! many changes are in the works. I have redid the dshot input to a single buffer and added adc reading for voltage , temp and current, i will add the changes to the git soon. The desync i cannot reproduce so i will have to wait until i get another motor similar to yours. I believe its probably a timing advance issue. That can be adjusted very easily but i would just be guessing without trying it. My timing advance is automatically adjusted to the commutation interval. I may make it a fixed degree at a certain rpm if i need to for high kv motors. |
Were you using the latest version for the test the v1.2 bin? or did you compile your own? |
@conuthead |
I will put a bin up tonight ( at work right now). With the new changes before I add to the source. There is quite a lot that has changed with the peripheral setup. The last bin i had added was the 1.2 bin, i think that's the same as the source. Do compiler optimizations make a difference? , i use optimize for speed flag. |
@conuthead |
OK i , uploaded the test bin, this also adds dshot600. i still don't think this will fix the desync though but it is a bit more efficient when it comes to decoding the signal. The timing advance right now is done automatically by changing divider its really simple there is a line down in the while loop. One commutation interval is 60 degrees electrical, so if the advance divisor is 4 the timing advance is 60 / 4 = 15 degree timing advance. as you can see this gets pretty coarse as it will change from 15 degree to 20 degree timing advance. Here are some old blheli numbers So you can just comment out that line and change the advancedivisor variable at the top to 3, 4, 5 or maybe 2 even and see what timing advance might be right for that motor. |
@conuthead |
line 1272 in main.c |
@conuthead |
It's not there! Wtf GitHub. I will upload to the release folder.
ok its there now..
…On Fri, Apr 19, 2019, 6:25 AM adrianmiriuta ***@***.***> wrote:
@conuthead <https://github.com/conuthead>
Oh ...
I ment the new binary v3 file.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJBMTQRO2R52TR5G3VX6J5TPRGFWXANCNFSM4HGT37WQ>
.
|
@adrianmiriuta , I also added a different version of 1.3 with a higher timing advance 30degree max at higher rpm , I am curious to see if it will make a difference. I think the right value is maybe between the two.. |
@conuthead |
@conuthead Have you changed anything ? can you push the source ? |
@adrianmiriuta , |
@adrianmiriuta, |
@conuthead do you use the same Timer or DMA for input and motor PWM ? attached scopes and RcBench results. |
@adrianmiriuta, |
@conuthead It happens at much lower RPM 15387 as you can see from the TestBench CSV. |
Ok, did you try the newest bin in the release folder 1_4servo_testing? Doesn't sound like a desync you are experiencing. With a desync the ESC will keep commutation at a fixed rate. A loud high pitch squeal will accompany the desync and your motor will pretty much smoke instantly. Sound like you have signal corruption. If that other bin makes a difference we will know. |
@conuthead |
It might make a difference with the other bin. Are you sharing a ground between the ESC and the servo tester? |
Oops the arming timeout was set way to long. Still works with Betaflight? This is getting frustrating.. is it possible to do a little video of the setup? Do you still have the st-link plugged in at the same time? Do you have a ground on that too? How long is your USB cable from the test stand? There must be something different in the setup between your betaflight tests and the benchmark stand as I cannot recreate this issue with any receiver or FC I have. I hope the test stand can at least do a digital output so that we can see if it's a signal corruption issue. Make sure you don't have multiple ground paths to the ESC as ground loops can cause major issues.. especially if you have the st-link plugged in and grounded to the esc too. |
@conuthead It isn't a setup , or signal degradation issue ! |
@conuthead |
Just trying to rule out the possible causes. You have to understand that if the issue cannot be repeated with other setups that I have to ask about the hardware. From the pics I still have doubts, it looks like you have a very long signal cable from the device to the esc.. |
@conuthead
|
Wow, that video is interesting, the startup sounds very different from what I have experienced. Why does that RED led light up on the wraith? |
I have tested with an arduino using the servo library for 50 hz testing and also with the output from a flysky reciever @ 50hz . I don't want to push the new source because people are using the old firmware now and the input handling is quite different. Should i make another branch for testing? |
@conuthead
|
Hah, aweseome.., i don't have a wraith so i had no idea that gpioA 15 would got to that led. Its just used for debugging with the scope .. On my board its just a pin. |
@conuthead |
@adrianmiriuta |
@conuthead |
@conuthead done some improvements in timing, deadtime, motor commutation interval, got it working acceptable ... have you made any improvements ? |
that's cool. |
@conuthead
|
Awesome, i am going to give people links to your firmware in the future when working on hardware. The deadtime was very high on mine, i am glad you brought down for the wraith! I was working on an esc that used 3 mosfets in parallel per leg and it needed a massive deadtime. I only used the fd6288 on this one design so far, i had no idea it even had 200ns dead time built in haha. I am going to link your firmware to the diy esc project so other people can test too. I wil put a link on the first post. I have been flying with the latest version for a few weeks in quad it has been working great! ( the one in experimental folder). Thanks for continuing on with this. I think your firmware version is probably the most functional right now. I am back to making hardware and don't have much time for coding. |
@conuthead
|
@conuthead
for comparison :
blheli32 Wraith32 50A
f051bldc Wraith32 32A
your fw works well with 3S.
with 4S it desynchs at (1770 PWM).
Overall the efficiency N/W is better than blheli (on same motor prop configuration).
f051bldc_ZMX-FINX23_HQPROP5x5x3v1s.zip
WRAITH32-50A_ZMX-FINX23_HQPROP5x5x3v1s.zip
The text was updated successfully, but these errors were encountered: