In this post, I will provide detailed information about the smart lamp I designed using the ESP-12F module, Type-C power supply, AMS1117-3.3V regulator, and four WS2812 RGB LEDs. This smart lamp can be controlled via mobile devices, computers, and even the internet. Additionally, it can operate automatically based on the time of day.
The following key components were used in this PCB design:
1. ESP-12F Wi-Fi ModuleESP-12F is a powerful Wi-Fi module based on the ESP8266. The following connections were made in the project:
GPIO14, GPIO12, GPIO13, GPIO4 -> WS2812 LED control
- GPIO14, GPIO12, GPIO13, GPIO4 -> WS2812 LED control
A0 (ADC) -> Reserved for analog input
- A0 (ADC) -> Reserved for analog input
RST, EN, TX, RX -> Standard connections
- RST, EN, TX, RX -> Standard connections
GND, VCC (3.3V) -> Power connections
- GND, VCC (3.3V) -> Power connections
A total of four individually addressable WS2812B LED modules were used. The LED connections are as follows:
DIN -> Connected to one of the ESP-12F GPIO pins
- DIN -> Connected to one of the ESP-12F GPIO pins
VDD (5V) -> Powered by the 5V supply from USB Type-C
- VDD (5V) -> Powered by the 5V supply from USB Type-C
VSS (GND) -> Common ground of the circuit
- VSS (GND) -> Common ground of the circuit
470Ω series resistor on each LED input
- 470Ω series resistor on each LED input
100µF capacitor on each LED power rail (to prevent power fluctuations)
- 100µF capacitor on each LED power rail (to prevent power fluctuations)
Since the ESP-12F operates at 3.3V, an AMS1117-3.3V voltage regulator was used to step down the 5V Type-C power source. 10µF capacitors were added for filtering.
4. USB Type-C Power InputA USB Type-C connector was used to provide 5V power to the circuit. The 5V line powers the WS2812 LEDs directly, while the ESP-12F receives a regulated 3.3V.
Smart Lamp FeaturesThis project is not just an LED control circuit but a smart lighting system with the following features:
Remote Control: Can be controlled via mobile devices, computers, or any internet-connected system.
- Remote Control: Can be controlled via mobile devices, computers, or any internet-connected system.
Automatic Lighting: Adjusts brightness or color automatically based on the time of day.
- Automatic Lighting: Adjusts brightness or color automatically based on the time of day.
Wi-Fi Integration: Works seamlessly with smart home systems via ESP-12F.
- Wi-Fi Integration: Works seamlessly with smart home systems via ESP-12F.
Customizable Usage: Different light modes and scenarios can be created.
- Customizable Usage: Different light modes and scenarios can be created.
This project provides a solid foundation for those who want to create a Wi-Fi-controlled smart lamp using ESP-12F and WS2812 RGB LEDs. The PCB design prioritizes power distribution, compact layout, and proper component placement.
Future updates may include Bluetooth integration or connectivity with IoT platforms.
Comments
Please log in or sign up to comment.