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 10.1
edited by Karry Zhuang
on 2024/09/24 09:08
on 2024/09/24 09:08
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. karry1 +XWiki.Xiaoling - Content
-
... ... @@ -159,6 +159,7 @@ 159 159 Humidity(SHT20 or SHT31) 160 160 )))|(% style="width:53px" %)Bat 161 161 162 + 162 162 === 2.1.4 MOD~=4 (3 x DS18B20) === 163 163 164 164 ... ... @@ -729,6 +729,7 @@ 729 729 b) If the output duration is more than 30 seconds, better to use external power source. 730 730 ))) 731 731 733 + 732 732 === 2.2.13 Working MOD === 733 733 734 734 ... ... @@ -753,96 +753,22 @@ 753 753 754 754 = 3. PS-LB-NA connects to third-party sensors = 755 755 756 -PS-LB-NA might connect to different kind of probes, 4~~20mA represent the full scale of the measuring range. So a 12mA output means different meaning for different probe. 757 757 758 758 759 -**For example.** 760 760 761 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:500px" %) 762 -|(% style="background-color:#4f81bd; color:white; width:150px" %)**Probe Type**|(% style="background-color:#4f81bd; color:white; width:150px" %)**4~~20mA scale for this probe**|(% style="background-color:#4f81bd; color:white; width:200px" %)**Example: 12mA actually meaning for this probe** 763 -|(% style="background-color:#f2f2f2; width:206px" %)PH Combination Electrodes|(% style="background-color:#f2f2f2; width:222px" %)0 ~~ 14 pH|(% style="background-color:#f2f2f2; width:356px" %)PH Value: 7 764 -|(% style="background-color:#f2f2f2; width:206px" %)Water Pressure Sensor|(% style="background-color:#f2f2f2; width:222px" %)0~~5 meters|(% style="background-color:#f2f2f2; width:356px" %)2.5 meters pure water 765 -|(% style="background-color:#f2f2f2; width:206px" %)Pressure transmitter probe|(% style="background-color:#f2f2f2; width:222px" %)0~~1MPa|(% style="background-color:#f2f2f2; width:356px" %)0.5MPa air / gas or water pressure 766 766 767 -User can set different probe model for above probes. So IoT server is able to se identical how it should parse the 4~~20mA or 0~~30v sensor value and get the correct value. 768 768 769 769 770 -== 3.1 0~~20mA value (IDC_IN) == 771 771 772 772 773 -(% style="color:#037691" %)**Payload Example**: 774 774 775 -27AE(H) = 10158 (D)/1000 = 10.158mA. 776 776 777 777 778 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/image-20230821150704-1.png?width=609&height=180&rev=1.1||alt="image-20230821150704-1.png"]] 779 779 780 -**Connect to a 2 wire 4~~20mA sensor.** 781 781 782 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/image-20230225154759-1.png?width=741&height=408&rev=1.1||alt="image-20230225154759-1.png"]] 783 783 784 -== 3.2 0~~30V value ( pin VDC_IN) == 785 785 786 786 787 -Measure the voltage value. The range is 0 to 30V. 788 788 789 -(% style="color:#037691" %)**Example**: 790 790 791 -138E(H) = 5006(D)/1000= 5.006V 792 - 793 - 794 -== 3.3 IN1&IN2&INT pin == 795 - 796 - 797 -IN1 and IN2 are used as digital input pins. 798 - 799 -(% style="color:#037691" %)**Example**: 800 - 801 -09 (H): (0x09&0x08)>>3=1 IN1 pin is high level. 802 - 803 -09 (H): (0x09&0x04)>>2=0 IN2 pin is low level. 804 - 805 - 806 -This data field shows if this packet is generated by (% style="color:blue" %)**Interrupt Pin** (%%)or not. [[Click here>>||anchor="H3.3.2SetInterruptMode"]] for the hardware and software set up. Note: The Internet Pin is a separate pin in the screw terminal. 807 - 808 -(% style="color:#037691" %)**Example:** 809 - 810 -09 (H): (0x09&0x02)>>1=1 The level of the interrupt pin. 811 - 812 -09 (H): 0x09&0x01=1 0x00: Normal uplink packet. 813 - 814 -0x01: Interrupt Uplink Packet. 815 - 816 - 817 -== 3.4 Sensor value, FPORT~=7 == 818 - 819 - 820 -(% border="1" cellspacing="3" style="background-color:#f2f2f2; width:504px" %) 821 -|(% style="background-color:#4f81bd; color:white; width:94px" %)((( 822 -**Size(bytes)** 823 -)))|(% style="background-color:#4f81bd; color:white; width:43px" %)**2**|(% style="background-color:#4f81bd; color:white; width:367px" %)**n** 824 -|(% style="background-color:#f2f2f2; width:94px" %)Value|(% style="background-color:#f2f2f2; width:43px" %)[[BAT>>||anchor="H2.3.3BatteryInfo"]]|(% style="background-color:#f2f2f2; width:367px" %)((( 825 -Voltage value, each 2 bytes is a set of voltage values. 826 -))) 827 - 828 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/image-20230220171300-1.png?width=863&height=207&rev=1.1||alt="image-20230220171300-1.png"]] 829 - 830 -Multiple sets of data collected are displayed in this form: 831 - 832 -[voltage value1], [voltage value2], [voltage value3],…[voltage value n/2] 833 - 834 - 835 -== 3.5 Decode payload in The Things Network == 836 - 837 - 838 -While using TTN network, you can add the payload format to decode the payload. 839 - 840 - 841 -[[image:https://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/PS-LB-NA--LoRaWAN_Analog_Sensor_User_Manual/WebHome/1675144839454-913.png?rev=1.1||alt="1675144839454-913.png"]] 842 - 843 - 844 -PS-LB-NA TTN Payload Decoder: [[https:~~/~~/github.com/dragino/dragino-end-node-decode>>url:https://github.com/dragino/dragino-end-node-decoder]] 845 - 846 - 847 - 848 848