Changes for page How to connect 3rd party sensor to Dragino Wireless End Node
Last modified by Xiaoling on 2024/09/24 15:37
From version 4.1
edited by Karry Zhuang
on 2024/09/20 18:06
on 2024/09/20 18:06
Change comment:
There is no comment for this version
To version 5.1
edited by Karry Zhuang
on 2024/09/21 09:30
on 2024/09/21 09:30
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -93,13 +93,13 @@ 93 93 94 94 (% style="color:blue" %)**Connection of LIDAR-Lite V3HP:** 95 95 96 -[[image:image-20230512173758-5.png ||height="563" width="712"]]96 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512173758-5.png?width=712&height=563&rev=1.1||alt="image-20230512173758-5.png"]] 97 97 98 98 (% style="color:blue" %)**Connection to Ultrasonic Sensor:** 99 99 100 100 (% style="color:red" %)**Need to remove R1 and R2 resistors to get low power,otherwise there will be 240uA standby current.** 101 101 102 -[[image:image-20230512173903-6.png ||height="596" width="715"]]102 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512173903-6.png?width=715&height=596&rev=1.1||alt="image-20230512173903-6.png"]] 103 103 104 104 For the connection to TF-Mini or TF-Luna , MOD2 payload is as below: 105 105 ... ... @@ -120,15 +120,13 @@ 120 120 121 121 **Connection to [[TF-Mini plus>>url:http://en.benewake.com/product/detail/5c345cd0e5b3a844c472329b.html]] LiDAR(UART version):** 122 122 123 -(% style="color:red" %)**Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current.**(%%) 124 -(% style="color:red" %)[[image:image-20230512180609-7.png||height="555" width="802"]] 123 +(% style="color:red" %)**Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current**[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512180609-7.png?width=802&height=555&rev=1.1||alt="image-20230512180609-7.png"]] 125 125 126 126 **Connection to [[TF-Luna>>url:http://en.benewake.com/product/detail/5e1c1fd04d839408076b6255.html]] LiDAR (UART version):** 127 127 128 -(% style="color:red" %)**Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current.**(%%) 129 -(% style="color:red" %)[[image:image-20230610170047-1.png||height="452" width="799"]] 127 +(% style="color:red" %)**Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current** 130 130 131 - ==== 2.3.2.3MOD~=3 (3ADC + I2C)====129 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230610170047-1.png?width=799&height=452&rev=1.1||alt="image-20230610170047-1.png"]] 132 132 133 133 ==== 2.3.2.3 MOD~=3 (3 ADC + I2C) ==== 134 134 ... ... @@ -171,11 +171,11 @@ 171 171 172 172 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/1656377606181-607.png?rev=1.1||alt="1656377606181-607.png"]] 173 173 174 -[[image:image-20230513134006-1.png ||height="559" width="736"]]172 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513134006-1.png?width=736&height=559&rev=1.1||alt="image-20230513134006-1.png"]] 175 175 176 176 ==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 177 177 178 -[[image:image-20230512164658-2.png ||height="532" width="729"]]176 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512164658-2.png?width=729&height=532&rev=1.1||alt="image-20230512164658-2.png"]] 179 179 180 180 Each HX711 need to be calibrated before used. User need to do below two steps: 181 181 ... ... @@ -216,7 +216,7 @@ 216 216 217 217 Connection is as below. The PIR sensor is a count sensor, it will generate interrupt when people come close or go away. User can replace the PIR sensor with other counting sensors. 218 218 219 -[[image:image-20230512181814-9.png ||height="543" width="697"]]217 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512181814-9.png?width=697&height=543&rev=1.1||alt="image-20230512181814-9.png"]] 220 220 221 221 (% style="color:red" %)**Note:** **LoRaWAN wireless transmission will infect the PIR sensor. Which cause the counting value increase +1 for every uplink. User can change PIR sensor or put sensor away of the SN50_v3 to avoid this happen.** 222 222 ... ... @@ -249,7 +249,7 @@ 249 249 Digital Interrupt1(PA8) 250 250 )))|(% style="width:186px" %)Digital Interrupt2(PA4)|(% style="width:197px" %)Digital Interrupt3(PB15)|(% style="width:100px" %)Reserved 251 251 252 -[[image:image-20230513111203-7.png ||height="324" width="975"]]250 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513111203-7.png?width=975&height=324&rev=1.1||alt="image-20230513111203-7.png"]] 253 253 254 254 ==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 255 255 ... ... @@ -270,7 +270,7 @@ 270 270 ADC3(PA8) 271 271 ))) 272 272 273 -[[image:image-20230513111231-8.png ||height="335" width="900"]]271 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513111231-8.png?width=900&height=335&rev=1.1||alt="image-20230513111231-8.png"]] 274 274 275 275 ==== 2.3.2.9 MOD~=9 (3DS18B20+ two Interrupt count mode) ==== 276 276 ... ... @@ -296,7 +296,7 @@ 296 296 Count2(PA4) 297 297 ))) 298 298 299 -[[image:image-20230513111255-9.png ||height="341" width="899"]]297 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513111255-9.png?width=899&height=341&rev=1.1||alt="image-20230513111255-9.png"]] 300 300 301 301 (% style="color:blue" %)**The newly added AT command is issued correspondingly:** 302 302 ... ... @@ -325,7 +325,7 @@ 325 325 326 326 ===== 2.3.2.10.a Uplink, PWM input capture ===== 327 327 328 -[[image:image-20230817172209-2.png ||height="439" width="683"]]326 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 329 329 330 330 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %) 331 331 |(% style="background-color:#4f81bd; color:white; width:50px" %)**Size(bytes)**|(% style="background-color:#4f81bd; color:white; width:20px" %)**2**|(% style="background-color:#4f81bd; color:white; width:100px" %)**2**|(% style="background-color:#4f81bd; color:white; width:50px" %)**2**|(% style="background-color:#4f81bd; color:white; width:135px" %)**1**|(% style="background-color:#4f81bd; color:white; width:70px" %)**2**|(% style="background-color:#4f81bd; color:white; width:90px" %)**2** ... ... @@ -342,7 +342,7 @@ 342 342 Duration of high level 343 343 ))) 344 344 345 -[[image:image-20230817170702-1.png ||height="161" width="1044"]]343 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817170702-1.png?width=1044&height=161&rev=1.1||alt="image-20230817170702-1.png"]] 346 346 347 347 When the device detects the following PWM signal ,decoder will converts the pulse period and high-level duration to frequency and duty cycle. 348 348 ... ... @@ -360,12 +360,13 @@ 360 360 361 361 Duty cycle= Duration of high level/ Pulse period*100 ~(%). 362 362 363 -[[image:image-20230818092200-1.png ||height="344" width="627"]]361 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230818092200-1.png?width=627&height=344&rev=1.1||alt="image-20230818092200-1.png"]] 364 364 365 365 ===== 2.3.2.10.b Uplink, PWM output ===== 366 366 367 -[[image:image-20230817172209-2.png ||height="439" width="683"]]365 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 368 368 367 + 369 369 (% style="background-attachment:initial; background-clip:initial; background-image:initial; background-origin:initial; background-position:initial; background-repeat:initial; background-size:initial; color:blue; font-family:Arial,sans-serif" %)**AT+PWMOUT=a,b,c** 370 370 371 371 a is the time delay of the output, the unit is ms. ... ... @@ -388,11 +388,11 @@ 388 388 The oscilloscope displays as follows: 389 389 390 390 391 -[[image:image-20231 213102404-1.jpeg||height="688" width="821"]]390 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817172209-2.png?width=683&height=439&rev=1.1||alt="image-20230817172209-2.png"]] 392 392 393 393 ===== 2.3.2.10.c Downlink, PWM output ===== 394 394 395 -[[image:image-20230817173800-3.png ||height="412" width="685"]]394 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817173800-3.png?width=685&height=412&rev=1.1||alt="image-20230817173800-3.png"]] 396 396 397 397 Downlink: (% style="color:#037691" %)**0B xx xx xx yy zz zz** 398 398 ... ... @@ -407,7 +407,7 @@ 407 407 408 408 The oscilloscope displays as follows: 409 409 410 -[[image:image-20230817173858-5.png ||height="634" width="843"]]409 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817173858-5.png?width=843&height=634&rev=1.1||alt="image-20230817173858-5.png"]] 411 411 412 412 ==== 2.3.2.11 MOD~=11 (TEMP117) ==== 413 413 ... ... @@ -431,11 +431,11 @@ 431 431 (0x0000) 432 432 ))) 433 433 434 -[[image:image-20240717113113-1.png ||height="352" width="793"]]433 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717113113-1.png?width=793&height=352&rev=1.1||alt="image-20240717113113-1.png"]] 435 435 436 436 Connection: 437 437 438 -[[image:image-20240717141528-2.jpeg ||height="430" width="654"]]437 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717141528-2.jpeg?width=654&height=430&rev=1.1||alt="image-20240717141528-2.jpeg"]] 439 439 440 440 ==== 2.3.2.12 MOD~=12 (Count+SHT31) ==== 441 441 ... ... @@ -453,11 +453,11 @@ 453 453 Count(PA8) 454 454 ))) 455 455 456 -[[image:image-20240717150948-5.png ||height="389" width="979"]]455 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717150948-5.png?width=979&height=389&rev=1.1||alt="image-20240717150948-5.png"]] 457 457 458 458 Wiring example: 459 459 460 -[[image:image-20240717152224-6.jpeg ||height="359" width="680"]]459 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20240717152224-6.jpeg?width=680&height=359&rev=1.1||alt="image-20240717152224-6.jpeg"]] 461 461 462 462 === 2.3.3 Decode payload === 463 463 ... ... @@ -490,7 +490,7 @@ 490 490 491 491 (% style="color:blue" %)**Connection:** 492 492 493 -[[image:image-20230512180718-8.png ||height="538" width="647"]]492 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512180718-8.png?width=647&height=538&rev=1.1||alt="image-20230512180718-8.png"]] 494 494 495 495 (% style="color:blue" %)**Example**: 496 496 ... ... @@ -533,7 +533,7 @@ 533 533 The position of PA5 on the hardware after **LSN50 v3.3** is changed to the position shown in the figure below, and the collected voltage becomes one-sixth of the original. 534 534 535 535 536 -[[image:image-20230811113449-1.png ||height="370" width="608"]]535 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230811113449-1.png?width=608&height=370&rev=1.1||alt="image-20230811113449-1.png"]] 537 537 538 538 ==== 2.3.3.5 Digital Interrupt ==== 539 539 ... ... @@ -541,7 +541,7 @@ 541 541 542 542 (% style="color:blue" %)** Interrupt connection method:** 543 543 544 -[[image:image-20230513105351-5.png ||height="147" width="485"]]543 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230513105351-5.png?width=485&height=147&rev=1.1||alt="image-20230513105351-5.png"]] 545 545 546 546 (% style="color:blue" %)**Example to use with door sensor :** 547 547 ... ... @@ -600,7 +600,7 @@ 600 600 601 601 Below is the connection to SHT20/ SHT31. The connection is as below: 602 602 603 -[[image:image-20230610170152-2.png ||height="501" width="846"]]602 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230610170152-2.png?width=846&height=501&rev=1.1||alt="image-20230610170152-2.png"]] 604 604 605 605 The device will be able to get the I2C sensor data now and upload to IoT Server. 606 606 ... ... @@ -634,7 +634,7 @@ 634 634 635 635 The picture below shows the connection: 636 636 637 -[[image:image-20230512173903-6.png ||height="596" width="715"]]636 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512173903-6.png?width=715&height=596&rev=1.1||alt="image-20230512173903-6.png"]] 638 638 639 639 Connect to the SN50v3-LB/LS and run (% style="color:blue" %)**AT+MOD=2**(%%) to switch to ultrasonic mode (ULT). 640 640 ... ... @@ -669,8 +669,9 @@ 669 669 670 670 671 671 MOD=1 support this sensor. The sensor value is in the 8^^th^^ and 9^^th^^ bytes. 672 -[[image:image-20230512172447-4.png||height="416" width="712"]] 673 673 672 +[[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230512172447-4.png?width=712&height=416&rev=1.1||alt="image-20230512172447-4.png"]] 673 + 674 674 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220628110012-12.png?rev=1.1||alt="image-20220628110012-12.png" height="361" width="953"]] 675 675 676 676 ==== 2.3.3.12 PWM MOD ==== ... ... @@ -682,7 +682,7 @@ 682 682 If the PWM pin connected to the SDA pin cannot maintain a high level when it is not working, you need to remove the resistor R2 or replace it with a resistor with a larger resistance, otherwise a sleep current of about 360uA will be generated. The position of the resistor is shown in the figure below: 683 683 ))) 684 684 685 - [[image:image-20230817183249-3.png ||height="320" width="417"]]685 + [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/SN50v3-LB/WebHome/image-20230817183249-3.png?width=417&height=320&rev=1.1||alt="image-20230817183249-3.png"]] 686 686 687 687 * ((( 688 688 The signal captured by the input should preferably be processed by hardware filtering and then connected in. The software processing method is to capture four values, discard the first captured value, and then take the middle value of the second, third, and fourth captured values. ... ... @@ -743,4 +743,3 @@ 743 743 744 744 745 745 746 -