pgzYr0qKlL

Creative Touch Desk Lamp

 
Overview
This is a creative touch-sensitive desk lamp using an ESP32S3 microcontroller as the main controller. It
features a novel design, touch control, and MQTT remote control. Code can be programmed from a webpage with a single click.
For entertainment purposes only; do not overthink it. It is not waterproof.
Code:
https://github.com/liux-pro/love-lamp
Appearance
and Operation:
Internal Structure:
The ESP32's touch pins are connected to pads on the PCB edge. The midpoint of a copper strip is soldered to the pad, with the strip slightly longer than the inner diameter of the tube.
The two ends of the copper strip are inserted into the opposite solder holes, forming a ring.
The circuit board is then attached to the lamp holder, and the tube is inserted.
Free MQTT Server:
Remote control for this project is based on MQTT and requires an MQTT broker. EMQX
(https://cloud.emqx.com/console/deployments/new
) provides a free MQTT server upon registration, with sufficient monthly free usage for learning and testing.
A Serverless version can be created for free.
To generate an MQTT account
on EMQX, click "Authenticate" and add two accounts, one for web control and one for ESP32 (Love-Lamp). Remember your username and password.
Obtain the MQTT connection address
as shown in the image; the link address can be found on the overview page. We need to add some extra information to make it a URI recognizable by ESP32.
Specifically, prefixing it with `wss://` indicates using encrypted WebSocket communication. Adding `/mqtt` to the end represents the connection path, which is explained in detail in the EMQX documentation.
The final concatenation is:
`wss://xxxxxxxx.ala.cn-hangzhou.emqxsl.cn:8084/mqtt`.
To flash the firmware , open the above URL: `https:
//love-lamp.liux.pro /#/
flash`. You can flash the firmware to the ESP32S3 via the web interface. Fill in the required information and click "Flash".
The web interface uses the Espressif official esptool-js project to flash the program via serial port. Simultaneously, the configuration information will be sent to my server to generate an NVS (Non-Volatile Storage) partition, which will then be flashed.
Risk Warning: Your configuration information will be sent to my server to generate the NVS partition; local generation
and remote control are not yet implemented. Open the above website:
https://love-lamp.liux.pro/
, fill in the required information, and click connect to remotely control the flashlight via MQTT.
The webpage will establish an MQTT connection with the server, thus enabling remote control.
The webpage source code
for the above flashing and control is open source and has some learning value.
Only some knowledge of Linux, Docker, Nginx, Python, JavaScript, TypeScript, HTML, CSS, and Vue is required to understand it. For best results, use it in conjunction with the build script:
https://github.com/liux-pro/love-lamp/tree/master/flash-online . https://github.com/liux-pro/love-lamp/blob/master/.github/workflows/build.yml Special Materials Material Links Notes Light Bulb https://item.taobao.com/item.htm?id=704057850477 5W - E27 screw base. Soak in water to soften the glue, disassemble the casing, discard the LED, and replace with a homemade light-emitting board copper sheet. https://item.taobao.com/item.htm?id=550601394908 0.05mm 10m/1m water pipe https://item.taobao.com/item.htm?id=711653362079 Diameter 32mm. It is recommended to use a special tool for cutting. Inspiration Source https://monsby.com/products/new-york-boner-lamp






























参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2026-03-29 01:15:09

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号