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 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
To 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
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: 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"]]96 +[[image:image-20230512173758-5.png||height="563" width="712"]] 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: 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"]]102 +[[image:image-20230512173903-6.png||height="596" width="715"]] 103 103 104 104 For the connection to TF-Mini or TF-Luna , MOD2 payload is as below: 105 105 ... ... @@ -120,13 +120,15 @@ 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**[[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"]] 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"]] 124 124 125 125 **Connection to [[TF-Luna>>url:http://en.benewake.com/product/detail/5e1c1fd04d839408076b6255.html]] LiDAR (UART version):** 126 126 127 -(% style="color:red" %)**Need to remove R3 and R4 resistors to get low power,otherwise there will be 400uA standby current** 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"]] 128 128 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"]]131 +==== 2.3.2.3 MOD~=3 (3 ADC + I2C) ==== 130 130 131 131 ==== 2.3.2.3 MOD~=3 (3 ADC + I2C) ==== 132 132 ... ... @@ -169,11 +169,11 @@ 169 169 170 170 [[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"]] 171 171 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"]]174 +[[image:image-20230513134006-1.png||height="559" width="736"]] 173 173 174 174 ==== 2.3.2.5 MOD~=5(Weight Measurement by HX711) ==== 175 175 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"]]178 +[[image:image-20230512164658-2.png||height="532" width="729"]] 177 177 178 178 Each HX711 need to be calibrated before used. User need to do below two steps: 179 179 ... ... @@ -214,7 +214,7 @@ 214 214 215 215 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. 216 216 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"]]219 +[[image:image-20230512181814-9.png||height="543" width="697"]] 218 218 219 219 (% 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.** 220 220 ... ... @@ -247,7 +247,7 @@ 247 247 Digital Interrupt1(PA8) 248 248 )))|(% style="width:186px" %)Digital Interrupt2(PA4)|(% style="width:197px" %)Digital Interrupt3(PB15)|(% style="width:100px" %)Reserved 249 249 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"]]252 +[[image:image-20230513111203-7.png||height="324" width="975"]] 251 251 252 252 ==== 2.3.2.8 MOD~=8 (3ADC+1DS18B20) ==== 253 253 ... ... @@ -268,7 +268,7 @@ 268 268 ADC3(PA8) 269 269 ))) 270 270 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"]]273 +[[image:image-20230513111231-8.png||height="335" width="900"]] 272 272 273 273 ==== 2.3.2.9 MOD~=9 (3DS18B20+ two Interrupt count mode) ==== 274 274 ... ... @@ -294,7 +294,7 @@ 294 294 Count2(PA4) 295 295 ))) 296 296 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"]]299 +[[image:image-20230513111255-9.png||height="341" width="899"]] 298 298 299 299 (% style="color:blue" %)**The newly added AT command is issued correspondingly:** 300 300 ... ... @@ -323,7 +323,7 @@ 323 323 324 324 ===== 2.3.2.10.a Uplink, PWM input capture ===== 325 325 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"]]328 +[[image:image-20230817172209-2.png||height="439" width="683"]] 327 327 328 328 (% border="1" cellspacing="3" style="background-color:#f2f2f2; width:515px" %) 329 329 |(% 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** ... ... @@ -340,7 +340,7 @@ 340 340 Duration of high level 341 341 ))) 342 342 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"]]345 +[[image:image-20230817170702-1.png||height="161" width="1044"]] 344 344 345 345 When the device detects the following PWM signal ,decoder will converts the pulse period and high-level duration to frequency and duty cycle. 346 346 ... ... @@ -358,13 +358,12 @@ 358 358 359 359 Duty cycle= Duration of high level/ Pulse period*100 ~(%). 360 360 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"]]363 +[[image:image-20230818092200-1.png||height="344" width="627"]] 362 362 363 363 ===== 2.3.2.10.b Uplink, PWM output ===== 364 364 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"]]367 +[[image:image-20230817172209-2.png||height="439" width="683"]] 366 366 367 - 368 368 (% 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** 369 369 370 370 a is the time delay of the output, the unit is ms. ... ... @@ -387,11 +387,11 @@ 387 387 The oscilloscope displays as follows: 388 388 389 389 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"]]391 +[[image:image-20231213102404-1.jpeg||height="688" width="821"]] 391 391 392 392 ===== 2.3.2.10.c Downlink, PWM output ===== 393 393 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"]]395 +[[image:image-20230817173800-3.png||height="412" width="685"]] 395 395 396 396 Downlink: (% style="color:#037691" %)**0B xx xx xx yy zz zz** 397 397 ... ... @@ -406,7 +406,7 @@ 406 406 407 407 The oscilloscope displays as follows: 408 408 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"]]410 +[[image:image-20230817173858-5.png||height="634" width="843"]] 410 410 411 411 ==== 2.3.2.11 MOD~=11 (TEMP117) ==== 412 412 ... ... @@ -430,11 +430,11 @@ 430 430 (0x0000) 431 431 ))) 432 432 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"]]434 +[[image:image-20240717113113-1.png||height="352" width="793"]] 434 434 435 435 Connection: 436 436 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"]]438 +[[image:image-20240717141528-2.jpeg||height="430" width="654"]] 438 438 439 439 ==== 2.3.2.12 MOD~=12 (Count+SHT31) ==== 440 440 ... ... @@ -452,11 +452,11 @@ 452 452 Count(PA8) 453 453 ))) 454 454 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"]]456 +[[image:image-20240717150948-5.png||height="389" width="979"]] 456 456 457 457 Wiring example: 458 458 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"]]460 +[[image:image-20240717152224-6.jpeg||height="359" width="680"]] 460 460 461 461 === 2.3.3 Decode payload === 462 462 ... ... @@ -489,7 +489,7 @@ 489 489 490 490 (% style="color:blue" %)**Connection:** 491 491 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"]]493 +[[image:image-20230512180718-8.png||height="538" width="647"]] 493 493 494 494 (% style="color:blue" %)**Example**: 495 495 ... ... @@ -532,7 +532,7 @@ 532 532 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. 533 533 534 534 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"]]536 +[[image:image-20230811113449-1.png||height="370" width="608"]] 536 536 537 537 ==== 2.3.3.5 Digital Interrupt ==== 538 538 ... ... @@ -540,7 +540,7 @@ 540 540 541 541 (% style="color:blue" %)** Interrupt connection method:** 542 542 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"]]544 +[[image:image-20230513105351-5.png||height="147" width="485"]] 544 544 545 545 (% style="color:blue" %)**Example to use with door sensor :** 546 546 ... ... @@ -599,7 +599,7 @@ 599 599 600 600 Below is the connection to SHT20/ SHT31. The connection is as below: 601 601 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"]]603 +[[image:image-20230610170152-2.png||height="501" width="846"]] 603 603 604 604 The device will be able to get the I2C sensor data now and upload to IoT Server. 605 605 ... ... @@ -633,7 +633,7 @@ 633 633 634 634 The picture below shows the connection: 635 635 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"]]637 +[[image:image-20230512173903-6.png||height="596" width="715"]] 637 637 638 638 Connect to the SN50v3-LB/LS and run (% style="color:blue" %)**AT+MOD=2**(%%) to switch to ultrasonic mode (ULT). 639 639 ... ... @@ -668,9 +668,8 @@ 668 668 669 669 670 670 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"]] 671 671 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: 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"]]685 + [[image:image-20230817183249-3.png||height="320" width="417"]] 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,3 +743,4 @@ 743 743 744 744 745 745 746 +