HeadTracker icon indicating copy to clipboard operation
HeadTracker copied to clipboard

ELRS Backpack wireless headtracker function support

Open xuhao1 opened this issue 1 year ago • 8 comments

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.

xuhao1 avatar Jul 23 '23 15:07 xuhao1

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

pkendall64 avatar Jul 23 '23 19:07 pkendall64

@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.

xuhao1 avatar Jul 24 '23 03:07 xuhao1

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!

NineDayCC avatar Aug 01 '23 04:08 NineDayCC

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.

dlktdr avatar Aug 01 '23 04:08 dlktdr

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?

NineDayCC avatar Aug 01 '23 16:08 NineDayCC

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

dlktdr avatar Aug 01 '23 23:08 dlktdr

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

L1cardo avatar Mar 15 '24 18:03 L1cardo

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

ltwin8 avatar Jul 12 '24 22:07 ltwin8