张小哥

Smart desk lamp based on esp8266

 
Overview

1. Project Introduction

This project uses the ESP-12F module to create a smart desk lamp that can use Tmall Genie to voice control the switch and color of the ws2812 light strip. The lamp arm uses a hose with a length of 450mm and an inner diameter of 7mm, and is positioned in all directions.

2. Principles and design ideas

After ESP-12F is connected to the WIFI at home, it is connected to the Alibaba Cloud Life IoT platform to realize Tmall Genie voice control. External ws2812 light strip is connected, and Tmall Genie issues instructions to esp8266 to control the status of the light strip. There are two buttons on the board to reset the distribution network and manually change the color of the light strip.

3. Hardware design

Schematic design

  1. USB circuit

USB circuit.png

  1. Serial port one-click download circuit

Serial port one-click download circuit.png

  1. ESP-12F Minimal System

ESP-12F minimum system circuit.png

  1. DCDC circuit

DCDC circuit.png

  1. ws2812 interface

WS2812 interface.png

  1. button

button.png

  1. LED circuit

LED.png

Layout design

  1. ESP-12F antenna part slotted processing

ESP-12F slotting.png

4. Software design

1. Development environment

Visual Studio Code 1.47.3

gcc version 5.2.0 (crosstool-NG crosstool-ng-1.22.0-92-g8facf4c0)

2. SDK version

ESP8266_RTOS_SDK 3.2

3. Use esp-aliyun framework

5. Mechanical design

  1. Hoses with length 450mm and inner diameter 7mm

hose.jpg

  1. keycaps

keycap.png

  1. base shell



  1. Light strip shell

6. Public APP



7. Function realization

  1. Realize one-click network distribution for public APPs,
  2. Tmall Genie asks teammates to configure the network and control the switch and color of the light strip with voice
  3. Press and hold SW1 to reset the ESP8266 and enter the network configuration mode. The indicator light flashes. After the network is configured, the indicator light is always on.
  4. Short press SW1 to switch the color of the light strip

8. Physical display

9. Design issues and improvements

V1.0

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-08 18:09:16

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号