![P1170063222.png](//image.lceda.cn/pullimage/QwimKdDwwEXBqqdYDFJ1HnkUKnA9ywGoIxYKZSav.jpeg)
![SmartHome - Switch Relay v3.png](//image.lceda.cn/pullimage/izeJGu7jsqqTk9fTPkvCU5AjvpRDWjG5DGOU0QI6.png)
##### **This circuit is a touch switch that replaces the wall switches and allows you to control the lighting (on and off), uses two PCBs, the first one is black and includes the microcontroller, antenna, etc., the second PCB is **[black](https://oshwhub.com/Oleg533/wireless-touch-switch-model-for-livolo-crystals)** and includes the AC part,**
##### **power supply, relays, etc.**
# **Features:**
##### **ATmega328P 3.3V 8Mhz microcontroller, with pads for external oscillator (optional)**
##### **Antenna NRF24L01 SMD**
##### **Touch push button TTP223 + HTTM light reflector to interact with the switch manually.**
##### **RGB LED (The color blue does not have PWM) to indicate the status of the relays or RF connection.**
##### **Flash chip for PHOTO**
##### **Chip ATSHA204A for signature.**
##### **JST-8-1MM AVRISP + UART programming connector (UART requires 100nF capacitor in the cable)**
##### **2 relays of HF46F-5-HS1 of 5A to control AC load**
##### **DS18B20 sensor near the power supply to control the internal temperature.**
##### **Power supply HILINK HLK-PM01 5V**
##### **Voltage regulator AMS1117-3.3**
# **Requirements:**
##### **It is necessary to connect the Neutral cable to the power supply.**
##### **It is necessary to print two pieces of plastic with a 3D printer to house the circuits, hold the glass and be able to screw the switch to the wall.**
**![pinout.png](//image.lceda.cn/pullimage/oWtbrKU8EGEmFfWBiXhBiQcU7rOPqvWjf0n3rBpu.png)**
**![Smarthome_Touch_Switch_Relay_01.png](//image.lceda.cn/pullimage/bBJu8rE4kwYbjczlUePIgjmAsqmhOXKvfqiJC5QA.png)**
**![Smarthome_Touch_Switch_Relay_02.png](//image.lceda.cn/pullimage/QZkrM70ej18O6m1XLgB1V0D1DFBgwcgvOncE3yVL.png)**
**![Smarthome_Touch_Switch_Relay_03.png](//image.lceda.cn/pullimage/Iy87UvzsW4lsFXmYVZueo0ZdhEkIW0ND0smHjOUT.png)**
**![644689262.jpg](//image.lceda.cn/pullimage/QZgsTwbKBAAuS8lu83pxT6qpUf2ZvSaQNTT5UB2U.jpeg)**
**![644689194.jpg](//image.lceda.cn/pullimage/XZlSGlMq6ePazEAUqT4t2cEKByXZeQjJ4uAfU1hP.jpeg)**
ID |
Name |
Designator |
Quantity |
1 |
HILINK_HLK-PM01_5V |
U$1 |
1 |
2 |
TERMINAL_5MM_2P |
J2,J1 |
2 |
3 |
DS18B20 |
U3 |
1 |
4 |
1K |
R4,R2 |
2 |
5 |
10K |
R5,R1,R2 |
3 |
6 |
MMBT2222 |
Q2,Q1,Q3 |
3 |
7 |
22uF |
C1,C2 |
2 |
8 |
2X4_SMD_2MM |
J3 |
1 |
9 |
PWD |
L1 |
1 |
10 |
2K |
R10 |
1 |
11 |
4.7K |
R11 |
1 |
12 |
M7 |
D2,D1 |
2 |
13 |
HF46F-5-HS1 |
RLA1,RLA2 |
2 |
14 |
NC |
U$8 |
1 |
15 |
V_REG_LM1117SOT223 |
AMS1117-3 |
1 |
16 |
4.7uF |
C1 |
1 |
17 |
GND |
GND5,GND6,GND11,GND2,GND4 |
5 |
18 |
ATSHA204A |
U2 |
1 |
19 |
100nF |
C7,C9,C3,C2 |
4 |
20 |
TTP223 |
TTP1 |
1 |
21 |
0-50pF |
C8 |
1 |
22 |
100uF |
C4 |
1 |
23 |
10uF |
C5 |
1 |
24 |
ATMEGA328P |
U1 |
1 |
25 |
8MHz |
Y1 |
1 |
26 |
LED_RGB |
L1 |
1 |
27 |
68R |
R1 |
1 |
28 |
NRF24L01 |
U$8 |
1 |
29 |
SPI_FLASH-W25X40CLSNIG |
FLASH |
1 |
30 |
10k |
R10 |
1 |
31 |
AVRISP+UART |
JST1 |
1 |
32 |
2X4_SMD_2.0MM |
J3 |
1 |
33 |
HTTM_SENSEPAD |
U$1 |
1 |
34 |
10R |
R3,R4 |
2 |
35 |
1K |
RR1 |
1 |
36 |
10K |
RR2 |
1 |
展开
0
0
收藏到专辑