Welcome to Week 13

Interface and Application Programming


For this week I wanted to make it as relatable to my final project as possible again. So I decided to make my user interface a webisite with buttons so that could control the direction of the motor. I took my setup from last week and altered it. First I needed to set up a web server, but I had lots of issues connecting to the Wifi or personal hotspots. Instead I decided to use the network native to the ESP32-C3 that I used on the last project. I connected to its network on my phone:

Next I wrote up the code to create the server, make the buttons, and control the motor with them. Here's a look at the site that's just the IP created by the Xiao

As I click the buttons the motor spins based on the direction I click.