###### Overview
A desktop offline voice assistant ornament that controls smart home. It can be used without connecting to the server, super safe!
###### Functional description
1. Act as a Wi-Fi MESH gateway node, process and upload the information of Wi-Fi MESH nodes by connecting to the MQTT server, and also process and send the server information to the target node, so as to achieve the function of remote control of node devices.
2. You can control smart home (mainly refers to smart home Wi-Fi MESH devices made by yourself) through the built-in offline voice function, or you can use Xiao Ai to control related devices.
3. Network clock, digital tube display time, digital tube brightness is adjusted according to the environment.
4. Wireless power supply, realized by wireless charging receiving module.
5. Add acrylic panel, a proper desktop ornament.
####### Main hardware
ESP32-C3, SU-03T, digital tube, encoder, battery, light sensor, wireless charging receiving module, DS1302, etc.
Purpose: Free your hands and embrace life.
###### Hardware Introduction
1.ESP32-C3 and SU-03T communicate through the serial port. Each time SU-03T executes a control node command, it will send a piece of data to ESP32-C3. The data is in hexadecimal, a total of eight bits. ESP32 processes the received data and then sends the data to the child node through Wi-Fi mesh. The child node analyzes the received data to determine whether it is sent to itself. If it is, it will determine to execute related functions to achieve the function of controlling the child node.
E_RX is connected to S_TX, and E_TX is connected to S_RX, that is, ESP32 sends information and SU-03T receives information, and SU-03T sends information and ESP32 receives information.
R2 and C3 form a delayed power-on circuit. The official manual requires that the EN pin be powered on later than VDDA, VDD3P3, VDD3P3_RTC and VDD3P3_CPU. The minimum delay time is 50um.
![ESP32-C3 circuit.jpeg]

SU-03T offline voice module, just power on to work. There is a development board designed for it in my open source project, which is convenient for development and verification.
![SU-03T circuit.jpeg]

R6 and R7 are connected to 5.7k pull-down, which can trigger pd power supply, that is, it can be powered by C to C charging cable. It also includes 3 ESD components U6 U7 U8 to protect the circuit.
WIRLESS1 is the interface for wireless charging.
![IMG_1226.jpeg]

SGM2028 low voltage drop RF linear regulator, 3.3v/500mA
![IMG_1219.jpeg]

TP4056 charging circuit, the right mos tube makes the battery stop powering the circuit after the type-c power cable is inserted (or wireless charging starts), and the TP4056 circuit powers the battery.
![IMG_1214.jpeg]

ADC circuit, obtain the current light intensity through the photosensitive sensor.
![IMG_1215.jpeg]

The download interface of the two MCUs has the same line sequence as the common ch340 downloader line sequence, which is convenient for plugging and unplugging.
![IMG_1221.jpeg]

###### Installation tutorial
Embed the nut and install the speaker.
![1683511194548.jpeg]

Install the digital tube and tighten the m2 screw.
![1683511194511.jpeg]

Install the wireless charging module first, then install the mainboard and install the screws.
![1683511194481.jpeg]

Spray chrome self-spray paint, install the LED, insert it into the mainboard, and install the battery.
![1683511194424.jpeg]

It's done
![IMG_20230425_101921.jpeg]

###### Finished product display
![IMG_20230425_230715.jpeg]

![IMG_20230425_231244.jpeg]

###### Video demonstration
[Video demonstration](https://b23.tv/g4RXNMl)
###### Attached contents:
module codes, Xiaozhi Elf code, table lamp code, living room lamp code, stl model file.