Changes for page Use Counting Mode
Last modified by Xiaoling on 2023/03/30 16:44
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,9 +1,11 @@ 1 1 **Table of Contents:** 2 2 3 +{{toc/}} 3 3 4 -Use LT IO controller to counting how many object pass over flow line 5 5 6 +**Use LT IO controller to counting how many object pass over flow line.** 6 6 8 + 7 7 = 1. Overview = 8 8 9 9 ... ... @@ -32,7 +32,6 @@ 32 32 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. 33 33 34 34 35 - 36 36 = 3. Connect to IO-Controller = 37 37 38 38 ... ... @@ -39,41 +39,37 @@ 39 39 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]] 40 40 41 41 42 -Below is the wiring: 43 +**(% style="color:blue" %)Below is the wiring:** 43 43 44 -* Power Adapter +12v <~-~-> IO Controller VIN <~-~-> Sensor VCC 45 -* Power Adapter GND <~-~-> IO Controller GND <~-~-> Sensor GND 46 -* IO Controller VIN <~-~-> IO Controller D1+ 47 -* Sensor Output <~-~-> IO Controller D1- 45 +* **Power Adapter +12v <~-~-> IO Controller VIN <~-~-> Sensor VCC** 46 +* **Power Adapter GND <~-~-> IO Controller GND <~-~-> Sensor GND** 47 +* **IO Controller VIN <~-~-> IO Controller D1+** 48 +* **Sensor Output <~-~-> IO Controller D1-** 48 48 49 49 50 -In above connection means below: 51 +**(% style="color:blue" %)In above connection means below:** 51 51 52 52 [[image:image-20230330163020-3.png]] 53 53 54 54 55 - 56 - 57 - 58 - 59 59 = 4. Testing = 60 60 61 61 62 -Configure IO Controller with below commands: 59 +**(% style="color:blue" %)Configure IO Controller with below commands:** 63 63 64 -AT+MOD=2 à Set to use double counting mode 61 +**(% style="color:#037691" %)AT+MOD=2**(%%) à Set to use double counting mode 65 65 66 -AT+TRIG1=1,100 (set DI1 port to trigger on high level, valid signal is 100ms ) 63 +**(% style="color:#037691" %)AT+TRIG1=1,100** (%%) (set DI1 port to trigger on high level, valid signal is 100ms ) 67 67 68 -ATZ 65 +**(% style="color:#037691" %)ATZ** 69 69 70 70 71 -**Enable debug mode so we can see info from console:** 68 +**(% style="color:blue" %)Enable debug mode so we can see info from console:** 72 72 73 -**AT+DEBUG** 70 +**(% style="color:#037691" %)AT+DEBUG** 74 74 75 75 76 -**Then pass the object like below photos.** 73 +**(% style="color:blue" %)Then pass the object like below photos.** 77 77 78 78 [[image:image-20230330163020-4.png]] 79 79