SR50A Sonic Ranging Sensor Revision: 8/07 C o p y r i g h t © 2 0 0 7 C a m p b e l l S c i e n t i f i c , I n c .
Warranty and Assistance The SR50A SONIC RANGING SENSOR is warranted by CAMPBELL SCIENTIFIC, INC. to be free from defects in materials and workmanship under normal use and service for twelve (12) months from date of shipment unless specified otherwise. Batteries have no warranty. CAMPBELL SCIENTIFIC, INC.'s obligation under this warranty is limited to repairing or replacing (at CAMPBELL SCIENTIFIC, INC.'s option) defective products.
SR50A Table of Contents PDF viewers note: These page numbers refer to the printed version of this document. Use the Adobe Acrobat® bookmarks tab for links to specific sections. 1. Specifications ..............................................................1 2. Introduction..................................................................2 3. Operation......................................................................2 3.1 Quality Numbers..................................................................
SR50A Table of Contents 5. Maintenance ...............................................................19 6. Disassembly/Assembly Procedures ........................20 7. Jumper Settings.........................................................23 8. SR50A Firmware Updates .........................................24 9. Data Interpretation .....................................................25 10. Datalogger Program Examples...............................26 10.1 10.2 10.3 10.4 10.5 10.
Warning! Always disconnect the sensor before opening. This Device complies with Part 15 of the FCC Rules. Operation is subject to the following two conditions: (1) This device may not cause harmful interference, and (2) This device must accept any interference received, including interference that may cause undesirable operation.
SR50A Sonic Ranging Sensor 1. Specifications Power Requirements: 9-18 VOLTS D.C. Power Consumption: Quiescent SDI-12 Mode < 1.0mA RS-232/RS485 Mode < 2.25mANote1 Peak Measurement Current 250 mA typical Measurement Time: Less than 1.0 second Selectable Outputs: SDI-12 (version 1.3) RS-232 (1200 to 38400 BAUD) RS-485 (1200 to 38400 BAUD) Measurement Range: 0.5 to 10 meters Accuracy: ±1 cm or 0.
SR50A Sonic Ranging Sensor 2. Introduction The SR50A Sonic Ranging Sensor measures the distance from the sensor to a target. The most common applications are measuring snow depths and water levels. The sensor is based on a 50 kHz (Ultrasonic) electrostatic transducer. The SR50A determines the distance to a target by sending out ultrasonic pulses and listening for the returning echoes that are reflected from the target.
SR50A Sonic Ranging Sensor 3.1 Quality Numbers Measurement quality numbers are also available with output data; these give an indication of the measurement certainty. The quality numbers have no units of measure but can vary from 162 to 600. When the Quality numbers are lower than 210, the measurements are considered to be of good quality. A value of zero however, indicates a reading was not obtained. Numbers greater than 300 indicate that there is a degree of uncertainty in the measurement.
SR50A Sonic Ranging Sensor 3.3 SDI-12 Operation SDI-12 is a Serial Digital Interface standard that is used for communication between data recorders and sensors. Most Campbell Scientific dataloggers are SDI-12 compatible. 3.3.1 SDI-12 Wiring It is recommended to power down your system before wiring the SR50A. Never operate the sensor with the shield wire disconnected. The shield wire plays an important role in noise emissions and susceptibility as well as transient protection.
SR50A Sonic Ranging Sensor The different commands are entered as options in the SDI-12 recorder instruction. The major difference between the various measurement commands are the data values that are returned. The user has the option to output the distance to target in either meters or feet, or to include the measurement quality numbers. If the SR50A is unable to detect a proper echo for a measurement, the sensor will return a zero value for the distance to target value.
SR50A Sonic Ranging Sensor SDI-12 Command Command Function/Description Values Returned ?! Address Query a aAb! Change Address command b is the new address aXM;D.DDD! Extended command Set the distance to ground parameter in the SR50A. The distance must be in meters with no more than 3 decimal places. A Address is returned aXI;DDD.DD! Extended command Set the distance to ground parameter in the SR50A. The distance must be in Inches with no more than 2 decimal places.
SR50A Sonic Ranging Sensor 3.5 RS-485 Operation The SR50A sensor comes from the factory with the internal jumpers set to SDI-12 mode. To use the SR50A in the RS-485 mode of operation the jumpers will need to be set as outlined in Section 7. The RS-485 on the SR50A supports half-duplex communications. This means that the SR50A can receive and transmit but both cannot occur simultaneously. Normally there is a master-slave relationship in most systems to avoid collisions between transmissions.
SR50A Sonic Ranging Sensor FIGURE 1. SR50A to MD485 Wiring 3.6 RS-232 and RS-485 Settings Once the jumpers are set for RS-232 operation a terminal program such as Hyperterminal can be used to change factory default or existing settings. The following settings apply to Hyperterminal or any other program that is used for communications. BAUD Rate Data Bits Parity Stop Bits Flow Control NOTE Current SR50A SettingNote 8 None 1 None The factory default BAUD rate is 9600 BAUD.
SR50A Sonic Ranging Sensor The Initial menu will look as follows: The following is a summary of settings that can be changed on the SR50A RS232 or RS-485 operating modes.
SR50A Sonic Ranging Sensor Setting Description Options Default Value Quality Output On Off Off Temperature Output On Off Off Output valid only for SR50AT Diagnostics Output On Off Off 3.6.1 BAUD Rate Setting The factory Default BAUD Rate Setting of 9600 BAUD is suitable for most applications. Lower BAUD rates (1200 or 4800) may improve communication reliability or allow for longer cable lengths. Higher BAUD rates (19200 or 38400) may be used where faster communications are required.
SR50A Sonic Ranging Sensor 3.6.3.2 Auto Measure Auto Output Mode In this mode the SR50A will automatically exit its low power mode, initiate a measurement and output the data. The frequency by which the SR50A will perform this is set by adjusting the Measurement Interval Units and the Measurement Interval Value parameters. • No command is required from an external device to obtain a measurement. • The data recorder or equipment simply needs to read the incoming serial data from the SR50A. 3.6.3.
SR50A Sonic Ranging Sensor Seconds Minutes Hours Once a unit type is selected the number of units for the interval is set by changing the Measurement Interval Value parameter. A 60 second interval can be set by setting the units to seconds and the Measurement Interval Value to 60. Alternately, the Measurement Interval Unit could be set to Minutes and the Value could be set to 1. The Value setting can only range from 1 to 255. 3.6.
SR50A Sonic Ranging Sensor 3.7.2 Poll Command The poll command is used to obtain the sensor’s output values. The poll command consists of the upper or lower case letter “p” followed by the SR50A address (default 33). The command must also terminate with a carriage return character (Enter for hyperterminal). “pAA” – where AA is a two character address and set from the factory to 33 “p33” – Poll command with factory address of 33 3.7.
SR50A Sonic Ranging Sensor aa These two characters are the serial address of the sensor. The default is 33. Note this is two ASCII characters of &h33 in Hexidecimal or 51 in decimal. D.DDD This is the distance to target reading. The units depend on the Output Units setting. The number of digits and decimal places also depend on the output unit that is selected. The decimal digits are as follows: Meters: D.DDD, 0.000 for no valid reading DD.DDD possible for values past 9.999 Meters Centimeters: DDD.
SR50A Sonic Ranging Sensor The Least significant byte is used resulting in a 2 character checksum. = &h02 (Hexadecimal) = &h0D (Hexadecimal) = &h0A (Hexadecimal) = &h03 (Hexadecimal) The following is a sample packet with proper checksum: 33;1838;194;11011;2C SUM = 02+33+33+3B+31+38+33+38+3B+31+39+34+3B+31+31+30+31+31 +3B+0D+0A+03 =0x3D4 Use Last byte only (D4) and calculate two’s complement = 100 – D4 = 2C Carriage return character.
SR50A Sonic Ranging Sensor The least significant byte is used resulting in a 2 character checksum. = &h02 (Hexadecimal) = &h0D (Hexadecimal) = &h0A (Hexadecimal) = &h03 (Hexadecimal) The following is a sample packet with proper checksum: 33;1838;194;11011;2C SUM = 02+33+33+3B+31+38+33+38+3B+31+39+34+3B+31+31+30+31+31 +3B+0D+0A+03 =0x3D4 Use Last byte only (D4) and calculate two’s complement = 100 – D4 = 2C Carriage return character.
SR50A Sonic Ranging Sensor FIGURE 2. Beam Angle Clearance 4.2 Mounting Height Any target to the SR50A should be at least 50 cm or more from the face of the transducer. An attempt should also be made to not mount the sensor too far from the target surface. The further the sensor is from the target the more the absolute error increases. If your application is measuring snow depth in an area that will likely not exceed 1.25 meters of snow then a good height to mount the sensor would be 1.75 to 2.0 meters.
SR50A Sonic Ranging Sensor Figures 4 and 5 show a couple of angles of the SR50A mounted to a crossarm. A u-bolt attaches the bracket to the crossarm and two screws attach the SR50A to the bracket. Another mounting option shown in FIGURE 6 utilizes a mounting stem (part number 19484) and a NU-RAIL. The mounting stem is sized to fit a 1” NURAIL (#1049). This mounting method was used for the SR50 (predecessor to the SR50A ) and the stem can be used to fit the SR50A into existing SR50 mounts. FIGURE 4.
SR50A Sonic Ranging Sensor FIGURE 6. SR50A - Mounted using Nurail and C2151 Mounting Stem SR50A with 6-plate gill radiation shield – the picture below shows the SR50A stem attachment 5. Maintenance The SR50A’s electrostatic transducer requires equal pressure on both sides. Vent holes in the transducer housing are used to equalize pressure. Desiccant is placed inside the transducer housing to prevent the possibility of condensing humidity.
SR50A Sonic Ranging Sensor It is recommended that the transducer housing assembly (part number 19486 – Transducer Maintenance Kit) be replaced every 3 years. If the SR50A is used in an environment with high humidity, it is recommended that the transducer housing assembly be replaced every year. 6. Disassembly/Assembly Procedures It is important to follow these instructions to disassemble the SR50A.
SR50A Sonic Ranging Sensor FIGURE 8. Remove 6 Screws from the Transducer Housing FIGURE 9.
SR50A Sonic Ranging Sensor FIGURE 10. Location of Desiccant in Transducer Housing Assembly FIGURE 11.
SR50A Sonic Ranging Sensor FIGURE 12. Remove the 2 Flat Philips Screws to Expose the PCB Carefully reassemble in reverse order. 7. Jumper Settings The following diagram illustrates how the Jumpers are located on the SR50A sensor. FIGURE 13.
SR50A Sonic Ranging Sensor The SR50A can be configured with either SDI-12, RS-232 or RS-485 communications. Shunt jumpers can be located on any of the 3 sets of communication selection headers. All 3 jumpers should be placed only on one group at a time. Never install more than 3 jumpers and never mix the jumpers amongst the SDI-12, RS-232 or RS-485 locations. The other jumper located on the SR50A places the sensor in either the normal operation mode or in the Program update mode.
SR50A Sonic Ranging Sensor • Power can now be applied to the SR50A by connecting the connector and applying power to the sensor. The Green LED should remain on when powered up properly. • Setup Hyperterminal or the communications program that you are using as follows: o BAUD rate: 38400 o Data Bits: 8 o Parity: None o Stop Bits: 1 o Flow control: o 25ms line delay (under ASCII setup) XON/XOFF • From the Hyperterminal menu select Transfer -> Send Text File.
SR50A Sonic Ranging Sensor 10. Datalogger Program Examples In the following datalogger program examples only the CR1000 and the CR10X dataloggers are used. The programming of CR800, CR850 and the CR3000 dataloggers are effectively the same as the CR1000. Also for a CR23X datalogger refer to the CR10X programming examples. 10.1 Programming Example 1 SR50A SDI-12 “M1!” CR10X Datalogger ;{CR10X} ; ;In this example, the SR50A is mounted 2.5 meters above the ground.
SR50A Sonic Ranging Sensor ;Distance to the Snow Surface is obtained by multiplying the temperature correction ;to the Raw Distance value 6: Z=X*Y (P36) 1: 3 X Loc [ Raw_Dist ] 2: 6 Y Loc [ Mult1 ] 3: 7 Z Loc [ DistToSnw ] ;Set the initial distance from the SR50A to the ground in meters: 7: Z=F x 10^n (P30) 1: 2.
SR50A Sonic Ranging Sensor 10.2 Programming Example 2 SR50AT SDI-12 “M3!” CR10X Datalogger ;{CR10X} ; ;In this example, the SR50AT is mounted 2.5 meters above the ground. ; ;The CR10X sends an SDI-12 command to the SR50AT, which outputs the ;temperature compensated distance value (Meters), ;the signal quality value and the temperature. ; ;Three input locations are used to store incoming data.
SR50A Sonic Ranging Sensor ;Store the Signal quality value 8: Sample (P70)^23223 1: 1 Reps 2: 4 Loc [ Sig_Qual ] ;Store the Temperature reading from the SR50AT 9: Sample (P70)^1224 1: 1 Reps 2: 5 Loc [ SR50AT_T ] *Table 2 Program 02: 0.0000 Execution Interval (seconds) *Table 3 Subroutines End Program 10.3 Programming Example 3 SR50A SDI-12 “M1!” CR1000 Datalogger 'CR1000 Series Datalogger 'In this example, the SR50A is mounted 2.5 meters above the ground.
SR50A Sonic Ranging Sensor 'Measure the 107 temperature sensor: Therm107 (Air_Temp,1,1,Vx1,0,250,1.0,0) 'Use Air_Temp to calculate corrected distance: Temp_Corr_Distance=Raw_Dist*(SQR((Air_Temp+273.15)/273.15)) 'Subtract the corrected distance from the initial distance of the SR50A to the ground: Snow_Depth=Initial_Distance-Temp_Corr_Distance 'Call Data Table and Store Data: CallTable (Table1) NextScan EndProg 10.
SR50A Sonic Ranging Sensor 'Define Data Tables DataTable (Test,1,-1) DataInterval (0,60,Sec,10) Minimum (1,batt_volt,FP2,0,False) Sample (1,PTemp,FP2) Sample (1,SR50A_SnowDepth_Meters,IEEE4) Sample (1,SR50A_QualityVal,FP2) Sample (1,SR50A_AirTempC,IEEE4) EndTable 'Main Program BeginProg Scan (60,Sec,0,0) PanelTemp (PTemp,250) Battery (Batt_volt) 'Once installed enter the actual distance from the SR50AT to the Ground with 'no snow present.
SR50A Sonic Ranging Sensor 'Read the Snow depth from the SR50A "M4!" command returns depth with 'quality and temperature SDI12Recorder (SR50AReturnValues,1,0,"M4!",1.0,0) 'Call Output Tables 'Example: CallTable Test NextScan EndProg 10.5 Programming Example 5 SR50A RS-232 Mode CR1000 'CR1000 Series Datalogger 'In this example, the SR50A is mounted 2.5 meters above the ground. 'The SR50A is used in RS-232 mode (internal jumpers are set).
SR50A Sonic Ranging Sensor 'Main Program BeginProg 'Open RS232 port for communications 9600 BAUD is the default: SerialOpen (Com1,9600,0,0,2000) Scan (60,Sec,0,0) 'Measure the SR50A: 'Transmit serial command "p33" SerialOut (Com1,"p33"+chr(13),"",0,0) 'Flush the serial buffer SerialFlush (Com1) 'Recieve serial string from SR50A SerialIn (SR50AData,Com1,200,13,50) SplitStr (ParseVals,SR50AData,"",5,0) 'Measure the 107 temperature sensor: Therm107 (Air_Temp,1,1,Vx1,0,250,1.
SR50A Sonic Ranging Sensor Public ParseVals(6) as FLOAT Alias ParseVals(1)=SerialAddress Alias ParseVals(2)=Dist_To_Snow Alias ParseVals(3)=SignalQuality Alias ParseVals(4)=SR50AT_Temp Alias ParseVals(5)=Diagnostics Alias ParseVals(6)=Chcksum Public Snow_Depth 'Declare the initial distance of the SR50AT from the ground in meters: Const Initial_Distance=2.
This is a blank page.
Campbell Scientific Companies Campbell Scientific, Inc. (CSI) 815 West 1800 North Logan, Utah 84321 UNITED STATES www.campbellsci.com info@campbellsci.com Campbell Scientific Africa Pty. Ltd. (CSAf) PO Box 2450 Somerset West 7129 SOUTH AFRICA www.csafrica.co.za cleroux@csafrica.co.za Campbell Scientific Australia Pty. Ltd. (CSA) PO Box 444 Thuringowa Central QLD 4812 AUSTRALIA www.campbellsci.com.au info@campbellsci.com.au Campbell Scientific do Brazil Ltda.