User Tools

Site Tools


brushless_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
brushless_setup [2016/08/27 02:31]
ian446
brushless_setup [2016/11/12 10:17] (current)
silverxxx
Line 44: Line 44:
  
 Blheli has option to use "pwm input", PPM input is always enabled. Oneshot125 is also always enabled, and autodetected, but may interfere with the pwm input. Blheli will autodetect the input type after powerup. "Enable pwm input" should be set to off if not used, and "programming by tx" unchecked as well. Blheli has option to use "pwm input", PPM input is always enabled. Oneshot125 is also always enabled, and autodetected, but may interfere with the pwm input. Blheli will autodetect the input type after powerup. "Enable pwm input" should be set to off if not used, and "programming by tx" unchecked as well.
 +
 +==== Safety ====
 +
 +Keep in mind not to flash the fc with the escs powered.
 +
 +In the H101 and the current CG023 , the FC will turn off PPM at failsafe and before bind, so it should be safe to flash, but just in case, I don't recommend. However, not safe if the tx is bound and on.
 +
 +The h8green , and currently blue as it has not been updated, they are not safe to flash while the escs are powered. It's rare, but they can turn on (full power) if the signal cuts off at just the right time.
  
 Always consider that the quad may malfunction, and may go full power suddenly. Do not flash the quad with the escs connected/powered. Always remove props when testing. Do not fly quads that have severe oscillation/wobbles. Always consider that the quad may malfunction, and may go full power suddenly. Do not flash the quad with the escs connected/powered. Always remove props when testing. Do not fly quads that have severe oscillation/wobbles.
Line 54: Line 62:
  
 H8 mini green board esc driver: ([[http://www.rcgroups.com/forums/showpost.php?p=34408240|rcgroups]]) H8 mini green board esc driver: ([[http://www.rcgroups.com/forums/showpost.php?p=34408240|rcgroups]])
- 
-**BASIC BRUSHLESS ESC SETUP (NON-3D)** 
- 
-See in the [[http://static.rcgroups.net/forums/attachments/6/5/8/6/0/5/a9287300-73-blheli-default-xm20a-setup.png|screenshot]] of these esc's, all the settings are default except Startup Power. If a setting is not default, you get the little house symbol beside the slider. I would leave the Startup Power at 0.50 and all else at default and see how it goes. Programming by TX needs to be unticked also, otherwise sometimes the esc's can enter programming mode when you don't want them to. 
- 
-Its a good idea to check each esc by connecting to BLHeli, hit Connect and then Read Setup, and make sure each esc has the exact same settings, and also the exact same firmware, and exact same firmware revision number. You can do it manually, or you can, if you want, do it this way: Read the first esc. If you are happy with the settings, (don't forget to untick the tx programming box), you can then click on ESC Setup/Save Setup to Ini File and save those settings in a file, give the file a name like XM20 1a or whatever so you can find it in the next step. Then Disconnect from that esc, and Connect to the next esc, go to ESC Setup/Read Setup From Ini File, find the file you just saved, and write those settings to the esc. After writing a setup, click on Read Setup to confirm the settings actually made it into the esc. Then click on Disconnect. Do that for the remaining 2 esc's too. That way, all 4 esc's will have identical settings. 
- 
-Now, the following text assumes you are setting this quad up for normal flight, as opposed to 3D inverted flight. For 3D, a completely different setup is used. 
- 
-Notice the values in the bottom right corner, PPM Min Throttle 1148 and PPM Max Throttle 1832. These need to be entered into the drv_pwm.c file like this: 
- 
-#define ESC_MIN 1148\\ 
-#define ESC_MAX 1832 
- 
-This tells the FC processor what signals the esc is expecting for min and max throttle (so the esc and the FC are both on the same page so to speak). 
- 
-#define ESC_THROTTLEOFF 960 
- 
-This tells the FC processor what signal to send to the esc to indicate throttle off condition. (It has nothing to do with BLHeli). 960 works for me, possibly any value from 900 to 1000 will work. And of course, for normal flight as opposed to 3D you would set bi-directional control off like this: 
- 
-<code> 
-// enable for bi-directional control 
-//#define ENABLE_REVERSE 
-</code> 
- 
-PID's - I would start with something like this for a 150mm quad. If its too doughy/very slow response, try the 2nd set below and go from there. (These are some approximate values from similar size quads I have.) Note there is no way your quad will fly properly on these exact settings, the chances of that are incredibly small. It's just a suggested starting point. 
- 
-float pidkp[PIDNUMBER] = { 4.0e-2 , 4.0e-2 , 2.0e-1 };\\ 
-float pidki[PIDNUMBER] = { 2.0e-1 , 2.0e-1 , 1.0e-1 };\\ 
-float pidkd[PIDNUMBER] = { 4.0e-1 , 4.0e-1 , 2.0e-1 }; 
- 
-float pidkp[PIDNUMBER] = { 6.0e-2 , 6.0e-2 , 3.0e-1 };\\ 
-float pidki[PIDNUMBER] = { 3.0e-1 , 3.0e-1 , 2.0e-1 };\\ 
-float pidkd[PIDNUMBER] = { 6.0e-1 , 6.0e-1 , 3.0e-1 }; 
- 
-If you end up going round in circles trying to tune it, and can't seem to find some good settings, try some different props. Props that are a low load for the motors (low pitch or small diameter for the motor) are often difficult to tune right IME. 
  
  
brushless_setup.1472257895.txt.gz · Last modified: 2016/08/27 02:31 (external edit)