Group Work
The group assignment this week was realtively simple: measure the power consumption of an output device.
Thankfully, Jacob had already attached a servo motor to his PCB from the previous week, so we were able to easily measure the voltage on his board using a multimeter
The result was about right; we measured 3.059 volts for the output, which makes sense; some voltage is lost to resistance in the circuit, but overall it worked.
Objectives
For output devices, I wanted to expand on input devices and get a more concrete output: actual saved photos from the camera on the ESP32S3 Sense.
Writing the Code
To do this, I examined a few options. The first was to have a photo be sent to the serial monitor in Arduino. However, it seemed like this would come through just as binary, which isn’t really the “output” I wanted.
Instead, a better option seemed to use a similar approach to the camera webserver, and create an html link for a photo.
At first, this seemed to work; I successfully got a web server going, and I received successful messages in the serial monitor indicating my camera successfully took a picture and tried to host it.
However, when trying to view the photo, the server wouldn’t load. When I tried taking another photo, it said capture failed, and I got the following message on the web server.
This indicates that the problem is likely that either the file is too big and struggles to load, or that the file type isn’t being properly interpreted by the web server. Additionally, there’s obviously a problem that successive photo attempts “break” the code (I needed to completely re-upload the code to get it to work again…only for the same result)