Wemos D1 Night Light

Objectives:

Build a circuit and program that responds to the environment.

Parts

Directions

Clone https://githubcom/awoehler/electronics.network
Open Examples/NightLight/NightLight.ino
Connect the 3.3+V to the photo resistor. Connect the photo resistor to a 10k Ohm and connect it to GND. Connect the line between the photo resistor and the 10k resistor to the A0 on the Wemos board.
Compile and upload the sketch to the board. 

Exercises

  1. Adjust the threshold values to work better for your environment.
  2. Change it so that as it gets darker the light get's brighter.
  3. Add a brighter light.

Comments

Popular posts from this blog

Wemos D1 Push Button

Wemos D1 Blink

Lab Tools, Supplies & Reviews