{"product_id":"high-performance-ultrasonic-range-finder","title":"High Performance Ultrasonic Range Finder ","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e \u003cstrong\u003eTechnical Specifications:\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Voltage\u003c\/td\u003e\n\n             \u003ctd class=\"ProductDescrWhite\"\u003e5V\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Current\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e 15mA - 3mA Standby\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Frequency\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e 40Khz\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Range\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e 3cm - 6m\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Max Analogue Gain\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Variable 94 to 1025 in 32 steps\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Units\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\n\n\u003cp\u003e Range reported in US, mm or inches\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Connection\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e I2C Standard\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Dimensions\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e 43 x 20 x H 17 mm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n \u003cp align=\"left\"\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\n \u003cp align=\"left\"\u003e\u003cb\u003eConnections\u003cbr\u003e\n\u003c\/b\u003e 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 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 each 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\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\n\u003cp align=\"left\"\u003e \u003cb\u003eRegisters\u003c\/b\u003e\u003cbr\u003e\n The SRF08 appears as a set of 36 registers. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Location\u003c\/td\u003e\n\n\u003ctd width=\"32%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Read\u003c\/td\u003e\n\n\u003ctd width=\"44%\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Write \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e 0\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e Software Review\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e Command Register \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e 1\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e Light Sensor\u003c\/p\u003e \n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003eMax Gain Register (default 31) \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e 2\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e 1st Echo High Byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e Range Register (default 255) \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e 3\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e 1st Echo Low Byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e N\/A \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e ~~~~\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e ~~~~\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e ~~~~ \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e 34\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e 17th Echo High Byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\n\n\u003cp align=\"center\"\u003e N\/A \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e 35\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e 17th Echo Low Byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\n\n\u003cp align=\"center\"\u003e N\/A\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n \u003cp align=\"left\"\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\n\u003cp align=\"left\"\u003e Location 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\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\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"34%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eCommand\u003c\/td\u003e\n\n\u003ctd width=\"94%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003e Action \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 80\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x50\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e Ranging Mode - Result in inches\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 81\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x51\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e Ranging Mode - Result in centimeters\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 82\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x52\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e Ranging Mode - Result in micro-seconds \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 83\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x53\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e ANN Mode - Result in inches\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 84\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x54\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e ANN Mode - Result in centimeters\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 85\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e ANN Mode - Result in micro-seconds \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e \n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e160\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e 1st in sequence to change I2C address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 165\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrGray\"\u003e 0xA5\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrGray\"\u003e 3rd in sequence to change I2C address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 170\u003c\/td\u003e\n\n\u003ctd width=\"18%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd width=\"94%\" align=\"left\" class=\"ProductDescrWhite\"\u003e 2nd in sequence to change I2C address \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e \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 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\n\u003cp align=\"left\"\u003e \u003cb\u003eANN Mode\u003cbr\u003e\u003c\/b\u003e \nANN 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\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"500\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003e Location 4\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003e Location 5\u003c\/td\u003e \n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003eLocation 6\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003e Location 7\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrlHead style3\"\u003e Locations 8 - 35\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0 - 352mm\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrGray\"\u003e 353 - 705mm\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 706 - 1057mm\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1058 - 1410mm\u003c\/td\u003e\n\n\u003ctd width=\"20%\" align=\"center\" class=\"ProductDescrWhite\"\u003e and so on \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Locations 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\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 at 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\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 meters of range. This is much further than the 6 meters 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 meters .\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 meter and 140 (0x8C) is 6 metres. Setting 255 (0xFF) gives the original 11 meters (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 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\n The 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\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 to 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\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"400\" height=\"714\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"157\" height=\"19\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003e Gain Register\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"40\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003e Maximum Analogue Gain \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"77\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd width=\"80\" height=\"19\" align=\"center\" class=\"ProductDescrlHead\"\u003e Hex \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x00\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 94 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 97 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 100 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 3\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 103 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 4\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x04\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 107 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 5\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x05\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 110 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x06\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 114 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 7\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x07\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 118 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 8\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x08\u003c\/td\u003e\n\n             \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003eSet Maximum Analogue Gain to 123 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 9\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x09\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 128 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0A\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 133 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 11\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0B\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 139 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 12\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0C\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 145 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 13\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0D\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 152 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 14\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0E\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 159 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 15\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0F\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 168 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 16\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x10\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 177 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 17\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x11\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 187 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 18\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x12\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 199 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 19\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x13\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 212\u003c\/td\u003e \n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 20\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x14\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 227 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 21\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x15\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 245 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 22\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x16\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 265 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 23\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x17\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 288 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 24\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x18\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 317 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 25\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x19\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 352 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 26\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x1A\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 395 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 27\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x1B\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 450 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 28\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x1C\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 524 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 29\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x1D\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 626 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 30\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x1E\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 777 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"74\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 31\u003c\/td\u003e \n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e0x1F\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 1025 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Note 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\n If 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 meters away every 65mS or slower.\u003c\/p\u003e\n\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 stabilising). 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\n\u003cp align=\"left\"\u003e \u003cb\u003eLEDs\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\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\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"45%\" colspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003eAddress\u003c\/td\u003e\n\n\u003ctd width=\"25%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003e Long Flash\u003c\/td\u003e\n\n\u003ctd width=\"30%\" rowspan=\"2\" align=\"center\" class=\"ProductDescrlHead\"\u003e Short flashes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e \n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrlHead\"\u003eDecimal\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 224\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e E0\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 226\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e E2\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 228\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e E4\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 230\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e E6\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 232\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e E8\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 234\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e IT'S AT\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 236\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e EC\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 238\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e AND AND\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 7\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 240\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e F0\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 8\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 242\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e F2\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 9\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 244\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e F4\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 246\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e F6\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 11\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 248\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e F8\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 12\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 250\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e DOES\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e \n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e13\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 252\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrWhite\"\u003e FC\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 14\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e 254\u003c\/td\u003e\n\n\u003ctd width=\"22%\" align=\"center\" class=\"ProductDescrGray\"\u003e FE\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 15 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Take 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\n\u003cp align=\"left\"\u003e \u003cb\u003eCurrent Consumption\u003c\/b\u003e\u003cbr\u003e\n Average 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\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrlHead\"\u003e Operations\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrlHead\"\u003e Current\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrlHead\"\u003e Duration\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003e Ranging command received - Power on\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e 275mA\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003e 3uS\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrGray\"\u003e +\/- 10v generator Stabilization\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrGray\"\u003e 25mA\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrGray\"\u003e 600uS\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003e 8 cycles of 40kHz \"ping\"\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e 40mA\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003e 200uS\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrGray\"\u003e Ranging\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrGray\"\u003e 11mA\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrGray\"\u003e 65mS max\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"253\" align=\"center\" class=\"ProductDescrWhite\"\u003eStandby\u003c\/td\u003e\n\n\u003ctd width=\"62\" align=\"center\" class=\"ProductDescrWhite\"\u003e 3mA\u003c\/td\u003e\n\n\u003ctd width=\"65\" align=\"center\" class=\"ProductDescrWhite\"\u003e indefinite \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e The above values ​​are for guidance only, they are not tested on production units.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\n\u003c\/b\u003e You 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\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" height=\"296\" width=\"311\" alt=\"\" src=\"\/images\/srf08_beam.gif\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e There 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\u003e Here 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 day","offer_id":47169867448665,"sku":"SRF08\/A","price":40.33,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","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","url":"https:\/\/xernuqvalzi.pro\/en\/products\/high-performance-ultrasonic-range-finder","provider":"Robot Italy","version":"1.0","type":"link"}