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 ... ... @@ -28,11 +28,9 @@ 28 28 * 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. 29 29 * When there is something blocking the laser, it will output GND. 30 30 31 - 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,39 @@ 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: 42 +(% 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- 44 +* **Power Adapter +12v <~-~-> IO Controller VIN <~-~-> Sensor VCC** 48 48 46 +* **Power Adapter GND <~-~-> IO Controller GND <~-~-> Sensor GND** 49 49 50 -I naboveconnection meansbelow:48 +* **IO Controller VIN <~-~-> IO Controller D1+** 51 51 52 - [[image:image-20230330163020-3.png]]50 +* **Sensor Output <~-~-> IO Controller D1-** 53 53 52 +(% style="color:blue" %)**In above connection means below:** 54 54 54 +[[image:image-20230330163020-3.png]] 55 55 56 56 57 - 58 - 59 59 = 4. Testing = 60 60 61 61 62 -Configure IO Controller with below commands: 60 +(% style="color:blue" %)**Configure IO Controller with below commands:** 63 63 64 -AT+MOD=2 àSet to use double counting mode62 +(% style="color:#037691" %)**AT+MOD=2**(%%) **~/~/ **Set to use double counting mode 65 65 66 -AT+TRIG1=1,100 64 +(% style="color:#037691" %)**AT+TRIG1=1,100** (%%) ~/~/ (set DI1 port to trigger on high level, valid signal is 100ms ) 67 67 68 -ATZ 66 +(% style="color:#037691" %)**ATZ** 69 69 70 70 71 -**Enable debug mode so we can see info from console:** 69 +(% style="color:blue" %)**Enable debug mode so we can see info from console:** 72 72 73 -**AT+DEBUG** 71 +(% style="color:#037691" %)**AT+DEBUG** 74 74 75 75 76 -**Then pass the object like below photos.** 74 +(% style="color:blue" %)**Then pass the object like below photos.** 77 77 78 78 [[image:image-20230330163020-4.png]] 79 79