fweiss / badge

Badge is a wearable LED matrix display system for communicating visually.
MIT License
2 stars 0 forks source link
ble cpp11 esp32 neopixels wearable

Badge

Badge is a wearable LED matrix display system for communicating visually.

Hardware

The current prototype is built with a few inexpensive, readily available components. See separate document for details.

Development

Development is via the Espressif ESP-IDF toolchain. The Get Started guide provides all the details for setting up the toolchain on Windows, Linux, or MacOS.

Hardware-specific settings

Depending on the hardware, make the following configuraton settings using idf.py menuconfig

Sparkfun ESP32 Thing

Adafruit ESP32 Huzzah

WeMos D1 clone "LOIN32"

USB Silicon Labs CP210x USB to UART bridge

Old Project Setup

As of April 2021, much of this is obsoleted. After the ESP_IDF toolchain is setup, this project can be flashed to an ESP32 device as follows:

Since ESP_IDF 4.4.2, the flash command figures out the COM port on Windows 10.

Development workflow

Once the project is setup, the following elements comprise the workflow:

Viewing the application log output

Run the following to view the application log steam make monitor

Modifying the code

TBD

Synching with the GitHub repository

TBD

Client Tools

It is intended that the device wiil be controlled from a mobile phone. For testing, the following tools can be used. There are many other tools with similar capabilities.

Nordic nRF Connect

Full access to the GATT characteristics.

List of the GATT characteristics: TBD

Flashing the bin file

Update firmware on device from bin file. On Windows. Download the ESP GUI

Links and References

Conversation about reliably driving WS2812B with ESP32 RMT with Bluetooth: https://www.reddit.com/r/esp32/comments/e7ixoh/adjust_ble_priority_or_synchronize_advertising/

https://www.esp32.com/viewtopic.php?t=576

Receive stream data from client

C++ example code: https://openlabpro.com/guide/ble-uart-on-esp32-controller/

Nordic BLE UART example

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fble_sdk_app_nus_eval.html&cp=4_0_0_4_2_2_22

Eclipse GDB Hardware Debugging

https://docs.espressif.com/projects/esp-idf/en/latest/api-guides/jtag-debugging/using-debugger.html#jtag-debugging-using-debugger-eclipse