<
From version < 9.3 >
edited by Xiaoling
on 2023/03/30 16:40
To version < 9.4 >
edited by Xiaoling
on 2023/03/30 16:42
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -30,7 +30,6 @@
30 30  * When the lase arrives at the reflector, the reflector will reflect the laser to the sensor and the output pin will have a floating output.
31 31  * When there is something blocking the laser, it will output GND.
32 32  
33 -
34 34  So put the laser sensor and reflector on the two sides of the flow line. When there is an object passing between the flow line, it will block the laser and the sensor will switch from float to 0v. So we can count how many times it switches from float to 0v to know how many objects pass.
35 35  
36 36  
... ... @@ -40,16 +40,18 @@
40 40  Connect the Laser sensor to Controller as below Reference URL: [[http:~~/~~/wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.6.2DigitalInputPort:DI12FDI228ForLT-22222-L29>>url:http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LT-22222-L/#H3.6.2DigitalInputPort:DI12FDI228ForLT-22222-L29]]
41 41  
42 42  
43 -**(% style="color:blue" %)Below is the wiring:**
42 +(% style="color:blue" %)**Below is the wiring:**
44 44  
45 45  * **Power Adapter +12v <~-~-> IO Controller VIN  <~-~-> Sensor VCC**
45 +
46 46  * **Power Adapter GND <~-~-> IO Controller GND <~-~-> Sensor GND**
47 +
47 47  * **IO Controller VIN  <~-~-> IO Controller D1+**
49 +
48 48  * **Sensor Output  <~-~-> IO Controller D1-**
49 49  
52 +(% style="color:blue" %)**In above connection means below:**
50 50  
51 -**(% style="color:blue" %)In above connection means below:**
52 -
53 53  [[image:image-20230330163020-3.png]]
54 54  
55 55  
... ... @@ -56,21 +56,21 @@
56 56  = 4. Testing =
57 57  
58 58  
59 -**(% style="color:blue" %)Configure IO Controller with below commands:**
60 +(% style="color:blue" %)**Configure IO Controller with below commands:**
60 60  
61 -**(% style="color:#037691" %)AT+MOD=2**(%%)  à Set to use double counting mode
62 +(% style="color:#037691" %)**AT+MOD=2**(%%)  **~/~/ **Set to use double counting mode
62 62  
63 -**(% style="color:#037691" %)AT+TRIG1=1,100** (%%) (set DI1 port to trigger on high level, valid signal is 100ms )
64 +(% style="color:#037691" %)**AT+TRIG1=1,100** (%%) ~/~/ (set DI1 port to trigger on high level, valid signal is 100ms )
64 64  
65 -**(% style="color:#037691" %)ATZ**
66 +(% style="color:#037691" %)**ATZ**
66 66  
67 67  
68 -**(% style="color:blue" %)Enable debug mode so we can see info from console:**
69 +(% style="color:blue" %)**Enable debug mode so we can see info from console:**
69 69  
70 -**(% style="color:#037691" %)AT+DEBUG**
71 +(% style="color:#037691" %)**AT+DEBUG**
71 71  
72 72  
73 -**(% style="color:blue" %)Then pass the object like below photos.**
74 +(% style="color:blue" %)**Then pass the object like below photos.**
74 74  
75 75  [[image:image-20230330163020-4.png]]
76 76  
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0