|
| 1 | +--- |
| 2 | +title: LED-ring on Crazyflie 2.1 Brushless |
| 3 | +page_id: ledring_on_cf21bl |
| 4 | +--- |
| 5 | + |
| 6 | +## How to get the LED-ring working on Crazyflie 2.1 Brushless |
| 7 | + |
| 8 | +Due to a resource conflict between the DSHOT motor signal driver and the LED-ring (they both use DMA1 Stream 6), DSHOT can not be used together with the LED-ring. |
| 9 | +The default ESC firmware we use is [Bluejay](https://github.com/bird-sanctuary/bluejay) (a successor of BLHeli_S) which has removed support for all other motor signal protocols than DSHOT. A work-around then is to use BLHeli_S and e.g. OneShot125 protocol. However there are more complications as a 24KHz ESC PWM seem to interfere with the gyro, so a special version of BLHeli_S that supports 48KHz should be used. This version is called BLHeli_M. |
| 10 | + |
| 11 | +### Download the BLHeli_M O_H_10_48_REV16_77.hex |
| 12 | + |
| 13 | +The ESC firmware file O_H_10_48_REV16_77.hex can be found [here](https://github.com/JazzMaverick/BLHeli/blob/JazzMaverick-patch-1/BLHeli_S%20SiLabs/Hex%20files%2016.77%2048k/O_H_10_48_REV16_77.HEX). Download it to a local folder. |
| 14 | + |
| 15 | +### Flash the ESCs |
| 16 | + |
| 17 | +Use the [ESC-configuration guide](/docs/images/esc_configuration-md) to flash custom FW to the ESCs |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | +### Write settings to the ESCs |
| 22 | + |
| 23 | +We recommend the settings in the picture below: |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | +To write the setting to the ESCs press the "Write settings" button. This will write **all** the settings shown in the GUI to the ESCs. |
| 28 | + |
| 29 | +***NOTE if you push "reset to default" these settigns are not our default settings, but the ones specified by the esc-configurator website.*** |
| 30 | + |
| 31 | +## Configure the Crazyflie 2.1 brushless firmware to output OneShot125/Oneshot42 motor signal |
| 32 | + |
| 33 | +Use the build and flash firmware guide to learn how to build and flash firmware |
| 34 | + |
| 35 | +Build the firmware with OneShot125/OneShot42 motor signal protocol: |
| 36 | +``` |
| 37 | +$ make cf21bl_defconfig |
| 38 | +$ make menuconfig |
| 39 | +``` |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | +Then build and flash the Crazyflie 2.1 Brushless firmware. The LED-ring should now work with your Crazyflie 2.1 Brushless. |
| 44 | + |
| 45 | +## Restoring the original ESC firmware |
| 46 | + |
| 47 | +We use different settings then the official Bluejay firmware, so use our fork of the Bluejay ESC firmware. Our latest release can be found [here](https://github.com/bitcraze/bluejay/releases). Download and flash the cfbl2.1_esc_normal_m1-m3.hex on all ESCs. You can configure the rotation direction afterwards together with the other settings that are shown in the [ESC-configuration guide](/docs/images/esc_configuration-md). |
0 commit comments