Skip to content

11. Embedded Networking

I decided to continue working with my MPU 6050 gyroscope as seen in my Input Week to try and receive the data from any browser using a webserver on the Fab Labs Wifi.

Group Work

PCB Board

I decided to keep working with my original board I milled but this time I needed to change the code greatly to create a UI where I could view my sensor data. Therefore I made almost no changes to my original board except to attach an antenna to the ESP32-C3 Xiao for a better connection to the WiFi.

Code

For my code I needed to specify my networks name or SSID and my networks password in order to communicate with other devices on the network. So when ever the code is uploaded an IP address is generated in the serial monitor. If any browser goes to this address on the same network then it will show the values being registered on the website. Click here for the code.

Below is the Serial monitor of the IP address given after uploading the code

Below is the UI for my WebSever where it displays my accelerometer data and my gyroscope data.

Here is a video where it show hows the movement affects the values on the webserver in real time on a device it is only connected through by the internet.

Reflection

This week I learned how to connect my MPU6050 sensor to a webserver using the ESP32-C3 Xiao. I was able to display live accelerometer and gyroscope data on any browser connected to the same Wi-Fi network. Adding an antenna improved the ESP32’s connection and made the data transmission more stable. Overall, this project showed me how powerful embedded networking can be for making sensor data easily accessible.


Last update: June 4, 2025