{"product_id":"rs485-sonar-with-weatherproof-transducer-temp-compensat","title":"RS485 Sonar with Weatherproof Transducer \u0026amp; Temp. Compensated ","description":"\u003cdiv style=\"background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n \u003cp align=\"center\"\u003e\u003cb\u003e\u003cfont color=\"#ff0000\"\u003eNote - This sonar has a waterproof transducer, not an underwater transducer. It is designed for operation in air.\u003c\/font\u003e\u003c\/b\u003e \u003c\/p\u003e\n\n\u003ctable width=\"431\" bgcolor=\"#00ffff\" border=\"0\" cellspacing=\"0\" style=\"border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"3\" width=\"407\" bgcolor=\"#ffffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e \u003cb\u003eSpecification\u003c\/b\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Voltage \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 12vdc (8vdc - 14vdc) \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Current \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 10mA \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Range \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 60cm - 5meters \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Temperature Compensation \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e -30 to +50 centigrade \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Size \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 40.5mm x 40.5mm (1.6\" x 1.6\") \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Mounting \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 30.5mm x 30.5mm (1.2\" x 1.2\") \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Transducer \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 25mm dia. centrally mounted.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e \u003cfont size=\"3\"\u003e\u003cb\u003eOverview\u003cbr\u003e\u003c\/b\u003e\u003c\/font\u003e \nThe SRF485WPR is a water resistant single transducer ultrasonic ranger. The SRF485WPR uses the RS485 standard for communications, for up to 127 modules on each RS485 bus. The SRF485WPR features an on-board 5v power regulator which can be supplied from 8vdc to 14vdc. Both power and RS485 signals are supplied to the module via a 10pin IDC connector, making cabling a large number of modules very easy. The Range of the SRF485WPR is 60cm to 5meters.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eRS485 Communication\u003c\/b\u003e\u003cbr\u003e\n The SRF485WPR modules are connected using the RS485 bus. Up to 128 transceivers can be connected to the same bus, so you can have up to 127 SRF485WPR modules plus the controller.\u003cbr\u003e\n Serial data is fixed at 38400 baud 1 start, 2 stop and no parity bits. Control of the SRF485WPR's is by sending frames of data to the module and then listening for the response. Each SRF485WPR has a unique 24-bit address which we program in during manufacture. The data frame you send to the SRF485WPR is: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command\u003c\/td\u003e \n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Break - is defined as a continuous low in excess of 22 bit periods, followed by a high of 2 bit periods. Each bit is 26uS at 38400 baud, so 22 * ​​26uS = 572uS, it's ok to be longer.\u003cbr\u003e\n Command - is one of a number of commands that the SRF485WPR will respond to. See below for details.\u003cbr\u003e\n AddressH,M,L - is the 24-bit address of the module you wish to communicate with.\u003cbr\u003e\n Data - Is the data you wish to send to the module, zero (0x00) if nothing is required by the command.\u003cbr\u003e\n Chksum - is the 1's compliment (bitwise negation) of the sum of all the previous bytes (not counting the break).\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The module will respond with a variable number of bytes, 0 to 4 depending on the command, but the transmit frame is always the same, a break followed by 6 bytes. See Commands section below for details.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eConnections\u003cbr\u003e\u003c\/b\u003e \nThe connections to the SRF485WPR are shown below. There are 4 pins for the 12vdc supply, these are connected together on the PCB. The two pins in the middle are the RS485 signals, + is nearest the edge of the PCB and - is on the inside. The last 4 pins are 0v Ground and are connected together on the PCB. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/srf485wp1.png\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e\n To send a command to the SRF485WPR, you need to send a data frame as described above. There are two commands to initiate a ranging (80 and 81), to produce the result in inches, or centimeters. These two commands don't Transmit the result back to your controller. You should wait 70mS and then use command 94 or 105 to get the result of the ranging. Another set of two commands (83 and 84) do the same, but also transmits the temperature compensated result of the ranging back to your controller as soon as it is available.\u003cbr\u003e\n Command 93 is used to get the SRF485WPR version. This command will return 4 bytes:\u003cbr\u003e\n Byte1 is the module type, 0x03 for the SRF485WPR.\u003cbr\u003e \nByte2 is the Hardware Version, 0x01 for the current PCB.\u003cbr\u003e\n Byte3 is the Software Version, currently 0x01.\u003cbr\u003e\n Byte4 is the Modules Group number, this will be in the range 0x00 to 0x7F (0-127).\u003cbr\u003e\n Command 94 returns two bytes (high byte first) from the most recent ranging. Put them together to make a 16-bit result. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"500\" bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" width=\"161\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Bytes Returned \u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"731\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Action \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Decimal \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Hex \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 80 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x50 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in inches \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 81 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in centimeters \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 83 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x53 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in inches, automatically Tx range back to controller as soon as ranging is complete. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 84 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x54 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in centimeters, automatically Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 93 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x5D \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 4 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Version - sends 4 bytes back to the controller \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 94 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x5E \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Uncompensated Range, returns two bytes (high byte first) from the most recent ranging. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 101 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x65 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Set Search Mode - Used to search for SRF485WPR's on the bus \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 102 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x66 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 or 1 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Less Than - Used to search for SRF485WPR's on the bus \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 103 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x67 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Set Group - Sets the group number (0-127) that this sonar belongs to. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 104 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x68 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Temperature - returns the temperature in degrees centigrade, as a 16bit signed word, high byte first \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 105\u003c\/td\u003e \n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x69 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get temperature compensated range, returns two bytes (high byte first) from the most recent ranging. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Here is an example of sending a ranging command to a SRF485WPR located at address 0189AB. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x89 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAB \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x79\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e The check Sum is calculated as the low byte of ~(0x51+0x01+0x89+0xAB+0x00).\u003cbr\u003e\n 0x51+0x01+0x89+0xAB+0x00 = 0x0186\u003cbr\u003e\n The bitwise not of 0x0186 is 0xFE79\u003cbr\u003e\n We use the low byte of that, 0x79\u003cbr\u003e\n The above command will start the SRF485WPR at 0x0189AB ranging in centimeters. After 70mS the result will be available. You should then use the GET RANGE command (0x5E) to retrieve the result.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eAddressing\u003c\/b\u003e\u003cbr\u003e \nEach SRF485WPR has a unique 24-bit address programmed into it during manufacture. This address can be found by doing a search, see below. There are a number of addresses that selected commands will respond to. These are:\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eIts own unique address\u003c\/i\u003e\u003c\/b\u003e , an SRF485WPR will respond to most commands to its own address.\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eAddress 0x000000\u003c\/i\u003e\u003c\/b\u003e , used where you need all SRF485WPR's to respond to a command, such as start ranging, or setting search mode.\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eAddress 0x000001\u003c\/i\u003e\u003c\/b\u003e , used where you need all SRF485WPR's belonging to a specified group to respond to a command, such as start ranging,\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eEvery Address\u003c\/i\u003e\u003c\/b\u003e , only the LESS_THAN command will respond to this, and only if its internal address is less than the one you send.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eGroups\u003c\/b\u003e\u003cbr\u003e\n You can ignore the groups feature if you do not require it.\u003cbr\u003e \nEach SRF485WPR sonar can belong to a \"group\". The purpose is to allow a selected range (or group) of SRF485WPR's to all start ranging at the same time. It is similar to sending a ranging command to address zero, which causes all SRF485WPR's to start ranging. A potential problem with this is if the SRF485WPR's are too close together, they may interfere with each other. By arranging alternate SRF485WPR's to be in a different group, you can have, say, units 1,3,5,7 etc ranging, and next time units 2,4,6,8 ranging.\u003cbr\u003e\n Even if your SRF485WPR's are not close enough to interfere, groups have the advantage of allowing you to do the ranging on one group, whilst getting the ranges from the previous group, which makes more effective use of the busses bandwidth. To set the group number, send the SET_GROUP command (0x67) to the SRF485WPR's actual address. The group number is stored in EEPROM, and only has to be sent once. This example sets the group number of the sonar at address 0x0189AB to 0x01. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n             \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x67 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x89 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAB \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x62\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e To start all SRF485WPR's in group 0x01 ranging, send your chosen ranging command to address 0x000001 with the group number in the data byte, like this: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e The default group number is 0x00, so I would recommend that you avoid using that one in your application.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eSearching the RS485 bus for Sonar's\u003c\/b\u003e\u003cbr\u003e \nThe SET_SEARCH command (0x65) is used to place all SRF485WPR's on the bus into a search mode, and must be used at address zero (0x000000) to do that. Only SRF485WPR's that are in search mode will respond to the LESS_THAN command. The following will place all SRF485WPR's into \"search mode\". \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x65 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x9A\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n \u003cp\u003eThe LESS THAN command is used to search for and find the addresses of all SRF485WPR's on the bus. Every SRF485WPR whose unique internal address is less than the address supplied with the command will respond by sending back a single byte (0x00). They do this all at the same time, so you will just receive a single byte. Those SRF485WPR's whose address is equal to, or greater than the supplied address will not respond. For example if you send this command frame: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x66 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x80 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x19\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n \u003cp\u003eThen all SRF485WPR's whose internal address is in the range 0x000000 to 0x7FFFFF will send back the response byte. The value of the response byte is 0x00, but that is irrelevant. It is the presence or absence of a response that is important. The response, if there is one, will be immediate so if you have not received anything after 500uS, then you're not going to. Make sure you time out in your receive routine.\u003cbr\u003e\n So how do you use this to find the addresses of all SRF485WPR's on the bus?\u003cbr\u003e\n First, the SET_SEARCH command must be sent to address 0x000000 so that all SRF485WPR's are placed into search mode.\u003cfont face=\"Arial\" size=\"2\"\u003e\u003cbr\u003e\n\u003c\/font\u003e This is where it gets a little harder to follow:\u003cbr\u003e \nSend the LESS_THAN command with address 0x800000. If you get a response then there are one or more SRF485WPR's whose address is between 0x000000 and 0x7FFFFF. Now you can narrow it down further by sending the LESS_THAN command with address 0x400000. If you get a response then you know there are one or more SRF485WPR's between addresses 0x000000 and 0x3FFFFF. If you didn't get a response then the address would be between 0x400000 and 0x7FFFFF. If there was a response, do it again with address 0x200000. If not then address 0x600000. This is similar to the way an Analog to Digital converter works, by successive approximation. Using this technique any address can be found in 24 steps. The SRF485WPR found will be the one with the lowest address. Once found you should read the version of that SRF485WPR using the GET_VER command. This will reset the search mode for that SRF485WPR, so it will take no further part in the search process.\u003cbr\u003e\n Now you can repeat the process to find the next SRF485WPR, and so on...\u003c\/p\u003e\n\n \u003cp\u003eIt's a lot harder to say than it is to do, the code is actually quite simple. Here is the core routine to do the job, written in c. It assumes the SET_SEARCH command has already been sent. \u003c\/p\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100%\" bgcolor=\"#00ff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Fixedsys\"\u003elong Find_SRF485WPR(void)\u003cbr\u003e\n {\u003cbr\u003e\n long Walk = 0x800000;               \/\/ used as a bit walker to calculate next address to search\u003cbr\u003e\n long Addr = 0x800000;               \/\/ start by looking for 0-7fffff range\u003cbr\u003e\n char x;\u003cbr\u003e\n\u003cbr\u003e\n do {\u003cbr\u003e\n SendFrame(LESS_THAN, Addr, 0); \/\/ All SRF485WPR's whose address is less than Addr, will respond\u003cbr\u003e\n x = serin485();               \/\/ this times out after 500uS and returns 0xFF\u003cbr\u003e\n if(x==0) Addr ^= Walk;        \/\/ Must be greater or equal to Walk, so merge\u003cbr\u003e\n Walk \u0026gt;\u0026gt;= 1;                   \/\/ shift the bit walker\u003cbr\u003e\u003c\/font\u003e \nAddr |= Walk;                 \/\/ and generate next test address\u003cbr\u003e\n }\u003cbr\u003e\n while(Walk);                     \/\/ repeat until the full address of SRF485WPR is found\u003cbr\u003e\n\u003cbr\u003e\n SendFrame(GET_VER, Addr, 0);     \/\/ Get the version of this SRF485WPR to reset its search mode.\u003cbr\u003e\n serin485();                      \/\/ module id - just get and discard these.\u003cbr\u003e\n serin485();                      \/\/ hardware version\u003cbr\u003e\n serin485();                      \/\/ software version\u003cbr\u003e\n serin485();                      \/\/ group number\u003cbr\u003e\n return Addr;                     \/\/ Return the SRF485WPR's address, it will be 0xFFFFFF if none found\u003cbr\u003e\n }\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n \u003cp\u003eWe also have an example for the PC written in VC++ V6 \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf48.zip\"\u003ehere\u003c\/a\u003e .\u003c\/p\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867252057,"sku":"SRF485WPR\/A","price":38.48,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035933529,"sku":"SRF485WPR","price":38.48,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf485wpr_5.jpg?v=1695766324","url":"https:\/\/xernuqvalzi.pro\/en\/products\/rs485-sonar-with-weatherproof-transducer-temp-compensat","provider":"Robot Italy","version":"1.0","type":"link"}