{"title":"Sensors\/Ultrasonic\/Devantech","description":null,"products":[{"product_id":"rs485-sonar-with-weatherproof-transducer-temp-compensat","title":"RS485 Sonar with Weatherproof Transducer \u0026 Temp. Compensat","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\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\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    \u003ctbody\u003e\n        \u003ctr\u003e\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        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eVoltage\u003c\/td\u003e\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            \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; \"\u003e12vdc (8vdc - 14vdc)\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eCurrent\u003c\/td\u003e\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            \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; \"\u003e10mA\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eRange\u003c\/td\u003e\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            \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; \"\u003e60cm - 5meters\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eTemperature Compensation\u003c\/td\u003e\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            \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        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eSize\u003c\/td\u003e\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            \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; \"\u003e40.5mm x 40.5mm (1.6\" x 1.6\")\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eMounting\u003c\/td\u003e\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            \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; \"\u003e30.5mm x 30.5mm (1.2\" x 1.2\")\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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; \"\u003eTransducer\u003c\/td\u003e\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            \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; \"\u003e25mm dia. centrally mounted.\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp align=\"left\"\u003e\u003cfont size=\"3\"\u003e\u003cb\u003eOverview\u003cbr\u003e\n\u003c\/b\u003eThe 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\/font\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eRS485 Communication\u003c\/b\u003e\u003cbr\u003e\nThe 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\nSerial 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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eBreak - 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\nCommand - is one of a number of commands that the SRF485WPR will respond to. See below for details.\u003cbr\u003e\nAddressH,M,L - is the 24-bit address of the module you wish to communicate with.\u003cbr\u003e\nData - Is the data you wish to send to the module, zero (0x00) if nothing is required by the command.\u003cbr\u003e\nChksum - is the 1's compliment (bitwise negation) of the sum of all the previous bytes (not counting the break).\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThe 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\u003cp align=\"left\"\u003e\u003cb\u003eConnections\u003cbr\u003e\n\u003c\/b\u003eThe 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\u003cp align=\"center\"\u003e\u003cimg border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/srf485wp1.png\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e\nTo 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\nCommand 93 is used to get the SRF485WPR version. This command will return 4 bytes:\u003cbr\u003e\nByte1 is the module type, 0x03 for the SRF485WPR.\u003cbr\u003e\nByte2 is the Hardware Version,  0x01 for the current PCB.\u003cbr\u003e\nByte3 is the Software Version, currently 0x01.\u003cbr\u003e\nByte4 is the Modules Group number, this will be in the range 0x00 to 0x7F (0-127).\u003cbr\u003e\nCommand 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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"500\" bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd colspan=\"2\" width=\"161\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd rowspan=\"2\" width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBytes Returned\u003c\/td\u003e\n            \u003ctd rowspan=\"2\" width=\"731\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAction\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eDecimal\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e80\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x50\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eRanging Mode - Result in inches \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e81\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x51\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eRanging Mode - Result in centimeters\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e83\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x53\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eRanging Mode - Result in inches, automatically Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e84\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x54\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eRanging Mode - Result in centimeters, automatically Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e93\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x5D\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e4\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eGet  Version - sends 4 bytes back to the controller\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e94\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x5E\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eGet Uncompensated Range, returns two bytes (high byte first) from the most recent ranging.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e101\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x65\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eSet Search Mode - Used to search for SRF485WPR's on the bus\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e102\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x66\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0 or 1\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eLess Than - Used to search for SRF485WPR's on the bus\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e103\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x67\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eSet Group - Sets the group number (0-127) that this sonar belongs to.\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e104\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x68\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eGet Temperature - returns the temperature in degrees centigrade, as a 16bit signed word, high byte first\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e105\u003c\/td\u003e\n            \u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x69\u003c\/td\u003e\n            \u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eGet temperature compensated range, returns two bytes (high byte first) from the most recent ranging.\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eHere is an example of sending a ranging command to a SRF485WPR located at address 0189AB. \u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x51\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x89\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0xAB\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x79\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp\u003eThe check Sum is calculated as the low byte of  ~(0x51+0x01+0x89+0xAB+0x00).\u003cbr\u003e\n0x51+0x01+0x89+0xAB+0x00 = 0x0186\u003cbr\u003e\nThe bitwise not of 0x0186 is 0xFE79\u003cbr\u003e\nWe use the low byte of that, 0x79\u003cbr\u003e\nThe 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\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\u003cp\u003e\u003cb\u003eGroups\u003c\/b\u003e\u003cbr\u003e\nYou 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\nEven 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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x67\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x89\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0xAB\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x62\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp\u003eTo 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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x51\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0xAC\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp\u003eThe default group number is 0x00, so I would recommend that you avoid using that one in your application.\u003c\/p\u003e\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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x65\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x9A\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\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\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eBreak\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressH\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressM\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eAddressL\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eData\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eCheck Sum\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\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            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x66\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x80\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0x19\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\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\nSo how do you use this to find the addresses of all SRF485WPR's on the bus? \u003cbr\u003e\nFirst, 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\u003eThis 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\nNow you can repeat the process to find the next SRF485WPR, and so on...\u003c\/p\u003e\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\u003ctable border=\"1\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\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 calc 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);\t \/\/ 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\n                  Addr |= 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\/font\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\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\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867252057,"sku":"SRF485WPR\/A","price":38.48,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","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"},{"product_id":"rs485-interfaced-sonar-with-temp-compenstation","title":"RS485 Interfaced Sonar with Temp. Compenstation","description":"\u003cp\u003eThe SRF485 is a single transducer ultrasonic ranger, based on our original SRF02 design. The SRF485 uses the RS485 standard for communications, for up to 127 modules on each RS485 bus. The SRF485 features an on-board 5v power regulator which can be supplied from 8vdc to 14vdc.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867284825,"sku":"SRF485\/A","price":29.77,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890035966297,"sku":"SRF485","price":29.77,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf485.jpg?v=1695766331"},{"product_id":"ultrasonic-sensor-narrow-beam-srf235","title":"Ultrasonic sensor narrow beam SRF235","description":"\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\" align=\"center\" bordercolor=\"#999999\"\u003e\n\u003ctbody\u003e\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\"\u003e25mA\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003e235 Khz\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\"\u003e10cm - 1.2mt\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003eBeam Width\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003e15°\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\"\u003eUnits\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\"\u003e\n\u003cp\u003eRange reported in uS, mm or inches\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003eConnection\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\"\u003eI2C Standard\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\"\u003eDimensions\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\"\u003e34 x 20 x H 19 mm\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp\u003e\u003cbr\u003e The SRF235 is a narrow beam ultrasonic ranger, with a beam width of just 15?. An industrial high frequency air coupled transducer operating at 235KHz is used for both Transmit and Receive. The beam patterns below show compare the 15\u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e SRF235 with the \u003cspan style=\"font-family: 'Times New Roman';\"\u003e55\u003c\/span\u003e\u003cspan style=\"font-family: Symbol;\"\u003e? \u003c\/span\u003etypical pattern of the SRF04.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"0\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/beam3.gif\" border=\"0\" alt=\"\" width=\"299\" height=\"282\"\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cimg src=\"\/images\/srf04_beam.gif\" border=\"0\" alt=\"\" width=\"311\" height=\"296\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\n\u003cp\u003eSRF235 Beam Pattern\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd\u003e\n\u003cp\u003eSRF04 Beam pattern\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eLimitations \u0026amp; Characteristics\u003c\/strong\u003e\u003cbr\u003e 235KHz ultrasound does not transmit as easily through air as 40KHz does, so the range of the SRF235 is limited to around 1 meter for normal objects out to a maximum of 1.2 meters for a large surface. The use of a single transducer for both transmit and receive means there is a blanking zone out to 10cm, so the effective range is 10cm to 1.2m. The 235KHz narrow 15\u003cspan style=\"font-family: Symbol;\"\u003e? \u003c\/span\u003ebeam behaves more like light on a mirror than 40KHz sensors, so looking at a hard flat surface at an angle of more than 8\u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e or 9\u003cspan style=\"font-family: Symbol;\"\u003e? \u003c\/span\u003ewill not yield an echo from that surface. It may be that the reflected beam hits an object and bounces back. In this case the echo from the object will detected and the sonar will indicate the total range of sonar to flat surface + flat surface to object. The flat surface its self will be invisible to the sonar. Under the same circumstances, a 40KHz sensor such as the SRF04 would detect the flat surface - not the reflected object.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable border=\"0\" cellspacing=\"10\"\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd valign=\"top\"\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s1.GIF\" border=\"0\" alt=\"\" width=\"223\" height=\"170\"\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s2.GIF\" border=\"0\" alt=\"\" width=\"224\" height=\"207\"\u003e\u003c\/td\u003e\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s3.GIF\" border=\"0\" alt=\"\" width=\"224\" height=\"207\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAt an angle of just 9 degrees, the beam \u003cbr\u003e does not reflect back to the sonar\u003c\/td\u003e\n\u003ctd\u003eHere there is an object in the path of the reflected\u003cbr\u003e beam. The beam will bounce off the object and -\u003c\/td\u003e\n\u003ctd\u003eback via the flat surface to the sonar, which\u003cbr\u003e will think there is an object off in the distance\u003cbr\u003e in front of it.\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eSoft furnishings do not reflect well at 235KHz and might not be detected. Please be aware of these characteristics before considering the purchase of an SRF235.\u003c\/p\u003e\n\u003cp\u003eThe SRF235 detects hard round objects well, such as table and chair legs etc. This makes the SRF235 ideal for detailed local mapping around the robot, but not for longer range sensing. Using the SRF235 along side a 40KHz sonar, makes an excellent sensor combination.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eCommunication\u003c\/strong\u003e\u003cbr\u003e Communication with the SRF235 ultrasonic rangefinder is via the I2C bus. This is available on popular controllers such as the OOPic, Stamp BS2p, PicAxe etc. as well as a wide variety of micro-controllers. To the programmer the SRF235 behaves in the same way as the ubiquitous 24xx series EEPROM's, except that the I2C address is different. The default shipped address of the SRF235 is 0xE0. It can be changed by the user to any of 16 addresses E0, E2, E4, E6, E8, EA, EC, EE, F0, F2, F4, F6, F8, FA, FC or FE, therefore up to 16 sonar's can be used.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eConnections\u003cbr\u003e \u003c\/strong\u003eThe connections to the SRF235 are identical to the SRF08and SRF10 rangers. The \"No Connection\" pin should be left unconnected. It is actually the CPU MCLR line and is used once only in our workshop to program the PIC18F4220 on-board after assembly, and has an internal pull-up resistor. The SCL and SDA lines should each have a pull-up resistor to +5v somewhere on the I2C bus. You only need one pair of resistors, not a pair for every module. They are normally located with the bus master rather than the slaves. The SRF235 is always a slave - never a bus master. If you need them, I recommend 1.8k resistors. Some modules such as the OOPic already have pull-up resistors and you do not need to add any more.\u003c\/p\u003e\n\u003cp\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/con235.GIF\" border=\"0\" alt=\"\" width=\"452\" height=\"170\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eRegisters\u003c\/strong\u003e\u003cbr\u003e The SRF235 appears as a set of 4 registers.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\u003ctbody\u003e\n\u003ctr align=\"center\" bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"24%\"\u003eLocation\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"32%\"\u003eRead\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"44%\"\u003eWrite\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"24%\"\u003e\n\u003cp\u003e0\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"32%\"\u003e\n\u003cp\u003eSoftware Revision\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"44%\"\u003e\n\u003cp\u003eCommand Register\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"24%\"\u003e\n\u003cp\u003e1\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"32%\"\u003e\n\u003cp\u003eUnused (reads 0x80)\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"44%\"\u003e\n\u003cp\u003eN\/A\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"24%\"\u003e\n\u003cp\u003e2\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"32%\"\u003e\n\u003cp\u003eRange High Byte\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"44%\"\u003e\n\u003cp\u003eN\/A\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"24%\"\u003e\n\u003cp\u003e3\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"32%\"\u003e\n\u003cp\u003eRange Low Byte\u003c\/p\u003e\n\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"44%\"\u003e\n\u003cp\u003eN\/A\u003c\/p\u003e\n\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eOnly location 0 can be written to. Location 0 is the command register and is used to start a ranging session. It cannot be read. Reading from location 0 returns the SRF235 software revision.  The ranging lasts for 10mS, and the SRF235 will not respond to commands on the I2C bus whilst it is ranging.\u003c\/p\u003e\n\u003cp\u003eLocations, 2 and 3, are the 16bit unsigned result from the latest ranging - high byte first. The meaning of this value depends on the command used, and is either the range in inches, or the range in cm or the flight time in uS. A value of 0 indicates that no objects were detected. A new ranging may be initiated as soon as you have the read the range from the last one - no delays are needed.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eCommands\u003c\/strong\u003e\u003cbr\u003e The are three commands to initiate a ranging (80 to 82), to return the result in inches, centimeters or microseconds. There is also a set of commands to change the I2C address.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\u003ctbody\u003e\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\" width=\"34%\" align=\"center\"\u003eCommand\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"94%\" align=\"center\"\u003eAction\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"16%\" align=\"center\"\u003eDecimal\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"18%\" align=\"center\"\u003eHex\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e80\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e0x50\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003eRanging Mode - Result in inches\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e81\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e0x51\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003eRanging Mode - Result in centimeters\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e82\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e0x52\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003eRanging Mode - Result in micro-seconds\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003e\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e160\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e0xA0\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003e1st in sequence to change I2C address\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e165\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e0xA5\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003e3rd in sequence to change I2C address\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e170\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e0xAA\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003e2nd in sequence to change I2C address\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cstrong\u003eRanging\u003c\/strong\u003e\u003cbr\u003e To initiate a ranging, write one of the above commands to the command register and wait the required amount of time for completion and read the result. The echo buffer is cleared at the start of each ranging. The ranging lasts for 10mS, after this the range can be read from locations 2 and 3.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eChecking for Completion of Ranging\u003c\/strong\u003e\u003cbr\u003e You do not have to use a timer on your own controller to wait for ranging to finish. You can take advantage of the fact that the SRF235 will not respond to any I2C activity whilst ranging. Therefore, if you try to read from the SRF235 (we use the software revision number a location 0) then you will get 255 (0xFF) whilst ranging. This is because the I2C data line (SDA) is pulled high if nothing is driving it. As soon as the ranging is complete the SRF235 will again respond to the I2C bus, so just keep reading the register until its not 255 (0xFF) anymore. You can then read the sonar data. Your controller can take advantage of this to perform other tasks while the SRF235 is ranging.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eLED\u003c\/strong\u003e\u003cbr\u003e The red LED is used to flash out a code for the I2C address on power-up (see below). It also gives a brief flash during the \"ping\" whilst ranging.\u003c\/p\u003e\n\u003cp\u003e\u003cstrong\u003eChanging the I2C Bus Address\u003c\/strong\u003e\u003cbr\u003e To change the I2C address of the SRF235 you must have only one sonar on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a sonar currently at 0xE0 (the default shipped address) to 0xF2, write the following to address 0xE0; (0xA0, 0xAA, 0xA5, 0xF2 ). These commands must be sent in the correct sequence to change the I2C address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent to the command register at location 0, which means 4 separate write transactions on the I2C bus. When done, you should label the sonar with its address, however if you do forget, just power it up without sending any commands. The SRF235 will flash its address out on the LED. One long flash followed by a number of shorter flashes indicating its address. The flashing is terminated immediately on sending a command the SRF235.\u003c\/p\u003e\n\u003cdiv\u003e\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\u003ctbody\u003e\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\" width=\"45%\" align=\"center\"\u003eAddress\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"25%\" align=\"center\"\u003eLong Flash\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"30%\" align=\"center\"\u003eShort flashes\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"23%\" align=\"center\"\u003eDecimal\u003c\/td\u003e\n\u003ctd class=\"ProductDescrlHead\" width=\"22%\" align=\"center\"\u003eHex\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e224\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eE0\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e0\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e226\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eE2\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e228\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eE4\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e2\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e230\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eE6\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e3\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e232\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eE8\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e4\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e234\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eEA\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e5\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e236\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eEC\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e6\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e238\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eEE\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e7\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e240\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eF0\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e8\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e242\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eF2\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e9\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e244\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eF4\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e10\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e246\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eF6\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e11\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e248\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eF8\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e12\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e250\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eFA\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e13\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e252\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003eFC\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e14\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003ctr\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e254\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003eFE\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e1\u003c\/td\u003e\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e15\u003c\/td\u003e\n\u003c\/tr\u003e\n\u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003eTake care not to set more than one sonar to the same address, there will be a bus collision and very unpredictable results.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867317593,"sku":"SRF235\/A","price":129.92,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890035999065,"sku":"SRF235","price":129.92,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf235b_5.jpg?v=1695766339"},{"product_id":"miniature-ultrasonic-range-finder","title":"Miniature Ultrasonic Range Finder","description":"\u003cbr\u003e\n\n\u003cp\u003e\n\u003c\/p\u003e\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n  \u003ctr bgcolor=\"#0033FF\"\u003e\n    \u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e15mA - 3mA Standby \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e40 Khz \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e3cm - 6mt \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eMax Analogue Gain \u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eVariable 40 to 700 in 16 steps\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eUnits\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e\u003cp\u003eRange reported in uS, mm or inches\u003c\/p\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eConnection\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eProtocollo I2C \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eDimensions\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e32 x 15 x H 10 mm \u003c\/td\u003e\n  \u003c\/tr\u003e\n\u003c\/table\u003e\n\n\u003cp\u003e\u003cstrong\u003eIntroduction\u003cbr\u003e\n\u003c\/strong\u003eCommunication with the SRF10 ultrasonic rangefinder is via the I2C bus. This is available on popular controllers such as the OOPic and Stamp BS2p, as well as a wide variety of micro-controllers. To the programmer the SRF10 behaves in the same way as the ubiquitous 24xx series eeprom's, except that the I2C address is different. The default shipped address of the SRF10 is 0xE0. It can be changed by the user to any of 16 addresses E0, E2, E4, E6, E8, EA, EC, EE, F0, F2, F4, F6, F8, FA, FC or FE, therefore up to 16 sonar's can be used. We have \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/shop\/Examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003eexamples\u003c\/strong\u003e\u003c\/a\u003e of using the SRF10 module with a wide range of popular controllers.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eConnections\u003cbr\u003e\n  \u003c\/b\u003eThe connections to the SRF10 are identical to the SRF08. The \"Do Not Connect\" pin should be left unconnected. It is actually the CPU MCLR line and is used once only in our workshop to program the PIC16F87 on-board after assembly, and has an internal pull-up resistor. The SCL and SDA lines should each have a pull-up resistor to +5v somewhere on the I2C bus. You only need one pair of resistors, not a pair for every module. They are normally located with the bus master rather than the slaves. The SRF10 is always a slave - never a bus master. If you need them, I recommend 1.8k resistors. Some modules such as the OOPic already have pull-up resistors and you do not need to add any more.  \u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf10wir.gif\" border=\"0\" height=\"245\" width=\"280\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eRegisters\u003c\/b\u003e\u003cbr\u003e\n The SRF10 appears as a set of 4 registers.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n    \u003ctable width=\"53%\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n      \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"24%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eLocation\u003c\/td\u003e\n          \u003ctd width=\"32%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eRead\u003c\/td\u003e\n          \u003ctd width=\"44%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eWrite\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e0\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003eSoftware Revision\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003eCommand Register\u003c\/p\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e1\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003eUnused (reads 0x80)\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003eMax Gain Register (default 16) \u003c\/p\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e2\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003eRange High Byte\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003eRange Register (default 255)\u003c\/p\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e3\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003eRange Low Byte\u003c\/p\u003e\u003c\/td\u003e\n          \u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003eN\/A\u003c\/p\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003eOnly locations 0, 1 and 2 can be written to. Location 0 is the command register and is used to start a ranging session. It cannot be read. Reading from location 0 returns the SRF10 software revision.  By default, the ranging lasts for 65mS, but can be changed by writing to the range register at location 2. The SRF10 will not respond to commands on the I2C bus whilst it is ranging. See the \u003cb\u003eChanging Range\u003c\/b\u003e and \u003cb\u003eAnalogue Gain\u003c\/b\u003e sections below.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e Locations, 2 and 3, are the 16bit unsigned result from the latest ranging - high byte first. The meaning of this value depends on the command used, and is either the range in inches, or the range in cm or the flight time in uS. A value of 0 indicates that no objects were detected.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e\n  The are three commands to initiate a ranging (80 to 82), to return the result in inches, centimeters or microseconds. There is also a set of commands to change the I2C address.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n    \u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n      \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"34%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eCommand\u003c\/td\u003e\n          \u003ctd width=\"94%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eAction\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e80\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x50\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e Ranging Mode - Result in inches\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e81\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e0x51\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e Ranging Mode - Result in centimeters\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e82\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x52\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e Ranging Mode - Result in micro-seconds\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e160\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0xA0\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e1st in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e165\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e0xA5\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e3rd in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e170\u003c\/td\u003e\n          \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0xAA\u003c\/td\u003e\n          \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e2nd in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eRanging Mode\u003c\/b\u003e\u003cbr\u003e\n  To initiate a ranging, write one of the above commands to the command register and wait the required amount of time for completion and read the result. The echo buffer is cleared at the start of each ranging. The default and recommended time for completion of ranging is 65mS, however you can shorten this by writing to the range register before issuing a ranging command.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChecking for Completion of Ranging\u003c\/b\u003e\u003cbr\u003e\n  You do not have to use a timer on your own controller to wait for ranging to finish. You can take advantage of the fact that the SRF10 will not respond to any I2C activity whilst ranging. Therefore, if you try to read from the SRF10 (we use the software revision number a location 0) then you will get 255 (0xFF) whilst ranging. This is because the I2C data line (SDA) is pulled high if nothing is driving it. As soon as the ranging is complete the SRF10 will again respond to the I2C bus, so just keep reading the register until its not 255 (0xFF) anymore. You can then read the sonar data. Your controller can take advantage of this to perform other tasks while the SRF10 is ranging. \u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging the Range\u003c\/b\u003e\u003cbr\u003e\n  The maximum range of the SRF10 is set by an internal timer. By default, this is 65mS or the equivalent of 11 metres of range. This is much further than the 6 metres the SRF10  is actually capable of. It is possible to reduce the time the SRF10 listens for an echo, and hence the range, by writing to the range register at location 2. The range can be set in steps of about 43mm (0.043m or 1.68 inches) up to 11 metres. \u003cbr\u003e\n  The range is ((Range Register x 43mm) + 43mm) so setting the Range Register to 0 (0x00) gives a maximum range of 43mm. Setting the Range Register to 1 (0x01) gives a maximum range of 86mm. More usefully, 24 (0x18) gives a range of 1 metre and 93 (0x5D) is 4 metres. Setting 255 (0xFF) gives the original 11 metres (255 x 43 + 43 is 11008mm). There are two reasons you may wish to reduce the range.\u003cbr\u003e\n  1. To get at the range information quicker\u003cbr\u003e\n  2. To be able to fire the SRF10 at a faster rate.\u003cbr\u003e\n  If you only wish to get at the range information a bit sooner and will continue to fire the SRF10 at 65ms of slower, then all will be well. However if you wish to fire the SRF10 at a faster rate than 65mS, you will definitely need to reduce the gain - see next section.\u003cbr\u003e\n  The range is set to maximum every time the SRF10 is powered-up. If you need a different range, change it once as part of your system initialization code.\u003cbr\u003e\n\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eAnalogue Gain\u003c\/b\u003e\u003cbr\u003e\n  The analogue gain register sets the \u003ci\u003eMaximum\u003c\/i\u003e gain of the analogue stages. To set the maximum gain, just write one of these values to the gain register at location 1. During a ranging, the analogue gain starts off at its minimum value of 40. This is increased at approx. 96uS intervals up to the maximum gain setting, set by register 1. Maximum possible gain is reached after about 100mm (4inches) of range. The purpose of providing a limit to the maximum gain is to allow you to fire the sonar more rapidly than 65mS. Since the ranging can be very short, a new ranging can be initiated as soon as the previous range data has been read. A potential hazard with this is that the second ranging may pick up a distant echo returning from the previous \"ping\", give a false result of a close by object when there is none. To reduce this possibility, the maximum gain can be reduced to limit the modules sensitivity to the weaker distant echo, whilst still able to detect close by objects. The maximum gain setting is stored only in the CPU's RAM and is initialized to maximum on power-up, so if you only want do a ranging every 65mS, or longer, you can ignore the Range and Gain Registers. The Gain Register is set to 16 (a gain of 700) at power-up. This can be decreased as required.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n    \u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n      \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"157\" height=\"19\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eGain Register\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"40\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eMaximum Analogue Gain\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"77\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n          \u003ctd width=\"80\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x00\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 40\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x01\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eAs above - Analogue Gain to 40\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e2\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x02\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 50\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e3\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x03\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 60\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e4\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x04\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 70\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e5\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x05\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 80\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e6\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x06\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 100\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e7\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x07\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 120\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e8\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x08\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 140\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e9\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x09\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 200\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e10\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0A\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 250\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e11\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0B\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 300\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e12\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0C\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 350\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e13\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0D\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 400\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e14\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0E\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 500\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e15\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0F\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 600\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e16\u003c\/td\u003e\n          \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x10\u003c\/td\u003e\n          \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 700\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003eNote that the relationship between the Gain Register setting and the actual gain is not a linear one. Also there is no magic formula to say \"use this gain setting with that range setting\". It depends on the size, shape and material of the object and what else is around in the room. Try playing with different settings until you get the result you want. If you appear to get false readings, it may be echo's from previous \"pings\", try going back to firing the SRF10 every 65mS or longer (slower). \u003cbr\u003e\n  If you are in any doubt about the Range and Gain Registers, remember they are automatically set by the SRF10 to their default values when it is powered-up. You can ignore and forget about them and the SRF10 will work fine, detecting objects up to 6 metres away every 65mS or slower.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eLED\u003c\/b\u003e\u003cbr\u003e\n  The red LED is used to flash out a code for the I2C address on power-up (see below). It also gives a brief flash during the \"ping\" whilst ranging.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging the I2C Bus Address\u003c\/b\u003e\u003cbr\u003e\n  To change the I2C address of the SRF10 you must have only one sonar on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a sonar currently at 0xE0 (the default shipped address) to 0xF2, write the following to address 0xE0; (0xA0, 0xAA, 0xA5, 0xF2 ). These commands must be sent in the correct sequence to change the I2C address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent to the command register at location 0, which means 4 separate write transactions on the I2C bus. When done, you should label the sonar with its address, however if you do forget, just power it up without sending any commands. The SRF10 will flash its address out on the LED. One long flash followed by a number of shorter flashes indicating its address. The flashing is terminated immediately on sending a command the SRF10.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n    \u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n      \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"45%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eAddress\u003c\/td\u003e\n          \u003ctd width=\"25%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eLong Flash\u003c\/td\u003e\n          \u003ctd width=\"30%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eShort flashes\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e224\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE0\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e226\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eE2\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e228\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE4\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e2\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e230\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eE6\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e3\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e232\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE8\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e4\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e234\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eEA\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e5\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e236\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eEC\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e6\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e238\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eEE\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e7\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e240\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF0\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e8\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e242\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eF2\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e9\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e244\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF4\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e10\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e246\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eF6\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e11\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e248\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF8\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e12\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e250\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eFA\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e13\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e252\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eFC\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e14\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n          \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e254\u003c\/td\u003e\n          \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eFE\u003c\/td\u003e\n          \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n          \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e15\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003eTake care not to set more than one sonar to the same address, there will be a bus collision and very unpredictable results.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\n  \u003c\/b\u003eYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF10 is conical with the width of the beam being a function of the surface area of the transducers and is fixed.  It is possible to make the sonar less sensitive to objects off to the side by reducing the maximum gain register from 16 to a lower level. This is a the expense of shorter range, however most small robots don't need 6m of range. A value of 8 (max. gain 140) will reduce the practicable range to about 2m, but it will be much less sensitive to objects off the center line. The beam pattern of the transducers used on the SRF10, taken from the manufacturers data sheet, is shown below.  \u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/beam2.gif\" border=\"0\" height=\"284\" width=\"301\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e \u003c\/p\u003e\n\u003cp align=\"left\"\u003eThere is more information in the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\" target=\"_blank\"\u003e\u003cstrong\u003esonar faq\u003c\/strong\u003e.\u003c\/a\u003e \u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eMounting the SRF10\u003cbr\u003e\n  \u003c\/b\u003eYou may have notice that there are no mounting holes on the SRF10 module! That was deliberate to keep the module as small as possible. So how do you mount it? Here are three suggestions:\u003cbr\u003e\n  \u003cb\u003e 1.\u003c\/b\u003e A straight or right angle 0.1 inch connector soldered to your PCB.\u003cbr\u003e\n  \u003cb\u003e 2.\u003c\/b\u003e Using two 9.5mm rubber grommets. Two holes should be drilled into the panel you're mounting the SRF10 to. The hole centers should be 0.7inches (17.78mm) apart and the holes drilled 0.5 inches (12.7mm) in diameter. The two grommets should then be fitted to the panel and the SRF10 gently pushed into them.\u003cbr\u003e\n  \u003cb\u003e 3.\u003c\/b\u003e Using our SRF10 Mounting Kit, shown below. \u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n    \u003ctable border=\"0\"\u003e\n      \u003ctbody\u003e\n        \u003ctr\u003e\n          \u003ctd\u003e\u003cimg src=\"\/images\/srf10b1.jpg\" border=\"0\" height=\"225\" width=\"300\"\u003e\u003c\/td\u003e\n          \u003ctd\u003e\u003cimg src=\"\/images\/srf10b4.jpg\" border=\"0\" height=\"225\" width=\"257\"\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n      \u003c\/tbody\u003e\n    \u003c\/table\u003e\n\u003c\/center\u003e\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867350361,"sku":"SRF10\/A","price":40.33,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890036031833,"sku":"SRF10","price":40.33,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf10_140_4.jpg?v=1695766347"},{"product_id":"high-performance-ultrasonic-range-finder","title":"High Performance Ultrasonic Range Finder","description":"\u003cp\u003e \u003c\/p\u003e\n\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e15mA - 3mA Standby\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003e40 Khz\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e3cm - 6mt\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eMax Analogue Gain\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eVariable 94 to 1025 in 32 steps\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eUnits\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e\n            \u003cp\u003eRange reported in uS, mm or inches\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eConnection\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eI2C Standard\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eDimensions\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e43 x 20 x H 17 mm\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp align=\"left\"\u003eCommunication with the SRF08 ultrasonic rangefinder is via the I2C bus. This is available on popular controllers such as the OOPic and Stamp BS2p, as well as a wide variety of micro-controllers. To the programmer the SRF08 behaves in the same way as the ubiquitous 24xx series eeprom's, except that the I2C address is different. The default shipped address of the SRF08 is 0xE0. It can be changed by the user to any of 16 addresses E0, E2, E4, E6, E8, EA, EC, EE, F0, F2, F4, F6, F8, FA, FC or FE, therefore up to 16 sonar's can be used. In addition to the above addresses, all sonar's on the I2C bus will respond to add ress 0 - the General Broadcast address. This means that writing a ranging command to I2C address 0 (0x00) will start all sonar's ranging at the same time. This should be useful in ANN Mode (See below). The results must be read individually from each sonar's real address. We have \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/shop\/Examples.htm\"\u003e\u003cstrong\u003eexamples\u003c\/strong\u003e\u003c\/a\u003e of using the SRF08 module with a wide range of popular controllers.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eConnections\u003cbr\u003e\n\u003c\/b\u003eThe \"Do Not Connect\" pin should be left unconnected. It is actually the CPU MCLR line and is used once only in our workshop to program the PIC16F872 on-board after assembly, and has an internal pull-up resistor. The SCL and SDA lines should each have a pull-up resistor to +5v somewhere on the I2C bus. You only need one pair of resistors, not a pair for every module. They are normally located with the bus master rather than the slaves. The SRF08 is always a slave - never a bus master. If you need them, I recommend 1.8k resistors. Some modules such as the OOPic already have pull-up resistors and you do not need to add any more.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" height=\"232\" width=\"302\" alt=\"\" src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf08con.jpg\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eRegisters\u003c\/b\u003e\u003cbr\u003e\nThe SRF08 appears as a set of 36 registers.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eLocation\u003c\/td\u003e\n            \u003ctd width=\"32%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eRead\u003c\/td\u003e\n            \u003ctd width=\"44%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eWrite\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e0\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003eSoftware Revision\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003eCommand Register\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003e1\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003eLight Sensor\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003eMax Gain Register (default 31)\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e2\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e1st Echo High Byte\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003eRange Register (default 255)\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003e3\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003e1st Echo Low Byte\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003eN\/A\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e~~~~\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e~~~~\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e~~~~\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003e34\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003e17th Echo High Byte\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n            \u003cp align=\"center\"\u003eN\/A\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e35\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003e17th Echo Low Byte\u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n            \u003cp align=\"center\"\u003eN\/A\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eOnly locations 0, 1 and 2 can be written to. Location 0 is the command register and is used to start a ranging session. It cannot be read. Reading from location 0 returns the SRF08 software revision.  By default, the ranging lasts for 65mS, but can be changed by writing to the range register at location 2. If you do so, then you will likely need to change the analogue gain by writing to location 1. See the \u003cb\u003eChanging Range\u003c\/b\u003e and \u003cb\u003eAnalogue Gain\u003c\/b\u003e sections below.\u003c\/p\u003e\n\u003cp align=\"left\"\u003eLocation 1 is the onboard light sensor. This data is updated every time a new ranging command has completed and can be read when range data is read. The next two locations, 2 and 3, are the 16bit unsigned result from the latest ranging - high byte first. The meaning of this value depends on the command used, and is either the range in inches, or the range in cm or the flight time in uS. A value of zero indicates that no objects were detected. There are up to a further 16 results indicating echo's from more distant objects.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e\nThe are three commands to initiate a ranging (80 to 82), to return the result in inches, centimeters or microseconds. There is also an ANN mode (Artificial Neural Network) mode which is described later and a set of commands to change the I2C address.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"34%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eCommand\u003c\/td\u003e\n            \u003ctd width=\"94%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eAction\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e80\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x50\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003eRanging Mode - Result in inches\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e81\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e0x51\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003eRanging Mode - Result in centimeters\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e82\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x52\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003eRanging Mode - Result in micro-seconds\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e83\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x53\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003eANN Mode - Result in inches\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e84\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e0x54\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003eANN Mode - Result in centimeters\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e85\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x55\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003eANN Mode - Result in micro-seconds\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e160\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0xA0\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e1st in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e165\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e0xA5\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e3rd in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e170\u003c\/td\u003e\n            \u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0xAA\u003c\/td\u003e\n            \u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e2nd in sequence to change I2C address\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eRanging Mode\u003c\/b\u003e\u003cbr\u003e\nTo initiate a ranging, write one of the above commands to the command register and wait the required amount of time for completion and read as many results as you wish. The echo buffer is cleared at the start of each ranging. The first echo range is placed in locations 2,3. the second in 4,5, etc. If a location (high and low bytes) is 0, then there will be no further reading in the rest of the registers. The default and recommended time for completion of ranging is 65mS, however you can shorten this by writing to the range register before issuing a ranging command. Light sensor data at location 1 will also have been updated after a ranging command.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eANN Mode\u003cbr\u003e\n\u003c\/b\u003eANN mode (Artificial Neural Network) is designed to provide the multi echo data in a way that is easier to input to a neural network, at least I hope it is - I've not actually done it yet. ANN mode provides a 32 byte buffer (locations 4 to 35 inclusive) where each byte represents the 65536uS maximum flight time divided into 32 chunks of 2048uS each - equivalent to about 352mm of range. If an echo is received within a bytes time slot then it will be set to no-zero, otherwise it will be zero. So if an echo is received from within the first 352mm, location 4 will be non-zero. If an object is detected 3m away the location 12 will be non-zero (3000\/352 = 8) (8+4=12). Arranging the data like this should be better for a neural net than the other formats. The input to your network should be 0 if the byte is zero and 1 if its non-zero. I have a SOFM (Self Organizing Feature Map) in mind for the neural net, but will hopefully be useful for any type.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"500\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocation 4\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocation 5\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocation 6\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocation 7\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocations 8 - 35\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0 - 352mm\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrGray\"\u003e353 - 705mm\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003e706 - 1057mm\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrGray\"\u003e1058 - 1410mm\u003c\/td\u003e\n            \u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003eand so on\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eLocations 2,3 contain the range of the nearest object converted to inches, cm or uS and is the same as for Ranging Mode.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChecking for Completion of Ranging\u003c\/b\u003e\u003cbr\u003e\nYou do not have to use a timer on your own controller to wait for ranging to finish. You can take advantage of the fact that the SRF08 will not respond to any I2C activity whilst ranging. Therefore, if you try to read from the SRF08 (we use the software revision number a location 0) then you will get 255 (0xFF) whilst ranging. This is because the I2C data line (SDA) is pulled high if nothing is driving it. As soon as the ranging is complete the SRF08 will again respond to the I2C bus, so just keep reading the register until its not 255 (0xFF) anymore. You can then read the sonar data. Your controller can take advantage of this to perform other tasks while the SRF08 is ranging.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging the Range\u003c\/b\u003e\u003cbr\u003e\nThe maximum range of the SRF08 is set by an internal timer. By default, this is 65mS or the equivalent of 11 metres of range. This is much further than the 6 metres the SRF08  is actually capable of. It is possible to reduce the time the SRF08 listens for an echo, and hence the range, by writing to the range register at location 2. The range can be set in steps of about 43mm (0.043m or 1.68 inches) up to 11 metres. \u003cbr\u003e\nThe range is ((Range Register x 43mm) + 43mm) so setting the Range Register to 0 (0x00) gives a maximum range of 43mm. Setting the Range Register to 1 (0x01) gives a maximum range of 86mm. More usefully, 24 (0x18) gives a range of 1 metre and 140 (0x8C) is 6 metres. Setting 255 (0xFF) gives the original 11 metres (255 x 43 + 43 is 11008mm). There are two reasons you may wish to reduce the range.\u003cbr\u003e\n1. To get at the range information quicker\u003cbr\u003e\n2. To be able to fire the SRF08 at a faster rate.\u003cbr\u003e\nIf you only wish to get at the range information a bit sooner and will continue to fire the SRF08 at 65ms of slower, then all will be well. However if you wish to fire the SRF08 at a faster rate than 65mS, you will definitely need to reduce the gain - see next section.\u003cbr\u003e\nThe range is set to maximum every time the SRF08 is powered-up. If you need a different range, change it once as part of your system initialization code.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eAnalogue Gain\u003c\/b\u003e\u003cbr\u003e\nThe analogue gain register sets the \u003ci\u003eMaximum\u003c\/i\u003e gain of the analogue stages. To set the maximum gain, just write one of these values to the gain register at location 1. During a ranging, the analogue gain starts off at its minimum value of 94. This is increased at approx. 70uS intervals up to the maximum gain setting, set by register 1. Maximum possible gain is reached after about 390mm of range. The purpose of providing a limit to the maximum gain is to allow you to fire the sonar more rapidly than 65mS. Since the ranging can be very short, a new ranging can be initiated as soon as the previous range data has been read. A potential hazard with this is that the second ranging may pick up a distant echo returning from the previous \"ping\", give a false result of a close by object when there is none. To reduce this possibility, the maximum gain can be reduced to limit the modules sensitivity to the weaker distant echo, whilst still able to detect close by objects. The maximum gain setting is stored only in the CPU's RAM and is initialized to maximum on power-up, so if you only want do a ranging every 65mS, or longer, you can ignore the Range and Gain Registers.\u003cbr\u003e\n\u003cspan class=\"style2\"\u003eNote\u003c\/span\u003e - Effective in Ranging Mode only, in ANN mode, gain is controlled automatically.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"400\" height=\"714\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"157\" height=\"19\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eGain Register\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"40\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eMaximum Analogue Gain\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"77\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n            \u003ctd width=\"80\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x00\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 94\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x01\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 97\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e2\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x02\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 100\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e3\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x03\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 103\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e4\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x04\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 107\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e5\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x05\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 110\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e6\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x06\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 114\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e7\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x07\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 118\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e8\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x08\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 123\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e9\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x09\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 128\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e10\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0A\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 133\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e11\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0B\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 139\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e12\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0C\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 145\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e13\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0D\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 152\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e14\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x0E\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 159\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e15\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x0F\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 168\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e16\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x10\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 177\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e17\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x11\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 187\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e18\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x12\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 199\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e19\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x13\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 212\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e20\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x14\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 227\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e21\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x15\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 245\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e22\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x16\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 265\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e23\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x17\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 288\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e24\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x18\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 317\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e25\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x19\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 352\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e26\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x1A\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 395\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e27\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x1B\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 450\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e28\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x1C\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 524\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e29\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x1D\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 626\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e30\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e0x1E\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 777\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e31\u003c\/td\u003e\n            \u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x1F\u003c\/td\u003e\n            \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 1025\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eNote that the relationship between the Gain Register setting and the actual gain is not a linear one. Also there is no magic formula to say \"use this gain setting with that range setting\". It depends on the size, shape and material of the object and what else is around in the room. Try playing with different settings until you get the result you want. If you appear to get false readings, it may be echo's from previous \"pings\", try going back to firing the SRF08 every 65mS or longer (slower). \u003cbr\u003e\nIf you are in any doubt about the Range and Gain Registers, remember they are automatically set by the SRF08 to their default values when it is powered-up. You can ignore and forget about them and the SRF08 will work fine, detecting objects up to 6 metres away every 65mS or slower.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eLight Sensor\u003c\/b\u003e\u003cbr\u003e\nThe SRF08 has a light sensor on-board. A reading of the light intensity is made by the SRF08 each time a ranging takes place in either Ranging or ANN Modes ( The A\/D conversion is actually done just before the \"ping\" whilst the +\/- 10v generator is stabilizing). The reading increases as the brightness increases, so you will get a maximum value in bright light and minimum value in darkness. It should get close to 2-3 in complete darkness and up to about 248 (0xF8) in bright light. The light intensity can be read from the Light Sensor Register at  location 1 at the same time that you are reading the range data.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eLED\u003c\/b\u003e\u003cbr\u003e\nThe red LED is used to flash out a code for the I2C address on power-up (see below). It also gives a brief flash during the \"ping\" whilst ranging.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging the I2C Bus Address\u003c\/b\u003e\u003cbr\u003e\nTo change the I2C address of the SRF08 you must have only one sonar on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a sonar currently at 0xE0 (the default shipped address) to 0xF2, write the following to address 0xE0; (0xA0, 0xAA, 0xA5, 0xF2 ). These commands must be sent in the correct sequence to change the I2C address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent to the command register at location 0, which means 4 separate write transactions on the I2C bus. When done, you should label the sonar with its address, however if you do forget, just power it up without sending any commands. The SRF08 will flash its address out on the LED. One long flash followed by a number of shorter flashes indicating its address. The flashing is terminated immediately on sending a command the SRF08.\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"45%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eAddress\u003c\/td\u003e\n            \u003ctd width=\"25%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eLong Flash\u003c\/td\u003e\n            \u003ctd width=\"30%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eShort flashes\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrlHead\"\u003eHex\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e224\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE0\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e0\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e226\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eE2\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e228\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE4\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e2\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e230\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eE6\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e3\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e232\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eE8\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e4\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e234\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eEA\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e5\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e236\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eEC\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e6\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e238\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eEE\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e7\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e240\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF0\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e8\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e242\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eF2\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e9\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e244\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF4\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e10\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e246\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eF6\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e11\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e248\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eF8\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e12\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e250\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eFA\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e13\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e252\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003eFC\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e14\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e254\u003c\/td\u003e\n            \u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003eFE\u003c\/td\u003e\n            \u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\u003c\/td\u003e\n            \u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e15\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eTake care not to set more than one sonar to the same address, there will be a bus collision and very unpredictable results.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eCurrent Consumption\u003c\/b\u003e\u003cbr\u003e\nAverage current consumption measured on our prototype is around 12mA during ranging, and 3mA standby. The module will automatically go to standby mode after a ranging, whilst waiting for a new command on the I2C bus. The actual measured current profile is as follows;\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrlHead\"\u003eOperation\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrlHead\"\u003eCurrent\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrlHead\"\u003eDuration\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003eRanging command received - Power on\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e275mA\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003e3uS\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrGray\"\u003e+\/- 10v generator Stabilization\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrGray\"\u003e25mA\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrGray\"\u003e600uS\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003e8 cycles of 40kHz \"ping\"\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e40mA\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003e200uS\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrGray\"\u003eRanging\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrGray\"\u003e11mA\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrGray\"\u003e65mS max\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003eStandby\u003c\/td\u003e\n            \u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e3mA\u003c\/td\u003e\n            \u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003eindefinite\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eThe above values are for guidance only, they are not tested on production units.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\n\u003c\/b\u003eYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF08 is conical with the width of the beam being a function of the surface area of the transducers and is fixed.  The beam pattern of the transducers used on the SRF08, taken from the manufacturers data sheet, is shown below.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" height=\"296\" width=\"311\" alt=\"\" src=\"\/images\/srf08_beam.gif\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThere is more information in the \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\"\u003e\u003cstrong\u003esonar faq\u003c\/strong\u003e.\u003cbr\u003e\n\u003c\/a\u003eHere you can have a  look at the \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/images\/srf08schematic.gif\"\u003e\u003cstrong\u003eschematic\u003c\/strong\u003e\u003c\/a\u003e and \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf08.c\"\u003e\u003cstrong\u003esoftware\u003c\/strong\u003e\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867448665,"sku":"SRF08\/A","price":40.33,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890036293977,"sku":"SRF08","price":40.33,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf081_5.jpg?v=1695766354"},{"product_id":"4-20ma-current-loop-ultrasonic-range-finder","title":"4-20mA Current Loop Ultrasonic Range Finder","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\u003cp\u003e\u003cbr\u003e\nThe SRF06 is a low cost ultrasonic ranger with a 4-20mA current output. The SRF06 is powered from the 4-20mA current loop and requires no other power. Measurement range is from 2cm  to 5.1mtrs. Current output is from 4mA at zero range to 20mA at 5.1mtrs (510cm), which gives a nominal current of 4mA + 31.37uA\/cm. The SRF06 requires a loop driving voltage of 9v to 24v. The SRF06 automatically performs continuous ranging every 70-100mS. \u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eConnections\u003c\/b\u003e\u003cbr\u003e\nThe SRF06 has only two connections, the positive and negative current loop. An on-board diode protects the module in case of reversed connections.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eConverting to a voltage output\u003c\/b\u003e\u003cbr\u003e\nUnless you are connecting to a PLC or similar controller with a 4-20mA interface, you are likely to prefer a voltage output. This is very easy to do by sending the current through a resistor. A 250 ohm resistor will have a voltage of 5v across it when 20mA is flowing (at the maximum range of 510cm). If you cannot find a 250 ohm resistor, just put two or more lower values in series to make up 250 ohm. For instance a 100 ohm and 150 ohm, as indicated below. This will give you 1v to 5v for a 4mA to 20mA input.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg height=\"575\" width=\"460\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/SRF06-connect.gif\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThe SRF06 requires a minimum voltage of 9v. If 5v is being dropped across the 250 ohm resistor, then the minimum loop driving voltage is 14v (9v+5v). \u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eThe other set of 5 pins\u003c\/b\u003e\u003cbr\u003e\nThe 5 pins marked \"programming pins\" are used once only during manufacture to program the Flash memory on the PIC16F630 chip. The PIC16F630's programming pins are also used for other functions on the SRF06, so make sure you don't connect anything to these pins, or you will disrupt the modules operation.\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThere is more information in the \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\"\u003esonar faq.\u003c\/a\u003e\u003c\/p\u003e\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867514201,"sku":"SRF06\/A","price":19.13,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47890036228441,"sku":"SRF06","price":19.13,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf06_5.jpg?v=1695766360"},{"product_id":"low-cost-ultrasonic-range-finder-1","title":"Low Cost Ultrasonic Range Finder","description":"\u003cbr\u003e\n\u003cp\u003e\u003cb\u003eIntroduction\u003c\/b\u003e\u003cbr\u003e\nThe SRF05 is an evolutionary step from the SRF04, and has been designed to increase flexibility, increase range, and to reduce costs still further. As such, the SRF05 is fully compatible with the SRF04. Range is increased from 3 meters to 4 meters. A new operating mode (tying the mode pin to ground) allows the SRF05 to use a single pin for both trigger and echo, thereby saving valuable pins on your controller. When the mode pin is left unconnected, the SRF05 operates with separate trigger and echo pins, like the SRF04. The SRF05 includes a small delay before the echo pulse to give slower controllers such as the Basic Stamp and Picaxe time to execute their pulse in commands.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eMode 1 - SRF04 compatible - Separate Trigger and Echo\u003c\/b\u003e\u003cbr\u003e\n  This mode uses separate trigger and echo pins, and is the simplest mode to use. All code examples for the SRF04 will work for the SRF05 in this mode. To use this mode, just leave the mode pin unconnected - the SRF05 has an internal pull up resistor on this pin.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05p2.jpg\" border=\"0\" height=\"337\" width=\"642\"\u003e\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05tma.gif\" border=\"0\" height=\"376\" width=\"700\"\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eMode 2 - Single pin for both Trigger and Echo\u003c\/b\u003e\u003cbr\u003e\n  This mode uses a single pin for both Trigger and Echo signals, and is designed to save valuable pins on embedded controllers. To use this mode, connect the mode pin to the 0v Ground pin. The echo signal will appear on the same pin as the trigger signal. The SRF05 will not raise the echo line until 700uS after the end of the trigger signal. You have that long to turn the trigger pin around and make it an input and to have your pulse measuring code ready. The PULSIN command found on many popular controllers does this automatically.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05p1.jpg\" border=\"0\" height=\"337\" width=\"641\"\u003e\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05tmb.gif\" border=\"0\" height=\"339\" width=\"700\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003eTo use mode 2 with the Basic Stamp BS2, you simply use PULSOUT and PULSIN on the same pin, like this:\u003c\/p\u003e\n\u003cdiv align=\"left\"\u003e\n  \u003ctable bgcolor=\"#00ff00\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n      \u003ctr\u003e\n        \u003ctd\u003e\u003cfont face=\"Fixedsys\"\u003e\u003cbr\u003e\n          SRF05 PIN 15             ' use any pin for both trigger and echo\u003cbr\u003e\n          Range VAR Word           ' define the 16 bit range variable\u003cbr\u003e\n                  \u003cbr\u003e\n          SRF05 = 0                ' start with pin low\u003cbr\u003e\n          PULSOUT SRF05, 5         ' issue 10uS trigger pulse (5 x 2uS)\u003cbr\u003e\n          PULSIN SRF05, 1, Range   ' measure echo time\u003cbr\u003e\n          Range = Range\/29         ' convert to cm (divide by 74 for inches) \u003cbr\u003e\n  \u003c\/font\u003e\u003c\/td\u003e\n      \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n  \u003c\/table\u003e\n\u003c\/div\u003e\n\u003cp\u003e\u003cb\u003eCalculating the Distance\u003cbr\u003e\n  \u003c\/b\u003eThe SRF05 Timing diagrams are shown above for each mode. You only need to supply a short 10uS pulse to the trigger input to start the ranging. The SRF05 will send out an 8 cycle burst of ultrasound at 40khz and raise its echo line high (or trigger line in mode 2). It then listens for an echo, and as soon as it detects one it lowers the echo line again. The echo line is therefore a pulse whose width is proportional to the distance to the object. By timing the pulse it is possible to calculate the range in inches\/centimeters or anything else. If nothing is detected then the SRF05 will lower its echo line anyway after about 30mS.\u003c\/p\u003e\n\u003cp\u003e The SRF04 provides an echo pulse proportional to distance. If the width of the pulse is measured in uS, then dividing by 58 will give you the distance in cm, or dividing by 148 will give the distance in inches. uS\/58=cm or uS\/148=inches.\u003c\/p\u003e\n\u003cp\u003eThe SRF05 can be triggered as fast as every 50mS, or 20 times each second. You should wait 50ms before the next trigger, even if the SRF05 detects a close object and the echo pulse is shorter. This is to ensure the ultrasonic \"beep\" has faded away and will not cause a false echo on the next ranging.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eThe other set of 5 pins\u003c\/b\u003e\u003cbr\u003e\n  The 5 pins marked \"programming pins\" are used once only during manufacture to program the Flash memory on the PIC16F630 chip. The PIC16F630's programming pins are also used for other functions on the SRF05, so make sure you don't connect anything to these pins, or you will disrupt the modules operation.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\n  \u003c\/b\u003eYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF05 is conical with the width of the beam being a function of the surface area of the transducers and is fixed.  The beam pattern of the transducers used on the SRF05, taken from the manufacturers data sheet, is shown below.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf05_beam.gif\" width=\"311\" height=\"296\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867907417,"sku":"SRF05\/A","price":19.13,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47890036261209,"sku":"SRF05","price":19.13,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf05a_4.jpg?v=1695766367"},{"product_id":"low-cost-ultrasonic-range-finder","title":"Low Cost Ultrasonic Range Finder","description":"\u003cbr\u003e\n\u003cp\u003e\n\u003c\/p\u003e\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n  \u003ctr bgcolor=\"#0033FF\"\u003e\n    \u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e30mA - 50mA Max \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e40 Khz \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e3cm - 3mt \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eSensitivity\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eDetect 3cm diameter broom handle at \u0026gt; 2 m\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eInput Trigger \u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e\u003cp\u003e10uS Min. TTL level pulse\u003c\/p\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eEcho Pulse \u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003ePositive TTL level signal, width proportional to range \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eDimensions\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e43 x 20 x H 17 mm \u003c\/td\u003e\n  \u003c\/tr\u003e\n\u003c\/table\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp\u003eThe SRF04 was designed to be just as easy to use as the Polaroid sonar, requiring a short trigger pulse and providing an echo pulse. Your controller only has to time the length of this pulse to find the range. The connections to the SRF04 are shown below:\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf_conect.jpg\" border=\"0\" height=\"234\" width=\"236\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThe SRF04 Timing diagram is shown below. You only need to supply a short 10uS pulse to the trigger input to start the ranging. The SRF04 will send out an 8 cycle burst of ultrasound at 40khz and raise its echo line high. It then listens for an echo, and as soon as it detects one it lowers the echo line again. The echo line is therefore a pulse whose width is proportional to the distance to the object. By timing the pulse it is possible to calculate the range in inches\/centimeters or anything else. If nothing is detected then the SRF04 will lower its echo line anyway after about 36mS.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cb\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/timing.gif\" border=\"0\" height=\"262\" width=\"500\"\u003e\u003c\/b\u003e\u003c\/p\u003e\n\u003cp\u003eThe circuit is designed to be low cost. It uses a PIC12C508 to perform the control functions and standard 40khz piezo transducers. The drive to the transmitting transducer could be simplest driven directly from the PIC. The 5v drive can give a useful range for large objects, but can be problematic detecting smaller objects. The transducer can handle 20v of drive, so I decided to get up close to this level. A MAX232 IC, usually used for RS232 communication makes and ideal driver, providing about 16v of drive.\u003c\/p\u003e\n\u003cp\u003eThe receiver is a classic two stage op-amp circuit. The input capacitor C8 blocks some residual DC which always seems to be present. Each gain stage is set to 24 for a total gain of 576-ish. This is close the 25 maximum gain available using the LM1458. The gain bandwidth product for the LM1458 is 1Mhz. The maximum gain at 40khz is 1000000\/40000 = 25. The output of the amplifier is fed into an LM311 comparator. A small amount of positive feedback provides some hysterisis to give a clean stable output.\u003c\/p\u003e\n\u003cp\u003eThe problem of getting operation down to 1-2cm is that the receiver will pick up direct coupling from the transmitter, which is right next to it. To make matters worse the piezo transducer is a mechanical object that keeps resonating some time after the drive has been removed. Up to 1mS depending on when you decide it has stopped. It is much harder to tell the difference between this direct coupled ringing and a returning echo, which is why many designs, including the Polaroid module, simply blank out this period. Looking at the returning echo on an oscilloscope shows that it is much larger in magnitude at close quarters than the cross-coupled signal. I therefore adjust the detection threshold during this time so that only the echo is detectable. The 100n capacitor C10 is charged to about ?6v during the burst. This discharges quite quickly through the 10k resistor R6 to restore sensitivity for more distant echo?s.\u003c\/p\u003e\n\u003cp\u003eA convenient negative voltage for the op-amp and comparator is generated by the MAX232. Unfortunately, this also generates quite a bit of high frequency noise. I therefore shut it down whilst listening for the echo. The 10uF capacitor C9 holds the negative rail just long enough to do this.\u003c\/p\u003e\n\u003cp\u003eIn operation, the processor waits for an active low trigger pulse to come in. It then generates just eight cycles of 40khz. The echo line is then raised to signal the host processor to start timing. The raising of the echo line also shuts of the MAX232. After a while ? no more than 10-12mS normally, the returning echo will be detected and the PIC will lower the echo line. The width of this pulse represents the flight time of the sonic burst. If no echo is detected then it will automatically time out after about 30mS (Its two times the WDT period of the PIC). Because the MAX232 is shut down during echo detection, you must wait at least 10mS between measurement cycles for the +\/- 10v to recharge.\u003c\/p\u003e\n\u003cp\u003ePerformance of this design is, I think, quite good. It will reliably measure down to 3cm and will continue detecting down to 1cm or less but after 2-3cm the pulse width doesn?t get any smaller.\u003c\/p\u003e\n\u003cp\u003eMaximum range is a little over 3m. As and example of the sensitivity of this design, it will detect a 1inch thick plastic broom handle at 2.4m.\u003cbr\u003e\n  Average current consumption is reasonable at less than 50mA and typically about 30mA.\u003c\/p\u003e\n\u003cp\u003eDownload the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf1.asm\" target=\"_blank\"\u003e\u003cstrong\u003esource code\u003c\/strong\u003e\u003c\/a\u003e and a ready assembled \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf1.hex\" target=\"_blank\"\u003e\u003cstrong\u003ehex file\u003c\/strong\u003e\u003c\/a\u003e. \u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eCalculating the Distance\u003c\/b\u003e\u003cbr\u003e\n  The SRF04 provides an echo pulse proportional to distance. If the width of the pulse is measured in uS, then dividing by 58 will give you the distance in cm, or dividing by 148 will give the distance in inches. uS\/58=cm or uS\/148=inches.\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\n  \u003c\/b\u003eYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF04 is conical with the width of the beam being a function of the surface area of the transducers and is fixed.  The beam pattern of the transducers used on the SRF04, taken from the manufacturers data sheet, is shown below.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf04_beam.gif\" border=\"0\" height=\"296\" width=\"311\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003eThere is more information in the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\" target=\"_blank\"\u003e\u003cstrong\u003esonar faq\u003c\/strong\u003e.\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e\u003cb\u003eUpdate - May 2003\u003c\/b\u003e\u003cbr\u003e\n  Since the original design of the SRF04 was published, there have been incremental improvements to improve performance and manufacturing reliability. The op-amp is now an LMC6032 and the comparator is an LP311. The 10uF capacitor is now 22uF and a few resistor values have been tweaked.  These changes have happened over a period of time.\u003c\/p\u003e\n\u003cp\u003eAll SRF04's manufactured after May 2003 have new software implementing an optional timing control input using the \"do not connect\" pin. This connection is the PIC's Vpp line used to program the chip after assembly. After programming its just an unused input with a pull-up resistor. When left unconnected the SRF04 behaves exactly as it always has and is described above. When the \"do not connect\" pin is connected to ground (0v), the timing is changed slightly to allow the SRF04 to work with the slower controllers such as the Picaxe. The SRF04's \"do not connect\" pin now acts as a timing control. \u003cb\u003e This pin is pulled high by default and when left unconnected, the timing remains exactly as before.\u003c\/b\u003e With the timing pin pulled low (grounded) a 300uS delay is added between the end of the trigger pulse and transmitting the sonic burst. Since the echo output is not raised until the burst is completed, there is no change to the range timing, but the 300uS delay gives the Picaxe time to sort out which pin to look at and start doing so. The new code has shipped in all SRF04's since the end of April 2003. The new code is also useful when connecting the SRF04 to the slower Stamps such as the BS2. Although the SRF04 works with the BS2, the echo line needs to be connected to the lower numbered input pins. This is because the Stamps take progressively longer to look at the higher numbered pins and can miss the rising edge of the echo signal. In this case you can connect the \"do not connect\" pin to ground and give it an extra 300uS to get there. \u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867940185,"sku":"SRF04\/A","price":23.85,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890036326745,"sku":"SRF04","price":23.85,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf04_front_5.jpg?v=1695766373"},{"product_id":"srf02-ultrasonic-range-finder","title":"SRF02 Ultrasonic range finder","description":"\u003cp\u003e\u003cbr\u003e\nThe \u003cstrong\u003eSRF02\u003c\/strong\u003e is a single transducer ultrasonic rangefinder in a small footprint  PCB. It features both I2C and a Serial interfaces. The serial interface is a  standard TTL level UART format at 9600 baud,1 start, 2 stop and no parity bits, and may be connected directly to  the serial ports on any microcontroller. Up to 16 SRF02's may be connected  together on a single bus, either I2C or Serial. New commands in the SRF02  include the ability to send an ultrasonic burst on its own without a reception  cycle, and the ability to perform a reception cycle without the preceding burst.  This has been as requested feature on our sonar's and the SRF02 is the first  to see its implementation. Because the SRF02 uses a single transducer for both  transmission and reception, the minimum range is higher than our other dual  transducer rangers. The minimum measurement range is around 15cm (6 inches).  Like all our rangefinders, the SRF02 can measure in uS, cm or inches.\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e\n\u003cp align=\"left\"\u003e \u003c\/p\u003e\n\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n    \u003ctbody\u003e\n        \u003ctr bgcolor=\"#0033FF\"\u003e\n            \u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e4mA\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003e40 Khz\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e15cm - 4mt\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eCalibration\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eFull automatic tuning\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eAnalogue Gain\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e\n            \u003cp\u003eAutomatic 64 step gain control\u003c\/p\u003e\n            \u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eModes\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrWhite\"\u003eSerial Bus or I2C Bus\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003eDimensions\u003c\/td\u003e\n            \u003ctd class=\"ProductDescrGray\"\u003e24 x 20 x H 17 mm\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003cp align=\"left\"\u003e\u003cstrong\u003eSRF02 USB\u003c\/strong\u003e\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\u003ctable border=\"0\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003e\u003cimg border=\"0\" height=\"240\" width=\"300\" alt=\"\" src=\"\/images\/srf02_usb.jpg\"\u003e\u003c\/td\u003e\n            \u003ctd\u003e   \n            \u003cp\u003e \u003c\/p\u003e\n            \u003c\/td\u003e\n            \u003ctd\u003e\u003cimg border=\"0\" height=\"262\" width=\"249\" alt=\"\" src=\"\/images\/srf02dlg.gif\"\u003e\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\u003c\/center\u003e\u003c\/div\u003e\n\u003cp align=\"left\"\u003eConnecting the SRF02 to your PC via USB is this easy. The \u003ca target=\"_blank\" href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?products_id=672\"\u003e\u003cstrong\u003eUSBI2C\u003c\/strong\u003e\u003c\/a\u003e  module supplies the SRF02 with power directly from the USB bus. The  USB_I2C_SRF02 program can be \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB_I2C_SRF02.exe\"\u003e\u003cstrong\u003edownloaded  here\u003c\/strong\u003e\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cstrong\u003eDimensions\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" height=\"252\" width=\"295\" alt=\"\" src=\"\/images\/srf02mech.gif\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cstrong\u003eOperating Modes:\u003c\/strong\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cimg width=\"24\" height=\"24\" align=\"absmiddle\" alt=\"\" src=\"..\/images\/pdfsm.gif\"\u003e \u003ca target=\"_blank\" href=\"..\/download\/srf02_i2c.pdf\"\u003eI2C Mode (110K) \u003c\/a\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cimg width=\"24\" height=\"24\" align=\"absmiddle\" alt=\"\" src=\"..\/images\/pdfsm.gif\"\u003e \u003ca target=\"_blank\" href=\"..\/download\/srf02_serial.pdf\"\u003eSerial Mode  (110K) \u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e \u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169867972953,"sku":"SRF02\/A","price":15.03,"currency_code":"EUR","in_stock":false},{"title":"2-4 Settimane","offer_id":47890036588889,"sku":"SRF02","price":15.03,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf02_4.jpg?v=1695766380"},{"product_id":"srf01-ultrasonic-range-finder","title":"SRF01 Ultrasonic range finder","description":"\u003cbr\u003e\n\n\n\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n  \u003ctr bgcolor=\"#0033FF\"\u003e\n    \u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications :\u003c\/strong\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eVoltage\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e3,3 .... 5,5V\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eCurrent\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e11mA (25mA during ranging)\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eFrequency\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003e40 Khz \u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eRange\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e18cm - 6mt (0cm - 600cm calibration required)\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eData Interface\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eSerial TTL Signal\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eBus\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e\u003cp\u003eUp to 16 SRF01 on same bus\u003c\/p\u003e\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eUnits\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrWhite\"\u003eCM or INCHES\u003c\/td\u003e\n  \u003c\/tr\u003e\n  \u003ctr\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003eWeight\u003c\/td\u003e\n    \u003ctd class=\"ProductDescrGray\"\u003e2,7 grams\u003c\/td\u003e\n  \u003c\/tr\u003e\n\u003c\/table\u003e\n\n\n\n\nOverview\u003cbr\u003e\nThe SRF01 is a single transducer ultrasonic rangefinder in a very small\nfootprint PCB. Connection is to a single pin Serial interface. The serial\ninterface is a standard TTL level UART format of 1 start, 1 stop and no parity\nbits, and may be connected directly to many controllers, such as the Basic\nStamps or the PICAXE. Baud rate at power-up is always 9600, there is a command\nto change this to 19200 or 38400 baud if preferred. Up to 16 SRF01's may be\nconnected together on a single bus. Like all\nour rangefinders, the SRF01 can measure in Cm or Inches.\n\n\u003cp align=\"left\"\u003e\u003cb\u003ePower Requirements\u003c\/b\u003e\u003cbr\u003e\nThe SRF01 accepts any voltage between 3.3v and 12v, however the recommended\nmaximum is 5.5v. Internally, it operates at\n3.3v and there is a low dropout regulator already on the SRF01 to provide this.\nThe serial I\/O pin operates at 3.3v and also 5v tolerant, so you can connect it directly to\n3.3v or 5v signals. Operating current during ranging is 25mA, 11mA in standby\n(waiting for a command) and around 55uA in sleep mode (shutdown).\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eSingle Pin Serial Communication\u003c\/b\u003e\u003cbr\u003e\nSerial data is 1 start, 1 stop and no parity bits. Serial data is a TTL level\nsignal - \u003cb\u003e It is NOT RS232\u003c\/b\u003e. Do not connect the SRF01 to an RS232 port - you will\ndestroy the module! Communication with the SRF01 is with both serial input and\nserial output on a single pin. The SRF01 will be listening at all times except\nwhen it is actually sending data, and will go back to listening as soon as its\nfinished. To communicate with the SRF01, you simply need to send a\n\"break\", followed by two bytes, the address of the SRF01 (factory\ndefault is 1) and the command. A \"break\" is just a low level for 12\nbit times or longer. 1.5mS or more will be fine. It is used to synchronize transfers on the 1-wire serial\nbus. The default shipped address can be \u003ca href=\"#Address\"\u003echanged by the user\u003c\/a\u003e\nto any of 16 addresses 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16,\nand therefore up to 16 sonar's can be used. Note - this range is different to\nthe SRF02 which has addresses 0-15. The reason is that for specific commands\nonly all SRF01's regardless of their programmed address, will respond to\naddress 0. This makes it easy to start all SRF01s ranging at the same time.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eBaud Rate\u003c\/b\u003e\u003cbr\u003e\nThe serial baud rate on the SRF01 always starts at 9600 on power up. It can be\nchanged to 19200 or 38400 if you wish. It will revert to 9600 at the next power\nup. To change the baud rate, just send a \"break\" followed by the\ngeneral call address of zero (not the module address), then command 0x64 for 19200 or command\n0x65 for 38400. You can only send the command to address zero to change all\nSRF01's at the same time.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003cb\u003eConnections\u003cbr\u003e\n\u003c\/b\u003eThe connections to the SRF01 are shown below. If you're using multiple SRF01's,\nyou can connect them all up to the same serial port on your controller. Just\nmake sure all the SRF01's are programmed to different addresses. There is a weak\npull-up resistor (47k) to 3.3v on the module, to pull the Tx line up to a logic\nhigh level when none of the SRF01's are transmitting.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/SRF01Connection.png\" border=\"0\" height=\"345\" width=\"356\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eCommands\u003cbr\u003e\n\u003c\/b\u003e\nTo send a command to the SRF01, you need to send a \"break\" followed by\ntwo bytes. The first is the SRF01's address 1 to 16, (0x01 to 0x10) and then the\nactual command itself - see below. There are two commands to initiate a ranging\n(80 to 81) giving results in inches and centimeters. These two commands\ndon't Transmit the result back to your controller. You should wait 70mS and then use\ncommand 94 to get the result of the ranging. Another set of two commands (83 to\n84) do the same, but also transmits the result of the ranging back to your\ncontroller as soon as it is available. Together, these four commands (80,81,84\n\u0026amp; 84) are called \"Real\" because they perform a complete ranging.\nThere is another set of four commands (86, 87, 89 \u0026amp; 90) called\n\"Fake\". They are the same as the \"Real\" commands except that\nthey do not send the 8-cycle ultrasonic burst out. These are used where the burst has been\ntransmitted by another sonar. It is up to you to synchronize the commands to the\ntwo sonar's. There is a command (92) to transmit a burst without doing the\nranging.\u003cbr\u003e\n\nCommand 93 is used to get the firmware revision of the SRF01.\u003cbr\u003e\nCommand 94 gets returns two bytes (high byte first) from the most recent\nranging. Put them together to make a 16-bit result.\u003cbr\u003e\nCommand 95 gets the status byte. Bit 0 is the \"Lock\" bit. it is low (0)\nafter power up, after the \"Unlock\" command is executed and after the\nmodule exits sleep mode. It goes high after 6 rangings have been completed with\nat least 30cm of free space in front of the sonar. See \u003ca href=\"#Advanced\"\u003eAdvanced\nMode\u003c\/a\u003e for more details.\u003cbr\u003e\nCommand 96 is used to place the SRF01 in a low power sleep mode. See \u003ca href=\"#Sleep%20Mode\"\u003eSleep\nMode\u003c\/a\u003e for more details.\u003cbr\u003e\nCommands 98 \u0026amp; 99 are used to enable\/disable Advanced Mode.\u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n  \u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n    \u003ctbody\u003e\n\u003ctr\u003e\n      \u003ctd colspan=\"2\" align=\"center\"\u003eCommand\u003c\/td\u003e\n      \u003ctd rowspan=\"2\" align=\"center\"\u003eAddress 0 Access\u003c\/td\u003e\n      \u003ctd rowspan=\"2\" align=\"center\"\u003eAction\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003eDecimal\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003eHex\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e80\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x50\u003c\/td\u003e\n\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eReal Ranging Mode - Result in inches \u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e81\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x51\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n\n      \u003ctd align=\"left\"\u003eReal Ranging Mode - Result in centimeters\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e \u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e83\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x53\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eReal Ranging Mode - Result in inches, automatically Tx\n        range back to controller as soon as ranging is complete.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e84\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x54\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eReal Ranging Mode - Result in centimeters, automatically\n        Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e \u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e86\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x56\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n\n      \u003ctd align=\"left\"\u003eFake Ranging Mode - Result in inches \u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e87\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x57\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eFake Ranging Mode - Result in centimeters\u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e \u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e89\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e0x59\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eFake Ranging Mode - Result in inches, automatically Tx\n        range back to controller as soon as ranging is complete.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e90\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x5A\u003c\/td\u003e\n\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eFake Ranging Mode - Result in centimeters, automatically\n        Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e \u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e92\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x5C\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eTransmit an 8 cycle 40khz burst - no ranging takes place\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e93\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x5D\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eGet software version - sends a single byte back to the\n        controller\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e94\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x5E\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eGet Range, returns two bytes (high byte first) from the\n        most recent ranging.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e95\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e0x5F\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eGet Status, returns a single byte. Bit 0 indicates\n        \"Transducer locked\", Bit 1 indicates\n        \"Advanced Mode\"\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e96\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x60\u003c\/td\u003e\n\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eSleep, shuts down the SRF01 so that it uses very low\n        power (55uA).\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e97\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x61\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n\n      \u003ctd align=\"left\"\u003eUnlock. Causes the SRF01 to release and re-acquire its\n        \"Transducer lock\". Used by our factory test routines.\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e98\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x62\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eSet Advanced Mode (Factory default) - When locked, SRF01 will range down to\n        zero.\u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e99\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x63\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eClear Advanced Mode - SRF01 will range down to approx. 12cm\/5in,\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e100\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x64\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eChanges the baud rate to 19200\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e101\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0x65\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eYes\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003eChanges the baud rate to 38400\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"100\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"center\"\u003e \u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e \u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e160\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0xA0\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n\n      \u003ctd align=\"left\"\u003e1st in sequence to change I2C address\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e165\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0xA5\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e3rd in sequence to change I2C address\u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e170\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"100\"\u003e0xAA\u003c\/td\u003e\n      \u003ctd align=\"center\"\u003eNo\u003c\/td\u003e\n      \u003ctd align=\"left\"\u003e2nd in sequence to change I2C address\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003eNone of the commands which return data can use address 0. That\nwould mean SRF01's trying to transmit data at the same time, and is prevented.\u003cbr\u003e\nMost commands which do not return data are allowed to use address 0. Exceptions\nare address\nchange commands.\u003cbr\u003e\nThe advantage of allowing address 0 access is that by sending a ranging command\nsuch as 0x51 (81 decimal), all SRF01s will start ranging at the same time. After\n70mS, you can then get the results from each SRF01 at its own address.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eLED\u003c\/b\u003e\u003cbr\u003e\nThe Led gives a brief flash during the \"ping\" whilst ranging. If the\ntransducer has not locked, the Led is on with a brief flash off. If the\ntransducer is locked, the Led is off with a brief flash on. \u003cbr\u003e\nIf you power up the SRF01 without sending any commands, it will flash its\naddress out on the LED. One long flash followed by a number of shorter flashes\nindicating its address. The flashing is terminated immediately on sending a\ncommand sequence to the SRF01.\u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n  \u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"45%\"\u003e\n    \u003ctbody\u003e\n\u003ctr\u003e\n      \u003ctd colspan=\"2\" align=\"center\" width=\"45%\"\u003eAddress\u003c\/td\u003e\n      \u003ctd rowspan=\"2\" align=\"center\" width=\"25%\"\u003eLong Flash\u003c\/td\u003e\n      \u003ctd rowspan=\"2\" align=\"center\" width=\"30%\"\u003eShort flashes\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003eDecimal\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003eHex\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e01\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e0\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e2\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e02\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"30%\"\u003e1\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e3\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e03\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e2\u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e4\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e04\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e3\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e5\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e05\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e4\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n\n      \u003ctd align=\"center\" width=\"23%\"\u003e6\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e06\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e5\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e7\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"22%\"\u003e07\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e6\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e8\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e08\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e7\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e9\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e09\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"30%\"\u003e8\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e10\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e0A\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e9\u003c\/td\u003e\n\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e11\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e0B\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e10\u003c\/td\u003e\n    \u003c\/tr\u003e\n\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e12\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e0C\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e11\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n\n      \u003ctd align=\"center\" width=\"23%\"\u003e13\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e0D\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e12\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e13\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"22%\"\u003e0E\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e13\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e15\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e0F\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"30%\"\u003e14\u003c\/td\u003e\n    \u003c\/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" width=\"23%\"\u003e16\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"22%\"\u003e10\u003c\/td\u003e\n      \u003ctd align=\"center\" width=\"25%\"\u003e1\u003c\/td\u003e\n\n      \u003ctd align=\"center\" width=\"30%\"\u003e15\u003c\/td\u003e\n    \u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003e\u003ca name=\"Address\"\u003e\u003c\/a\u003eChanging the SRF01 Address\u003c\/b\u003e\u003cbr\u003e\nTo change the address of the SRF01 you must have only one sonar connected. Write\nthe sequence of three commands in the correct order followed by the address. Example;\nto change the address of a sonar currently at 1 (the default shipped address) to\n5, write the following to address 1; (0xA0, 0xAA, 0xA5, 0x05 ). These commands\nmust be sent in the correct sequence to change the address, additionally, No\nother command may be issued in the middle of the sequence. The sequence must be\nsent as four separate commands to the current address of the sonar. i.e.\n\"break\" 0x01,\n0xA0 then \"break\" 0x01, 0xAA, then \"break\" 0x01, 0xA5 and finally\n\"break\" 0x01, 0x05. When done, you\nshould label the sonar with its new address. Take care not to set more than one\nsonar to the same address, there will be a bus collision and very unpredictable\nresults. The new address is stored in flash memory on the SRF01 and will remain,\neven if power is removed, until deliberately changed.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eStandard Mode\u003c\/b\u003e\u003cbr\u003e\nIn standard mode the SRF01 measures from approx 18cm (7 inches) to 600cm (19ft).\nIt requires no calibration or tuning to achieve this range. Standard mode is\nrecommended for commercial applications where the requirements of advanced mode\ncannot be met. To set standard mode send the Clear Advanced Mode command, 99\ndecimal or 0x63.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003cb\u003e\u003ca name=\"Advanced\"\u003e\u003c\/a\u003eAdvanced Mode\u003c\/b\u003e\u003cbr\u003e\nThis is the factory default mode. In this mode it is possible for the SRF01 to measure range all\nthe way down to zero.\nInitially, the minimum range the SRF01 can detect is around 18cm or 7 inches. For the SRF01\nto be able to measure all the way down to 0cm, it acquires a precision crystal lock on\nthe transducer's characteristics. This happens after 5 rangings have been\ncompleted with 30cm or more of free space in front of the sensor. When this\nhappens the \"lock\" bit is set (bit 0 in the status byte) and the SRF01\ncan measure from 0 to 600cm (0-6meters). \u003c\/p\u003e\n\u003cp align=\"left\"\u003e During operation the SRF01 maintains\nthe transducer lock automatically, provided it gets an occasional (every few\nminutes) set of 5 consecutive rangings of\ngreater than 30cm. The \"lock\" state of the SRF01 can be checked in by\nreading the \"Lock\" bit, which is bit 0 in the status register. A high\n(or logic 1) indicates transducer lock has been achieved and the SRF01 will work\ndown to 0cm. Where the SRF01 is not able to maintain its lock, it will release\nit (lock bit = zero) and re-acquire it as soon as possible. \u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003e\u003ca name=\"Sleep%20Mode\"\u003eSleep Mode\u003c\/a\u003e\u003c\/b\u003e\u003cbr\u003e\nWhen placed in sleep mode, all activity on the SRF01's processor ceases. The\nmodule shuts down and power consumption is reduced to a minimum. This is just a\ncombination of quiescent current in the regulator and leakage current of the\nprocessor. Typically 55uA. To wake the SRF01 up from sleep mode send 0xFF. Don't\nsend anything else - no \"break\", no address, because the 0xFF byte is\nnot a command, it's really just a single transition on the Rx line that wakes up\nall SRF01's on the serial bus. After waking up the SRF01, you should wait 2mS\nfor the processor clocks to stabilise before sending commands.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eTesting\u003c\/b\u003e\u003c\/p\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ccenter\u003e\n  \u003ctable border=\"0\"\u003e\n\n    \u003ctbody\u003e\n\u003ctr\u003e\n      \u003ctd\u003e\n        \u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf01-s22.gif\" border=\"0\" height=\"143\" width=\"254\"\u003e\u003c\/p\u003e\n\u003c\/td\u003e\n      \u003ctd width=\"10\"\u003e\u003c\/td\u003e\n      \u003ctd\u003e\u003ca href=\"..\/files\/cs_srf01.zip\"\u003e\u003cimg src=\"..\/images\/srf01Testprog.png\" border=\"0\" height=\"156\" width=\"300\"\u003e\u003c\/a\u003e\u003c\/td\u003e\n    \u003c\/tr\u003e\n  \u003c\/tbody\u003e\n\u003c\/table\u003e\n  \u003c\/center\u003e\n\u003c\/div\u003e\n\n\u003cp align=\"center\"\u003e \u003c\/p\u003e\n\u003cp align=\"left\"\u003eWe have a small test program, written in C# which controls the\nSRF01 via the Acroname\nS22 module. A small schottky diode is used to prevent the SRF01 trying to\ndrive the S22's output line (data from the PC). You will need to download and\ninstall the \u003ca href=\"http:\/\/www.ftdichip.com\/\" target=\"_blank\"\u003eFTDI VCP\u003c\/a\u003e drivers to use the\nS22. \u003cbr\u003e\nThe complete\nproject directory, with all source files, can be \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/cs_srf01.zip\" target=\"_blank\"\u003e downloaded\nhere\u003c\/a\u003e. To use this\nprogram you should download and install \u003ca href=\"http:\/\/www.microsoft.com\/express\/vcsharp\/\" target=\"_blank\"\u003eMicrosoft\nVisual C# 2008\u003c\/a\u003e.\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eMounting the SRF01\u003c\/b\u003e\u003cbr\u003e\n\nA rubber grommet is supplied to mount the SRF01. To use this make a 20mm cutout\nin your panel and fit the grommet. The SRF01 will then snuggly push into the\nhole in the grommet. Maximum panel thickness is 1.7mm.\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf01mounting.jpg\" border=\"0\" height=\"269\" width=\"400\"\u003e\u003c\/p\u003e\n\u003cp align=\"left\"\u003e\u003cb\u003eExamples\u003c\/b\u003e\u003cbr\u003e\nFurther examples of using the SRF01 can be found on our \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/acatalog\/examples.html\" target=\"_blank\"\u003eexamples\u003c\/a\u003e\npage.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 Giorno","offer_id":47169868005721,"sku":"SRF01\/A","price":25.17,"currency_code":"EUR","in_stock":true},{"title":"2-4 Settimane","offer_id":47890036818265,"sku":"SRF01","price":25.17,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf01_7.jpg?v=1695766387"}],"url":"https:\/\/xernuqvalzi.pro\/collections\/sensors-ultrasonic-devantech.oembed","provider":"Robot Italy","version":"1.0","type":"link"}