dlktdr / HeadTracker

This project is built to record the orientation a FPV headset to allow the camera on your RC to follow your head movements.
GNU General Public License v3.0
378 stars 90 forks source link

Need BT connected LED on output pin for integration inside BDI digidapter #93

Closed bvanderhoek closed 2 years ago

bvanderhoek commented 2 years ago

I am building the head nano BLE33 into a BDI digidapter, but barely fits inside next to an analog VRX I want the HT to switch power on the BDI activation switch, that will work but there is no way i can see if it is connected. Request is to add an active high output (e.g I/O pin D3) for an external LED to show BT-connected.

dlktdr commented 2 years ago

You can use D13 as an LED output. It's hooked up to the Yellow one on the board. You can parallel another, hook it up the same as the one shown here with same resistor.

Screenshot 2022-05-30 082956

Screenshot 2022-05-30 083404

In V2.2 the LED changes modes if the BT is connected or not. Have a few bugs left to fix before I can release it but if you want to try in it's current state it's here.

HT2.2Beta Replace the .exe with the one from V2.1. Choose upload from local to write the firmware included

FYI Gyro calibration is done on boot. Set the board down so it's completely still until the red light goes out. The on board gyro calibration will change so the outputs aren't disabled if the user skips this step, using the previous values instead.