Week 2 - Sensors,Knobs,and Serial Date
- Amelia Zhu
- Oct 28, 2020
- 2 min read
Updated: Jan 11, 2021
Lab 00 – Leds in Serial and Parallel
Answer the following questions:
How many leds can you hook up with a 220k resistor in serial before running out of voltage?
How many leds can you hook up with a 220k resistor in parallel before running out of voltage?


- Only 2 lets hook up with a 220k resistor in serial.
- hook up with a 220k resistor in parallel for more than 8
Lab 01 – Serial Data
Using the hello sketch, play with the serial monitor( In the Arduino menu Tools>Serial Monitor) to tell a wee story based on player input. It can be around 3 lines long.
Lab 02 – Potentiometers (Knobs)
Hook up a knob and have it change the brightness of an LED
tutorial : https://www.arduino.cc/en/tutorial/potentiometer
Lab 03 – Light Dependent Resistors
Hook up an LDR. Try making the LED change brightness depending on the light level

Link : tinkercard
Lab 04 – Playing with Common Sensors
Links to hookup guides for the different sensors
Sensors in your kit to explore:
TMP36 Temperature Sensor (there are 3 of these, go wild)
I try the Force Sensing Resistor and Tilt Sensor
Lab 05 –
Think about how these kits could be used in the environment around your home. Invent a device relevant to your daily life using the above parts. What does it help you do? What are the possible use cases for this device? What interactions does it afford the user? Design or sketch an enclosure, and include a video of the circuit working (or a tinkercad link).
Concept

Many people have the habit of charging their mobile phones before going to bed. The concept I put forward is the idea of charging the night light. The night light on this charger can use the photoresistor sensor to detect the brightness of the light. When the owner turns off the ceiling light in the room and prepares to go to bed, the night light on the charger will automatically light up and remind the owner to give The phone is charging. When the mobile phone is connected to the charging cable, illuminate the illuminated mobile phone screen to the night light on the charger, and the charging night light will go out.

Link : tinkercard
Next steps & Future project
In the next step, I will modify the step of'Small Night Light End Prompt'. The ideal effect is that it can continue to perform the "end reminder" function when it detects a brief light intensity while the program is running.
In addition, I should add an audio reminder to the charger night light. When the reminder light is on, there should be a paired sound to enhance the effect of the reminder.
Inspired by the charging reminder night light, I want to add a new charging method to the charger. Controlled charging by solar energy. When the sunlight is strong during the day, the charger can automatically charge. When there is no light, the charging indicator light is automatically turned on.
Materials needed: Solar Panel, LED, 1N4001, Lithium Battery, Circuit Board, Transistor 9013, Different Resistances……
Comments