r/esp32 • • 3d ago

I made a thing! Wireless head node working up top while building the rig below (ESP32-C3 + MPU6050 + ESP32-S3)

Enable HLS to view with audio, or disable this notification

Up top in the clip the headset is already running wireless, and down below I'm putting the rest of the setup together. All coded in the Arduino IDE: an ESP32-C3 with an MPU6050 sending wireless packets over ESP-NOW to an ESP32-S3 USB HID dongle.

The goal is to keep body awareness and head reference tightly integrated with hand aiming/clutching and drift tuning in code. Open to tips from anyone else tinkering with ESP32, MPU6050, and HID!

47 Upvotes

7 comments sorted by

•

u/AutoModerator 3d ago

Hardware Troubleshooting Notice: If you are experiencing unreliable connections, boot loops, or missing serial communication, verify your hardware footprint:

  1. Are your headers soldered? Pushing un-soldered raw header pins through module vias into a breadboard violates basic physics. Loose connections create parasitic capacitance and intermittent open circuits. Solder your board.
  2. Did you include a schematic? Custom circuit issues require a legible schematic drawing.

If your hardware relies on putty, tape, or friction, please resolve your connections before demanding assistance from our domain experts.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

4

u/Dmy1703 3d ago

You can already tell from the video that it is wireless now, and I am keeping the project moving. I cannot always post right away because it can look repetitive from the sub's perspective or not go through, but there is a lot of calibration behind the scenes that barely looks like it changed from the outside. A bunch of changes I made came from what people said in earlier posts, so thanks a lot to everyone who already helped out, and if anyone wants to share more ideas or opinions on where to go next, they are super welcome.

2

u/Hot-Gazelle-1089 3d ago

This is really cool actually, how's the latency in translating the raw input into the games?

2

u/Dmy1703 3d ago

Latency is already pretty well balanced, and the main challenge has been MPU drift and the reading filter, because when you move your hands sometimes the head or torso goes along with it, so it takes a well tuned filter when combining everything. This clip is just the isolated head, and that issue really shows up when I put in the rest of the limbs, with chest reading and arm reading.

2

u/Hot-Gazelle-1089 3d ago

Yeah I guessed that'd happen too since yer using mpu6050s. This is a really well thought out design but you might wanna consider changing sensors if you actually plan on using this in the long run. Goodluck with the build!

1

u/Dmy1703 3d ago

Yes, BMI and LSM6 tend to be more consistent with less drift, though for now I am testing the code on the MPU, trying different formats on these sensors without a compass. If you have any ideas for improvement, feel free to send them since I am running a lot of tests.