{"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\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\"\u003e 3.3 .... 5.5V\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 11mA (25mA during ranging)\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 18cm - 6m (0cm - 600cm calibration required)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Data Interface\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Serial TTL Signal\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Bus\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003cp\u003e Up to 16 SRF01 on same bus\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Units\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e CM or INCHES\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Weight\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e 2.7 grams\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\n\n\n\n Overview\u003cbr\u003e \nThe SRF01 is a single transducer ultrasonic rangefinder in a very small\n PCB footprints. Connection is to a single pin Serial interface. The serial\n interface is a standard TTL level UART format of 1 start, 1 stop and no parity\n bits, and may be connected directly to many controllers, such as the Basic\n Stamps or the PICAXE. Baud rate at power-up is always 9600, there is a command\n to change this to 19200 or 38400 baud if preferred. Up to 16 SRF01's may be\n connected together on a single bus. Like all\n our rangefinders, the SRF01 can measure in Cm or Inches.\n\n\u003cp align=\"left\"\u003e \u003cb\u003ePower Requirements\u003c\/b\u003e\u003cbr\u003e\n The SRF01 accepts any voltage between 3.3v and 12v, however the recommended\n maximum is 5.5v. Internally, it operates at\n 3.3v and there is a low dropout regulator already on the SRF01 to provide this.\n The serial I\/O pin operates at 3.3v and also 5v tolerant, so you can connect it directly to\n 3.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\n \u003cp align=\"left\"\u003e\u003cb\u003eSingle Pin Serial Communication\u003c\/b\u003e\u003cbr\u003e\n Serial data is 1 start, 1 stop and no parity bits. Serial data is at TTL level\n signal - \u003cb\u003eIt is NOT RS232\u003c\/b\u003e . Do not connect the SRF01 to an RS232 port - you will\n destroy the module! Communication with the SRF01 is with both serial input and\n serial output on a single pin. The SRF01 will be listening at all times except\n when it is actually sending data, and will go back to listening as soon as its\n finished. To communicate with the SRF01, you simply need to send a\n \"break\", followed by two bytes, the address of the SRF01 (factory\n default is 1) and the command. A \"break\" is just a low level for 12\n bit times or longer. 1.5mS or more will be fine. It is used to synchronize transfers on the 1-wire serial\n bus. The default shipped address can be \u003ca href=\"#Address\"\u003echanged by the user\u003c\/a\u003e\n to any of 16 addresses 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 or 16,\n and 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\n only all SRF01's regardless of their programmed address, will respond to\n address 0. This makes it easy to start all SRF01s ranging at the same time.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eBaud Rate\u003c\/b\u003e\u003cbr\u003e\n The serial baud rate on the SRF01 always starts at 9600 on power up. It can be\n changed to 19200 or 38400 if you wish. It will revert to 9600 at the next power\n up. To change the baud rate, just send a \"break\" followed by the\n general call address of zero (not the module address), then command 0x64 for 19200 or command\n 0x65 for 38400. You can only send the command to address zero to change all\n SRF01's at the same time.\u003c\/p\u003e\n\n\n\u003cp align=\"left\"\u003e \u003cb\u003eConnections\u003cbr\u003e\n\u003c\/b\u003e The connections to the SRF01 are shown below. If you're using multiple SRF01's,\n you can connect them all up to the same serial port on your controller. Just\n make sure all the SRF01's are programmed to different addresses. There is a weakness\n pull-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\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/SRF01Connection.png\" border=\"0\" height=\"345\" width=\"356\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eCommands\u003cbr\u003e\n\u003c\/b\u003e\n To send a command to the SRF01, you need to send a \"break\" followed by\n two bytes. The first is the SRF01's address 1 to 16, (0x01 to 0x10) and then the\n actual 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\n don't Transmit the result back to your controller. You should wait 70mS and then use\n command 94 to get the result of the ranging. Another set of two commands (83 to\n 84) do the same, but also transmits the result of the ranging back to yours\n controller 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.\n There is another set of four commands (86, 87, 89 \u0026amp; 90) called\n \"Fake.\" They are the same as the \"Real\" commands except that\n they 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\n two sonar's. There is a command (92) to transmit a burst without doing the\n ranging.\u003cbr\u003e\n\n Command 93 is used to get the firmware revision of the SRF01.\u003cbr\u003e\n Command 94 gets returns two bytes (high byte first) from the most recent\n ranging. Put them together to make a 16-bit result.\u003cbr\u003e\n Command 95 gets the status byte. Bit 0 is the \"Lock\" bit. it is low (0)\n after power up, after the \"Unlock\" command is executed and after the\n module exits sleep mode. It goes high after 6 rangings have been completed with\n at least 30cm of free space in front of the sonar. See \u003ca href=\"#Advanced\"\u003eAdvanced\n Mode\u003c\/a\u003e for more details.\u003cbr\u003e\n Command 96 is used to place the SRF01 in a low power sleep mode. See \u003ca href=\"#Sleep%20Mode\"\u003eSleep\n Mode\u003c\/a\u003e for more details.\u003cbr\u003e\n Commands 98 \u0026amp; 99 are used to enable\/disable Advanced Mode. \u003c\/p\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\"\u003e Address 0 Access\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\"\u003e Action\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 80\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x50\u003c\/td\u003e\n\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Real Ranging Mode - Result in inches\u003c\/td\u003e \n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e81\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x51\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\n\u003ctd align=\"left\"\u003e Real Ranging Mode - Result in centimeters \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 83\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x53\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Real Ranging Mode - Result in inches, automatically Tx\n range back to controller as soon as ranging is complete.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e 84\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x54\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Real Ranging Mode - Result in centimeters, automatically\n Tx range back to controller as soon as ranging is complete. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 86\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x56\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\n\u003ctd align=\"left\"\u003e Fake Ranging Mode - Result in inches\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 87\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x57\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Fake Ranging Mode - Result in centimeters \u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 89\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x59\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Fake Ranging Mode - Result in inches, automatically Tx\n range back to controller as soon as ranging is complete.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 90\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x5A\u003c\/td\u003e\n\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Fake Ranging Mode - Result in centimeters, automatically\n Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e \n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e\u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e ninety two\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x5C\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Transmit an 8 cycle 40khz burst - no ranging takes place\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 93\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x5D\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Get software version - sends a single byte back to the\n controller\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e 94\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x5E\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Get Range, returns two bytes (high byte first) from the\n most recent ranging.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 95\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x5F\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Get Status, returns a single byte. Bit 0 indicates\n \"Transducer locked\", Bit 1 indicates\n \"Advanced Mode\"\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 96\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x60\u003c\/td\u003e\n\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Sleep, shuts down the SRF01 so that it uses very low\n power (55uA).\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 97\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x61\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\n\u003ctd align=\"left\"\u003e Unlock. Causes the SRF01 to release and re-acquire its\n \"Transducer lock\". Used by our factory test routines.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 98\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x62\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Set Advanced Mode (Factory default) - When locked, SRF01 will range down to\n zero.\u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 99\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x63\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Clear Advanced Mode - SRF01 will range down to approx. 12cm\/5in,\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n \n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e100\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x64\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Changes the baud rate to 19200\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e 101\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0x65\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Yes\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e Changes the baud rate to 38400 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"100\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 160\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\n\u003ctd align=\"left\"\u003e 1st in sequence to change I2C address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 165\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0xA5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e 3rd in sequence to change I2C address\u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 170\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"100\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e No\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e 2nd in sequence to change I2C address \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e None of the commands which return data can use address 0. That\n would mean SRF01's trying to transmit data at the same time, and is prevented.\u003cbr\u003e\n Most commands which do not return data are allowed to use address 0. Exceptions\n are address\n change commands.\u003cbr\u003e\n The advantage of allowing address 0 access is that by sending a ranging command\n such as 0x51 (81 decimal), all SRF01s will start ranging at the same time. After\n 70mS, you can then get the results from each SRF01 at its own address.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eLEDs\u003c\/b\u003e\u003cbr\u003e\n The 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\n transducer is locked, the LED is off with a brief flash on.\u003cbr\u003e\n If you power up the SRF01 without sending any commands, it will flash its\n address out on the LED. One long flash followed by a number of shorter flashes\n indicating its address. The flashing is terminated immediately on sending to\n command sequence to the SRF01. \u003c\/p\u003e\n\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"45%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" align=\"center\" width=\"45%\"\u003e Address\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\" width=\"25%\"\u003e Long Flash\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\" width=\"30%\"\u003e Short flashes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 01\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 02\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 03\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 2\u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 04\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 05\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 06\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 7\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 07\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 8\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 08\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 7\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 09\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 8\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 0A\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 9\u003c\/td\u003e\n\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 0B\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 10\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 0C\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 11\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 13\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 0D\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 12\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 13\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 0E\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 13\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 15\u003c\/td\u003e\n\n       \u003ctd align=\"center\" width=\"22%\"\u003e0F\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"30%\"\u003e 14\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"23%\"\u003e 16\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"22%\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\n\u003ctd align=\"center\" width=\"30%\"\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\n\n\n\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003e\u003ca name=\"Address\"\u003e\u003c\/a\u003eChanging the SRF01 Address\u003c\/b\u003e\u003cbr\u003e\n To change the address of the SRF01 you must have only one sonar connected. Write\n the sequence of three commands in the correct order followed by the address. Example;\n to change the address of a sonar currently at 1 (the default shipped address) to\n 5, write the following to address 1; (0xA0, 0xAA, 0xA5, 0x05 ). These commands\n must be sent in the correct sequence to change the address, additionally, No\n other command may be issued in the middle of the sequence. The sequence must be\n sent as four separate commands to the current address of the sonar. ie\n \"break\" 0x01,\n 0xA0 then \"break\" 0x01, 0xAA, then \"break\" 0x01, 0xA5 and finally\n \"break\" 0x01, 0x05. When done, you\n should label the sonar with its new address. Take care not to set more than one\n sonar to the same address, there will be a bus collision and very unpredictable\n results. 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\n\u003cp align=\"left\"\u003e \u003cb\u003eStandard Mode\u003c\/b\u003e\u003cbr\u003e\n In standard mode the SRF01 measures from approx 18cm (7 inches) to 600cm (19ft).\n It requires no calibration or tuning to achieve this range. Standard mode is\n recommended for commercial applications where the requirements of advanced mode\n cannot be met. To set standard mode send the Clear Advanced Mode command, 99\n decimal or 0x63.\u003c\/p\u003e\n\n\n\u003cp align=\"left\"\u003e \u003cb\u003e\u003ca name=\"Advanced\"\u003e\u003c\/a\u003eAdvanced Mode\u003c\/b\u003e\u003cbr\u003e\n This is the factory default mode. In this mode it is possible for the SRF01 to measure range all\n the way down to zero.\n Initially, the minimum range the SRF01 can detect is around 18cm or 7 inches. For the SRF01\n to be able to measure all the way down to 0cm, it acquires a precision crystal lock on\n the transducer's characteristics. This happens after 5 rangings have been\n completed with 30cm or more of free space in front of the sensor. When this\n happens the \"lock\" bit is set (bit 0 in the status byte) and the SRF01\n can measure from 0 to 600cm (0-6meters).\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003eDuring operation the SRF01 maintains\n the transducer lock automatically, provided it gets an occasional (every few\n minutes) set of 5 consecutive rangings of\n greater than 30cm. The \"lock\" state of the SRF01 can be checked in by\n reading the \"Lock\" bit, which is bit 0 in the status register. At high\n (or logic 1) indicates transducer lock has been achieved and the SRF01 will work\n down to 0cm. Where the SRF01 is not able to maintain its lock, it will release\n it (lock bit = zero) and re-acquire it as soon as possible.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003e\u003ca name=\"Sleep%20Mode\"\u003eSleep Mode\u003c\/a\u003e\u003c\/b\u003e\u003cbr\u003e\n When placed in sleep mode, all activity on the SRF01's processor ceases. The\n module shuts down and power consumption is reduced to a minimum. This is just a\n combination of quiescent current in the regulator and leakage current of the\n processor. Typically 55uA. To wake the SRF01 up from sleep mode send 0xFF. Don't\n send anything else - no \"break\", no address, because the 0xFF byte is\n not 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\n for the processor clocks to establish before sending commands.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eTesting\u003c\/b\u003e \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf01-s22.gif\" border=\"0\" height=\"143\" width=\"254\"\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"10\"\u003e\u003c\/td\u003e\n\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\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003cp align=\"center\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e We have a small test program, written in C# which controls the\n SRF01 via the Acroname\n S22 module. A small schottky diode is used to prevent the SRF01 trying to\n drive the S22's output line (data from the PC). You will need to download and\n install the \u003ca href=\"http:\/\/www.ftdichip.com\/\" target=\"_blank\"\u003eFTDI VCP\u003c\/a\u003e drivers to use the\n S22.\u003cbr\u003e\n The complete\n project directory, with all source files, can be \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/cs_srf01.zip\" target=\"_blank\"\u003edownloaded\n here\u003c\/a\u003e . To use this\n program you should download and install \u003ca href=\"http:\/\/www.microsoft.com\/express\/vcsharp\/\" target=\"_blank\"\u003eMicrosoft\n Visual C# 2008\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eMounting the SRF01\u003c\/b\u003e\u003cbr\u003e\n\n A 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\n hole in the grommet. Maximum panel thickness is 1.7mm. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf01mounting.jpg\" border=\"0\" height=\"269\" width=\"400\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eExamples\u003c\/b\u003e\u003cbr\u003e\n Further 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\n page.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868005721,"sku":"SRF01\/A","price":25.17,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","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\/en\/products\/srf01-ultrasonic-range-finder","provider":"Robot Italy","version":"1.0","type":"link"}