Best way to integrate a custom MPU6050 tilt sensor into HUDiy?
Posted: Mon Dec 01, 2025 11:41 pm
Hello everyone,
I’m currently working on an off-road tilt (roll & pitch) display for my Jeep and would like to integrate it properly into HUDiy.
My setup so far:
• Raspberry Pi running HUDiy
• MPU6050 sensor connected via I²C
My main questions:
1. Is a separate web server (Flask on port 5001) the recommended approach for custom data sources?
Or does HUDiy provide a more integrated way to expose and consume custom sensor values?
2. Is it possible to send custom sensor data (like roll/pitch) into HUDiy via the HUDiy API (WebSocket/TCP + Protobuf)?
If yes:
• Which message types are intended for arbitrary external data?
• Are there examples of pushing custom data into HUDiy and receiving it inside a webview?
• Can a webview or widget subscribe to custom API messages?
3. Does HUDiy have built-in mechanisms for accessing local hardware (I²C, GPIO), or is the correct pattern to read the hardware externally and only feed the processed data to HUDiy?
4. What would be the recommended way to turn this into a full HUDiy component?
I’m currently working on an off-road tilt (roll & pitch) display for my Jeep and would like to integrate it properly into HUDiy.
My setup so far:
• Raspberry Pi running HUDiy
• MPU6050 sensor connected via I²C
My main questions:
1. Is a separate web server (Flask on port 5001) the recommended approach for custom data sources?
Or does HUDiy provide a more integrated way to expose and consume custom sensor values?
2. Is it possible to send custom sensor data (like roll/pitch) into HUDiy via the HUDiy API (WebSocket/TCP + Protobuf)?
If yes:
• Which message types are intended for arbitrary external data?
• Are there examples of pushing custom data into HUDiy and receiving it inside a webview?
• Can a webview or widget subscribe to custom API messages?
3. Does HUDiy have built-in mechanisms for accessing local hardware (I²C, GPIO), or is the correct pattern to read the hardware externally and only feed the processed data to HUDiy?
4. What would be the recommended way to turn this into a full HUDiy component?