Skip to content

Commit 7942b44

Browse files
authored
Merge pull request #1440 from bitcraze/tobba/Ledring-with-cf21bl
Added documentation for LED-ring with CF21-BL
2 parents 7c64c98 + 6c4d6df commit 7942b44

File tree

4 files changed

+47
-0
lines changed

4 files changed

+47
-0
lines changed

docs/images/esc-blheli_m_settings.png

87.5 KB
Loading
59.8 KB
Loading
35.2 KB
Loading
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
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+
![Flash custom FW](/docs/images/esc-flash-local-firmware.png)
20+
21+
### Write settings to the ESCs
22+
23+
We recommend the settings in the picture below:
24+
25+
![BLHeli_M recommended settings](/docs/images/esc-blheli_m_settings.png)
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+
![Flash custom FW](/docs/images/esc_menuconfig_oneshot125.png)
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

Comments
 (0)