Skip to content

WizzX-FPV/tiny-blackbox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

83 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tiny Blackbox 32MB

This is just try to use of W25Q256JVEIQ (32MB) Flash memmory.

As I never use EasyEDA before, I can not guaranty that is done OK

Photo

credit go to Alexey:

Tiny Blackbox is an open source ultra-light external logger for micro drones.

  • Size: 9 x 14 mm
  • Weight: 0.47 g
  • Logging rate: up to 4 kHz
  • Data rate: 1.5 Mbit/s
  • Current consumption: < 30 mA
  • Flash memory: 32 MB, W25Q256JVEIQ
  • MCU: STM32F042G6U6

Whoop

Setup

Pinout

  1. Connect the device to any free UART port on your flight controller (RX->TX, TX->RX).
  2. Setup blackbox in Betaflight Configurator:
  • Ports tab: Peripherals -> Blackbox logging, speed 1500000.
  • Modes tab: Blackbox -> assign to any available AUX switch.
  • Blackbox tab: Logging device -> Serial Port.
Screenshots

Operating modes

Read recorded logs

  1. Configure bf_uart_number number in config.json to match blackbox port number in Betaflight.
  2. Connect the flight controller to PC.
  3. Hold button for 1 second to switch into Read mode (double blinks).
  4. Run Python script tinybb.py. The script automatically turns your flight controller into Serial Passthrough mode.
  5. Save logs from flash to file with r command.
  6. Open file with Blackbox Explorer and enjoy :-)

You may need to install pySerial module before running the script. Type pip3 install pyserial in command prompt (cmd.exe or Terminal).

Example of CLI output:
Open /dev/cu.usbmodemFA131 successfully

===== Betafligh CLI mode =====
>> Entering CLI Mode, type 'exit' to return, or 'help'
>> # serialpassthrough 1 500000
>> Port1: 1
>> Port2: 20
>> Port1 opened, baud = 500000.
>> Forwarding, power cycle to exit.
==============================

Flash memory: 38.0% full

i - Information
r - Read memory
d - Dump full memory
e - Erase
x - Exit

Enter command: 
> r

Downloading:
Press ctrl+c to stop
................ 1 Mb
................ 2 Mb
................ 3 Mb
................ 4 Mb
................ 5 Mb
................ 6 Mb
.
6391040 bytes received
Blackbox_Log_20210213_112830.bbl saved
> 

For developers and enthusiasts

STLink

Future plans

  • Cross-platform GUI
  • Support 8 kHz logging rate

Feel free to contact me in Telegram: @AlexeyStn

About

Tiny Blackbox for Micro Drones

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 61.7%
  • C 38.0%
  • Other 0.3%