Wiki source code of LHT65N-DC Connection Instruction
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="wikigeneratedid" %) | ||
2 | |||
3 | |||
4 | |||
5 | (% class="wikigeneratedid" %) | ||
6 | **Table of Contents:** | ||
7 | |||
8 | {{toc/}} | ||
9 | |||
10 | |||
11 | |||
12 | |||
13 | = 1.Door sensor = | ||
14 | |||
15 | |||
16 | Application: Connect to Door Sensor detect door open / close and send to IoT server | ||
17 | |||
18 | Sensor Type: Normal Close Type Door Sensor as below | ||
19 | |||
20 | [[image:image-20240424100239-8.png||height="227" width="946"]] | ||
21 | |||
22 | |||
23 | == 1.1 Hardware Connection == | ||
24 | |||
25 | * ((( | ||
26 | LHT65N VDD <~-~-> one wire of Door Sensor | ||
27 | ))) | ||
28 | * ((( | ||
29 | LHT65N Interrupt Pin <~-~-> one wire of Door Sensor | ||
30 | ))) | ||
31 | |||
32 | [[image:image-20240424100415-9.png||height="355" width="796"]] | ||
33 | |||
34 | == 1.2 Software Configuration == | ||
35 | |||
36 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
37 | |||
38 | * ((( | ||
39 | AT Command : AT+EXT=4,1 | ||
40 | ))) | ||
41 | * ((( | ||
42 | Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
43 | ))) | ||
44 | |||
45 | Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life. | ||
46 | |||
47 | * ((( | ||
48 | AT Command :AT+TDC=86400000 | ||
49 | ))) | ||
50 | * ((( | ||
51 | Downlink Command: 0x01015180 Same as AT+TDC=86400000 | ||
52 | ))) | ||
53 | |||
54 | == 1.3 Test Result == | ||
55 | |||
56 | Move the magnet part to generate Open / Close event and check the uplink packet in the platform. | ||
57 | |||
58 | [[image:image-20240424100951-10.jpeg||height="333" width="741"]] | ||
59 | |||
60 | [[image:image-20240424100951-11.png||height="280" width="1247"]] | ||
61 | |||
62 | |||
63 | == 1.4 Power Consumption Notice == | ||
64 | |||
65 | |||
66 | Connect a Normal Close Door Sensor won't increase sleep current (~~6uA). The power consumption mainly depends on the how many open/close event happen every day. | ||
67 | |||
68 | |||
69 | |||
70 | |||
71 | = 2. Water Sensor = | ||
72 | |||
73 | |||
74 | Application: Connect to Water leakage Sensor detect door open / close and send to IoT server | ||
75 | |||
76 | |||
77 | == 2.1 Hardware Connection == | ||
78 | |||
79 | * LHT65N VDD <~-~-> one wire of water leakage Sensor | ||
80 | * LHT65N Interrupt Pin <~-~-> one wire of water leakage Sensor | ||
81 | |||
82 | == 2.2 Software Configuration == | ||
83 | |||
84 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
85 | |||
86 | * AT Command : AT+EXT=4,1 | ||
87 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
88 | |||
89 | Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life. | ||
90 | |||
91 | * AT Command :AT+TDC=86400000 | ||
92 | * Downlink Command: 01015180 Same as AT+TDC=86400000 | ||
93 | |||
94 | == 2.3 Test Result == | ||
95 | |||
96 | |||
97 | Partial contact of the sensor probe with water generates open/close events and checks for upstream packets in the platform. | ||
98 | |||
99 | [[image:image-20240424101908-12.png||height="331" width="435"]] | ||
100 | |||
101 | [[image:image-20240424101927-13.png||height="303" width="766"]] | ||
102 | |||
103 | |||
104 | == 2.4 Power Consumption Notice == | ||
105 | |||
106 | * Connecting the water leak sensor increases the sleep current (~~40uA). When using a water leak sensor, the battery life will be reduced. | ||
107 | |||
108 | [[image:image-20240424102048-14.png||height="495" width="926"]] | ||
109 | |||
110 | When the probe comes into contact with water, it will increase the low power consumption by about 300uA. | ||
111 | |||
112 | Then when it is out of contact with water, the power consumption will slowly drop. The reason for the slow drop is that there are water beads hanging on the surface of the probe. When it dries, It will reduce power consumption. | ||
113 | |||
114 | |||
115 | |||
116 | = 3 Smoke Sensor = | ||
117 | |||
118 | Application: Mainly suitable for hotels, warehouses, guesthouses, restaurants, hostels, factories, oil field well teams, prefabricated houses and other public places.When it is detected that the smoke in the air reaches a certain concentration value, an alarm signal is triggered immediately. False alarms are likely to occur when dew, oil smoke, water vapor, sudden temperature changes, corrosive gases, strong airflow or air conditioning, or outdoor environments occur. | ||
119 | |||
120 | * Technical Notes: | ||
121 | |||
122 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
123 | |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Parameter name**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Explanation** | ||
124 | |(% style="width:156px" %)Power|(% style="width:137px" %)DC 3V(Two 1.5V alkaline batteries) | ||
125 | |(% style="width:156px" %)Indicator lights|(% style="width:137px" %)It will flash once every minute in the monitoring state, and it will stay on when smoke is detected. | ||
126 | |(% style="width:156px" %)Working temperature|(% style="width:137px" %)-10℃~~+50℃ | ||
127 | |(% style="width:156px" %)Working humidity|(% style="width:137px" %)≤95% (Under 40℃ working environment) | ||
128 | |||
129 | == 3.1 Hardware Connection == | ||
130 | |||
131 | * LHT65N VDD <~-~-> Sound vibration film red line | ||
132 | * LHT65N Interrupt Pin <~-~-> sound vibration film black line | ||
133 | |||
134 | [[image:image-20240428090354-1.jpeg||height="456" width="1015"]] | ||
135 | |||
136 | |||
137 | == 3.2 Software Configuration == | ||
138 | |||
139 | |||
140 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
141 | |||
142 | * AT Command : AT+EXT=4,1 | ||
143 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
144 | |||
145 | Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life. | ||
146 | |||
147 | * AT Command :AT+TDC=86400000 | ||
148 | * Downlink Command: 01015180 Same as AT+TDC=86400000 | ||
149 | |||
150 | == 3.3 Test Result == | ||
151 | |||
152 | |||
153 | [[image:image-20240428090354-2.png||height="771" width="1011"]] | ||
154 | |||
155 | [[image:image-20240428090354-3.png||height="314" width="1015"]] | ||
156 | |||
157 | When triggered, the node will send data packets twice. When it is not triggered or the trigger ends, it needs to wait for the TDC time to send data packets. | ||
158 | |||
159 | |||
160 | == 3.4 Power Consumption Notice == | ||
161 | |||
162 | When there is smoke detect, the smoke sensor will be trigger , there will be sound from speaker and trigger the LHT65N to send uplink | ||
163 | |||
164 | |||
165 | |||
166 | = 4. SOS switch sensor = | ||
167 | |||
168 | Application:Connected to the SOS switch, the sensor detects whether an alarm is triggered and sends it to the IoT server. | ||
169 | |||
170 | When the red button is pressed, 1 and 2 are connected, and 1 and 3 are disconnected. When you release your hand, the red button automatically pops up, 1 and 2 are disconnected, 1 and 3 are connected, and it automatically resets without a key; This emergency help button is used for emergencies or emergencies. Press this red button to give an alarm and SOS emergency call (COM is 1, NO is 2, NC is 3) | ||
171 | |||
172 | == 4.1 Hardware Connection == | ||
173 | |||
174 | |||
175 | LHT65N VDD <~-~--> COM port of the SOS button | ||
176 | |||
177 | LHT65N Interrupt Pin <~-~-> The NO port of the SOS button | ||
178 | |||
179 | [[image:image-20240429133616-4.jpeg||height="937" width="1065"]] | ||
180 | |||
181 | |||
182 | == 4.2 Software Configuration == | ||
183 | |||
184 | |||
185 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
186 | |||
187 | * AT Command : AT+EXT=4,1 | ||
188 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
189 | |||
190 | |||
191 | Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life. | ||
192 | |||
193 | * AT Command :AT+TDC=86400000 | ||
194 | * Downlink Command: 01015180 Same as AT+TDC=86400000 | ||
195 | |||
196 | |||
197 | == 4.3 Test Result == | ||
198 | |||
199 | [[image:image-20240429133616-5.jpeg||height="685" width="753"]] | ||
200 | |||
201 | Note: When the LHT65N triggers an interrupt packet, it needs to wait 6s before a new trigger is generated. | ||
202 | |||
203 | When the button is pressed, the SOS button will be triggered, and the LHT65N will also be triggered to send the uplink signal. | ||
204 | |||
205 | |||
206 | == 4.4 Power Consumption Notice == | ||
207 | |||
208 | Connect SOS button Sensor won't increase sleep current (~~6uA). The power consumption mainly depends on the how many open/close event happen every day. | ||
209 | |||
210 | |||
211 | |||
212 |