Reflection

  • This week I learned how to set-up and build a physical circuit by using 220 Ohms - for LED and 5K1 Ohms for photoresistor.

  • Uploading the code process present a few error messages but after successful debugging these small errors were successfully troubleshooted.

  • I also learned about the serial monitor and how one can use the input data values to alternate certain lines of code to perform other functions.

  • I also learned how to set up ultraviolet sensor and servo motor circuit.

  • Once I uploaded the source code I came across a problem with the sensor. I notice that the servo motor was rotating on a loop even though nothing was directing in front of the sensor. After further inspection I realized the sensor was not connected on the same column as the corresponding wires connected to the motherboard.

  • This issue was resolved by connected the sensor on the same column as the corresponding wires and after that the servo motor and sensor started to work as they should.

  • Lastly, this was a great activity in that I learned the basic design and programming on how hand-sanitizer dispensers work. I look forward to maybe designing my own someday.