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

ELRS Backpack wireless headtracker function support #154

Open xuhao1 opened 1 year ago

xuhao1 commented 1 year ago

Hi there! Thanks for your work. ELRS now added native Bluetooth support for headtracker, as shwon in https://github.com/ExpressLRS/ExpressLRS/pull/2060 I think it would be great to add this protocol supported in this project. So that we can directly use wireless headtracker with any ELRS transmitter system and without any hack on hardware! It will be huge convenient for users.

pkendall64 commented 1 year ago

ELRS is not using bluetooth, it uses MSP packet sent over ESP-now.

xuhao1 commented 1 year ago

@pkendall64 okay I find this. How about mounting a ELRS receiver on the head tracker module to enable backpack?

Another practice way is to migrate this project on ESP32-arduino to take the advantage of ESP now.

NineDayCC commented 1 year ago

Hi, I'v been working on a headtracker project based on @dlktdr 's headtracker on esp32-C3. The main structure has been done. It can output ppm and subs signals, wireless connection through bluetooth receiver.

But many features are waiting to be added like gui parameter configurator support, and some issues needed to be fixed (such as ppm output jitter).

Maybe you can take a look in my repository and see if we can make it better together(I'll upload some time later). I chose esp32-C3 because it is very cheap, so everyone can afford it. I hope I can contribute my effort to make community better!

dlktdr commented 1 year ago

Hi, I'v been working on a headtracker project based on @dlktdr 's headtracker on esp32-C3. The main structure has been done. It can output ppm and subs signals, wireless connection through bluetooth receiver.

But many features are waiting to be added like gui parameter configurator support, and some issues needed to be fixed (such as ppm output jitter).

Maybe you can take a look in my repository and see if we can make it better together(I'll upload some time later). I chose esp32-C3 because it is very cheap, so everyone can afford it. I hope I can contribute my effort to make community better!

Hey, that sounds awesome, I really wanted to get this working on ESP, but haven't had the time to really put the effort in. It is a really nice chip and the extra processing power + Wifi is a big plus. Could use ESPnow directly to the ELRS too if we could get it running.

I would be glad to help out. Looks like your still using ZpehyrOS from the question you posted, post the code too when you can.

For the PPM I was looking into using the RMT peripheral on ESP to generate the pulses. Same kind of jitter issue was found on NRF when using interrupts as well. Really only PPM, PWM and getting it compiling with West for the newest ESP support should be needed. If you have discord, send me a PM or join the #dev channel.

NineDayCC commented 1 year ago

Hi, I'v been working on a headtracker project based on @dlktdr 's headtracker on esp32-C3. The main structure has been done. It can output ppm and subs signals, wireless connection through bluetooth receiver. But many features are waiting to be added like gui parameter configurator support, and some issues needed to be fixed (such as ppm output jitter). Maybe you can take a look in my repository and see if we can make it better together(I'll upload some time later). I chose esp32-C3 because it is very cheap, so everyone can afford it. I hope I can contribute my effort to make community better!

Hey, that sounds awesome, I really wanted to get this working on ESP, but haven't had the time to really put the effort in. It is a really nice chip and the extra processing power + Wifi is a big plus. Could use ESPnow directly to the ELRS too if we could get it running.

I would be glad to help out. Looks like your still using ZpehyrOS from the question you posted, post the code too when you can.

For the PPM I was looking into using the RMT peripheral on ESP to generate the pulses. Same kind of jitter issue was found on NRF when using interrupts as well. Really only PPM, PWM and getting it compiling with West for the newest ESP support should be needed. If you have discord, send me a PM or join the #dev channel.

Hi @dlktdr ! Thanks for your reply.
I'v posted my code here https://github.com/NineDayCC/HeadTracker_ESP32 . Welcome to check out. I do have discord. May I ask how can I join the server?

dlktdr commented 1 year ago

The link to discord is, https://discord.gg/ux5hEaNSPQ

L1cardo commented 8 months ago

How's this going on? Is esp32 getting support soon?

ltwin8 commented 4 months ago

hi there, are there any updates on this?

ESP8285, standard IMU, thats all needed if i understand correctly?

like if one has an EP82 vrx backpapck already, can it be possible to add headtracker? or some system with esp+imu for internal fit to (digital) goggles