{"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\/products\/srf01-ultrasonic-range-finder","provider":"Robot Italy","version":"1.0","type":"link"}