Wiki source code of LHT65N-DC Connection Instruction
Last modified by Mengting Qiu on 2024/08/20 16:50
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 12 hours so to save battery life. | ||
46 | |||
47 | * ((( | ||
48 | AT Command :AT+TDC=43200000 | ||
49 | ))) | ||
50 | * ((( | ||
51 | Downlink Command: 0x0100A8C0 Same as AT+TDC=43200000 | ||
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 | [[image:image-20240802092327-1.jpeg||height="312" width="694"]] | ||
83 | |||
84 | == 2.2 Software Configuration == | ||
85 | |||
86 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
87 | |||
88 | * AT Command : AT+EXT=4,1 | ||
89 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
90 | |||
91 | Enlarge the TDC time so LHT65N will send Keep Alive message every 12 hours so to save battery life. | ||
92 | |||
93 | * ((( | ||
94 | AT Command :AT+TDC=43200000 | ||
95 | ))) | ||
96 | * ((( | ||
97 | Downlink Command: 0x0100A8C0 Same as AT+TDC=4320000 | ||
98 | ))) | ||
99 | |||
100 | == 2.3 Test Result == | ||
101 | |||
102 | |||
103 | Partial contact of the sensor probe with water generates open/close events and checks for upstream packets in the platform. | ||
104 | |||
105 | [[image:image-20240424101908-12.png||height="331" width="435"]] | ||
106 | |||
107 | [[image:image-20240424101927-13.png||height="303" width="766"]] | ||
108 | |||
109 | |||
110 | == 2.4 Power Consumption Notice == | ||
111 | |||
112 | * Connecting the water leak sensor increases the sleep current (~~40uA). When using a water leak sensor, the battery life will be reduced. | ||
113 | |||
114 | [[image:image-20240424102048-14.png||height="495" width="926"]] | ||
115 | |||
116 | When the probe comes into contact with water, it will increase the low power consumption by about 300uA. | ||
117 | |||
118 | 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. | ||
119 | |||
120 | |||
121 | |||
122 | = 3 Smoke Sensor = | ||
123 | |||
124 | 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. | ||
125 | |||
126 | * Technical Notes: | ||
127 | |||
128 | (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:510px" %) | ||
129 | |=(% style="width: 156px;background-color:#4F81BD;color:white" %)**Parameter name**|=(% style="width: 137px;background-color:#4F81BD;color:white" %)**Explanation** | ||
130 | |(% style="width:156px" %)Power|(% style="width:137px" %)DC 3V(Two 1.5V alkaline batteries) | ||
131 | |(% 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. | ||
132 | |(% style="width:156px" %)Working temperature|(% style="width:137px" %)-10℃~~+50℃ | ||
133 | |(% style="width:156px" %)Working humidity|(% style="width:137px" %)≤95% (Under 40℃ working environment) | ||
134 | |||
135 | == 3.1 Hardware Connection == | ||
136 | |||
137 | * LHT65N VDD <~-~-> Sound vibration film red line | ||
138 | * LHT65N Interrupt Pin <~-~-> sound vibration film black line | ||
139 | |||
140 | [[image:image-20240428090354-1.jpeg||height="456" width="1015"]] | ||
141 | |||
142 | |||
143 | == 3.2 Software Configuration == | ||
144 | |||
145 | |||
146 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
147 | |||
148 | * AT Command : AT+EXT=4,1 | ||
149 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
150 | |||
151 | Enlarge the TDC time so LHT65N will send Keep Alive message every 12 hours so to save battery life. | ||
152 | |||
153 | * ((( | ||
154 | AT Command :AT+TDC=43200000 | ||
155 | ))) | ||
156 | * ((( | ||
157 | Downlink Command: 0x0100A8C0 Same as AT+TDC=4320000 | ||
158 | ))) | ||
159 | |||
160 | == 3.3 Test Result == | ||
161 | |||
162 | |||
163 | [[image:image-20240428090354-2.png||height="771" width="1011"]] | ||
164 | |||
165 | [[image:image-20240428090354-3.png||height="314" width="1015"]] | ||
166 | |||
167 | 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. | ||
168 | |||
169 | |||
170 | == 3.4 Power Consumption Notice == | ||
171 | |||
172 | When there is smoke detect, the smoke sensor will be trigger , there will be sound from speaker and trigger the LHT65N to send uplink | ||
173 | |||
174 | |||
175 | |||
176 | = 4. SOS switch sensor = | ||
177 | |||
178 | Application:Connected to the SOS switch, the sensor detects whether an alarm is triggered and sends it to the IoT server. | ||
179 | |||
180 | 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) | ||
181 | |||
182 | == 4.1 Hardware Connection == | ||
183 | |||
184 | |||
185 | LHT65N VDD <~-~--> COM port of the SOS button | ||
186 | |||
187 | LHT65N Interrupt Pin <~-~-> The NO port of the SOS button | ||
188 | |||
189 | [[image:image-20240429133616-4.jpeg||height="937" width="1065"]] | ||
190 | |||
191 | |||
192 | == 4.2 Software Configuration == | ||
193 | |||
194 | |||
195 | Set LHT65N to Interrupt Mode so device will uplink when there is open/close event | ||
196 | |||
197 | * AT Command : AT+EXT=4,1 | ||
198 | * Downlink Command: 0xA20401 : Same as AT+EXT=4,1 | ||
199 | |||
200 | Enlarge the TDC time so LHT65N will send Keep Alive message every 12 hours so to save battery life. | ||
201 | |||
202 | * AT Command :AT+TDC=86400000 | ||
203 | * Downlink Command: 01015180 Same as AT+TDC=86400000 | ||
204 | |||
205 | == 4.3 Test Result == | ||
206 | |||
207 | [[image:image-20240429133616-5.jpeg||height="685" width="753"]] | ||
208 | |||
209 | Note: When the LHT65N triggers an interrupt packet, it needs to wait 6s before a new trigger is generated. | ||
210 | |||
211 | When the button is pressed, the SOS button will be triggered, and the LHT65N will also be triggered to send the uplink signal. | ||
212 | |||
213 | |||
214 | == 4.4 Power Consumption Notice == | ||
215 | |||
216 | 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. | ||
217 | |||
218 | |||
219 | = 5. Flow sensor = | ||
220 | |||
221 | Application: It detects water flow volume and uplink to IoT server via LoRaWAN network. User can use this to monitor the water usage for buildings. | ||
222 | |||
223 | == 5.1 Hardware Connection == | ||
224 | |||
225 | LHT65N VDD <~-~--> Flow sensor red line | ||
226 | |||
227 | LHT65N Interrupt Pin <~-~-> Flow sensor Signal line | ||
228 | |||
229 | LHT65N GND <~-~--> Flow sensor black line(Note: If the sensor does not need power supply, please connect the red line (rising edge trigger) or the black line (falling edge trigger) as needed.) | ||
230 | |||
231 | [[image:image-20240506111329-1.jpeg||height="654" width="388"]] | ||
232 | |||
233 | |||
234 | == 5.2 Software Configuration == | ||
235 | |||
236 | Note: Because the traffic sensor is a counting sensor, the node can only be set in counting mode. | ||
237 | |||
238 | Set LHT65N to Counting Mode so device will uplink when there is open/close event | ||
239 | |||
240 | * AT Command : AT+EXT=8,1 | ||
241 | * Downlink Command: 0xA2080101 : Same as AT+EXT=8,1 | ||
242 | |||
243 | Enlarge the TDC time so LHT65N will send Keep Alive message every 12 hours so to save battery life. | ||
244 | |||
245 | * ((( | ||
246 | AT Command :AT+TDC=43200000 | ||
247 | ))) | ||
248 | * ((( | ||
249 | Downlink Command: 0x0100A8C0 Same as AT+TDC=4320000 | ||
250 | ))) | ||
251 | |||
252 | == 5.3 Test Result == | ||
253 | |||
254 | [[image:image-20240506111329-2.jpeg||height="533" width="336"]] | ||
255 | |||
256 | When the water passes through the flow sensor, the cumulative count will be generated (note: when installing the flow sensor, it is necessary to pay attention to the inlet direction of the installation). | ||
257 | |||
258 | [[image:image-20240506111329-3.png||height="377" width="1134"]] | ||
259 | |||
260 | |||
261 | == 5.4 Power Consnmption Notice == | ||
262 | |||
263 | Connect Flow Sensor won't increase sleep current (~~6uA). The power consumption mainly depends on the how many counting event happen every day. | ||
264 | |||
265 |