Lemontree

ESP32 desk lamp

 
Overview

An ordinary desk lamp with adjustable brightness, there is an ESP32... I use the mouse wheel to adjust the brightness (very low cost performance)

vr2VHaFDsGtYMHYnJSZOLahytN28KXkASpCiqG9v.png

(Rendering of a rudimentary version)

 

Copper pillars are used to connect the layers. To prevent foolproofing, only the central copper pillar is powered, and the surrounding ones are grounded.

Because each light panel is connected in parallel, the number of light panels can be adjusted arbitrarily, and light panels of different colors can be freely replaced to create different atmospheres, such as the green one in the picture below:

f7XUm4XhIGoEFMcCB3f5gqMH9pCiKQVN7FxS4xHI.png

It can also be combined in fancy ways, like this:

I6r7m0eUQL1TbQDQ08WmLYx6uMda5CkOrT6iFxBV.png

The SY7201 constant current boost LED driver is used, which supports up to 30V. The driving current is limited, so it is best not to add too many lights. Three layers will be very hot. The inductors and resistors corresponding to the light boards with different layers are as follows:

fH0pxxWvOSAu2qDAu7EbZYD2KkFyItJqLbz6Z5LJ.png

The lamp board is modified based on the "5V imitation incandescent table lamp" of "Xingxue Iris" . I would like to thank you for the documentation and creativity (inexplicable void post).

 

The switch and dimming on the bottom motherboard use the scroll wheel on the mouse and the mouse encoder. The motherboard is not slotted, so the length of the encoder needs to be more than 13mm; the scroll wheel is from Microsoft, and the length is wrong and needs to be cut manually. .

2zDBBR98fdSOa5P3b5RTZEWd0SwcVCfRPfotrBUU.png

When designing, I wanted to add wifi or Bluetooth wireless control, so I used ESP32 as the main control. I don't know Arduino, so I wrote the program using ESP-IDF (the wifi function has not been finished yet).

 

In addition, in order to prevent the roller from accidentally pressing on the LED filament, I also designed a partition, which looks like this:

jDI0v4mIl6DQi5tAsd35Ia13LiJMd4xB3w8rQSOO.png

(I designed it with AD. There was a big problem with this partition when exporting AD to LCEDA, so I didn’t put it there. (The silk screen of the other two files will change due to conversion, so it’s not a big problem))

 

The hardware has been designed, but the code is still incomplete. The first three attachments are AD projects, and LAMP.zip is not yet complete. Currently, only PCNT and LEDC are written, and the UDP and TCP parts are all semi-finished products (I don’t know about hass and the like). , so I write it myself).

MTF is a disease of old age, and I get sick from time to time, so I have a perfect code~~Gu Gu Gu, raise pigeons

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 14:16:51

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号