Battery-Powered Smart Light with Wemos D1 Mini and Reed Switches
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit involves a Wemos D1 Mini microcontroller, multiple reed switches, a WS2812 RGB LED strip, a 3xAA battery pack, and a splicing connector. The Wemos D1 Mini reads the state of the reed switches and controls the WS2812 RGB LED strip. The circuit is powered by a 3xAA battery pack.
Component List
Wemos D1 Mini
- Description: A microcontroller board based on the ESP8266.
- Pins: RST, A0, D0, D5, D6, D7, D8, 3V3, 5V, G, D4, D3, D2, D1, RX, TX
Reed Switch
- Description: A magnetic switch that opens or closes in the presence of a magnetic field.
- Pins: pin 1, pin 2
WS2812 RGB LED strip
- Description: An addressable RGB LED strip.
- Pins: DIN, 5V, GND, DO
3xAA Battery
- Description: A battery pack holding three AA batteries.
- Pins: VCC, GND
Splicing connector WAGO 221
- Description: A splicing connector for easy wire connections.
- Pins: Port 1, Port 2, Port 3, Port 4, Port 5
Wiring Details
Wemos D1 Mini
- D5 is connected to pin 1 of a Reed Switch.
- D6 is connected to pin 1 of another Reed Switch.
- D7 is connected to pin 1 of another Reed Switch.
- 5V is connected to VCC of the 3xAA Battery and 5V of the WS2812 RGB LED strip.
- G is connected to Port 5 of the Splicing connector WAGO 221.
- D4 is connected to DIN of the WS2812 RGB LED strip.
- D2 is connected to pin 1 of another Reed Switch.
- D1 is connected to pin 1 of another Reed Switch.
Reed Switches
- pin 1 of the first Reed Switch is connected to D5 of the Wemos D1 Mini.
- pin 1 of the second Reed Switch is connected to D6 of the Wemos D1 Mini.
- pin 1 of the third Reed Switch is connected to D7 of the Wemos D1 Mini.
- pin 1 of the fourth Reed Switch is connected to D2 of the Wemos D1 Mini.
- pin 1 of the fifth Reed Switch is connected to D1 of the Wemos D1 Mini.
- pin 2 of the first Reed Switch is connected to Port 3 of the Splicing connector WAGO 221.
- pin 2 of the second Reed Switch is connected to Port 2 of the Splicing connector WAGO 221.
- pin 2 of the third Reed Switch is connected to Port 1 of the Splicing connector WAGO 221.
- pin 2 of the fourth Reed Switch is connected to Port 4 of the Splicing connector WAGO 221.
- pin 2 of the fifth Reed Switch is connected to Port 5 of the Splicing connector WAGO 221.
WS2812 RGB LED strip
- DIN is connected to D4 of the Wemos D1 Mini.
- 5V is connected to 5V of the Wemos D1 Mini and VCC of the 3xAA Battery.
- GND is connected to Port 5 of the Splicing connector WAGO 221.
3xAA Battery
- VCC is connected to 5V of the Wemos D1 Mini and 5V of the WS2812 RGB LED strip.
- GND is connected to Port 5 of the Splicing connector WAGO 221.
Splicing connector WAGO 221
- Port 1 is connected to pin 2 of a Reed Switch.
- Port 2 is connected to pin 2 of another Reed Switch.
- Port 3 is connected to pin 2 of another Reed Switch.
- Port 4 is connected to pin 2 of another Reed Switch.
- Port 5 is connected to pin 2 of another Reed Switch, G of the Wemos D1 Mini, GND of the WS2812 RGB LED strip, and GND of the 3xAA Battery.
Code
There is no code provided for the microcontrollers in this circuit.