/ESP32-CastleLinkLive

A functional telemetry communication for getting live stats from your Castle ESC to your phone via two Heltec ESP32 LoRa modules.

Primary LanguageC++

ESP32 CastleLinkLive

A functional telemetry communication for getting live stats from your Castle ESC to your phone via two Heltec ESP32 LoRa modules.

It should be noted that while this is functional it still has a list of things to do to fully round it out.

Things To Do

  • Create android app for a beautiful dashboard
  • Optimize code to get rid of +/- 20 RPM reporting
  • Output the telemetry to the OLED as well
  • Build into a library so that it can be used for other projects/boards
  • Possibly act a a castle link for on the fly adjustments

Whats Done

  • Inverts the PWM signal from the receiver for the ESC to understand in Link Live mode
  • Creates a buffer of the telemetry then sends it as one package over LoRa
  • Receives data via LoRa and resends it over Bluetooth via Serial for your phone to see.

Build it yourself

Required Parts

Circuit

Using this PDF Pinout https://resource.heltec.cn/download/WiFi_LoRa_32/WIFI_LoRa_32_V2.pdf

  • Connect receiver signal to pin 12
  • Connect esc signal to pin 13
  • Connect GND to the ESP32, Receiver, and the 3v regulator if you are using it.
  • Connect ESC Power to the Receiver and ESP32 5v pin if your are not running high voltage. Otherwise connect the ESC Power to the 3v regulator in and the ESP32 3v pin the 3v regulator out pin.

Upload the Code

Putting it all Together

  • Power both modules up and they should star working
  • Go to your phones bluetooth setting and pair to "CastleLinkLive"
  • Go into the Serial Bluetooth Terminal app and choose the "CastleLinkLive" device and hit connect
  • If for some reason it's not working go ahead and hit the reset button on both ESP32 modules to restart them