Show last authors
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. 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.
111
112
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0