Week 11,

×

Ideation Phase: Ideating what I wanted to do didn't take too long because I already knew how I wanted to incorporate interface programming into my final project and how it would interact with the input device. My input device in my final project will be a potentiometer and a thermisor. In this week, I only used the the potentiometer to get the hang of things.

×

Execution Phase : Fortunately, since I'd already set up my server to work with updating values the week before, all I really had to change was what value my HTML response was using. Instead of millis(), I had the ESP32 read from an input pin connected to a potentiometer. Since there was only a certain range of values I wanted my user to have the option of choosing, I normalized the analogRead function (which can give you values from 0 to 4095) to map to values of 40 to 140 instead.
Another change I made occurred in how I was setting up the server. Previously, my ESP32 connected to a Wifi network and hosted the server on that network. I changed this to instead be that my ESP32 would host its own Wifi network and host its server on there so my computer could then join and get information from the microcontroller.

×

Final Product: Here's a video of my updated server working and the associated code!


P.S.: You may notice a breadboard instead of the usual milled board. I'm currently working out the circuit for my final project so I like to breadboard it to get a better sense of the connections before moving into PCB land.

- Alex