Version 17.1 by kai on 2024/04/24 10:22

Show last authors
1 (% class="wikigeneratedid" %)
2
3
4
5 (% class="wikigeneratedid" %)
6 **Table of Contents:**
7
8 {{toc/}}
9
10 = =
11
12 = =
13
14 = =
15
16 = =
17
18 = 1.Door sensor: =
19
20
21 Application: Connect to Door Sensor detect door open / close and send to IoT server
22
23 Sensor Type: Normal Close Type Door Sensor as below
24
25 [[image:image-20240424100239-8.png||height="227" width="946"]]
26
27
28 == 1.1 Hardware Connection ==
29
30 * (((
31 LHT65N VDD <~-~-> one wire of Door Sensor
32 )))
33 * (((
34 LHT65N Interrupt Pin <~-~-> one wire of Door Sensor
35 )))
36
37 [[image:image-20240424100415-9.png||height="355" width="796"]]
38
39 == 1.2 Software Configuration ==
40
41 Set LHT65N to Interrupt Mode so device will uplink when there is open/close event
42
43 * (((
44 AT Command : AT+EXT=4,1
45 )))
46 * (((
47 Downlink Command: 0xA20401 :   Same as AT+EXT=4,1
48 )))
49
50 Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life.
51
52 * (((
53 AT Command :AT+TDC=86400000
54 )))
55 * (((
56 Downlink Command:  0x01015180   Same as AT+TDC=86400000
57 )))
58
59
60 == 1.3 Test Result ==
61
62 Move the magnet part to generate Open / Close event and check the uplink packet in the platform.
63
64 [[image:image-20240424100951-10.jpeg||height="333" width="741"]]
65
66 [[image:image-20240424100951-11.png||height="280" width="1247"]]
67
68
69 == 1.4 Power Consumption Notice ==
70
71
72 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.
73
74
75
76
77 = 2. Water Sensor =
78
79
80 Application: Connect to Water leakage Sensor detect door open / close and send to IoT server
81
82
83 == 2.1 Hardware Connection ==
84
85 * LHT65N VDD <~-~-> one wire of water leakage Sensor
86 * LHT65N Interrupt Pin <~-~-> one wire of water leakage Sensor
87
88
89
90 == 2.2  Software Configuration ==
91
92 Set LHT65N to Interrupt Mode so device will uplink when there is open/close event
93
94 * AT Command : AT+EXT=4,1
95 * Downlink Command:  0xA20401 :   Same as AT+EXT=4,1
96
97 Enlarge the TDC time so LHT65N will send Keep Alive message every 24 hours so to save battery life.
98
99 * AT Command :AT+TDC=86400000
100 * Downlink Command:  01015180  Same as AT+TDC=86400000
101
102 == 2.3 Test Result: ==
103
104
105 Partial contact of the sensor probe with water generates open/close events and checks for upstream packets in the platform.
106
107 [[image:image-20240424101908-12.png||height="331" width="435"]]
108
109 [[image:image-20240424101927-13.png||height="303" width="766"]]
110
111
112 == 2.4 Power Consumption Notice: ==
113
114 * Connecting the water leak sensor increases the sleep current (~~40uA). When using a water leak sensor, the battery life will be reduced.
115
116 [[image:image-20240424102048-14.png||height="495" width="926"]]
117
118 * 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.
119
120