Zephyr ESP32-C6 MPU6050 Samples

via Freelancer ·

Budget / Salary$10–30
TypeFreelance project
LocationRemote
Posted2 hours ago
I’m looking for two concise Zephyr OS code snippets that run on an ESP32-C6 and talk to an on-board MPU6050 over I2C. My custom board already integrates the sensor, so no wiring diagram is required.

What I need
• Example 1 – Polling: periodically read accelerometer and gyro data in the Zephyr main loop and print the raw values to the console.
• Example 2 – Interrupt driven: configure the MPU6050 so that its “no-motion” interrupt line fires when the sensor detects inactivity; handle that interrupt with a Zephyr GPIO callback and log a message or toggle an LED.

Key points
– Target: ESP32-C6 using Zephyr’s ESP32​_HAL drivers.
– Bus: I2C (default Zephyr API).
– Keep the code self-contained so I can drop each sample into a Zephyr application folder, run west build, and flash.
– Supply prj.conf and any DTS overlay you add to enable I2C and the GPIO interrupt pin.
– Comment the code clearly so I can adapt thresholds and timing later.
– A short README that lists build commands and any Zephyr version constraints rounds things off.

If you’ve already worked with Zephyr on ESP32 variants or configured MPU6050 interrupts, this should be straightforward. I’m happy to answer quick questions about pin mappings or clock settings while you work.
electronics microcontroller embedded software pcb layout embedded systems i2c firmware development sensor integration
Apply on Freelancer →

Project sourced from Freelancer.com. Applications happen directly on the original platform — we never collect your data.