Week 13

Interface and Application Programming

This week's project I am going to try to tie it back to my final project which uses motors by creating an interface that moves motors.

Documentation

Last Week Tie In

Last week I was able to create a simple web server that turned on a motor. This week on the same Webserver I am going to give the option of multiple colors and essentially create the UIUX of my final project using a servo and then plotting the output of the servo.

Updating Website

This week I am once again consulting chat to help me with setting up the graph part of the website. according to chat these are the steps that I need to follow

  • 1. Set up Arduino to be able to send the servo's data
  • 2. Get the ESP32-C3 to recieve that data
  • 3. Set up the webserver with the esp32c3 (which I already did)
  • 4. Display the data on the webserver
  • I used the code it gave by immediately ran into a few errors including the fact that there was no servo library. I had previously done some googling and found a library for using the ESP32 with servos and used the library instead. Hopefully that will fix the main issue and it will be able to upload correctly. I just had a lot of issues I followed three different tutorials and I got library issue after library issue and I was never able to find the actual way to do it.

    Switch Directions

    I think I will actually be switching directions with the project to more fully support my final project. In my final project I am working with a phototransistor so it would be nice to graph how the number changes as somthing comes into view. I already have the actual board and code set up since I already made it for my final project so all I have to do is figure out how to graph the numbers that are coming out in the serial monitor. So I asked chat to help with the actual coding of the graph but I ran into a baby issue where it isnt actually setting up my esp32 as a wifi I can find so I'm comparing it to last weeks code that I wrote to find the difference. I think it was because instead of wifi.softAP it was wifi.begin which is not working. Okay it kind of works now. The wifi was setup and it does take me to a page but I have to refresh it to get new values and the chart just does not exist. Okay so I think I am just looking on the wrong page but at the same time the other page kind of just is not loading. I am on the right page now but there is still no graph and I am getting concerned/confused. I tried my best and I went to a lot of different sources but I just was not able to make a graph.
    Image Image Image