elleny

[Creative PCB] PCB mooncakes, crunchy and crunchy in one bite!

 
Overview

I haven't thought about it. . . . . The one that shows up is the esp32.

If you don’t have time to make a stand, just make it yourself.

It supports up to 5V3A power supply. This kind of charging head is everywhere. After all, in the era of fast charging, who still uses 5V1A (Apple: You scold me again).

As long as you don't use it as a fill light or a searchlight in the square (the brightness will blind your eyes).

I finally crossed the sea by paddling (basically relying on the waves).

The lamp uses WS2812B-mini.

The main control uses esp32.

Main function display:

After the esp32 is powered on, it will automatically connect to the hotspot of the mobile phone, obtain the time data of the ntp site, and then disconnect the WiFi connection, and the second hand (light) will start to move.

Due to network delay, the error may be a few seconds, but it is not a problem. You can set the interval to connect to the router to update data. I set it to update at 23:00 every night.

Because the router at home does not need to change the password frequently (basically not), you can directly configure the WiFi name and password and burn them in.

The limitation is due to my lack of skills. There is no shell or anything else, otherwise it would look better.

 

 

Learn how to light up ws2812 with esp32:

I just learned it too. . . . . . .

I think big guys may not be able to stand the code I wrote. If you are new to it, I recommend self-study! ! ! !

I give the code path I learned:

Install esp_idf, there are official document tutorials , Bilibili has official video tutorials , and there are also official tutorial videos on how to use vs code's esp plug-in development.

The learning code of WS2812 can be found in Espressif’s official ESP-Skainet development guide https://github.com/espressif/esp-skainet

X2VNt3go2iVbYi99Z4Z1JpSjcBPNhL3NH9gSotVy.png

By the way, learn the infrared remote control of esp32: https://github.com/espressif/esp-idf/tree/v4.2/examples/peripherals/rmt

This path talks about how to drive ws2812 light strip

OD36opzZFhpgn4fkJgReGzK1Jd2QUr6lY2VNuWue.png

The last step is to get the time online via SNTP: https://github.com/espressif/esp-idf/tree/v4.2/examples/protocols/sntp

C3wnCsda64GNbYSWc7eQEMSxX4Ll6ldeqocUQ2Fa.png

Then combine it yourself, understand the working principle, and then you can write it yourself.

ESP_IDF YYDS! ! !

There are many official routines provided by Espressif Systems. You just need to look through the esp_idf folder often and there will be examples. In fact, in the SNTP step, you can learn how to connect to the network through the network port or WIFI. The function jump of vs code is very strong. , use ESP_IDF as the workspace, and all the functions in the file can be found (although I don’t know if this is required). In fact, I don't know how to use arduino, otherwise it would be easier to get started. . . .

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-06-22 17:22:58

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号