Previous Work

Previously, we made two projects: one involved creating a Halloween popup card, and the other focused on making Diyas. For this assignment, we decided to concentrate on enhancing the latter project. Our goal was to improve both the functionality of the lamp lights and the overall decoration of our Diyas.

Previous Work

Brainstorming

Our brainstorming part involved considering feedback from the class and identifying areas we wanted to refine further. After careful deliberation, we decided to incorporate additional Diyas (a total of 4) to enhance scalability. We also opted for a photoresistor to control the lighting of the 4 lamps in our diyas.

Screen Shot 2023-09-13 at 2.30.51 PM.png

Process - prototyping

Components: Arduino Uno board / Photoresistor / Box / 220 Ohm Resistor / 4 LED lights / 9v Battery / Wires / Black Tape / Paper

We powered the LED lights using a 9V battery while incorporating 220 Ohm resistors. We then connected the photoresistor to the breadboard. Finally, we established the circuit connections to the Arduino board, as illustrated in the diagram below.

Untitled

Untitled

Untitled

Untitled

Untitled

Circuit

After successfully establishing all the connections, we began writing code in Arduino. Since we were all new to coding, we relied on similar examples found online, modifying them to suit our design and connection requirements.

Upon compiling the code and encountering no errors, we conducted initial tests using a single LED. We realized that our photoresistor value was set too high, leading to issues with the code's functionality. Swiftly addressing this, we corrected the code, resulting in flawless operation. The LED lights responded to the photoresistor's input, creating a great final output.

Code