{"title":"Devantech","description":"","products":[{"product_id":"usb-rly82-2-channel-usb-relay","title":"USB-RLY82 - 2 channel USB relay","description":"\u003cp\u003eThe USB-RLY82 provides two volt free contact relay outputs with a current rating of up to 1Amp each. It is powered by any standard USB bus and has an exceptionally low maximum current consumption of approx. 90mA with all relays on. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals. Eight inputs can either be used for analogue or digital requirements, the 10bit ADC (0-1023 result) can be configured to scale to the 5V USB supply, 4.096V or 2.048V references\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eRelays\u003c\/strong\u003e \u003cspan\u003e- 2\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eAnalogue\/digital inputs\u003c\/strong\u003e \u003cspan\u003e- 8\u003c\/span\u003e \u003cstrong\u003e\u003cbr\u003ePower\u003c\/strong\u003e \u003cspan\u003e- Powered by standard USB bus\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eControl interface\u003c\/strong\u003e \u003cspan\u003e- USB\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eRelay current\u003c\/strong\u003e \u003cspan\u003e- Up to 1Amp @30vdc or 60vac. 500mA@110vac. 250mA@250vac\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e \u003cspan\u003e- Screw Terminals for N\/ON\/C and Common contacts\u003c\/span\u003e\u003c\/p\u003e\n\n \u003cp\u003e\u003cspan\u003eFull\u003c\/span\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb-rly82.pdf\" target=\"_blank\"\u003eUSB-RLY82 Documentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e Examples:\u003cbr\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb-rly82_testsc.zip\" target=\"_blank\"\u003e\u003cstrong\u003eVisual C#\u003c\/strong\u003e\u003c\/a\u003e - Full demo program to switch relays and read\/configure inputs\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169862238553,"sku":"808742\/A","price":29.3,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890035442009,"sku":"808742","price":29.3,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/usb-rly82-1.jpg?v=1695766121"},{"product_id":"eth008-8-relay-outputs-at-16a","title":"ETH008 - 8 relay outputs at 16A","description":"\u003cp\u003e The new version is available:\u003c\/p\u003e\n\n\u003ch2 class=\"product-name\"\u003e \u003ca title=\"ETH008-B - 8 relay outputs at 16A\" href=\"https:\/\/www.xernuqvalzi.pro\/it\/eth008-8-relay-outputs-at-16a-1.html\"\u003eETH008-B - 8 relay outputs at 16A\u003c\/a\u003e\n\u003c\/h2\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eOverview\u003c\/strong\u003e \u003cbr\u003eThe ETH008 provides eight volt free contact relay outputs with a current rating of up to 16Amp each. The module is powered from a 12vdc supply which can be regulated or unregulated. The DC input jack is 2.1mm with positive core polarity, DC supplies are required to supply at least 500mA at 12vdc. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals. The ETH008 is fully compatible with the ETH-RLY16 and includes the legacy ETH-RLY16 command set.\u003cbr\u003e The ETH008 has additional features over the ETH-RLY16:\u003cbr\u003e 1. Full Factory Reset, all ETH008 firmware and settings can be reset to the original state.\u003cbr\u003e 2. Firmware updates, firmware in the ETH008 is fully updateable by re-flashing the board with our custom windows program. This will be made available in the event of feature updates. \u003cbr\u003e3. New Command Format, the new command format allows for consistent compatibility with future boards. New commands now allow for pulsed control of relays from 100mS to 25.5 seconds.\u003cbr\u003e 4. TCP\/IP Password Protection, it is now possible to set a password for TCP\/IP protection. This is independent of the configuration password.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eOperating Temperature\u003c\/strong\u003e\u003cbr\u003e -40C to +70C\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLED Indication\u003cbr\u003e\u003c\/strong\u003e The ETH008 provides a red LED mounted immediately next to each relay to indicate whether it is in a powered state (LED on), there is also two LED's mounted in the Ethernet connector which will flash with Ethernet traffic. Finally there is green power LED just above the processor.\u003c\/p\u003e\n\n\u003cp\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/eth008.pdf\" target=\"_blank\"\u003eDatasheet\u003c\/a\u003e\u003cbr\u003e\u003cbr\u003e \u003cstrong\u003eRelay Power Rating\u003c\/strong\u003e\u003cspan style=\"font-family: 'Times New Roman';\"\u003e \u003cbr\u003eIf the contact load voltage and current of the relay are in the region enclosed by the solid and dotted lines in the \u003cspan style=\"font-family: 'Times New Roman';\"\u003efigure below, the relay can perform stable switching operation. If the relay is used at a voltage or current exceeding\u003c\/span\u003e \u003cspan style=\"font-family: 'Times New Roman';\"\u003ethis region, the life of the contacts may be significantly shortened.\u003c\/span\u003e \u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e load type\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Typical applications\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Rating\u003c\/td\u003e\n\n\u003ctd rowspan=\"6\" align=\"center\"\u003e Max DC load capacity \n\u003cp\u003e\u003cimg style=\"border: 0px;\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/wpe1.gif\" alt=\"\" width=\"240\" height=\"222\"\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e AC1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Not inductive or\u003cbr\u003e slightly inductive loads\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 16A @ 250V AC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e AC15\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Control of\u003cbr\u003e electromagnetic load\u003cbr\u003e (\u0026gt;72VA)\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3A @ 120V AC\u003cbr\u003e 1.5A @ 240V AC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e AC3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Control of motor\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 750W\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e DC1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Not inductive or\u003cbr\u003e slightly inductive loads\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 16A @ 24V DC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e DC13\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Control of electromagnetic\u003cbr\u003e loads\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0.22A @ 120V DC\u003cbr\u003e 0.1A @ 250V DC\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\/div\u003e\n\n\u003cp\u003e A full datasheet for the relays used on the ETH008 is here: \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/datasheets\/HF115FD.pdf\" target=\"_blank\"\u003eHF115FD datasheet\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFirst Test\u003c\/strong\u003e \u003cbr\u003eHaving plugged into your 12vdc power supply and Ethernet connection, start up your web browser and type \u003cstrong\u003ehttp:\/\/eth008\u003c\/strong\u003e into the address bar, please note this only works in windows. You will be prompted for a password as shown below: \u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd valign=\"middle\"\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008logon.png\" border=\"0\" alt=\"\" width=\"326\" height=\"354\"\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd\u003e The default login is:\u003cbr\u003e Username: admin\u003cbr\u003e Password: password\u003cbr\u003e\u003cbr\u003e The ability to change these\u003cbr\u003e settings is shown in the\u003cbr\u003e configuration section\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\/div\u003e\n\n\u003cp\u003e You should now see the following web page: \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg style=\"border: 0px;\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008web1.png\" alt=\"\" width=\"400\" height=\"187\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e This web page will allow you to switch the relays on and off by clicking the relay buttons (the red\/gray circles). It also contains a link to this technical documentation page.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eConfiguration\u003cbr\u003e\u003c\/strong\u003e By clicking the configuration link it's possible to configure the ETH008 IP address and subnet mask together with the ability to set a password for entry to control screens. The ETH008 now also offers the option to set a password that will be required to change any of the relay states using TCP IP commands, this is explained in the TCP\/IP password section. \u003cbr\u003eAll settings are saved to memory so be careful to remember the username and password! Default password settings are shown in the picture below. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008config.png\" border=\"0\" alt=\"\" width=\"523\" height=\"419\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFactory Reset\u003cbr\u003e\u003c\/strong\u003e Should it be necessary to reset the ETH008 to its shipped condition then the end two contacts of PL2 (the row of 5 holes near the large chip) on the nearest side the Ethernet connection must be shorted together at board power up. The green LED should then flash as the settings are reset, please wait until the LED finishes flashing and do not remove power during this period.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFirmware Updates\u003c\/strong\u003e\u003cbr\u003e The ETH008 is fully updateable by re-flashing the board using our custom windows program. This will be made available in the event of feature updates.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eETH008 Command Set\u003c\/strong\u003e \u003cbr\u003eThe ETH008 has a new and enhanced command set designed to provide consistent expansion and new features. They are sent over TCP\/IP on port \u003cspan lang=\"EN-GB\"\u003e17494 (0x4456). This is the default port, it can be changed in the configuration settings.\u003c\/span\u003e \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"70%\" bgcolor=\"#ccffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" width=\"5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e Command\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"95%\" align=\"center\" bgcolor=\"#66ffff\"\u003e\n\n\u003cp\u003e \u003cspan style=\"font-family: 'Times New Roman';\"\u003eAction\u003c\/span\u003e \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e\u003cspan style=\"font-family: 'Times New Roman';\"\u003edec\u003c\/span\u003e\u003c\/td\u003e\n\n\u003ctd width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e \u003cspan style=\"font-family: 'Times New Roman';\"\u003ehex\u003c\/span\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 16\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 10\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Get Module Info, returns 3 bytes. Module Id (19 for ETH008), Hardware version, Firmware version.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 32\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 20\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Digital active - follow with 1-8 to set relay on, then a time for pulsed output from 1-255 (100ms resolution) or 0 for permanent\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 33\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 21\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Digital inactive - follow with 1-8 to turn relay off, then a time for pulsed output from 1-255 (100ms resolution) or 0 for permanent\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 35\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 23\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Digital set outputs \u003cspan style=\"font-family: 'Times New Roman';\"\u003e-\u003c\/span\u003e the next single byte will set all relays states, All on = 255 (11111111) All off = 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 36\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 24\u003c\/td\u003e\n\n \u003ctd width=\"95%\" align=\"center\"\u003eDigital get outputs \u003cspan style=\"font-family: 'Times New Roman';\"\u003e- sends\u003c\/span\u003e a single byte back to the controller, bit high meaning the corresponding relay is powered\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 119\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 77\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Get serial number - Returns the unique 6 byte MAC address of the module.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 120\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 78\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Get Volts - returns relay supply voltage as byte, 125 being 12.5V DC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 121\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 79\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Password entry - see TCP\/IP password\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 122\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 7A\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Get unlock time - see section below\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 123\u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 7B\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\"\u003e Log out - immediately re-enables TCP\/IP password protection\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003eDigital Active\/Inactive\u003cbr\u003e\u003c\/strong\u003e This is a 3 byte command:\u003cbr\u003e The first byte is the command, 32 (active means on) or 33 (inactive).\u003cbr\u003e Second byte is the relay number (1-8).\u003cbr\u003e Third byte is the on time. Set this to zero for un-timed operation, or 1-255 for a pulse in 100mS intervals (100mS to 25.5 seconds).\u003cstrong\u003e\u003cbr\u003e\u003c\/strong\u003e For example:\u003cstrong\u003e\u003cbr\u003e\u003c\/strong\u003e 0x20 - turn the relay on command\u003cbr\u003e 0x03 - relay 3\u003cbr\u003e 0x32 (50) - 5 seconds (50 * 100ms)\u003cbr\u003e Note - All bytes in a command must be sent in one TCP\/IP packet.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eTCP\/IP Password\u003c\/strong\u003e \u003cbr\u003eIf this option is enabled in the http configuration page then a password will be required to be entered before relay states can be changed. In the following example the password was set to \"apple\":\u003cbr\u003e\u003cbr\u003e 0x79 - 1st byte in frame sent to ETH008 to indicate password entry\u003cbr\u003e 'a' (0x61) - 2nd byte in frame (ASCII hex equivalent in brackets, full table is available at \u003ca href=\"http:\/\/www.asciitable.com\/\" target=\"_blank\"\u003ehttp:\/\/www.asciitable.com\/\u003c\/a\u003e )\u003cbr\u003e 'p' (0x70) - 3rd byte in frame\u003cbr\u003e 'p' (0x70) - 4th byte in frame\u003cbr\u003e 'l' (0x6C) - 5th byte in frame\u003cbr\u003e 'e' (0x65) - 6th byte in frame\u003cbr\u003e\u003cbr\u003e These 6 bytes are then transmitted in the same transaction to the ETH008 and if the password is correct then 1 will transmitted back, a failure will send 2.\u003cbr\u003e The board will now accept changes from the device that entered the password. If communication becomes idle for more than 30 seconds then the password protection is re-enabled. There is also a log-out command of 0x7B to enable the protection immediately.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eGet Unlock Time\u003c\/strong\u003e \u003cbr\u003eReturns TCP\/IP password protection status:\u003cbr\u003e 0 - password protection is enabled and password entry is required before changes can be made\u003cbr\u003e 1 to 30 - seconds until TCP\/IP password protection is re-enabled. All authorized commands set the timer back to 30 seconds (including this one).\u003cbr\u003e 255 - TCP\/IP password is not enabled.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eTCP\/IP Legacy Commands\u003c\/strong\u003e\u003cbr\u003e The ETH008 supports the full legacy ETH-RLY16 command set.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eIP Addresses \u0026amp; DHCP Servers\u003c\/strong\u003e\u003cbr\u003e The easiest way to use the ETH008 is to connect it to a network with a DHCP server. In this case the ETH002 will have its IP address assigned automatically by the DHCP server.\u003c\/p\u003e\n\n\u003cp\u003e If there is no DHCP server on the network, then a fixed IP address of 192.168.0.200 is used. To control the ETH008 using this fixed IP address your computer MUST be on the same subnet.\u003cbr\u003e The next step is to set your computers IP address to 192.168.0.x where x is in the range of 1 to 255 but not 200 (the ETH008 is there!) or any other used IP addresses on the network. \u003cbr\u003eThe subnet mask dictates what IP addresses the PC can communicate with, we set this to 255.255.255.0 so the PC can talk to any module with an IP address of 192.168.0.x\u003cbr\u003e\u003cbr\u003e The default gateway is likely to be the IP address that the internet connection is located at and the DNS server can be either your router address or google provide a DNS service at 8.8.8.8.. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\n\u003ctable border=\"0\" cellspacing=\"5\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd valign=\"middle\"\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/LAC-windows7.png\" border=\"0\" alt=\"\" width=\"378\" height=\"474\"\u003e\u003c\/td\u003e\n\n\u003ctd valign=\"middle\"\u003e\n\n\u003cp\u003e This image is for a PC running Windows 7.\u003cbr\u003e To get to the TCP\/IP properties screen, go to:\u003cbr\u003e Control Panel-\u0026gt;Network and Sharing Center-\u0026gt;Local Area Connection-\u0026gt;Properties.\u003cbr\u003e Select Internet Protocol Version 4(TCP\/IPv4) from the scroll box and click Properties.\u003c\/p\u003e\n\n\u003cp\u003e That gets you to the dialog box shown left. \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\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eTest program and example source code\u003cbr\u003e\u003c\/strong\u003e To get the ETH008 up and running in the minimum amount of time we have put together an example program to demonstrate the functionality of the module.  We provide the full source code for this program. You may examine this code to see how it works or use it as a starting point for your own application. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008test.png\" border=\"0\" alt=\"\" width=\"343\" height=\"289\"\u003e\u003c\/p\u003e\n\n \u003cp\u003eVisual studio express C# examples\u003cbr\u003e The test program is available as Visual C# express ready built installation files \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/eth008inst.zip\"\u003ehere\u003c\/a\u003e , or as Visual C# express project with source files \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/eth008sc.zip\"\u003ehere\u003c\/a\u003e .\u003cbr\u003e Visual studio express is provided free from Microsoft: \u003ca href=\"http:\/\/www.microsoft.com\/exPress\/download\/\"\u003ehttp:\/\/www.microsoft.com\/exPress\/download\/\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAccess from the Internet\u003c\/strong\u003e \u003cbr\u003eThe ETH008 can be controlled over the internet almost as easily as on your local network. Your network will most likely be connected to the internet with a broadband router. This will provide NAT (Network Address Translation) and Firewall services. To access the ETH008 from the internet you will need to open up port \u003cspan lang=\"EN-GB\"\u003e17494 (0x4456) to allow incoming TCP connections. Be careful not to open up any other ports. There are a wide variety of routers and we cannot give details for all of them. If in doubt ask your system administrator for assistance. The following shows how to open up a port on a Netgear DG834 router.\u003c\/span\u003e \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008service.png\" border=\"0\" alt=\"\" width=\"333\" height=\"232\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan lang=\"EN-GB\"\u003eAfter logging on to your routers setup page, the first thing to do is create a new service. Click on the \"Services\" menu then \"Add Custom Service\". Enter a name for the service, select TCP and enter the ETH008's port address for both the start and finish ports. Click \"Apply\".\u003c\/span\u003e \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008inbound.png\" border=\"0\" alt=\"\" width=\"371\" height=\"323\"\u003e\u003c\/p\u003e\n\n \u003cp\u003eNow go to the \"Firewall Rules\" menu and click \"Add\" in the Inbound services section. Select the ETH008 service and ALLOW always. The \"Send to LAN Server\" IP address is the ETH008's IP address, 192.168.0.99 in the example above but check what it is on your network. Click \"Apply\" and that's it. The ETH008 is now accessible over the internet. Before you close the routers setup pages, go to the \"Router Status\" menu and make a note of its ADSL port IP address. This is the internet routers facing IP address. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008test2.png\" border=\"0\" alt=\"\" width=\"349\" height=\"295\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e To test this you will need a computer that has its own internet connection and is NOT connected to the same network as the ETH008. Download and run the test program above and select Custom IP. In the pop-up box enter your routers internet facing IP address. Click on \"Try IP\" and it will connect you to the ETH008 just as if it were on your own network.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAndroid \u0026amp; iPhone Apps\u003c\/strong\u003e . \u003cbr\u003eWe have a free \u003cstrong\u003eIO network\u003c\/strong\u003e app available for Android and iPhone to remotely control your relays, download from Google Play or iTunes. Search for \"Devantech\" and you will find the app.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eBoard dimensions\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg style=\"border: 0px;\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/eth008dim.png\" alt=\"\" width=\"400\" height=\"277\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169864434009,"sku":"807486\/A","price":84.79,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035605849,"sku":"807486","price":84.79,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/eth008-400.png?v=1695766160"},{"product_id":"usb-iss-enhanced-usb-i2c-module","title":"USB-ISS - Enhanced USB-I2C Module","description":"\u003cp\u003e\u003cbr\u003e\n The USB-ISS Multifunction USB Communications Module provides a complete interface between your PC and the I2C bus, SPI bus, a Serial port and general purpose Analogue Input or Digital I\/O. The module is powered by the USB. Operating voltage is selectable between 3.3v and 5v. and can supply up to 80mA at 5v for external circuitry from a standard 100mA USB port.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eDocuments and Downloads\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cul\u003e\n\n\u003cli\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb-devtech-inf.zip\" target=\"_blank\"\u003eDrivers\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e\n\n \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_tech.htm\"\u003eOnline Manual\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_i2c_tech.htm\"\u003eI2C mode Manual\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_spi_tech.htm\"\u003eSPI mode Manual\u003c\/a\u003e\n\u003c\/li\u003e\n\n     \u003cli\u003e\u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_serial_tech.htm\"\u003eSerial mode Manual\u003c\/a\u003e\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_io_tech.htm\"\u003eGPIO mode Manual\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/usb_iss_boot.htm\"\u003eBootloader manual\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/usbiss.zip\"\u003eSoftware\u003c\/a\u003e\n\u003c\/li\u003e\n\n\u003cli\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB-ISS%20Test.zip\"\u003eSoftware (source)\u003c\/a\u003e\n\u003c\/li\u003e\n\n\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169864827225,"sku":"785012\/A","price":27.15,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035540313,"sku":"785012","price":27.15,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/785012_6.jpg?v=1695766186"},{"product_id":"cmps12-tilt-compensated-compass","title":"CMPS12 - Tilt compensated compass","description":"\u003cp\u003eThe CMPS12 is our 4th generation tilt compensated compass. Employing a 3-axis magnetometer, a 3-axis gyro and a 3-axis accelerometer. At the core of the module is the superb BNO055 running algorithms to remove the errors caused by tilting of the PCB. Power supply requirements are flexible, you can feed between 3.3 - 5v and the module draws a nominal18mA of current. A choice of serial or I2C interfaces can be used for communication.\u003c\/p\u003e\n\n\u003cp\u003e Overview of outputs\u003c\/p\u003e\n\n\u003cp\u003e Heading, 16 bit – 2 outputs, one calculated by Bosch and one by us\u003cbr\u003e Heading, 8 bit – 0-255 scaled for simpler requirements\u003cbr\u003e Pitch – +\/- 0-90° or +\/- 0-180°\u003cbr\u003e Roll – +\/- 0-90°Temperature – current temperature of the BNO055 in °c\u003cbr\u003e Raw sensor outputs – 3 x 16 bit integers for each of the Magnetometer, accelerometer and gyro\u003c\/p\u003e\n\n \u003cp\u003e\u003cspan\u003eFull\u003c\/span\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/cmps12.pdf\" target=\"_blank\"\u003eTechnical Data\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e \u003cspan\u003e, and the\u003c\/span\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/cmpsqa.htm\" target=\"_blank\"\u003eCompass FAQ\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e We also have a free design for a 3d printed tower \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/cmps-tower.zip\"\u003e\u003cspan\u003e\u003cstrong\u003ehere\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e Examples: \u003cspan\u003e\u003cstrong\u003e\u003cbr\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/i2c-tutorial\" target=\"_self\"\u003e\u003cspan\u003eI2C bus\u003c\/span\u003e \u003cspan\u003etutor\u003c\/span\u003e\u003c\/a\u003e\u003c\/strong\u003e\u003c\/strong\u003e\u003c\/span\u003e - general I2C guide\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/arduino_examples.htm\"\u003e\u003cstrong\u003eArduino\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - I2C interface or a serial interface and displaying data via the serial monitor\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/ATMEGA32_examples.htm\"\u003e\u003cstrong\u003eATMEGA32\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - reading the result and displaying on a LCD03\/LCD05 \u003cbr\u003e\u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/pic18_examples.htm\" target=\"_self\"\u003ePIC18F4410\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e - reading the result and displaying on a LCD03\/LCD05\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/pic24_examples.htm\" target=\"_self\"\u003e\u003cstrong\u003ePIC24FJ16GA002\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - reading the result and displaying on a LCD03\/LCD05\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/picaxe_examples.htm\" target=\"_self\"\u003e\u003cstrong\u003ePicaxe18x\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - I2C communication example\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/raspberry_pi_examples.htm\" target=\"_self\"\u003e\u003cstrong\u003e\u003cspan\u003eRaspberry Pi\u003c\/span\u003e\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - using I2C communication\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169866563929,"sku":"809213\/A","price":40.26,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035638617,"sku":"809213","price":40.26,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/cmps12.jpg?v=1695766262"},{"product_id":"100mm-diameter-wheel-with-5mm-hub","title":"100mm diameter wheel with 5mm hub","description":"\u003cbr\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169866662233,"sku":"WHEEL100\/A","price":13.35,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035704153,"sku":"WHEEL100","price":13.35,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/wheel1_5.jpg?v=1695766296"},{"product_id":"16amp-8-channel-usb-relay-module","title":"16Amp, 8 Channel USB Relay Module ","description":"\u003cdiv style=\"background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n\u003cp align=\"left\"\u003e\u003cbr\u003e \nThe USB-RLY16 provides eight volt free contact relay outputs with a current rating of up to 16Amp each. The processor is powered and instructed by any standard USB bus and the relay power is obtained by the DC power input adapter. The DC input jack is 2.1mm with positive core polarity, DC supplies are required to supply at least 500mA at 12vdc. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eLED indication\u003cbr\u003e\n\u003c\/b\u003e The USB-RLY16 provides a red LED mounted immediately next to each relay to indicate whether it is in a powered state (LED on), there is also two LED's which will flash with USB transactions to and from the module, green indicating reception of data from the PC and yellow the transmission of data to the PC. Finally there is red power LED mounted near to the USB connector.\u003cbr\u003e\n\u003cbr\u003e\n \u003cb\u003eRelay power rating\u003c\/b\u003e\u003cfont face=\"Times New Roman\"\u003e\u003cbr\u003e\u003c\/font\u003e \nIf the contact load voltage and current of the relay are in the region enclosed by the solid and dotted lines in the \u003cfont face=\"Times New Roman\"\u003efigure below, the relay can perform stable switching operation. If the relay is used at a voltage or current exceeding\u003c\/font\u003e \u003cfont face=\"Times New Roman\"\u003ethis region, the life of the contacts may be significantly shortened.\u003c\/font\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable border=\"1\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e load type\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eTypical applications\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eRating \u003c\/td\u003e\n\n\u003ctd rowspan=\"6\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Max DC load capacity \n\u003cp\u003e\u003cimg height=\"402\" width=\"435\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/wpe1.gif\"\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AC1\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eNot inductive or\u003cbr\u003e\n slightly inductive loads\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e16A @ 250V AC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AC15\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eControl of\u003cbr\u003e\n electromagnetic load\u003cbr\u003e\n (\u0026gt;72VA)\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e3A @ 120V AC\u003cbr\u003e\n 1.5A @ 240V AC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AC3\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eControl of motor\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e750W \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e DC1\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eNot inductive or\u003cbr\u003e \nslightly inductive loads\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e16A @ 24V DC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e DC13\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003eControl of electromagnetic\u003cbr\u003e\n loads\u003c\/td\u003e\n\n\u003ctd align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e0.22A @ 120V DC\u003cbr\u003e\n 0.1A @ 250V DC \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 A full datasheet for the relays used on the RLY16 is here: \u003ca target=\"_blank\" href=\"http:\/\/www.relpol.pl\/servlet\/getproduct?ID=20\"\u003eRM85 datasheet\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eFirst Step - Get The Drivers\u003c\/b\u003e\u003cbr\u003e \nThe USB-RLY16 module uses the \u003ca target=\"_blank\" href=\"http:\/\/www.ftdichip.com\/Products\/FT232R.htm\"\u003eFTDI FT232R USB chip\u003c\/a\u003e to handle all the USB protocols. The documentation provided by FTDI is very complete, and is not duplicated here. Before using the USB-RLY16, you will need to install FTDI's Virtual COM Port (VCP) Drivers. These drivers appear to the system as an extra Com Port (in addition to any existing hardware Com Ports). Application software accesses the USB device in the same way as it would access a standard Windows Com Port using the Windows VCOMM API calls or by using a Com Port Library. Drivers are available for Windows, Apple, Linux and Open BSD systems directly from the \u003ca target=\"_blank\" href=\"http:\/\/www.ftdichip.com\"\u003eFTDI website\u003c\/a\u003e . You should get and install the drivers now, before you connect the USB-RLY16 to your computer. The Drivers page is \u003ca target=\"_blank\" href=\"http:\/\/www.ftdichip.com\/FTDrivers.htm\"\u003ehere\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eWhich COM port?\u003cbr\u003e\u003c\/b\u003e \nAfter installing the drivers, and plugging in the USB-RLY16 module to a spare USB port, you will want to know which COM port it has been assigned to. This will vary from system to system depending on how many COM ports you currently have installed. To find out where it is, right click on your \"My Computer\" desktop icon and select the \"Device Manager\" tab. Now scroll down and open the \"Ports (COM \u0026amp; LPT)\" tab. You should see the USB serial port listed - COM2 in the example below. If you want to change the COM port number - just right click on it, select properties, select advanced and select the COM port number from the available list. The COM port should be set up for 19200 baud, 8 data bits, no parity and two stop bits. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg height=\"448\" width=\"410\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/win98.dm.jpg\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e \nThe USB-RLY16 operates with an easy to use command set as described in the table below. Most commands are only a single byte and if applicable the USB-RLY16 will automatically send its response. The only exception to this being the \"Set relay states\" command which requires and additional desired states byte to be sent immediately after the command byte. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ccenter\u003e\u003c\/center\u003e\n\n\u003ctable width=\"70%\" bgcolor=\"#ccffcc\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" width=\"5%\" align=\"center\" bgcolor=\"#66ffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"95%\" align=\"center\" bgcolor=\"#66ffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n\u003cp align=\"center\"\u003e \u003cfont face=\"Times New Roman\"\u003eAction\u003c\/font\u003e \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003edec\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003ehex\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e90\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 5A \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get software version - returns 2 bytes, the first being the Module ID which is 9, followed by the software version \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e91\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 5B \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n             \u003cp align=\"center\"\u003e\u003cfont face=\"Times New Roman\"\u003eGet relay states - sends\u003c\/font\u003e a single byte back to the controller, bit high meaning the corresponding relay is powered \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eninety two\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 5C \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n \u003cfont face=\"Times New Roman\"\u003eSet relay states -\u003c\/font\u003e the next single byte will set all relays states, All on = 255 (11111111) All off = 0 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 93 \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e5D\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get DC input voltage - returns relay supply voltage as byte, 125 being 12.5V DC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e100\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e64\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eAll relays on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e101\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e65\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 1 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e102\u003c\/font\u003e\n\u003c\/td\u003e\n\n             \u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e66\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 2 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e103\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e67\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 3 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e104\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e68\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 4 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e105\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e69\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 5 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e106\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e6A\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 6 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e107\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e6B\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 7 on\u003c\/font\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e108\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e6C\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 8 on\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e110\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e6E\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd nowrap width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eAll relays off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e111\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 6F \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 1 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e112\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e70\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 2 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e113\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e71\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 3 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e114\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e72\u003c\/font\u003e\n\u003c\/td\u003e\n\n             \u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 4 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e115\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e73\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 5 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e116\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e74\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 6 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e117\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e75\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 7 off\u003c\/font\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"3%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e118\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"2%\" align=\"center\" bgcolor=\"#ffff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003e76\u003c\/font\u003e \u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Times New Roman\"\u003eTurn relay 8 off\u003c\/font\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\u003c\/div\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003cb\u003eBoard dimensions\u003c\/b\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg height=\"401\" width=\"625\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/USB-RLY16dimension.gif\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eTest program and example source code\u003c\/b\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e To get the USB-RLY16 up and running in the minimum amount of time we have put together an example program to demonstrate the functionality of the module. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg height=\"367\" width=\"429\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/USB-RLY16test.gif\"\u003e\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003eVisual studio express examples\u003cbr\u003e\n\u003cbr\u003e\n Visual C# express\u003cbr\u003e\n The test program is available as a visual C# express built exe file here \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB-RLY16%20TEST.exe\"\u003eUSB RLY16 TEST\u003c\/a\u003e or as visual C# express project here \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB-RLY16%20TEST.zip\"\u003eUSB-RLY16 TEST.zip\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e Visual basic express\u003cbr\u003e\n The test program is available as a visual basic express built exe file here \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB-RLY16VB.exe\"\u003eUSB RLY16VB\u003c\/a\u003e or as visual basic express project here \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB-RLY16VB.zip\"\u003eUSB-RLY16VB.zip\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e Visual studio express is provided free from Microsoft here: \u003ca target=\"_blank\" href=\"http:\/\/www.microsoft.com\/exPress\/download\/\"\u003ehttp:\/\/www.microsoft.com\/exPress\/download\/\u003c\/a\u003e\u003c\/p\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169866727769,"sku":"USB-RLY16\/A","price":83.2,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890035736921,"sku":"USB-RLY16","price":83.2,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/USB-RLY16-B2.png?v=1729161887"},{"product_id":"2-channel-usb-relay-module","title":"2 Channel USB Relay Module ","description":"\u003cdiv style=\"background-color: #ffffff; font-family: Arial, Verdana, sans-serif; font-size: 12px; padding: 5px; margin: 0px;\"\u003e\n\n \u003cp\u003e\u003ca href=\"https:\/\/www.xernuqvalzi.pro\/it\/usb-rly02-sn-2-x-16a-usb.html\"\u003ePRODUCT DISCONTINUED, REPLACED BY THE NEW VERSION\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003cbr\u003e The USB-RLY02 provides two volt free contact relay outputs with a current rating of up to 16Amp each. The USB-RLY02 is powered and instructed by any standard USB bus and does not require any additional power. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLED indication\u003cbr\u003e\u003c\/strong\u003e The USB-RLY02 provides a red LED mounted immediately next to each relay to indicate whether it is in a powered state (LED on).\u003cbr\u003e\u003cbr\u003e \u003cstrong\u003eRelay power rating\u003c\/strong\u003e\u003cspan style=\"font-family: \" times new roman\u003e \u003cbr\u003eIf the contact load voltage and current of the relay are in the region below the solid line in the \u003cspan style=\"font-family: \" times new roman\u003efigure below, the relay can perform stable switching operation. If the relay is used at a voltage or current exceeding\u003c\/span\u003e \u003cspan style=\"font-family: \" times new roman\u003ethis region, the life of the contacts may be significantly shortened.\u003c\/span\u003e \u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e load type\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Typical applications\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Rating \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" rowspan=\"6\" align=\"center\"\u003e Max DC load capacity \n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/wpe1.gif\" border=\"0\" alt=\"\" width=\"435\" height=\"402\"\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e AC1\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Not inductive or\u003cbr\u003e slightly inductive loads\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e 16A @ 250V AC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e AC15\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Control of\u003cbr\u003e electromagnetic load\u003cbr\u003e (\u0026gt;72VA)\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e 3A @ 120V AC\u003cbr\u003e 1.5A @ 240V AC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e AC3\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Control of motor\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e 750W \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e DC1\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Not inductive or\u003cbr\u003e slightly inductive loads\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e 16A @ 24V DC \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e DC13\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e Control of electromagnetic\u003cbr\u003e loads\u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" align=\"center\"\u003e 0.22A @ 120V DC\u003cbr\u003e 0.1A @ 250V DC\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\/div\u003e\n\n\u003cp\u003e A full datasheet for the relays used on the RLY02 is here: \u003ca href=\"http:\/\/www.relpol.pl\/servlet\/getproduct?ID=20\" target=\"_blank\"\u003eRM85 datasheet\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFirst Step - Install the Driver\u003c\/strong\u003e \u003cbr\u003eThe USB-RLY02 module uses the Microchip PIC24FJ32GB002 to handle all the USB protocols. Before using the USB-RLY02, you will need to download the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb-devtech-inf.zip\" target=\"_blank\"\u003eDevantech inf files\u003c\/a\u003e and unzip them into a temporary folder. Connect the RLY02 and windows will detect it and ask for the drivers. Point windows to the inf folder and it will install the driver. The RLY02 will now appear as a port.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eWhich COM port?\u003c\/strong\u003e \u003cbr\u003eAfter installing the drivers, and plugging in the USB-RLY02 module to a spare USB port, you will want to know which COM port it has been assigned to. This will vary from system to system depending on how many COM ports you currently have installed. To find out where it is, right click on your \"My Computer\" desktop icon and select the \"Device Manager\" tab. Now scroll down and open the \"Ports (COM \u0026amp; LPT)\" tab. You should see the USB serial port listed - COM2 in the example below. If you want to change the COM port number - just right click on it, select properties, select advanced and select the COM port number from the available list. The COM port may be left at the default baud rate etc, because they are not actually used - there is a direct USB connection into the processor. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/win98.dm.jpg\" border=\"0\" alt=\"\" width=\"410\" height=\"448\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommands\u003c\/strong\u003e \u003cbr\u003eThe USB-RLY02 operates with an easy to use command set as described in the table below. Most commands are only a single byte and if applicable the USB-RLY02 will automatically send its response. The only exception to this being the \"Set relay states\" command which requires and additional desired states byte to be sent immediately after the command byte. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" width=\"70%\" bgcolor=\"#ccffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" colspan=\"2\" width=\"5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e Command \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" rowspan=\"2\" width=\"95%\" align=\"center\" bgcolor=\"#66ffff\"\u003e\n\n\u003cp\u003e \u003cspan style=\"font-family: \" times new roman\u003eAction\u003c\/span\u003e \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e \u003cspan style=\"font-family: \" times new roman\u003edec\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2.5%\" align=\"center\" bgcolor=\"#66ffff\"\u003e \u003cspan style=\"font-family: \" times new roman\u003ehex\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e90\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 5A \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e Get software version - returns 2 bytes, the first being the Module ID which is 10, followed by the software version \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e91\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 5B \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e\n\n\u003cp\u003e \u003cspan style=\"font-family: \" times new roman\u003eGet relay states - sends\u003c\/span\u003e a single byte back to the controller, bit high meaning the corresponding relay is powered \u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eninety two\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 5C \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \n\u003cspan style=\"font-family: \" times new roman\u003eSet relay states -\u003c\/span\u003e the next single byte will set all relays states, All on = 3 (xxxxxx11) All off = 0 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e100\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e64\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eAll relays on\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e101\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e65\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eTurn relay 1 on\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e102\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e66\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eTurn relay 2 on\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e110\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e6E\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eAll relays off\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e111\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e 6F \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eTurn relay 1 off\u003c\/span\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"3%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e112\u003c\/span\u003e\n\u003c\/td\u003e\n\n \u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"2%\" align=\"center\" bgcolor=\"#ffff00\"\u003e \u003cspan style=\"font-family: \" times new roman\u003e70\u003c\/span\u003e \u003c\/td\u003e\n\n\u003ctd style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px;\" width=\"95%\" align=\"center\"\u003e \u003cspan style=\"font-family: \" times new roman\u003eTurn relay 2 off\u003c\/span\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eBoard dimensions\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/Rly02_usb.png\" border=\"0\" alt=\"\" width=\"743\" height=\"502\"\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eTest program\u003cbr\u003e\u003c\/strong\u003e To get the USB-RLY02 up and running in the minimum amount of time we have put together a \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/relay_module_test.zip\" target=\"_blank\"\u003eRelayTest\u003c\/a\u003e program to demonstrate the functionality of the module. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/RelayTest.png\" border=\"0\" alt=\"\" width=\"268\" height=\"270\"\u003e\u003c\/p\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169866793305,"sku":"USB-RLY02\/A","price":34.81,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890035769689,"sku":"USB-RLY02","price":34.81,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/usb-rly02_5.jpg?v=1695766309"},{"product_id":"usb-i2c-module","title":"USB - I2C Module","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The \u003cstrong\u003eUSB-I2C\u003c\/strong\u003e module provides a complete interface between your PC and the I2C bus. The module is self powered by the USB cable and can supply up to 70mA at 5v for external circuitry from a standard 100mA USB port. The module is an I2C master only, not a slave.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eFirst Step - Get The Drivers\u003c\/strong\u003e\u003cbr\u003e \nThe USB-I2C module uses the \u003ca href=\"http:\/\/www.ftdichip.com\/Products\/FT232R.htm\"\u003e\u003cstrong\u003eFTDI FT232R USB chip\u003c\/strong\u003e\u003c\/a\u003e to handle all the USB protocols. The documentation provided by FTDI is very complete, and is not duplicated here. Before using the USB-I2C, you will need to install FTDI's Virtual COM Port (VCP) Drivers. These drivers appear to the system as an extra Com Port (in addition to any existing hardware Com Ports). Application software accesses the USB device in the same way as it would access a standard Windows Com Port using the Windows VCOMM API calls or by using a Com Port Library. Drivers are available for Windows, Apple, Linux and Open BSD systems directly from the \u003ca target=\"_blank\" href=\"http:\/\/www.ftdichip.com\"\u003e\u003cstrong\u003eFTDI website\u003c\/strong\u003e\u003c\/a\u003e . You should get and install the drivers now, before you connect the USB-I2C to your computer. The Drivers page is \u003ca target=\"_blank\" href=\"http:\/\/www.ftdichip.com\/FTDrivers.htm\"\u003e\u003cstrong\u003ehere\u003c\/strong\u003e\u003c\/a\u003e .\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003e\u003cstrong\u003eWhich COM port?\u003cbr\u003e\n\u003c\/strong\u003e After installing the drivers, and plugging in the USB-I2C module to a spare USB port, you will want to know which COM port it has been assigned to. This will vary from system to system depending on how many COM ports you currently have installed. To find out where it is, right click on your \"My Computer\" desktop icon and select the \"Device Manager\" tab. Now scroll down and open the \"Ports (COM \u0026amp; LPT)\" tab. You should see the USB serial port listed - COM2 in the example below. If you want to change the COM port number - just right click on it, select properties, select advanced and select the COM port number from the available list. The COM port should be set up for 19200 baud, 8 data bits, no parity and two stop bits. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"410\" height=\"448\" border=\"0\" src=\"\/images\/win98.dm.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e\u003cbr\u003e\n The diagram below shows the I2C connections.\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cstrong\u003e\u003cimg width=\"543\" height=\"149\" border=\"0\" src=\"\/images\/usb-i2c-b.jpg\" alt=\"\"\u003e\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003e0v Gnd\u003cbr\u003e\n\u003c\/strong\u003e The 0v Gnd pin must be connected to the 0v (Ground) on your I2C device.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eInputs 1\u003cbr\u003e\u003c\/strong\u003e \nThe Input 1 pin is actually the processor reset line and is used in our workshop to program the processor after final assembly. The reset function has been disabled in software so that this pin may be used as an input pin. It has a 47k pull-up resistor on the PCB, so if the input is not required you can just ignore it.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eSCL and SDA\u003c\/strong\u003e\u003cbr\u003e\n These pins are the I2C bus connections. They should be connected directly to the SCL and SDA pins on your I2C device. The USB-I2C module is always a bus master, and is fitted with 4.7k pull-up resistors on the PCB.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003e+5v\u003cbr\u003e\n\u003c\/strong\u003e The +5v supply from the USB-I2C module can supply up to 70mA to external devices. If your I2C device requires more than this, or has its own supply, then leave the +5v pin unconnected. Do not apply your own 5v supply to this pin.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eCommands\u003c\/strong\u003e\u003cbr\u003e\n The USB-I2C responds to commands sent to it from the PC. There are just three primary commands:\u003cbr\u003e \nI2CD_CMD (0x53) - This allows you to read or write to I2C devices that do not have internally addressable registers, such as the Philips PCF8574 I\/O expander.\u003cbr\u003e\n I2C_CMD (0x55) - This allows you to read or write to internally registered devices such as EEPROM's or our own range of modules.\u003cbr\u003e\n USB-I2C_CMD (0x5A) - A range of commands to the USB-I2C module, generally to improve selected communications.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eWriting to I2C devices without internally addressable registers\u003c\/strong\u003e\u003cbr\u003e\n These include devices such as the Philips PCF8574 I\/O expander. Following the I2CD_CMD you send the devices I2C address and the data byte. \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e Primary USB-I2C command\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Device Address + R\/W bit\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e The data byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Byte Type\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e I2CD_CMD\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Addr+R\/W\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Date\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Example\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e 0x53\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0x40\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0x00\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Meaning\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e Direct Read\/Write command\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e PCF8574 I2C address\u003c\/td\u003e \n\u003ctd width=\"17%\" align=\"center\"\u003eSet all bits low\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e This 3 byte sequence sets all bits of a PCF8574 I\/O expander chip low. All 3 bytes should be sent to the USB-I2C in one sequence. A gap will result in the USB-I2C re-starting its internal command synchronization loop and ignoring the message. After all bytes have been received the USB-I2C performs the IC2 write operation out to the PCF8574 and sends a single byte back to the PC. This returned byte will be 0x00 (zero) if the write command failed and non-zero if the write succeeded. The PC should wait for this byte to be returned (timing out after 500mS) before proceeding with the next transaction.\u003cbr\u003e\n \u003cstrong\u003e\u003cbr\u003e\nReading from I2C devices without internally addressable registers\u003c\/strong\u003e\u003cbr\u003e \nThis is similar to writing, except that you should add 1 to the device address to make it an odd number. To read from a PCF8574 at address 0x40, you would use 0x41 as the address. (When the address goes out on the I2C bus, its the 1 in the lowest bit position that indicates a read cycle is happening). Here is an example of reading the inputs on a PCF8574 I\/O expander: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I2CD_CMD\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e PCF8574 I2C address + Read bit\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x53\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x41\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e The USB-I2C will perform the read operation on the I2C bus and send a single byte (the PCF8574 inputs) back to the PC. The PC should wait for the byte to be returned (timing out after 500mS) before proceeding with the next transaction.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eWriting to I2C devices with internally addressable registers\u003c\/strong\u003e\u003cbr\u003e \nThis includes almost all I2C devices. Following the I2C_CMD you send the device I2C address, then the devices internal register address you want to write to and the number of bytes you're writing. The maximum number of data bytes should not exceed 60 so as not to overflow the USB-I2C's internal buffer. \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e Primary USB-I2C command\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Device Address + R\/W bit\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Device internal register\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Number of data bytes\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e The data bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Byte Type\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e I2C_CMD\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Addr+R\/W\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Reg\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Date\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Example\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0xE0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0x00\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e 0x51\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"right\"\u003e Meaning\u003c\/td\u003e\n\n\u003ctd width=\"16%\" align=\"center\"\u003e Primary USB-I2C command\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e SRF08 I2C address\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e SRF08 command Reg\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e One command byte follows\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\"\u003e Start ranging in cm\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\"\u003eThis 5 byte sequence starts an SRF08 at address 0xE0 ranging. All 5 bytes should be sent to the USB-I2C in one sequence. A gap will result in the USB-I2C re-starting its internal command synchronization loop and ignoring the message. After all bytes have been received the USB-I2C performs the IC2 write operation out to the SRF08 and sends a single byte back to the PC. This returned byte will be 0x00 (zero) if the write command failed and non-zero if the write succeeded. The PC should wait for this byte to be returned (timing out after 500mS) before proceeding with the next transaction.\u003cbr\u003e\n Here is another write example - this time an 8 byte sequence to initialize the MD22 motor driver: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e I2C_CMD\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e MD22 Addr+R\/W\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e Record Mode\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e Data byte count\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e MD22 mode 1\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e Left Motor Stopped\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n             \u003cp align=\"center\"\u003eRight Motor Stopped\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e Fast acceleration\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x55\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e 0xB0\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x00\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"12%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x04\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x01\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x00\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x00\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"13%\"\u003e\n\n\u003cp align=\"center\"\u003e 0x02\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\u003cp align=\"left\"\u003e Again the USB-I2C will respond with non-zero if the write succeeded and zero if it failed. A failure means that no acknowledge was received from the I2C device.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eReading from I2C devices with internally addressable registers\u003c\/strong\u003e\u003cbr\u003e \nThis is similar to writing, except that you should add 1 to the device address to make it an odd number. To read from an SRF08 at address 0xE0, you would use 0xE1 as the address. (When the address goes out on the I2C bus, its the 1 in the lowest bit position that indicates a read cycle is happening). The maximum number of data bytes requested should not exceed 60 so as not to overflow the USB-I2C's internal buffer. Here is an example of reading the two byte bearing from the CMPS03 compass module: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I2C_CMD\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e CPMS03 I2C address + Read bit\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e CMPS03 bearing register\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Number of bytes to read\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0xC1\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e The USB-I2C will perform the read operation on the I2C bus and send two bytes back to the PC - high byte first. The PC should wait for both bytes to be returned (timing out after 500mS) before proceeding with the next transaction.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eUSB-I2C\u003c\/strong\u003e \u003cstrong\u003eCommands\u003cbr\u003e\u003c\/strong\u003e \nThe USB-I2C command format is shown below: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e USB-I2C_CMD\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e USB-I2C Command\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date 1\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x5A\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e See below\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Command Specific\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Command Specific\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e The USB-I2C commands are always a four byte sequence. They start with the USB-I2C_CMD primary command which is followed by the USB-I2C command itself. Two data bytes follow which can be any junk if not used, but they must be included to make up the 4 byte command sequence. These commands are: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"645\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e Command\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e Bytes returned\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Purpose\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e REVIEW\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Returns the USB-I2C firmware revision number\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e NEW_ADDRESS\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Changes SRF08 I2C address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e UNUSED\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n             \u003ctd width=\"373\" align=\"center\"\u003eUnused - for CM02 compatibility only - returns 0x00\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x04\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN1\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Send motor data - return battery, compass \u0026amp; sonar data\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x05\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN2\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Same but for 2 SRF08's\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x06\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN3\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 12\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e 3 SRF08's\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x07\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN4\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 15\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x08\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN6\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x09\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN8\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 27\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e 8\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x0A\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN12\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 39\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e 12\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x0B\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SCAN16\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 51\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e All 16 possible SRF08's\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x10\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e SETPINS\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Sets I\/O pins high\/low\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x11\u003c\/td\u003e\n\n\u003ctd width=\"132\" align=\"center\"\u003e GETPINS\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Gets the status of I\/O pins\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"46\" align=\"center\"\u003e 0x12\u003c\/td\u003e \n\u003ctd width=\"132\" align=\"center\"\u003eGETAD\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd width=\"373\" align=\"center\"\u003e Gets Analogue value on I\/O2 and I\/O3 \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 \u003cstrong\u003eREVISION\u003c\/strong\u003e is used to read the USB-I2C firmware revision. It returns a single byte indicating the revision number. The two data bytes are unused and can be anything, but they must be sent.\u003cbr\u003e\n \u003cstrong\u003eNEW_ADDRESS\u003c\/strong\u003e command is used to change an SRF08's I2C address to a different address. The new address should be in the first of the two data bytes. The second data byte is unused and can be anything, but it must be sent. Changing the address on the SRF08 requires 4 separate transactions on the I2C bus. The USB-I2C know how to change an SRF08's I2C address and just needs you to send it the new address using this command. When using it, make sure you only have one SRF08 connected, otherwise you will set every SRF08 on the bus to the same address. The single return byte is the new address sent back when the task is complete.\u003cbr\u003e\n \u003cstrong\u003eUNUSED\u003c\/strong\u003e Unused - for CM02 compatibility only - returns 0x00.\u003cbr\u003e \n\u003cstrong\u003eSCAN\u003c\/strong\u003e This command is provided for CM02 compatibility. It assumes you have an MD22 motor controller, a CMPS03 compass module and a number of SRF08 rangefinders. SCAN1 assumes 1 SRF08, SCAN8 assumes 8 SRF08's. The two data bytes contain the Left and Right motor speed values ​​for the MD22 motor controller. After sending the new motor speeds to the MD22, the USB-I2C will send a return frame comprising the battery voltage (0x00 - see above). This is followed by two bytes of compass bearing - high byte first, and then three bytes for each SRF08. The first of the three bytes is the SRF08's light sensor reading. The next two bytes is the range - high byte first.\u003cbr\u003e\n For example, if the SCAN2 command is used, you would receive a 9 byte return: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e Battery Volts\u003cbr\u003e\n (reads 0x00)\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e Compass bearing high byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e Compass bearing low byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e SRF08 at 0xE0\u003cbr\u003e \nLight sensor\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e SRF08 at 0xE0\u003cbr\u003e\n High byte range\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e\n\n\u003cp align=\"center\"\u003e SRF08 at 0xE0\u003cbr\u003e\n Low byte range\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e SRF08 at 0xE2\u003cbr\u003e\n Light sensor\u003c\/td\u003e\n\n\u003ctd width=\"11%\" align=\"center\"\u003e SRF08 at 0xE2\u003cbr\u003e\n High byte range\u003c\/td\u003e\n\n\u003ctd width=\"12%\" align=\"center\"\u003e SRF08 at 0xE2\u003cbr\u003e\n Low byte range\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e SRF08 data is always returned starting with address 0xE0, 0xE2, 0xE4 - going up one address at a time until all requested SRF08's data has been sent.\u003cbr\u003e\n After sending the data back up to the PC, the USB-I2C automatically issues a new ranging command to all SRF08s. The ranging command used is 82 (0x52) which returns the results in US. To convert to cm divide by 58 and to convert to inches divide by 148.\u003cbr\u003e \nSRF08 addresses should have been set up before running this command and the MD22 should be initialized to the mode and acceleration required. One more important feature. The SCAN command also sets up a 500mS timer on the USB-I2C. If another SCAN command is not received within this time, a command is automatically sent to the MD22 to stop the motors. This is to prevent your robot wandering out of control if it ventures outside of the range of the radio link.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLEDs\u003c\/strong\u003e\u003cbr\u003e\n There are two status LEDs on the USB-I2C. A red LED indicates power is on and the green LED flashes briefly when a command is received. The red LED can be turned on and off using the SETPINS command. See below.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eI\/O Pins\u003c\/strong\u003e\u003cbr\u003e \nIf the USB-I2C module is not being used for I2C, it can be used as general purpose I\/O controller with three I\/O lines. Input 1 is always an input only pin and has a 47k pull-up resistor (not 4.7k like the others). The other two can be input or output. The outputs are set high\/low with the SETPINS command. The pin is not actively driven high, it is released and pulled high by a 4.7k resistor. Output low is actively driven and can sink a maximum of 24mA. GETPINS will return the status of the I\/O pins. To use an I\/O pin as an input, it must first have a 1 (high) written to it. This will release the pin so that the 4.7k resistor will pull it high, it can then be used as an input. Both SETPINS and GETPINS commands will return the status of the I\/O Pins, however, only SETPINS can change them. The bits in the data byte written by SETPINS and returned by SETPINS and GETPINS have the following format: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e 1\u003c\/td\u003e \n\u003ctd width=\"60\" align=\"center\"\u003e0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e I\/O3\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e I\/O2\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e Input1\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\"\u003e Red LED\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e The following command will turn the Red led off and make the I\/O lines high so they can be used as inputs: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e USB-I2C_CMD\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e SETPINS Command\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date 1\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x5A\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x10\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x0E\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x00 (unused)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e \u003cstrong\u003eAnalogue Inputs\u003c\/strong\u003e\u003cbr\u003e\n The USB-I2C module can also convert the analogue values ​​on pins I\/O2 and I\/O3. Before doing this the I\/O pins should be set high, effectively making them inputs. Remember though that this is primarily a USB to I2C interface and as such has 4k7 pull-up resistors. Take this into account when connecting your analogue input.\u003c\/p\u003e\n\n\u003cp\u003e The following command will fetch the analogue values: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e USB-I2C_CMD\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e GETAD Command\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date 1\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Date2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x5A\u003c\/td\u003e\n\n             \u003ctd width=\"25%\" align=\"center\"\u003e0x12\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x00 (unused)\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e 0x00 (unused)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e With analogue data returned in the following format: \u003c\/p\u003e\n\n\u003ctable width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Byte 1\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Byte 2\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Byte 3\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e Byte 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I\/O2 High Byte\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I\/O2 Low Byte\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I\/O3 High Byte\u003c\/td\u003e\n\n\u003ctd width=\"25%\" align=\"center\"\u003e I\/O3 Low Byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e The analogue inputs use 10-bit conversion, so you will see values ​​from 0 to 1024 (0x0000 to 0x03FF)\u003c\/p\u003e\n\n\u003cp class=\"stockOut\"\u003e \u003cstrong\u003eNote - you cannot mix I\/O mode and I2C mode, I\/O commands should not be used when I2C devices are connected.\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eUSB-I2C Test Software\u003cbr\u003e\n\u003c\/strong\u003e To help you test and get the USB-I2C up and running quickly, we have provided a couple of simple test programs. The first is for the USB-I2C connected to an SRF08 ultrasonic ranger. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg width=\"300\" height=\"220\" border=\"0\" src=\"\/images\/usb-srf08.jpg\" alt=\"\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg width=\"249\" height=\"262\" border=\"0\" src=\"\/images\/usb-i2c-2.jpg\" alt=\"\"\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\u003c\/div\u003e\n\n \u003cp align=\"left\"\u003eThe connector on the USB-I2C module may be soldered directly to the SRF08 as shown, or you can use a cable if preferred. The USB-I2C module can easily supply the 25mA peak of the SRF08. The software automatically searches for the SRF08 and displays its I2C address, along with revision number, range and light sensor reading. You can download \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB_I2C_SRF08.exe\"\u003e\u003cstrong\u003eusb_i2c_srf08.exe\u003c\/strong\u003e\u003c\/a\u003e and the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb_i2c_srf08.zip\"\u003e\u003cstrong\u003eC source code\u003c\/strong\u003e\u003c\/a\u003e here.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The second is for testing I\/O modes, and allows you to set\/clr the I\/O's as well as read the digital and analogue inputs. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg width=\"324\" height=\"244\" border=\"0\" src=\"\/images\/usb-i2c-c.jpg\" alt=\"\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e You can download \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb_i2c_io.exe\"\u003e\u003cstrong\u003eusb_i2c_io.exe\u003c\/strong\u003e\u003c\/a\u003e and the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/usb_i2c_io.zip\"\u003e\u003cstrong\u003eC source code\u003c\/strong\u003e\u003c\/a\u003e here.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867219289,"sku":"USB-I2C\/A","price":27.15,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035802457,"sku":"USB-I2C","price":27.15,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/usb-i2c_5.jpg?v=1695766316"},{"product_id":"rs485-sonar-with-weatherproof-transducer-temp-compensat","title":"RS485 Sonar with Weatherproof Transducer \u0026amp; Temp. Compensated ","description":"\u003cdiv style=\"background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n \u003cp align=\"center\"\u003e\u003cb\u003e\u003cfont color=\"#ff0000\"\u003eNote - This sonar has a waterproof transducer, not an underwater transducer. It is designed for operation in air.\u003c\/font\u003e\u003c\/b\u003e \u003c\/p\u003e\n\n\u003ctable width=\"431\" bgcolor=\"#00ffff\" border=\"0\" cellspacing=\"0\" style=\"border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"3\" width=\"407\" bgcolor=\"#ffffff\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e \u003cb\u003eSpecification\u003c\/b\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Voltage \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 12vdc (8vdc - 14vdc) \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Current \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 10mA \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Range \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 60cm - 5meters \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Temperature Compensation \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e -30 to +50 centigrade \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Size \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 40.5mm x 40.5mm (1.6\" x 1.6\") \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Mounting \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 30.5mm x 30.5mm (1.2\" x 1.2\") \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"204\" align=\"right\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e Transducer \u003c\/td\u003e\n\n\u003ctd width=\"11\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e - \u003c\/td\u003e\n\n\u003ctd width=\"204\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; border-top-color: rgb(211, 211, 211); border-right-color: rgb(211, 211, 211); border-bottom-color: rgb(211, 211, 211); border-left-color: rgb(211, 211, 211); border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: dotted; border-right-style: dotted; border-bottom-style: dotted; border-left-style: dotted; \"\u003e 25mm dia. centrally mounted.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e \u003cfont size=\"3\"\u003e\u003cb\u003eOverview\u003cbr\u003e\u003c\/b\u003e\u003c\/font\u003e \nThe SRF485WPR is a water resistant single transducer ultrasonic ranger. The SRF485WPR uses the RS485 standard for communications, for up to 127 modules on each RS485 bus. The SRF485WPR features an on-board 5v power regulator which can be supplied from 8vdc to 14vdc. Both power and RS485 signals are supplied to the module via a 10pin IDC connector, making cabling a large number of modules very easy. The Range of the SRF485WPR is 60cm to 5meters.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eRS485 Communication\u003c\/b\u003e\u003cbr\u003e\n The SRF485WPR modules are connected using the RS485 bus. Up to 128 transceivers can be connected to the same bus, so you can have up to 127 SRF485WPR modules plus the controller.\u003cbr\u003e\n Serial data is fixed at 38400 baud 1 start, 2 stop and no parity bits. Control of the SRF485WPR's is by sending frames of data to the module and then listening for the response. Each SRF485WPR has a unique 24-bit address which we program in during manufacture. The data frame you send to the SRF485WPR is: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command\u003c\/td\u003e \n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Break - is defined as a continuous low in excess of 22 bit periods, followed by a high of 2 bit periods. Each bit is 26uS at 38400 baud, so 22 * ​​26uS = 572uS, it's ok to be longer.\u003cbr\u003e\n Command - is one of a number of commands that the SRF485WPR will respond to. See below for details.\u003cbr\u003e\n AddressH,M,L - is the 24-bit address of the module you wish to communicate with.\u003cbr\u003e\n Data - Is the data you wish to send to the module, zero (0x00) if nothing is required by the command.\u003cbr\u003e\n Chksum - is the 1's compliment (bitwise negation) of the sum of all the previous bytes (not counting the break).\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The module will respond with a variable number of bytes, 0 to 4 depending on the command, but the transmit frame is always the same, a break followed by 6 bytes. See Commands section below for details.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eConnections\u003cbr\u003e\u003c\/b\u003e \nThe connections to the SRF485WPR are shown below. There are 4 pins for the 12vdc supply, these are connected together on the PCB. The two pins in the middle are the RS485 signals, + is nearest the edge of the PCB and - is on the inside. The last 4 pins are 0v Ground and are connected together on the PCB. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/srf485wp1.png\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eCommands\u003c\/b\u003e\u003cbr\u003e\n To send a command to the SRF485WPR, you need to send a data frame as described above. There are two commands to initiate a ranging (80 and 81), to produce the result in inches, or centimeters. These two commands don't Transmit the result back to your controller. You should wait 70mS and then use command 94 or 105 to get the result of the ranging. Another set of two commands (83 and 84) do the same, but also transmits the temperature compensated result of the ranging back to your controller as soon as it is available.\u003cbr\u003e\n Command 93 is used to get the SRF485WPR version. This command will return 4 bytes:\u003cbr\u003e\n Byte1 is the module type, 0x03 for the SRF485WPR.\u003cbr\u003e \nByte2 is the Hardware Version, 0x01 for the current PCB.\u003cbr\u003e\n Byte3 is the Software Version, currently 0x01.\u003cbr\u003e\n Byte4 is the Modules Group number, this will be in the range 0x00 to 0x7F (0-127).\u003cbr\u003e\n Command 94 returns two bytes (high byte first) from the most recent ranging. Put them together to make a 16-bit result. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable width=\"500\" bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" width=\"161\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Bytes Returned \u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" width=\"731\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Action \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Decimal \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Hex \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 80 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x50 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in inches \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 81 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in centimeters \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 83 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x53 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in inches, automatically Tx range back to controller as soon as ranging is complete. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 84 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x54 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Ranging Mode - Result in centimeters, automatically Tx range back to controller as soon as ranging is complete.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 93 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x5D \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 4 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Version - sends 4 bytes back to the controller \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 94 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x5E \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Uncompensated Range, returns two bytes (high byte first) from the most recent ranging. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 101 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x65 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Set Search Mode - Used to search for SRF485WPR's on the bus \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 102 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x66 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 or 1 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Less Than - Used to search for SRF485WPR's on the bus \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 103 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x67 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Set Group - Sets the group number (0-127) that this sonar belongs to. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 104 \u003c\/td\u003e\n\n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x68 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get Temperature - returns the temperature in degrees centigrade, as a 16bit signed word, high byte first \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"80\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 105\u003c\/td\u003e \n\u003ctd width=\"79\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x69 \u003c\/td\u003e\n\n\u003ctd width=\"61\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 2 \u003c\/td\u003e\n\n\u003ctd width=\"731\" align=\"left\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Get temperature compensated range, returns two bytes (high byte first) from the most recent ranging. \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e Here is an example of sending a ranging command to a SRF485WPR located at address 0189AB. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x89 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAB \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x79\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e The check Sum is calculated as the low byte of ~(0x51+0x01+0x89+0xAB+0x00).\u003cbr\u003e\n 0x51+0x01+0x89+0xAB+0x00 = 0x0186\u003cbr\u003e\n The bitwise not of 0x0186 is 0xFE79\u003cbr\u003e\n We use the low byte of that, 0x79\u003cbr\u003e\n The above command will start the SRF485WPR at 0x0189AB ranging in centimeters. After 70mS the result will be available. You should then use the GET RANGE command (0x5E) to retrieve the result.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eAddressing\u003c\/b\u003e\u003cbr\u003e \nEach SRF485WPR has a unique 24-bit address programmed into it during manufacture. This address can be found by doing a search, see below. There are a number of addresses that selected commands will respond to. These are:\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eIts own unique address\u003c\/i\u003e\u003c\/b\u003e , an SRF485WPR will respond to most commands to its own address.\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eAddress 0x000000\u003c\/i\u003e\u003c\/b\u003e , used where you need all SRF485WPR's to respond to a command, such as start ranging, or setting search mode.\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eAddress 0x000001\u003c\/i\u003e\u003c\/b\u003e , used where you need all SRF485WPR's belonging to a specified group to respond to a command, such as start ranging,\u003cbr\u003e\n \u003cb\u003e\u003ci\u003eEvery Address\u003c\/i\u003e\u003c\/b\u003e , only the LESS_THAN command will respond to this, and only if its internal address is less than the one you send.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eGroups\u003c\/b\u003e\u003cbr\u003e\n You can ignore the groups feature if you do not require it.\u003cbr\u003e \nEach SRF485WPR sonar can belong to a \"group\". The purpose is to allow a selected range (or group) of SRF485WPR's to all start ranging at the same time. It is similar to sending a ranging command to address zero, which causes all SRF485WPR's to start ranging. A potential problem with this is if the SRF485WPR's are too close together, they may interfere with each other. By arranging alternate SRF485WPR's to be in a different group, you can have, say, units 1,3,5,7 etc ranging, and next time units 2,4,6,8 ranging.\u003cbr\u003e\n Even if your SRF485WPR's are not close enough to interfere, groups have the advantage of allowing you to do the ranging on one group, whilst getting the ranges from the previous group, which makes more effective use of the busses bandwidth. To set the group number, send the SET_GROUP command (0x67) to the SRF485WPR's actual address. The group number is stored in EEPROM, and only has to be sent once. This example sets the group number of the sonar at address 0x0189AB to 0x01. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n             \u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x67 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x89 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAB \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x62\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e To start all SRF485WPR's in group 0x01 ranging, send your chosen ranging command to address 0x000001 with the group number in the data byte, like this: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x51 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x01 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0xAC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n\u003cp\u003e The default group number is 0x00, so I would recommend that you avoid using that one in your application.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eSearching the RS485 bus for Sonar's\u003c\/b\u003e\u003cbr\u003e \nThe SET_SEARCH command (0x65) is used to place all SRF485WPR's on the bus into a search mode, and must be used at address zero (0x000000) to do that. Only SRF485WPR's that are in search mode will respond to the LESS_THAN command. The following will place all SRF485WPR's into \"search mode\". \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x65 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x9A\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n \u003cp\u003eThe LESS THAN command is used to search for and find the addresses of all SRF485WPR's on the bus. Every SRF485WPR whose unique internal address is less than the address supplied with the command will respond by sending back a single byte (0x00). They do this all at the same time, so you will just receive a single byte. Those SRF485WPR's whose address is equal to, or greater than the supplied address will not respond. For example if you send this command frame: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Break \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressH \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressM \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e AddressL \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Date \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e Check Sum \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 600uS Low\u003cbr\u003e\n 50us High \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x66 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x80 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x00 \u003c\/td\u003e\n\n\u003ctd width=\"100\" align=\"center\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e 0x19\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/center\u003e\u003c\/div\u003e\n\n \u003cp\u003eThen all SRF485WPR's whose internal address is in the range 0x000000 to 0x7FFFFF will send back the response byte. The value of the response byte is 0x00, but that is irrelevant. It is the presence or absence of a response that is important. The response, if there is one, will be immediate so if you have not received anything after 500uS, then you're not going to. Make sure you time out in your receive routine.\u003cbr\u003e\n So how do you use this to find the addresses of all SRF485WPR's on the bus?\u003cbr\u003e\n First, the SET_SEARCH command must be sent to address 0x000000 so that all SRF485WPR's are placed into search mode.\u003cfont face=\"Arial\" size=\"2\"\u003e\u003cbr\u003e\n\u003c\/font\u003e This is where it gets a little harder to follow:\u003cbr\u003e \nSend the LESS_THAN command with address 0x800000. If you get a response then there are one or more SRF485WPR's whose address is between 0x000000 and 0x7FFFFF. Now you can narrow it down further by sending the LESS_THAN command with address 0x400000. If you get a response then you know there are one or more SRF485WPR's between addresses 0x000000 and 0x3FFFFF. If you didn't get a response then the address would be between 0x400000 and 0x7FFFFF. If there was a response, do it again with address 0x200000. If not then address 0x600000. This is similar to the way an Analog to Digital converter works, by successive approximation. Using this technique any address can be found in 24 steps. The SRF485WPR found will be the one with the lowest address. Once found you should read the version of that SRF485WPR using the GET_VER command. This will reset the search mode for that SRF485WPR, so it will take no further part in the search process.\u003cbr\u003e\n Now you can repeat the process to find the next SRF485WPR, and so on...\u003c\/p\u003e\n\n \u003cp\u003eIt's a lot harder to say than it is to do, the code is actually quite simple. Here is the core routine to do the job, written in c. It assumes the SET_SEARCH command has already been sent. \u003c\/p\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100%\" bgcolor=\"#00ff00\" style=\"font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e \u003cfont face=\"Fixedsys\"\u003elong Find_SRF485WPR(void)\u003cbr\u003e\n {\u003cbr\u003e\n long Walk = 0x800000;               \/\/ used as a bit walker to calculate next address to search\u003cbr\u003e\n long Addr = 0x800000;               \/\/ start by looking for 0-7fffff range\u003cbr\u003e\n char x;\u003cbr\u003e\n\u003cbr\u003e\n do {\u003cbr\u003e\n SendFrame(LESS_THAN, Addr, 0); \/\/ All SRF485WPR's whose address is less than Addr, will respond\u003cbr\u003e\n x = serin485();               \/\/ this times out after 500uS and returns 0xFF\u003cbr\u003e\n if(x==0) Addr ^= Walk;        \/\/ Must be greater or equal to Walk, so merge\u003cbr\u003e\n Walk \u0026gt;\u0026gt;= 1;                   \/\/ shift the bit walker\u003cbr\u003e\u003c\/font\u003e \nAddr |= Walk;                 \/\/ and generate next test address\u003cbr\u003e\n }\u003cbr\u003e\n while(Walk);                     \/\/ repeat until the full address of SRF485WPR is found\u003cbr\u003e\n\u003cbr\u003e\n SendFrame(GET_VER, Addr, 0);     \/\/ Get the version of this SRF485WPR to reset its search mode.\u003cbr\u003e\n serin485();                      \/\/ module id - just get and discard these.\u003cbr\u003e\n serin485();                      \/\/ hardware version\u003cbr\u003e\n serin485();                      \/\/ software version\u003cbr\u003e\n serin485();                      \/\/ group number\u003cbr\u003e\n return Addr;                     \/\/ Return the SRF485WPR's address, it will be 0xFFFFFF if none found\u003cbr\u003e\n }\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n \u003cp\u003eWe also have an example for the PC written in VC++ V6 \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf48.zip\"\u003ehere\u003c\/a\u003e .\u003c\/p\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867252057,"sku":"SRF485WPR\/A","price":38.48,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035933529,"sku":"SRF485WPR","price":38.48,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf485wpr_5.jpg?v=1695766324"},{"product_id":"rs485-interfaced-sonar-with-temp-compenstation","title":"RS485 Interfaced Sonar with Temp. Compensation","description":"\u003cp\u003e The SRF485 is a single transducer ultrasonic ranger, based on our original SRF02 design. The SRF485 uses the RS485 standard for communications, for up to 127 modules on each RS485 bus. The SRF485 features an on-board 5v power regulator which can be supplied from 8vdc to 14vdc.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867284825,"sku":"SRF485\/A","price":29.77,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035966297,"sku":"SRF485","price":29.77,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf485.jpg?v=1695766331"},{"product_id":"ultrasonic-sensor-narrow-beam-srf235","title":"Ultrasonic sensor narrow beam SRF235 ","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\" align=\"center\" bordercolor=\"#999999\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\"\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 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 25mA\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 235Khz\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 10cm - 1.2m\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Beam Width\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e 15°\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 34 x 20 x H 19 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\u003e\u003cbr\u003e The SRF235 is a narrow beam ultrasonic ranger, with a beam width of just 15?. An industrial high frequency air coupled transducer operating at 235KHz is used for both Transmit and Receive. The beam patterns below show compare the 15 \u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e SRF235 with the \u003cspan style=\"font-family: 'Times New Roman';\"\u003e55\u003c\/span\u003e \u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e typical pattern of the SRF04. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/beam3.gif\" border=\"0\" alt=\"\" width=\"299\" height=\"282\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg src=\"\/images\/srf04_beam.gif\" border=\"0\" alt=\"\" width=\"311\" height=\"296\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\n\u003cp\u003e SRF235 Beam Pattern\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd\u003e\n\n\u003cp\u003e SRF04 Beam pattern\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003eLimitations \u0026amp; Characteristics\u003c\/strong\u003e \u003cbr\u003e235KHz ultrasound does not transmit as easily through air as 40KHz does, so the range of the SRF235 is limited to around 1 meter for normal objects out to a maximum of 1.2 meters for a large surface. The use of a single transducer for both transmit and receive means there is a blanking zone out to 10cm, so the effective range is 10cm to 1.2m. The 235KHz narrow 15 \u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e beam behaves more like light on a mirror than 40KHz sensors, so looking at a hard flat surface at an angle of more than 8 \u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e or 9 \u003cspan style=\"font-family: Symbol;\"\u003e?\u003c\/span\u003e will not yield an echo from that surface. It may be that the reflected beam hits an object and bounces back. In this case the echo from the object will be detected and the sonar will indicate the total range of sonar to flat surface + flat surface to object. The flat surface its self will be invisible to the sonar. Under the same circumstances, a 40KHz sensor such as the SRF04 would detect the flat surface - not the reflected object.\u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"0\" cellspacing=\"10\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd valign=\"top\"\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s1.GIF\" border=\"0\" alt=\"\" width=\"223\" height=\"170\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s2.GIF\" border=\"0\" alt=\"\" width=\"224\" height=\"207\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf235s3.GIF\" border=\"0\" alt=\"\" width=\"224\" height=\"207\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n \u003ctd\u003eAt an angle of just 9 degrees, the beam\u003cbr\u003e does not reflect back to the sonar\u003c\/td\u003e\n\n\u003ctd\u003e Here there is an object in the path of the reflected\u003cbr\u003e beam. The beam will bounce off the object and -\u003c\/td\u003e\n\n\u003ctd\u003e back via the flat surface to the sonar, which\u003cbr\u003e will think there is an object off in the distance\u003cbr\u003e in front of it.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e Soft furnishings do not reflect well at 235KHz and might not be detected. Please be aware of these characteristics before considering the purchase of an SRF235.\u003c\/p\u003e\n\n\u003cp\u003e The SRF235 detects hard round objects well, such as table and chair legs etc. This makes the SRF235 ideal for detailed local mapping around the robot, but not for longer range sensing. Using the SRF235 along side a 40KHz sonar, makes an excellent sensor combination.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommunication\u003c\/strong\u003e \u003cbr\u003eCommunication with the SRF235 ultrasonic rangefinder is via the I2C bus. This is available on popular controllers such as the OOPic, Stamp BS2p, PicAxe etc. as well as a wide variety of micro-controllers. To the programmer the SRF235 behaves in the same way as the ubiquitous 24xx series EEPROM's, except that the I2C address is different. The default shipped address of the SRF235 is 0xE0. It can be changed by the user to any of 16 addresses E0, E2, E4, E6, E8, EA, EC, EE, F0, F2, F4, F6, F8, FA, FC or FE, therefore up to 16 sonar's can be used.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e \u003cbr\u003eThe connections to the SRF235 are identical to the SRF08and SRF10 rangers. The \"No Connection\" pin should be left unconnected. It is actually the CPU MCLR line and is used once only in our workshop to program the PIC18F4220 on-board after assembly, and has an internal pull-up resistor. The SCL and SDA lines should each have a pull-up resistor to +5v somewhere on the I2C bus. You only need one pair of resistors, not a pair for each module. They are normally located with the bus master rather than the slaves. The SRF235 is always a slave - never a bus master. If you need them, I recommend 1.8k resistors. Some modules such as the OOPic already have pull-up resistors and you do not need to add any more. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/con235.GIF\" border=\"0\" alt=\"\" width=\"452\" height=\"170\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eRegisters\u003c\/strong\u003e\u003cbr\u003e The SRF235 appears as a set of 4 registers. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr align=\"center\" bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"24%\"\u003e Location\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"32%\"\u003e Read\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"44%\"\u003e Write\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"24%\"\u003e\n\n\u003cp\u003e 0\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"32%\"\u003e\n\n\u003cp\u003e Software Review\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"44%\"\u003e\n\n\u003cp\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 class=\"ProductDescrGray\" width=\"24%\"\u003e\n\n\u003cp\u003e 1\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"32%\"\u003e\n\n\u003cp\u003e Unused (reads 0x80)\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"44%\"\u003e\n\n\u003cp\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 class=\"ProductDescrWhite\" width=\"24%\"\u003e\n\n\u003cp\u003e 2\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"32%\"\u003e\n\n\u003cp\u003e Range High Byte\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"44%\"\u003e\n\n\u003cp\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 class=\"ProductDescrGray\" width=\"24%\"\u003e\n\n\u003cp\u003e 3\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"32%\"\u003e\n\n\u003cp\u003e Range Low Bytes\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"44%\"\u003e\n\n\u003cp\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\/div\u003e\n\n \u003cp\u003eOnly location 0 can be written to. Location 0 is the command register and is used to start a ranging session. It cannot be read. Reading from location 0 returns the SRF235 software revision. The ranging lasts for 10mS, and the SRF235 will not respond to commands on the I2C bus whilst it is ranging.\u003c\/p\u003e\n\n\u003cp\u003e Locations, 2 and 3, are the 16bit unsigned result from the latest ranging - high byte first. The meaning of this value depends on the command used, and is either the range in inches, or the range in cm or the flight time in US. A value of 0 indicates that no objects were detected. A new ranging may be initiated as soon as you have the read the range from the last one - no delays are needed.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommands\u003c\/strong\u003e\u003cbr\u003e The are three commands to initiate a ranging (80 to 82), to return the result in inches, centimeters or microseconds. There is also a set of commands to change the I2C address. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\" width=\"34%\" align=\"center\"\u003eCommand\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"94%\" align=\"center\"\u003e Action \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"16%\" align=\"center\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"18%\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e 80\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e 0x50\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003e Ranging Mode - Result in inches\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e 81\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e 0x51\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003e Ranging Mode - Result in centimeters\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e 82\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e 0x52\u003c\/td\u003e\n\n \u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\u003eRanging Mode - Result in micro-seconds \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e 160\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" 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 class=\"ProductDescrGray\" width=\"16%\" align=\"center\"\u003e 165\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"18%\" align=\"center\"\u003e 0xA5\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"94%\" align=\"left\"\u003e 3rd in sequence to change I2C address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"16%\" align=\"center\"\u003e 170\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"18%\" align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"94%\" align=\"left\"\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003eRanging\u003c\/strong\u003e\u003cbr\u003e To initiate a ranging, write one of the above commands to the command register and wait the required amount of time for completion and read the result. The echo buffer is cleared at the start of each ranging. The ranging lasts for 10mS, after this the range can be read from locations 2 and 3.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eChecking for Completion of Ranging\u003c\/strong\u003e \u003cbr\u003eYou do not have to use a timer on your own controller to wait for ranging to finish. You can take advantage of the fact that the SRF235 will not respond to any I2C activity whilst ranging. Therefore, if you try to read from the SRF235 (we use the software revision number at location 0) then you will get 255 (0xFF) ranging. This is because the I2C data line (SDA) is pulled high if nothing is driving it. As soon as the ranging is complete the SRF235 will again respond to the I2C bus, so just keep reading the register until its not 255 (0xFF) anymore. You can then read the sonar data. Your controller can take advantage of this to perform other tasks while the SRF235 is ranging.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLEDs\u003c\/strong\u003e\u003cbr\u003e The red LED is used to flash out a code for the I2C address on power-up (see below). It also gives a brief flash during the \"ping\" whilst ranging.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eChanging the I2C Bus Address\u003c\/strong\u003e \u003cbr\u003eTo change the I2C address of the SRF235 you must have only one sonar on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a sonar currently at 0xE0 (the default shipped address) to 0xF2, write the following to address 0xE0; (0xA0, 0xAA, 0xA5, 0xF2 ). These commands must be sent in the correct sequence to change the I2C address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent to the command register at location 0, which means 4 separate write transactions on the I2C bus. When done, you should label the sonar with its address, however if you do forget, just power it up without sending any commands. The SRF235 will flash its address out on the LED. One long flash followed by a number of shorter flashes indicating its address. The flashing is terminated immediately on sending a command the SRF235. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable class=\"ProductDescrBorder\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"400\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" colspan=\"2\" width=\"45%\" align=\"center\"\u003eAddress\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"25%\" align=\"center\"\u003e Long Flash\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" rowspan=\"2\" width=\"30%\" align=\"center\"\u003e Short flashes \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"23%\" align=\"center\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\" width=\"22%\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 224\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e E0\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 226\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e E2\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 228\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e E4\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 230\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e E6\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 232\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e E8\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 234\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e IT'S AT\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 236\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e EC\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 238\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e AND AND\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 7\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n \u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e240\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e F0\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 8\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 242\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e F2\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 9\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 244\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e F4\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 10\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 246\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e F6\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 11\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 248\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e F8\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 12\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 250\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e DOES\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\u003e 13\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"23%\" align=\"center\"\u003e 252\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"22%\" align=\"center\"\u003e FC\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\" width=\"30%\" align=\"center\"\u003e 14\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"23%\" align=\"center\"\u003e 254\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"22%\" align=\"center\"\u003e FE\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"25%\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\" width=\"30%\" align=\"center\"\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\/div\u003e\n\n\u003cp\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","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867317593,"sku":"SRF235\/A","price":129.92,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890035999065,"sku":"SRF235","price":129.92,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf235b_5.jpg?v=1695766339"},{"product_id":"miniature-ultrasonic-range-finder","title":"Miniature Ultrasonic Range Finder ","description":"\u003cbr\u003e\n\n\u003cp\u003e\n\u003c\/p\u003e\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 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 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 40 to 700 in 16 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\u003cp\u003e Range reported in US, mm or inches\u003c\/p\u003e\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 protocol\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 32 x 15 x H 10 mm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003cp\u003e \u003cstrong\u003eIntroduction\u003cbr\u003e\u003c\/strong\u003e \nCommunication with the SRF10 ultrasonic rangefinder is via the I2C bus. This is available on popular controllers such as the OOPic and Stamp BS2p, as well as a wide variety of micro-controllers. To the programmer the SRF10 behaves in the same way as the ubiquitous 24xx series eeprom's, except that the I2C address is different. The default shipped address of the SRF10 is 0xE0. It can be changed by the user to any of 16 addresses E0, E2, E4, E6, E8, EA, EC, EE, F0, F2, F4, F6, F8, FA, FC or FE, therefore up to 16 sonar's can be used. We have \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/shop\/Examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003eexamples\u003c\/strong\u003e\u003c\/a\u003e of using the SRF10 module with a wide range of popular controllers.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eConnections\u003cbr\u003e\u003c\/b\u003e \nThe connections to the SRF10 are identical to the SRF08. The \"Do Not Connect\" pin should be left unconnected. It is actually the CPU MCLR line and is used once only in our workshop to program the PIC16F87 on-board after assembly, and has an internal pull-up resistor. The SCL and SDA lines should each have a pull-up resistor to +5v somewhere on the I2C bus. You only need one pair of resistors, not a pair for each module. They are normally located with the bus master rather than the slaves. The SRF10 is always a slave - never a bus master. If you need them, I recommend 1.8k resistors. Some modules such as the OOPic already have pull-up resistors and you do not need to add any more. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf10wir.gif\" border=\"0\" height=\"245\" width=\"280\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eRegisters\u003c\/b\u003e\u003cbr\u003e\n The SRF10 appears as a set of 4 registers. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable width=\"53%\" 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\u003cp align=\"center\"\u003e 0\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Software Review\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Command Register \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e1\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Unused (reads 0x80)\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Max Gain Register (default 16)\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"24%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e2\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Range High Byte\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Range Register (default 255) \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"24%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e3\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"32%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Range Low Bytes\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"44%\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e N\/A \u003c\/p\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\u003cp align=\"left\"\u003e Only locations 0, 1 and 2 can be written to. Location 0 is the command register and is used to start a ranging session. It cannot be read. Reading from location 0 returns the SRF10 software revision. By default, the ranging lasts for 65mS, but can be changed by writing to the range register at location 2. The SRF10 will not respond to commands on the I2C bus whilst it is ranging. See the \u003cb\u003eChanging Range\u003c\/b\u003e and \u003cb\u003eAnalogue Gain\u003c\/b\u003e sections below.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e Locations, 2 and 3, are the 16bit unsigned result from the latest ranging - high byte first. The meaning of this value depends on the command used, and is either the range in inches, or the range in cm or the flight time in US. A value of 0 indicates that no objects were detected.\u003c\/p\u003e\n\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 a set of commands to change the I2C address. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\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 160\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\n\n\n\u003c\/div\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eRanging Mode\u003c\/b\u003e\u003cbr\u003e \nTo initiate a ranging, write one of the above commands to the command register and wait the required amount of time for completion and read the result. The echo buffer is cleared at the start of each ranging. The default and recommended time for completion of ranging is 65mS, however you can shorten this by writing to the range register before issuing a ranging command.\u003c\/p\u003e\n\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 SRF10 will not respond to any I2C activity whilst ranging. Therefore, if you try to read from the SRF10 (we use the software revision number 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 SRF10 will again respond to the I2C bus, so just keep reading the register until its not 255 (0xFF) anymore. You can then read the sonar data. Your controller can take advantage of this to perform other tasks while the SRF10 is ranging.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eChanging the Range\u003c\/b\u003e\u003cbr\u003e \nThe maximum range of the SRF10 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 SRF10 is actually capable of. It is possible to reduce the time the SRF10 listens for an echo, and hence the range, by writing to the range register at location 2. The range can be set in steps of about 43mm (0.043m or 1.68 inches) up to 11 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 93 (0x5D) is 4 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 SRF10 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 SRF10 at 65ms of slower, then all will be well. However if you wish to fire the SRF10 at a faster rate than 65mS, you will definitely need to reduce the gain - see next section.\u003cbr\u003e\n The range is set to maximum every time the SRF10 is powered-up. If you need a different range, change it once as part of your system initialization code.\u003cbr\u003e\n\u003c\/p\u003e\n\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 40. This is increased at approx. 96uS intervals up to the maximum gain setting, set by register 1. Maximum possible gain is reached after about 100mm (4inches) of range. The purpose of providing a limit to the maximum gain is to allow you to fire the sonar more rapidly than 65mS. Since the ranging can be very short, a new ranging can be initiated as soon as the previous range data has been read. A potential hazard with this is that the second ranging may pick up a distant echo returning from the previous \"ping\", give a false result of a close by object when there is none. To reduce this possibility, the maximum gain can be reduced to limit the modules sensitivity to the weaker distant echo, whilst still able to detect close by objects. The maximum gain setting is stored only in the CPU's RAM and is initialized to maximum on power-up, so if you only want to do a ranging every 65mS, or longer, you can ignore the Range and Gain Registers. The Gain Register is set to 16 (a gain of 700) at power-up. This can be decreased as required.\u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e \n\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=\"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=\"ProductDescrGray\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x00\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 40 \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 1\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e As above - Analogue Gain to 40 \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 2\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 50 \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 3\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 60 \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 4\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x04\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 70 \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 5\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x05\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 80 \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 6\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x06\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\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=\"ProductDescrWhite\"\u003e 7\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x07\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 120 \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 8\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x08\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 140 \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 9\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x09\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 200 \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 10\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0A\u003c\/td\u003e\n\n           \u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003eSet Maximum Analogue Gain to 250 \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 11\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0B\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 300 \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 12\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0C\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 350 \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 13\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0D\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 400 \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 14\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x0E\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 500 \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 15\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0x0F\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrWhite\"\u003e Set Maximum Analogue Gain to 600 \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 16\u003c\/td\u003e\n\n\u003ctd width=\"81\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e 0x10\u003c\/td\u003e\n\n\u003ctd width=\"265\" height=\"19\" align=\"center\" class=\"ProductDescrGray\"\u003e Set Maximum Analogue Gain to 700\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\"\u003eNote that the relationship between the Gain Register setting and the actual gain is not a linear one. Also there is no magic formula to say \"use this gain setting with that range setting\". It depends on the size, shape and material of the object and what else is around in the room. Try playing with different settings until you get the result you want. If you appear to get false readings, it may be echo's from previous \"pings\", try going back to firing the SRF10 every 65mS or longer (slower).\u003cbr\u003e\n If you are in any doubt about the Range and Gain Registers, remember they are automatically set by the SRF10 to their default values ​​when it is powered-up. You can ignore and forget about them and the SRF10 will work fine, detecting objects up to 6 meters away every 65mS or slower.\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 SRF10 you must have only one sonar on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a sonar currently at 0xE0 (the default shipped address) to 0xF2, write the following to address 0xE0; (0xA0, 0xAA, 0xA5, 0xF2 ). These commands must be sent in the correct sequence to change the I2C address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent to the command register at location 0, which means 4 separate write transactions on the I2C bus. When done, you should label the sonar with its address, however if you do forget, just power it up without sending any commands. The SRF10 will flash its address out on the LED. One long flash followed by a number of shorter flashes indicating its address. The flashing is terminated immediately on sending a command the SRF10. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\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\n\u003ctd width=\"30%\" align=\"center\" class=\"ProductDescrGray\"\u003e 13\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\u003ctd width=\"25%\" align=\"center\" class=\"ProductDescrGray\"\u003e1\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\n\n\n\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\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 SRF10 is conical with the width of the beam being a function of the surface area of ​​the transducers and is fixed. It is possible to make the sonar less sensitive to objects off to the side by reducing the maximum gain register from 16 to a lower level. This is at the expense of shorter range, however most small robots don't need 6m of range. A value of 8 (max. gain 140) will reduce the practicable range to about 2m, but it will be much less sensitive to objects off the center line. The beam pattern of the transducers used on the SRF10, taken from the manufacturers data sheet, is shown below.\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/beam2.gif\" border=\"0\" height=\"284\" width=\"301\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003eThere is more information in the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\" target=\"_blank\"\u003e\u003cstrong\u003esonar faq\u003c\/strong\u003e .\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eMounting the SRF10\u003cbr\u003e\n\u003c\/b\u003e You may have noticed that there are no mounting holes on the SRF10 module! That was deliberate to keep the module as small as possible. So how do you mount it? Here are three suggestions:\u003cbr\u003e\n \u003cb\u003e1.\u003c\/b\u003e A straight or right angle 0.1 inch connector soldered to your PCB.\u003cbr\u003e\n \u003cb\u003e2.\u003c\/b\u003e Using two 9.5mm rubber grommets. Two holes should be drilled into the panel you're mounting the SRF10 to. The hole centers should be 0.7inches (17.78mm) apart and the holes drilled 0.5 inches (12.7mm) in diameter. The two grommets should then be fitted to the panel and the SRF10 gently pushed into them.\u003cbr\u003e\n \u003cb\u003e3.\u003c\/b\u003e Using our SRF10 Mounting Kit, shown below. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg src=\"\/images\/srf10b1.jpg\" border=\"0\" height=\"225\" width=\"300\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg src=\"\/images\/srf10b4.jpg\" border=\"0\" height=\"225\" width=\"257\"\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","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867350361,"sku":"SRF10\/A","price":40.33,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890036031833,"sku":"SRF10","price":40.33,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf10_140_4.jpg?v=1695766347"},{"product_id":"high-performance-ultrasonic-range-finder","title":"High Performance Ultrasonic Range Finder ","description":"\u003cp\u003e\u003c\/p\u003e\n\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"},{"product_id":"4-20ma-current-loop-ultrasonic-range-finder","title":"4-20mA Current Loop Ultrasonic Range Finder ","description":"\u003cdiv style=\"background-color: rgb(255, 255, 255); padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: Arial, Verdana, sans-serif; font-size: 12px; \"\u003e\n\n\u003cp\u003e\u003cbr\u003e\n The SRF06 is a low cost ultrasonic ranger with a 4-20mA current output. The SRF06 is powered by the 4-20mA current loop and requires no other power. Measurement range is from 2cm to 5.1mtrs. Current output is from 4mA at zero range to 20mA at 5.1mtrs (510cm), which gives a nominal current of 4mA + 31.37uA\/cm. The SRF06 requires a loop driving voltage of 9v to 24v. The SRF06 automatically performs continuous ranging every 70-100mS.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eConnections\u003c\/b\u003e\u003cbr\u003e\n The SRF06 has only two connections, the positive and negative current loop. An on-board diode protects the module in case of reversed connections.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eConverting to a voltage output\u003c\/b\u003e\u003cbr\u003e \nUnless you are connecting to a PLC or similar controller with a 4-20mA interface, you are likely to prefer a voltage output. This is very easy to do by sending the current through a resistor. A 250 ohm resistor will have a voltage of 5v across it when 20mA is flowing (at the maximum range of 510cm). If you cannot find a 250 ohm resistor, just put two or more lower values ​​in series to make up 250 ohm. For instance at 100 ohm and 150 ohm, as indicated below. This will give you 1v to 5v for a 4mA to 20mA input. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg height=\"575\" width=\"460\" border=\"0\" alt=\"\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/SRF06-connect.gif\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The SRF06 requires a minimum voltage of 9v. If 5v is being dropped across the 250 ohm resistor, then the minimum loop driving voltage is 14v (9v+5v).\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eThe other set of 5 pins\u003c\/b\u003e\u003cbr\u003e\n The 5 pins marked \"programming pins\" are used once only during manufacture to program the Flash memory on the PIC16F630 chip. The PIC16F630's programming pins are also used for other functions on the SRF06, so make sure you don't connect anything to these pins, or you will disrupt the modules operation.\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003eThere is more information in the \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\"\u003esonar faq.\u003c\/a\u003e\u003c\/p\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867514201,"sku":"SRF06\/A","price":19.13,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036228441,"sku":"SRF06","price":19.13,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf06_5.jpg?v=1695766360"},{"product_id":"low-cost-ultrasonic-range-finder-1","title":"Low Cost Ultrasonic Range Finder","description":"\u003cbr\u003e\n\u003cp\u003e \u003cb\u003eIntroduction\u003c\/b\u003e\u003cbr\u003e\n The SRF05 is an evolutionary step from the SRF04, and has been designed to increase flexibility, increase range, and to reduce costs even further. As such, the SRF05 is fully compatible with the SRF04. Range is increased from 3 meters to 4 meters. A new operating mode (tying the mode pin to ground) allows the SRF05 to use a single pin for both trigger and echo, thereby saving valuable pins on your controller. When the mode pin is left unconnected, the SRF05 operates with separate trigger and echo pins, like the SRF04. The SRF05 includes a small delay before the echo pulse to give slower controllers such as the Basic Stamp and Picaxe time to execute their pulse in commands.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eMode 1 - SRF04 compatible - Separate Trigger and Echo\u003c\/b\u003e\u003cbr\u003e \nThis mode uses separate trigger and echo pins, and is the simplest mode to use. All code examples for the SRF04 will work for the SRF05 in this mode. To use this mode, just leave the mode pin unconnected - the SRF05 has an internal pull up resistor on this pin. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05p2.jpg\" border=\"0\" height=\"337\" width=\"642\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05tma.gif\" border=\"0\" height=\"376\" width=\"700\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eMode 2 - Single pin for both Trigger and Echo\u003c\/b\u003e\u003cbr\u003e\n This mode uses a single pin for both Trigger and Echo signals, and is designed to save valuable pins on embedded controllers. To use this mode, connect the mode pin to the 0v Ground pin. The echo signal will appear on the same pin as the trigger signal. The SRF05 will not raise the echo line until 700uS after the end of the trigger signal. You have that long to turn the trigger pin around and make it an input and to have your pulse measuring code ready. The PULSIN command found on many popular controllers does this automatically. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05p1.jpg\" border=\"0\" height=\"337\" width=\"641\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf05tmb.gif\" border=\"0\" height=\"339\" width=\"700\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e To use mode 2 with the Basic Stamp BS2, you simply use PULSOUT and PULSIN on the same pin, like this: \u003c\/p\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n\u003ctable bgcolor=\"#00ff00\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\u003cfont face=\"Fixedsys\"\u003e\u003cbr\u003e\u003c\/font\u003e \nSRF05 PIN 15 'use any pin for both trigger and echo\u003cbr\u003e\n Range VAR Word ' define the 16 bit range variable\u003cbr\u003e\n\u003cbr\u003e\n SRF05 = 0 ' start with pin low\u003cbr\u003e\n PULSOUT SRF05, 5' issue 10uS trigger pulse (5 x 2uS)\u003cbr\u003e\n PULSIN SRF05, 1, Range ' measure echo time\u003cbr\u003e\n Range = Range\/29 ' convert to cm (divide by 74 for inches)\u003cbr\u003e\n\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\/div\u003e\n\n\u003cp\u003e \u003cb\u003eCalculating the Distance\u003cbr\u003e\u003c\/b\u003e \nThe SRF05 Timing diagrams are shown above for each mode. You only need to supply a short 10uS pulse to the trigger input to start the ranging. The SRF05 will send out an 8 cycle burst of ultrasound at 40khz and raise its echo line high (or trigger line in mode 2). It then listens for an echo, and as soon as it detects one it lowers the echo line again. The echo line is therefore a pulse whose width is proportional to the distance to the object. By timing the pulse it is possible to calculate the range in inches\/centimeters or anything else. If nothing is detected then the SRF05 will lower its echo line anyway after about 30mS.\u003c\/p\u003e\n\n\u003cp\u003e The SRF04 provides an echo pulse proportional to distance. If the width of the pulse is measured in uS, then dividing by 58 will give you the distance in cm, or dividing by 148 will give you the distance in inches. uS\/58=cm or uS\/148=inches.\u003c\/p\u003e\n\n \u003cp\u003eThe SRF05 can be triggered as fast as every 50mS, or 20 times each second. You should wait 50ms before the next trigger, even if the SRF05 detects a close object and the echo pulse is shorter. This is to ensure the ultrasonic \"beep\" has faded away and will not cause a false echo on the next ranging.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eThe other set of 5 pins\u003c\/b\u003e\u003cbr\u003e\n The 5 pins marked \"programming pins\" are used once only during manufacture to program the Flash memory on the PIC16F630 chip. The PIC16F630's programming pins are also used for other functions on the SRF05, so make sure you don't connect anything to these pins, or you will disrupt the modules operation.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\u003c\/b\u003e \nYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF05 is conical with the width of the beam being a function of the surface area of ​​the transducers and is fixed. The beam pattern of the transducers used on the SRF05, taken from the manufacturers data sheet, is shown below. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/srf05_beam.gif\" width=\"311\" height=\"296\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867907417,"sku":"SRF05\/A","price":19.13,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036261209,"sku":"SRF05","price":19.13,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf05a_4.jpg?v=1695766367"},{"product_id":"low-cost-ultrasonic-range-finder","title":"Low Cost Ultrasonic Range Finder ","description":"\u003cbr\u003e\n\u003cp\u003e\n\u003c\/p\u003e\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 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 30mA - 50mA Max\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 - 3m\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Sensitivity\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Detect 3cm diameter broom handle at \u0026gt; 2 m\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Input Triggers\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003cp\u003e 10uS Min. TTL level pulse\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Echo Pulse\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Positive TTL level signal, width proportional to range\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\/table\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n \u003cp\u003eThe SRF04 was designed to be just as easy to use as the Polaroid sonar, requiring a short trigger pulse and providing an echo pulse. Your controller only has to time the length of this pulse to find the range. The connections to the SRF04 are shown below: \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/srf_conect.jpg\" border=\"0\" height=\"234\" width=\"236\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The SRF04 Timing diagram is shown below. You only need to supply a short 10uS pulse to the trigger input to start the ranging. The SRF04 will send out an 8 cycle burst of ultrasound at 40khz and raise its echo line high. It then listens for an echo, and as soon as it detects one it lowers the echo line again. The echo line is therefore a pulse whose width is proportional to the distance to the object. By timing the pulse it is possible to calculate the range in inches\/centimeters or anything else. If nothing is detected then the SRF04 will lower its echo line anyway after about 36mS.\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cb\u003e\u003cimg src=\"http:\/\/www.xernuqvalzi.pro\/images\/timing.gif\" border=\"0\" height=\"262\" width=\"500\"\u003e\u003c\/b\u003e\u003c\/p\u003e\n\n \u003cp\u003eThe circuit is designed to be low cost. It uses a PIC12C508 to perform the control functions and standard 40khz piezo transducers. The drive to the transmitting transducer could be simplest driven directly from the PIC. The 5v drive can give a useful range for large objects, but can be problematic detecting smaller objects. The transducer can handle 20v of drive, so I decided to get up close to this level. A MAX232 IC, usually used for RS232 communication makes and ideal driver, providing about 16v of drive.\u003c\/p\u003e\n\n\u003cp\u003e The receiver is a classic two stage op-amp circuit. The input capacitor C8 blocks some residual DC which always seems to be present. Each gain stage is set to 24 for a total gain of 576-ish. This is close to the 25 maximum gain available using the LM1458. The gain bandwidth product for the LM1458 is 1Mhz. The maximum gain at 40khz is 1000000\/40000 = 25. The output of the amplifier is fed into an LM311 comparator. A small amount of positive feedback provides some hysterisis to give a clean stable output.\u003c\/p\u003e\n\n \u003cp\u003eThe problem of getting operation down to 1-2cm is that the receiver will pick up direct coupling from the transmitter, which is right next to it. To make matters worse the piezo transducer is a mechanical object that keeps resonating some time after the drive has been removed. Up to 1mS depending on when you decide it has stopped. It is much harder to tell the difference between this direct coupled ringing and a returning echo, which is why many designs, including the Polaroid module, simply blank out this period. Looking at the returning echo on an oscilloscope shows that it is much larger in magnitude at close quarters than the cross-coupled signal. I therefore adjust the detection threshold during this time so that only the echo is detectable. The 100n capacitor C10 is charged to about ?6v during the burst. This discharges quite quickly through the 10k resistor R6 to restore sensitivity for more distant echo?s.\u003c\/p\u003e\n\n \u003cp\u003eA convenient negative voltage for the op-amp and comparator is generated by the MAX232. Unfortunately, this also generates quite a bit of high frequency noise. I therefore shut it down whilst listening for the echo. The 10uF capacitor C9 holds the negative rail just long enough to do this.\u003c\/p\u003e\n\n\u003cp\u003e In operation, the processor waits for an active low trigger pulse to come in. It then generates just eight cycles of 40khz. The echo line is then raised to signal the host processor to start timing. The raising of the echo line also shuts down the MAX232. After a while? no more than 10-12mS normally, the returning echo will be detected and the PIC will lower the echo line. The width of this pulse represents the flight time of the sonic burst. If no echo is detected then it will automatically time out after about 30mS (Its two times the WDT period of the PIC). Because the MAX232 is shut down during echo detection, you must wait at least 10mS between measurement cycles for the +\/- 10v to recharge.\u003c\/p\u003e\n\n \u003cp\u003ePerformance of this design is, I think, quite good. It will reliably measure down to 3cm and will continue detecting down to 1cm or less but after 2-3cm the pulse width doesn't get any smaller.\u003c\/p\u003e\n\n\u003cp\u003e Maximum range is a little over 3m. As and example of the sensitivity of this design, it will detect a 1inch thick plastic broom handle at 2.4m.\u003cbr\u003e\n Average current consumption is reasonable at less than 50mA and typically about 30mA.\u003c\/p\u003e\n\n\u003cp\u003e Download the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf1.asm\" target=\"_blank\"\u003e\u003cstrong\u003esource code\u003c\/strong\u003e\u003c\/a\u003e and a ready assembled \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/srf1.hex\" target=\"_blank\"\u003e\u003cstrong\u003ehex file\u003c\/strong\u003e\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eCalculating the Distance\u003c\/b\u003e\u003cbr\u003e\n The SRF04 provides an echo pulse proportional to distance. If the width of the pulse is measured in uS, then dividing by 58 will give you the distance in cm, or dividing by 148 will give you the distance in inches. uS\/58=cm or uS\/148=inches.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eChanging beam pattern and beam width\u003cbr\u003e\u003c\/b\u003e \nYou can't!\u003cb\u003e \u003c\/b\u003eThis is a question which crops up regularly, however there is no easy way to reduce or change the beam width that I'm aware of. The beam pattern of the SRF04 is conical with the width of the beam being a function of the surface area of ​​the transducers and is fixed. The beam pattern of the transducers used on the SRF04, taken from the manufacturers data sheet, is shown below. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/srf04_beam.gif\" border=\"0\" height=\"296\" width=\"311\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e There is more information in the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sonar_faq.htm\" target=\"_blank\"\u003e\u003cstrong\u003esonar faq\u003c\/strong\u003e .\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eUpdate - May 2003\u003c\/b\u003e\u003cbr\u003e\n Since the original design of the SRF04 was published, there have been incremental improvements to improve performance and manufacturing reliability. The op-amp is now an LMC6032 and the comparator is an LP311. The 10uF capacitor is now 22uF and a few resistor values ​​have been tweaked. These changes have happened over a period of time.\u003c\/p\u003e\n\n \u003cp\u003eAll SRF04's manufactured after May 2003 have new software implementing an optional timing control input using the \"do not connect\" pin. This connection is the PIC's Vpp line used to program the chip after assembly. After programming its just an unused input with a pull-up resistor. When left unconnected the SRF04 behaves exactly as it always has and is described above. When the \"do not connect\" pin is connected to ground (0v), the timing is changed slightly to allow the SRF04 to work with the slower controllers such as the Picaxe. The SRF04's \"do not connect\" pin now acts as a timing control. \u003cb\u003eThis pin is pulled high by default and when left unconnected, the timing remains exactly as before.\u003c\/b\u003e With the timing pin pulled low (grounded) a 300uS delay is added between the end of the trigger pulse and transmitting the sonic burst. Since the echo output is not raised until the burst is completed, there is no change to the range timing, but the 300uS delay gives the Picaxe time to sort out which pin to look at and start doing so. The new code has shipped in all SRF04's since the end of April 2003. The new code is also useful when connecting the SRF04 to the slower Stamps such as the BS2. Although the SRF04 works with the BS2, the echo line needs to be connected to the lower numbered input pins. This is because the Stamps take progressively longer to look at the higher numbered pins and can miss the rising edge of the echo signal. In this case you can connect the \"do not connect\" pin to ground and give it an extra 300uS to get there.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867940185,"sku":"SRF04\/A","price":23.85,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890036326745,"sku":"SRF04","price":23.85,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf04_front_5.jpg?v=1695766373"},{"product_id":"srf02-ultrasonic-range-finder","title":"SRF02 Ultrasonic range finder","description":"\u003cp\u003e\u003cbr\u003e\n The \u003cstrong\u003eSRF02\u003c\/strong\u003e is a single transducer ultrasonic rangefinder in a small footprint PCB. It features both I2C and a Serial interfaces. The serial interface is a standard TTL level UART format at 9600 baud, 1 start, 2 stop and no parity bits, and may be connected directly to the serial ports on any microcontroller. Up to 16 SRF02's may be connected together on a single bus, either I2C or Serial. New commands in the SRF02 include the ability to send an ultrasonic burst on its own without a reception cycle, and the ability to perform a reception cycle without the preceding burst. This has been as requested feature on our sonar's and the SRF02 is the first to see its implementation. Because the SRF02 uses a single transducer for both transmission and reception, the minimum range is higher than our other dual transducer rangers. The minimum measurement range is around 15cm (6 inches). Like all our rangefinders, the SRF02 can measure in US, cm or inches. \u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\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\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd colspan=\"2\" class=\"ProductDescrlHead\"\u003e\u003cstrong\u003eTechnical Specifications:\u003c\/strong\u003e\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 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 4mA\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 15cm - 4m\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Calibration\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Full automatic tuning\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Analogue Gain\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\n\n\u003cp\u003e Automatic 64 step gain control\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 Modes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Serial Bus or I2C Bus\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 24 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\"\u003e \u003cstrong\u003eSRF02 USB\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\u003ccenter\u003e\n\n\u003ctable border=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\u003cimg border=\"0\" height=\"240\" width=\"300\" alt=\"\" src=\"\/images\/srf02_usb.jpg\"\u003e\u003c\/td\u003e\n\n\u003ctd\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd\u003e\u003cimg border=\"0\" height=\"262\" width=\"249\" alt=\"\" src=\"\/images\/srf02dlg.gif\"\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\u003c\/div\u003e\n\n \u003cp align=\"left\"\u003eConnecting the SRF02 to your PC via USB is this easy. The \u003ca target=\"_blank\" href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?products_id=672\"\u003e\u003cstrong\u003eUSBI2C\u003c\/strong\u003e\u003c\/a\u003e module supplies the SRF02 with power directly from the USB bus. The USB_I2C_SRF02 program can be \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/USB_I2C_SRF02.exe\"\u003e\u003cstrong\u003edownloaded here\u003c\/strong\u003e\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eDimensions\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg border=\"0\" height=\"252\" width=\"295\" alt=\"\" src=\"\/images\/srf02mech.gif\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eOperating Modes:\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003cimg width=\"24\" height=\"24\" align=\"absmiddle\" alt=\"\" src=\"..\/images\/pdfsm.gif\"\u003e \u003ca target=\"_blank\" href=\"..\/download\/srf02_i2c.pdf\"\u003eI2C Mode (110K)\u003c\/a\u003e \u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003cimg width=\"24\" height=\"24\" align=\"absmiddle\" alt=\"\" src=\"..\/images\/pdfsm.gif\"\u003e \u003ca target=\"_blank\" href=\"..\/download\/srf02_serial.pdf\"\u003eSerial Mode (110K)\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169867972953,"sku":"SRF02\/A","price":15.03,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036588889,"sku":"SRF02","price":15.03,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/srf02_4.jpg?v=1695766380"},{"product_id":"srf01-ultrasonic-range-finder","title":"SRF01 Ultrasonic range finder ","description":"\u003cbr\u003e\n\n\n\u003ctable width=\"400\" border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" bordercolor=\"#999999\" class=\"ProductDescrBorder\"\u003e\n\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"},{"product_id":"84-channels-multifunction-servo-controller","title":"84 Channels Multifunction Servo Controller ","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003ctable cellspacing=\"0\" cellpadding=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"182\" align=\"right\"\u003e \u003cem\u003eServant Channels\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"19\" height=\"21\" align=\"left\"\u003e\n\n\u003cp\u003e \u003cem\u003e-\u003c\/em\u003e\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd width=\"448\"\u003e \u003cem\u003eup to 84\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003eLogic Outputs\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003eup to 84\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003eLogic Inputs\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003eup to 84\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003e10-bit Analogue Inputs\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003eup to 36\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003eI serve Refresh Rate\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003e20us under all conditions\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003ePosition Control\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003eDirectly programmable in US\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e \u003cem\u003eSpeed ​​Control\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e \u003cem\u003eFrom maximum down to 20 seconds for full rotation\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"182\" align=\"right\"\u003e \u003cem\u003eLogic Power\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"19\" align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"448\" align=\"left\"\u003e \u003cem\u003eDirect from the USB Bus\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"182\" align=\"right\"\u003e \u003cem\u003eServant Power\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"19\" align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"448\" align=\"left\"\u003e \u003cem\u003eSeparate terminals for voltage of your choice in groups of 8 servo's\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\"\u003e Control Interface\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e -\u003c\/td\u003e\n\n\u003ctd align=\"left\"\u003e USB\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eOverview\u003c\/strong\u003e \u003cbr\u003eThe SD84 is an 84 channel servo controller module. It will drive up to 84 RC servo's and maintain a 20mS refresh rate, regardless of the number of servo's used or their positions (pulse widths). It controls both the speed and position of the servo's. It's controlled by sending commands to the on-board processors over the USB bus. Each of the 84 channels can be a Digital Input, Digital Output or Servo Output. Additionally, 36 of the channels can be 10-bit Analogue inputs, making this a great animatronics controller.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFeatures\u003c\/strong\u003e\u003cbr\u003e Up to 84 channels of digital inputs.\u003cbr\u003e Up to 84 channels of digital outputs.\u003cbr\u003e Up to 84 channels of servo outputs.\u003cbr\u003e Up to 36 channels of 10-bit analogue inputs.\u003cbr\u003e Controlled and Powered by the USB bus.\u003cbr\u003e Drivers available for Windows, Apple, Linux and Open BSD.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n \u003cp\u003eThe SD84 has 84 sets of 3-pin headers, in groups of 4 at a time. In all cases, the pin nearest the outside of the PCB is 0v Ground. The middle pin is +V power for the servo from the associated 2-pin screw terminals. The inside pin, nearest the CPU's is the signal pin.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003ePower\u003cbr\u003e\u003c\/strong\u003e The logic circuitry on the SD84 module is powered by the USB bus and does not require any external power. You need to provide external power for the servo's or any other circuitry you want to connect to the I\/O's. The servo's are powered in groups of 8 servo's. PL1 provides the power for servo's 1 to 8 on ch1 to ch8. The only exception is PL5 which powers 12 servo's ch33 to ch44 inclusive. The bar lines on the diagram above indicate which servo's are powered from which screw terminals. Each group can be powered from a different voltage, but note that the 0v grounds are all common and connected together on the PCB.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eConnecting Servo's\u003c\/strong\u003e \u003cbr\u003eThe servo's are plugged directly onto the SD84, with the ground pin (black wire on a hitec servo) nearest the outside of the PCB. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84c.jpg\" border=\"0\" alt=\"\" width=\"400\" height=\"256\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFirst Step - Get The Drivers\u003c\/strong\u003e \u003cbr\u003eThe SD84 module uses the \u003ca href=\"http:\/\/www.ftdichip.com\/Products\/FT232R.htm\" target=\"_blank\"\u003eFTDI FT232R USB chip\u003c\/a\u003e to handle all the USB protocols. The documentation provided by FTDI is very complete, and is not duplicated here. Before using the SD84, you will need to install FTDI's Virtual COM Port (VCP) Drivers. These drivers appear to the system as an extra Com Port (in addition to any existing hardware Com Ports). Application software accesses the USB device in the same way as it would access a standard Windows Com Port using the Windows VCOMM API calls or by using a Com Port Library. Drivers are available for Windows, Apple, Linux and Open BSD systems directly from the \u003ca href=\"http:\/\/www.ftdichip.com\" target=\"_blank\"\u003eFTDI website\u003c\/a\u003e . You should get and install the drivers now, before you connect the SD84 to your computer. The Drivers page is \u003ca href=\"http:\/\/www.ftdichip.com\/FTDrivers.htm\" target=\"_blank\"\u003ehere\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eWhich COM port?\u003c\/strong\u003e \u003cbr\u003eAfter installing the drivers, and plugging in the SD84 module to a spare USB port, you will want to know which COM port it has been assigned to. This will vary from system to system depending on how many COM ports you currently have installed. To find out where it is with Windows98, right click on your \"My Computer\" desktop icon and select the \"Device Manager\" tab. Now scroll down and open the \"Ports (COM \u0026amp; LPT)\" tab. You should see the USB serial port listed - COM2 in the example below. If you want to change the COM port number - just right click on it, select properties, select advanced and select the COM port number from the available list. With Windows XP, select \"Start\", then right click \"My computer\", then select \"Properties\", then the \"Device Manager\" tab.\u003cbr\u003e The COM port should be set up for 115200 baud, 8 data bits, no parity and two stop bits. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/win98.dm.jpg\" border=\"0\" alt=\"\" width=\"410\" height=\"448\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003cbr\u003e With the drivers installed you can now connect the SD84 and Windows will register the drivers.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eInternal Registers\u003c\/strong\u003e \u003cbr\u003eThere are three internal registers associated with each of the 84 channels.\u003cbr\u003e A \"Mode\" register (1 Byte) that defines the current mode of the channel, INPUT, OUTPUT_LOW, OUTPUT_HIGH, SERVO or ANALOGUE.\u003cbr\u003e A \"Servo\" register (2 Bytes) that defines the position of the servo in uS. The \"Servo\" register is an integer (two bytes). The speed and low byte\/high byte of the position.\u003cbr\u003e A \"Speed\" register (1 Byte) that defines the speed that the servo's change position.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommands\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable style=\"width: 450px; background-color: #ffffcc; height: 311px;\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e Dec\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\" align=\"center\"\u003e Description\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\" align=\"center\"\u003e Response\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_SERVO\"\u003eSET_SERVO\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Sets the position (in US) of 1 to 84 servo's\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError Codes\u003c\/a\u003e\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_SERVO\"\u003eGET_SERVO\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"38\"\u003e Returns the current position (in US) of a single servo\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"38\"\u003e 2 Bytes, Servo Position,\u003cbr\u003e Low byte first, then the high byte.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n \u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_SPEED\"\u003eSET_SPEED\u003c\/a\u003e\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Sets the movement speed of 1 to 84 servo's\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError Codes\u003c\/a\u003e\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e 0x04\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_MODE\"\u003eSET_MODE\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"38\"\u003e Sets the mode of 1 to 84 channels,\u003cbr\u003e not analogue - see SET AD CNT command.\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"38\"\u003e 1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError Codes\u003c\/a\u003e\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x05\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_MODE\"\u003eGET_MODE\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Returns the current mode of a single channel\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 1 Byte, Mode - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Channel%20Modes\"\u003eChannel modes\u003c\/a\u003e\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"38\" align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"38\" align=\"center\"\u003e 0x06\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"38\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#SET_AD_CNT\"\u003eSET_AD_CNT\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"38\"\u003e Set the number of analogue channels from 0 to 36.\u003cbr\u003e This also sets the Mode for the channel to Analogue\u003c\/td\u003e\n\n \u003ctd width=\"598\" height=\"38\"\u003e1 Byte, error code - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#Error%20Codes\"\u003eError Codes\u003c\/a\u003e\n\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"20\" align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"20\" align=\"center\"\u003e 0x07\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"20\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_AD_CNT\"\u003eGET_AD_CNT\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"20\"\u003e Returns the number of analogue channels currently set.\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"20\"\u003e 1 Byte, Number of analogue channels.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 8\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x08\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_INPUT\"\u003eGET_INPUT\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Returns the status of a single input\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 1 Byte, 0x00 for low, 0xFF for high\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x09\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_ADC\"\u003eGET_ADC\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Returns the current value of a single analogue channel\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 2 Bytes, low byte first, then the high byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x0A\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_VERSION\"\u003eGET_VERSION\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Returns version number of the selected processor chip (1 to 4)\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 2 Bytes, Module type first, then version number \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x15\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#GET_BULK\"\u003eGET_BULK\u003c\/a\u003e\n\u003c\/td\u003e\n\n \u003ctd width=\"722\" height=\"19\"\u003eUsed for Factory Testing - returns 21 encoded inputs\u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\u003e 3 Bytes, all 21 inputs on selected CPU\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"25\" height=\"19\" align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd width=\"39\" height=\"19\" align=\"center\"\u003e 0x16\u003c\/td\u003e\n\n\u003ctd width=\"122\" height=\"19\" align=\"center\"\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/sd84tech.htm#TEST\"\u003eTEST\u003c\/a\u003e\n\u003c\/td\u003e\n\n\u003ctd width=\"722\" height=\"19\"\u003e Used for Factory Testing - \u003c\/td\u003e\n\n\u003ctd width=\"598\" height=\"19\"\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"SET_SERVO\"\u003eSET_SERVO\u003c\/a\u003e (0x01)\u003c\/strong\u003e\u003cbr\u003e This command sets the position of the servos in US. Normal range for a servo is 1000uS to 2000uS with 1500uS being the center position. Most servant's will go beyond this though. On a \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php\/products_id\/8\" target=\"_blank\"\u003eHitec HS422 servo\u003c\/a\u003e , we can set the position from 800 to 2200 to give a nice wide range of movement. Take care though as its easy to make the servo run into its internal stops if you give it pulse widths at the upper or lower extremes. The SD84 places no restrictions on the value written, so be careful. Each servo value is a 16-bit integer, sent low byte first, then the high byte. To set ch1 to 1500uS (Center the servo) The command format is: \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n \u003ctd align=\"center\"\u003eFirst Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Low Bytes\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e High Bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xDC\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x05\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\/div\u003e\n\n\u003cp\u003e The first three bytes are synchronization bytes and are required by all command frames.\u003cbr\u003e Next is the SET_SERVO command 0x01.\u003cbr\u003e Next is the First Servo channel number. In this case channel 1.\u003cbr\u003e Next is the byte count. 2 bytes per channel for servo position setting.\u003cbr\u003e Next is the low byte of the position. 1500 decimal is 0x05DC in hex, so we send 0xDC.\u003cbr\u003e Finally we send the high byte, 0x05\u003c\/p\u003e\n\n\u003cp\u003e Any number of contiguous channels can be set with one SET_SERVO command. For example to set channels 37 and 38 to 1000uS (0x03E8) and 2000uS (0x07D0), you would send: \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e First Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Ch37 low byte\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Ch37 high byte\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Ch38 low byte\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Ch38 high byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 37\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xE8\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xD0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x07\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\/div\u003e\n\n\u003cp\u003e If you wanted to do the same for channels 37 and 51, you would have to send two command frames. You could not do it all in one frame because the channels are not contiguous. \u003cbr\u003eAfter the final byte is sent, the SD84 will reply with a single byte error code. If all is well this will be OK. See error codes for details.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_SERVO\"\u003eGET_SERVO\u003c\/a\u003e (0x02)\u003c\/strong\u003e\u003cbr\u003e This command gets the position of the servo in uS. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 23\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\n\u003cp\u003e 0x00\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\/div\u003e\n\n\u003cp\u003e The above example will return the position of servo channel 23. Note the byte count must be zero (0x00) because you are not sending any data to the SD84. The response from the SD84 will be two bytes, low byte first, then the high byte. For example if you had set the position to 1500uS (0x05DC in hex) you would receive 0xDC, 0x05.\u003cbr\u003e Unlike the SET_SERVO command, GET_SERVO can only work with a single channel. To retrieve the position of multiple channels you must get them individually.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"SET_SPEED\"\u003eSET_SPEED\u003c\/a\u003e (0x03)\u003c\/strong\u003e\u003cbr\u003e Sets the speed the servo's will move to the new positions. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e First Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 71\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\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\/div\u003e\n\n \u003cp\u003eThe above example would set ch71 speed to 10.\u003cbr\u003e The speed register controls the speed at which the servo moves to its new position. The servo pulses are automatically refreshed every 20mS. If the Speed ​​register is zero (0x00) then the servo is simply set to the requested position. On power up the Speed ​​registers are set to zero to give full speed, so unless you need to slow them down the Speed ​​registers can be ignored. If the Speed ​​register is set to something other than zero then that value is added to the current position every 20mS until the target position is reached. If you wish to move from 1000 to 2000 and the Speed ​​register is set to 10, then it will take 2 seconds to reach the set position. The formula for the time it will take to make the move is:\u003cbr\u003e ((Target position-Start position)\/Speed ​​Reg)*20mS\u003cbr\u003e Here are some examples: \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e \u003cstrong\u003eStart Position\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\u003ctd\u003e \u003cstrong\u003eTarget Position\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\u003ctd\u003e \u003cstrong\u003eSpeed ​​Reg\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\u003ctd\u003e \u003cstrong\u003eTime for Move\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2000mS (2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n \u003ctd align=\"center\"\u003e2000mS (2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\n\u003cp\u003e 1\u003c\/p\u003e\n\n\n\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 20000mS (20Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 100\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 200mS (0.2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 1 2 3 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1987\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 69\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 220mS (0.22Sec)\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\/div\u003e\n\n\u003cp\u003e As with the SET_SERVO command, the SET_SPEED command can set up to 84 channels. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e First Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Speed1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Speed2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Speed3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 71\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 11\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\/div\u003e\n\n\u003cp\u003e The above example would set ch71 speed to 9, ch72 speed to 10 and ch73 speed to 11. Don't forget to make sure the byte count is the same as the number of data bytes being sent, 3 bytes in this example.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"SET_MODE\"\u003eSET_MODE\u003c\/a\u003e (0x04)\u003c\/strong\u003e\u003cbr\u003e This command is used to set the Mode of up to 84 channels. \u003cem\u003e\u003cstrong\u003eNote!\u003c\/strong\u003e this command cannot select or deselect Analogue mode\u003c\/em\u003e , you must use the SET_AD_CNT to do that. The reason for this is explained in the SET_AD_CNT section. This command will select between INPUT, OUTPUT_LOW, OUTPUT_HIGH or SERVO modes. See Channel Modes for details.\u003c\/p\u003e\n\n\u003cp\u003e The following example will set ch1 to INPUT_MODE, ch2 to OUTPUT_MODE0, ch3 to OUTPUT_MODE1 and ch4 to SERVO_MODE. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e First Channel\u003c\/td\u003e\n\n \u003ctd align=\"center\"\u003eByte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Mode1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Mode2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Mode3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Mode4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x04\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 23\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 25\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\/div\u003e\n\n\u003cp\u003e As always, make sure the byte count matches the amount of data bytes your sending. After the final byte is sent, the SD84 will reply with a single byte error code. If all is well this will be OK. See error codes for details.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_MODE\"\u003eGET_MODE\u003c\/a\u003e (0x05)\u003c\/strong\u003e\u003cbr\u003e This command gets the current MODE of a single channel. See Channel Modes. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x05\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 15\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e\n\n\u003cp\u003e 0x00\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\/div\u003e\n\n\u003cp\u003e The above example will return the current mode of channel 15. Note the byte count must be zero (0x00) because you are not sending any data to the SD84. The response from the SD84 will be 1 byte which is the mode. Unlike the SET_MODE command, GET_MODE can only work with a single channel. To retrieve the current mode of multiple channels you must get them individually.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"SET_AD_CNT\"\u003eSET_AD_CNT\u003c\/a\u003e (0x06)\u003c\/strong\u003e \u003cbr\u003eThis command sets the number of analogue channels available. The SD84 uses 4 PIC18F2520 processor chips, each providing 21 channels of which 9 can alternatively be analogue inputs. These 9 analogue channels appear scattered around on the SD84, see the connection diagram at the top of this page, because the pin numbers on the processor on which they appear is fixed. A limitation of the processor chip is that these pins cannot randomly be analogue inputs, they have to be assigned in order, starting at AN1. If AN8 is Analogue then so must AN1 to AN7. You can see then, that changing a channel to analogue can potentially also change a number of other channels. This is why writing to the Mode register to change to or from analogue mode is prevented.\u003c\/p\u003e\n\n \u003cp\u003eThe SET_AD_CNT command configures the processor chips for the requested number of analogue channels, starting with AN1. If you select 5 analogue channels then it is AN1 to AN5 that are analogue. The Mode register for channels 21, 22, 20, 18 and 28 will be set to analogue. These are the channels that AN1 to AN5 appear on. If you had previously selected 10 analogue channels (AN1 to AN10) and then select 5 (AN1 to AN5) then channels 27, 29, 26, 30 and 11 (AN6 - AN10) will be changed back to digital and will be Inputs.\u003cbr\u003e Analogue and Digital Channels Cross Reference. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e AN\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CH\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e AN\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CH\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e AN\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CH\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e AN\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CH\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 19\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 84\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 28\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 73\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 20\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 83\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 29\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 72\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 20\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 82\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 30\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 71\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 18\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 13\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 80\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 31\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 69\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 28\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 14\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 38\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 23\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 48\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 32\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 58\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 27\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 15\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 37\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 24\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 47\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 33\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 57\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 29\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 16\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 39\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 25\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 49\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 34\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 59\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 8\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 26\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 17\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 36\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 26\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 46\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 35\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 56\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 30\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 18\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 40\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 27\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 50\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffffff\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 36\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 60\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\/div\u003e\n\n\u003cp\u003e To set the number of analogue channels use the following command: \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Analogue Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x06\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0 (ignored)\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\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\/div\u003e\n\n \u003cp\u003eThe above command will set AN1 to AN10 as analogue inputs. The Mode of the corresponding Channels 21, 22, 20, 18, 28, 27, 29, 26, 30 and 11 will be set to ANALOG_MODE.\u003cbr\u003e The SD84 will reply with a single byte error code. If all is well this will be OK. See error codes for details.\u003c\/p\u003e\n\n\u003cp\u003e The normal initialization procedure would be to first set the number of analogue channel required by using the SET_AD_CNT command, and then set the remaining digital channels to input, output or servo modes as required. This can be done for all channels with a single mode command. The analogue channels will not be affected by the Mode command so it does not matter what they are set to, however you will get a WARNING code returned instead of the OK code.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_AD_CNT\"\u003eGET_AD_CNT\u003c\/a\u003e (0x07)\u003c\/strong\u003e\u003cbr\u003e This command returns the quantity of analogue channels currently selected. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x07\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0 (ignored)\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n\u003cp\u003e The SD84 will respond with the current analogue channel count, 0 - 36.\u003c\/p\u003e\n\n \u003cp\u003e\u003cstrong\u003e\u003ca name=\"GET_INPUT\"\u003eGET_INPUT\u003c\/a\u003e (0x08)\u003c\/strong\u003e\u003cbr\u003e Returns the status of the single selected input channel. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x08\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n\u003cp\u003e The above example will return 1 Byte, 0 (0x00) if the input on channel 12 is low or 255 (0xFF) if the input is high. GET_INPUT can only work with a single channel. To retrieve the status of multiple channels you must get them individually.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_ADC\"\u003eGET_ADC\u003c\/a\u003e (0x09)\u003c\/strong\u003e\u003cbr\u003e Returns the analogue value of the selected channel. Note the Channel number is the AN analogue number, not the digital channel number. In the example below this is AN21-CH82. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x09\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n \u003cp\u003eAnalogue inputs are converted on demand. The above example will return 2 Bytes, low byte first then the high byte. The SD84 uses 10-bit AD conversion so you will get a number in the range 0-1023. Results are only valid for analogue channels that have previously been set to analogue mode using the SET_AD_CNT command.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_VERSION\"\u003eGET_VERSION\u003c\/a\u003e (0x0A)\u003c\/strong\u003e\u003cbr\u003e This command is used to return the firmware version number for the SD84. There are 4 CPU's on the SD84 and you can specify which CPU you want the version number from - they will all be the same. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CPU Number\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x0A\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n\u003cp\u003e The command format is shown above. In this example the version number from CPU2 will be returned. The command returns 2 bytes. The first is the module type, this will always be 84 for the SD84. The second byte is the firmware revision number, currently 4 at the time of writing. Valid CPU Numbers are 1-4.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"GET_BULK\"\u003eGET_BULK\u003c\/a\u003e (0x15)\u003c\/strong\u003e \u003cbr\u003eThis command is used for factory testing of the SD84. It is potentially useful though, and so is documented here. It returns 3 bytes which encode all 21 inputs for the selected processor. If you are familiar with the PIC processors, these 3 bytes are ports A, B, and C (in that order). The command format is: \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"2\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e CPU Number\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x15\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n\u003cp\u003e In this example the 3 bytes will come from CPU1. Valid CPU Numbers are 1-4.\u003cbr\u003e The table below shows which channel each bit represents. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" cellpadding=\"3\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd colspan=\"8\" align=\"center\"\u003e Byte 1 - PortA\u003c\/td\u003e\n\n\u003ctd colspan=\"8\" align=\"center\"\u003e Byte 2 - PortB\u003c\/td\u003e\n\n\u003ctd colspan=\"8\" align=\"center\"\u003e Byte 3 - PortC\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e CPU1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 17\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 16\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 18\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 19\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 20\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 23\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 24\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 25\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 26\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 27\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 28\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 29\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 30\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 31\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 32\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 13\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 14\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 15\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e CPU2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 8\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 33\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 34\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 35\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 36\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 37\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 38\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 39\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 40\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 41\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 42\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e CPU3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 79\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 78\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 80\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 81\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 82\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 83\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 84\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 43\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 44\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 45\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 46\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 47\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 48\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 49\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 50\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 51\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 52\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 74\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 75\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 76\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 77\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e CPU4\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 68\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 67\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 69\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 70\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 71\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 72\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 73\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 53\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 54\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 56\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 57\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 58\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 59\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 60\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e x\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 61\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 62\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 64\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 63\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 65\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 66\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\/div\u003e\n\n\u003cp\u003e The bit will be high if the input is high.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"TEST\"\u003eTEST\u003c\/a\u003e (0x16)\u003c\/strong\u003e \u003cbr\u003eThis command is used, together with GET_BULK documented above, for factory testing of the SD84. It is of no other use, but documented here for the sake of completeness. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e Sync1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync2\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Sync3\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Channel\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Byte Count\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e 0xAA\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0xA0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x55\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0x16\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 67\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 0\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\/div\u003e\n\n\u003cp\u003e It first sets the number of analogue channels to zero, so everything is digital.\u003cbr\u003e It then sets every channel to drive low (OUTPUT_MODE0).\u003cbr\u003e It then sets every channel to input (INPUT_MODE).\u003cbr\u003e It then sets the selected channel to drive high (OUTPUT_MODE1).\u003cbr\u003e And finally returns code OK. The sequence is performed without any delays, as fast as the processors will go.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"Channel%20Modes\"\u003eChannel Modes\u003c\/a\u003e\u003c\/strong\u003e\u003cbr\u003e Available modes for the channels are:\u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable border=\"1\" cellspacing=\"0\" width=\"512\" bgcolor=\"#ffffcc\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e Modes\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Description\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e 21\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e 0x15\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e OUTPUT_MODE0\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Output low, Logic 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e 22\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e 0x16\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e OUTPUT_MODE1\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Output High, Logic 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e 23\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e 0x17\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e INPUT_MODE\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Can read High or Low\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e 24\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e 0x18\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e ANALOG_MODE\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Can read 0-1023 (10-bit conversion)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"49\" align=\"center\"\u003e 25\u003c\/td\u003e\n\n\u003ctd width=\"38\" align=\"center\"\u003e 0x19\u003c\/td\u003e\n\n\u003ctd width=\"134\" align=\"center\"\u003e SERVO_MODE\u003c\/td\u003e\n\n\u003ctd width=\"273\" align=\"center\"\u003e Outputs servo pulse, 20mS repetition rate.\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca name=\"Error%20Codes\"\u003eError Codes\u003c\/a\u003e\u003c\/strong\u003e \u003cbr\u003eThe SD84 can reply with the following possible error codes. \u003c\/p\u003e\n\n\u003cdiv\u003e\n\n\u003ctable style=\"width: 450px; background-color: #ffffcc;\" border=\"1\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"51\" align=\"center\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd width=\"39\" align=\"center\"\u003e Hex\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e Error Code\u003c\/td\u003e\n\n\u003ctd width=\"541\"\u003e Description\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"51\" align=\"center\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"39\" align=\"center\"\u003e 0x00\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e OK\u003c\/td\u003e\n\n\u003ctd width=\"541\"\u003e Command processed OK\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"51\" align=\"center\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"39\" align=\"center\"\u003e 0x01\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e WARNING\u003c\/td\u003e\n\n\u003ctd width=\"541\"\u003e Attempt to change to or from Analogue mode by writing to mode register is ignored.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"51\" align=\"center\"\u003e 2\u003c\/td\u003e\n\n\u003ctd width=\"39\" align=\"center\"\u003e 0x02\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e RANGE\u003c\/td\u003e\n\n\u003ctd width=\"541\"\u003e Range of channels is less than 1 or more than 84.\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"51\" align=\"center\"\u003e 3\u003c\/td\u003e\n\n\u003ctd width=\"39\" align=\"center\"\u003e 0x03\u003c\/td\u003e\n\n\u003ctd width=\"84\" align=\"center\"\u003e MODE\u003c\/td\u003e\n\n\u003ctd width=\"541\"\u003e Unknown Mode received\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\/div\u003e\n\n\u003cp\u003e \u003cstrong\u003eDemonstration Program\u003cbr\u003e\u003c\/strong\u003e We have a small demonstration program to allow you to quickly evaluate the SD84. \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84Demo.jpg\" border=\"0\" alt=\"\" width=\"392\" height=\"261\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e It allows you to set the number of analogue channels, set modes, move servo's and read digital or analogue inputs. The program is written in Visual C++ V6. You can download just the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/sd84.exe\" target=\"_blank\"\u003esd84.exe\u003c\/a\u003e or the complete \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/sd84source.zip\" target=\"_blank\"\u003esource code\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eSD84 PCB Drilling Plan\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp\u003e\u003cimg style=\"border: 0px initial initial;\" src=\"http:\/\/www.robot-electronics.co.uk\/images\/sd84drill.gif\" alt=\"\" width=\"450\" height=\"146\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868038489,"sku":"SD84\/A","price":79.04,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890036687193,"sku":"SD84","price":79.04,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/sd84_5.jpg?v=1695766396"},{"product_id":"21-servo-control-module","title":"21 Servo Control Module ","description":"\u003cbr\u003e\n\n\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\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 width=\"92\" class=\"ProductDescrWhite\"\u003e Voltage\u003c\/td\u003e\n\n     \u003ctd width=\"294\" class=\"ProductDescrWhite\"\u003eSeparate terminals or from servo supply when 7.2v battery is used\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Number of Servant's\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e 21\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Refresh Rate\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e 20mS under all conditions\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Control Interface\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e I2C\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Microcontrollers\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Picaxe-18x, BS2p, Atom or BX-24 can be fitted\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Position Control\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Directly programmed in us\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed ​​Control\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003cp\u003e From maximum down to 20 seconds for full rotation\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e The SD21 is a 21 channel servo controller module. It will drive up to 21 RC servo's and maintain a 20mS refresh rate, regardless of the number of servo's used or their positions (pulse widths). It will control both position and speed of the servo's. It's controlled by sending commands to the on-board PIC18F2220 over the I2C bus. There are 3 I2C connectors on the board, any one of which can be used to connect to your controller. Alternatively, many controllers such as the Picaxe, BS2p, Atom, BX-24 etc. can be fitted directly to the module, making this a great animatronics controller. \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/sd21_legnd.jpg\" border=\"0\" height=\"414\" width=\"438\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003ePower\u003c\/b\u003e\u003cbr\u003e \nThere are two ways to power the SD21. The first is to use a 5v supply for the processor section and a separate 6v-7.2v supply for the servo's. This is the recommended method, and the 4-way terminal block allows for this option. The logic and servo grounds are internally connected on the PCB. Not everyone wants to use two batteries, so we have allowed for the use of a single (typically 7.2v) battery to power the servo's and the module. To do this place a link on the two pin header below the terminal block. This routes servo power to a low drop 5v regulator which supplies the logic. The connections must be made to the servo terminals on the terminal block - NOT the logic ones. The SD21 monitors the servo battery voltage, which is available for reading from an internal register.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eServo's\u003c\/b\u003e\u003cbr\u003e\n The servo's are plugged directly onto the SD21, with the ground pin (black wire on a hitec servo) nearest the outside of the PCB.\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"\/images\/sd21c.jpg\" border=\"0\" height=\"171\" width=\"229\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eBasic Stamp BS2p or compatible controller\u003c\/b\u003e\u003cbr\u003e \nA 24 pin socket on the SD21 will accept a BS2p or compatible controller such as the ATOM or BX-24. The Stamp is fitted with pin 1 nearest the outside of the module and away from the servo connectors. The BS2p P0(pin5)\/P1(pin6) are used for the I2C SDA\/SCL lines. These are the only I\/O pins used on the module, the remainder are brought out on the 16 pin header, as shown above. \u003c\/p\u003e\n\n\u003ctable border=\"0\" cellspacing=\"10\" width=\"100%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"50%\"\u003e\u003cp align=\"right\"\u003e\u003cimg src=\"\/images\/sd21hdr1.GIF\" border=\"0\" height=\"188\" width=\"151\"\u003e\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"50%\"\u003e\u003cimg src=\"\/images\/sd21d.jpg\" border=\"0\" height=\"135\" width=\"244\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003ePicaxe Controller\u003c\/b\u003e\u003cbr\u003e\n An 18 pin socket on the SD21 will accept the PICAXE-18X. Outputs 1 and 4 are used for I2C (they are the hardware I2C port on the PIC) and the remaining inputs and outputs are available on the 16 pin header. The Picaxe is fitted with pin 1 nearest the outside of the module and away from the servo connectors. \u003c\/p\u003e\n\n\u003ctable border=\"0\" cellspacing=\"10\" width=\"100%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"50%\"\u003e\u003cp align=\"right\"\u003e\u003cimg src=\"\/images\/sd21hdr2.GIF\" border=\"0\" height=\"188\" width=\"151\"\u003e\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"50%\"\u003e\u003cimg src=\"\/images\/sd21e.jpg\" border=\"0\" height=\"136\" width=\"255\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp align=\"left\"\u003e\u003cbr\u003e\n \u003cb\u003eServo Processor\u003c\/b\u003e\u003cbr\u003e \nThe heart of the SD21 is a pre-programmed PIC18F2220 chip. This is accessed over the I2C bus at address 0xC2 ($C2) by one of the controller options above, fitted to the module, or from an external controller connected to one of the I2C connectors. There are three internal registers associated with each of the 21 servo's. The speed and low byte\/high byte of the position. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\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 class=\"ProductDescrlHead\"\u003e Register\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Servant\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Function\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Register\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Servant\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Function\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Register\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Servant\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Function\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 24\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 9\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 48\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 17\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e25\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 9\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e49\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 17\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 26\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 9\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes\u003c\/td\u003e\n\n           \u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e50\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 17\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 2\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e27\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 10\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e51\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 18\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 2\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 28\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 52\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 18\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 2\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e29\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 10\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e53\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 18\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 3\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 30\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 11\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 54\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 19\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 3\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e31\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 11\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e55\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 19\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 8\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 3\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 32\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 11\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 56\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 19\u003c\/td\u003e\n\n           \u003ctd\u003eHig \u003cspan class=\"ProductDescrWhite\"\u003eh\u003c\/span\u003e bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 4\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e33\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 12\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e57\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 20\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 4\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 34\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 12\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 58\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 20\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 4\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e35\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 12\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e59\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 20\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 5\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 36\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 13\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 60\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 21\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 13\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 5\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e37\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 13\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e61\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 21\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 14\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 5\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 38\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 13\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 62\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 21\u003c\/td\u003e\n\n           \u003ctd class=\"ProductDescrWhite\"\u003eHigh bytes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 15\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 6\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e39\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 14\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e63\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e - \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 16\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 40\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 14\u003c\/td\u003e\n\n\u003ctd\u003e Low \u003cspan class=\"ProductDescrWhite\"\u003ebytes\u003c\/span\u003e \n\n\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 64\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e -\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Software version\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 17\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 6\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e41\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 14\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e65\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e -\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Battery Volts\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 18\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 7\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 42\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 15\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Speed \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 19\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 7\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e43\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 15\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Low bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 20\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 7\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 44\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 15\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e High bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e \n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e21\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 8\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e45\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 16\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e Speed\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 22\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 8\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrWhite\"\u003e 46\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 16\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Low bytes \u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e 23\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 8\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"right\" class=\"ProductDescrGray\"\u003e47\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 16\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e High bytes\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\u003e\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrGray\"\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\u003cp align=\"left\"\u003e \u003cb\u003eServo Position\u003c\/b\u003e\u003cbr\u003e \nThe position (low byte\/high byte) is a 16 bit number which directly sets the output pulse width in uS. Setting the position to 1500 (1500uS or 1.5mS) will set most servo's to their center position. The range of pulse widths that are normally supported are from 1000uS (1mS) to 2000uS (2mS). It is usually possible to go beyond these limits though. On a Hitec HS311 servo, we can set the position from 800 to 2200 to give a nice wide range of movement. Take care though as its easy to make the servo run into its internal stops if you give it pulse widths at the upper or lower extremes. The registers can also be read back. The position will be the current position of the servo during a speed controlled movement, so you can track its progress towards the requested position.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eServo Speed\u003c\/b\u003e\u003cbr\u003e \nThe speed register controls the speed at which the servo moves to its new position. The servo pulses are automatically refreshed every 20mS. If the Speed ​​register is zero (0x00) then the servo is simply set to the requested position. On power up the Speed ​​registers are set to zero to give full speed, so unless you need to slow them down the Speed ​​registers can be ignored. If the Speed ​​register is set to something other than zero then that value is added to the current position every 20mS until the target position is reached. If you wish to move from 1000 to 2000 and the Speed ​​register is set to 10, then it will take 2 seconds to reach the set position. The formula for the time it will take to make the move is:\u003cbr\u003e\n ((Target position-Start position)\/Speed ​​Reg)*20mS\u003cbr\u003e\n Here are some examples: \u003c\/p\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n\u003ccenter\u003e\n\u003c\/center\u003e\n\n\u003ctable border=\"0\" align=\"center\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Start Position\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Target Position\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Speed ​​Reg\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrlHead\"\u003e Time for Move\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 2000mS (2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 10\u003c\/td\u003e \n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e2000mS (2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 20000mS (20Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 100\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 200mS (0.2Sec)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1 2 3 4\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1987\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 69\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e 220mS (0.22Sec)\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\/div\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eMore Registers!\u003c\/b\u003e\u003cbr\u003e\n The servo's can be fully controlled by the above registers, however to make things easier for low resource controllers such as the Picaxe, there is another set of registers (63-83 inclusive). These can set the position by writing a single byte rather than two bytes. These are not physically implemented registers, so cannot be read back. When you write to them, the processor will multiply the number you write by 6 then add an offset of 732 and store the result in the real 16-bit registers described above. This gives you a range of 732 (0*6+732) to 2268 (256*6+732) in 6uS steps. This set of registers is called the Base set. The formula is:\u003cbr\u003e\n Base Reg*6+732uS\u003cbr\u003e \nAlthough you can't read them back, the data is stored internally, and used with another two sets of registers. These are positive (84-104) and negative (105-125) offsets. When you write to the positive offset address the processor will add it to the base position, multiply by 6 and add 732. It performs a similar function for negative offsets. the formulas are:\u003cbr\u003e\n (BaseReg + PosReg) * 6 + 732 and\u003cbr\u003e\n (BaseReg - NegReg) * 6 + 732 \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrlHead\"\u003e Servant\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrlHead\"\u003e Base Reg\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrlHead\"\u003e Pos Offset Reg\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrlHead\"\u003e Neg Offset Reg\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 63\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 84\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 105\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 64\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 85\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 106\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 65\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 86\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 107\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 66\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 87\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 108\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 67\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 88\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 109\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 68\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 89\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 110\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 69\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 90\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 111\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 8\u003c\/td\u003e \n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e70\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 91\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 112\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 9\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 71\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e ninety two\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 113\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 10\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 72\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 93\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 114\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 11\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 73\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 94\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 115\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 12\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 74\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 95\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 116\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 13\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 75\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 96\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 117\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 14\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 76\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 97\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 118\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 15\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 77\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 98\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 119\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 16\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 78\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 99\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 120\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 17\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 79\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 100\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 121\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 18\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 80\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 101\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 122\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 19\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 81\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 102\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 123\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 20\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 82\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 102\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e 124\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 21\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 83\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 104\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e 125 \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\u003eRegister Summery\u003c\/b\u003e\u003cbr\u003e \nFor precision control of the servo's there is the real 16-bit registers which sets the servo position directly in uS. For low resource controllers the servo's can be controlled by 8-bit values. The positive and negative offset registers make designing walking robots very easy where legs can be easily moved either side of a central position. We have examples of controlling a Lynxmotion EH2 robot with a BS2p Stamp using the 16-bit registers and the Picaxe doing the same using the 8-bit Base and Offset registers.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eSoftware Revision Number\u003c\/b\u003e\u003cbr\u003e\n Register 64 is the software revision number (3 at the time of writing this).\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eBattery Voltage\u003c\/b\u003e\u003cbr\u003e\n Register 65 contains the servo battery voltage in 39mV units up to a maximum of 10v. A battery voltage of 7.2v will read about 184. 6v will read about 154. It is updated every 20mS whether its read or not.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eAddress\u003c\/b\u003e\u003cbr\u003e\n The SD21 Servo module is located at address 0xC2 on the I2C bus.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cb\u003eExample Code\u003c\/b\u003e\u003cbr\u003e \nThis shows how to use a BS2p Stamp to control a servo. It sets up a simple loop which sends the servo between two positions \u003c\/p\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#EFEFEF\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\u003cbr\u003e\n '{$STAMP BS2p}\u003cbr\u003e\u003cbr\u003e\n SDA WITH 0 ' SDA on pin0, SCL on pin1\u003cbr\u003e\n SD21 WITH $C2 ' SD21 I2C address\u003cbr\u003e\n Servo1 WITH 0 ' register address of servo1 speed reg (followed by pos low\/pos high)\u003cbr\u003e\n Speed ​​CON 0 ' maximum speed\u003cbr\u003e\n Servo1p WITH 1800 ' Right position\u003cbr\u003e\n Servo1n WITH 1200' Left position\u003cbr\u003e\u003cbr\u003e\n Servo VAR W0\u003cbr\u003e\u003cbr\u003e\n Loops:\u003cbr\u003e Servo = Servo1p\u003cbr\u003e I2COUT SDA, SD21, Servo1, [Speed, Servo.LOWBYTE, Servo.HIGHBYTE]\u003cbr\u003e PAUSES 300\u003cbr\u003e Servo = Servo1n\u003cbr\u003e I2COUT SDA, SD21, Servo1, [Speed, Servo.LOWBYTE, Servo.HIGHBYTE]\u003cbr\u003e PAUSES 300\u003cbr\u003e GOTO Loop\u003cbr\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e This does the same for the Picaxe controller using the alternative register set. \u003c\/p\u003e\n\n\u003cdiv align=\"left\"\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" bgcolor=\"#EFEFEF\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd\u003e\n\u003cbr\u003e\n Servo1 = 63 ' servo 1 base register\u003cbr\u003e\n Servo1p = 84 ' servo 1 positive offset register\u003cbr\u003e \nServo1n = 105 ' servo 1 negative offset register\u003cbr\u003e\n Base = 128' center position\u003cbr\u003e\n Offset = 50 ' +\/- 50 from center position\n\u003cp\u003e ProgStart:\u003cbr\u003e\n i2cslave $c2, i2cslow, i2cbyte ' setup i2c port for servo controller\u003cbr\u003e\n writei2c Servo1, (Basic)\u003cbr\u003e\n Loops:\u003cbr\u003e\n writei2c Servo1p, (Offset)\u003cbr\u003e\n pauses 300\u003cbr\u003e\n writei2c Servo1n, (Offset)\u003cbr\u003e\n pauses 300\u003cbr\u003e\n gotoLoop\u003cbr\u003e\n\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\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868431705,"sku":"SD21\/A","price":35.62,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890036621657,"sku":"SD21","price":35.62,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/sd21_5.jpg?v=1695766403"},{"product_id":"8-channels-relay-module","title":"8 channels relay module ","description":"\u003cbr\u003e\n\n\n\u003ctable cellspacing=\"0\" cellpadding=\"0\"\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e\u003cem\u003eNumber of Relay's\u003c\/em\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"21\" width=\"19\"\u003e\u003cp align=\"center\"\u003e \u003cem\u003e-\u003c\/em\u003e\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"448\"\u003e \u003cem\u003e8\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e \u003cem\u003ePower\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"19\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\" nowrap width=\"448\"\u003e \u003cem\u003e5v @ 100mA max.\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e \u003cem\u003eControl interface\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"19\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\" nowrap width=\"448\"\u003e \u003cem\u003eSerial or I2C\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e \u003cem\u003eRelay current\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"19\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\" nowrap width=\"448\"\u003e \u003cem\u003eUp to 1Amp @30vdc or 60vac. 500mA@110vac. 250mA@250vac\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e \u003cem\u003eConnections\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"19\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\" nowrap width=\"448\"\u003e \u003cem\u003eScrew Terminals for N\/ON\/C and Common contacts.\u003c\/em\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"182\"\u003e \u003cem\u003eExpansion\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"19\"\u003e \u003cem\u003e-\u003c\/em\u003e\n\u003c\/td\u003e\n\n\u003ctd align=\"left\" nowrap width=\"448\"\u003e \u003cem\u003eUp to 8 modules on Serial or I2C bus\u003c\/em\u003e \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\n\u003cbr\u003e\n\n\n\n\n I2C MODE:\n\u003cp align=\"left\"\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/rly08pin.jpg\" border=\"0\" height=\"330\" width=\"475\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003e\u003cstrong\u003eI2C Mode selection\u003c\/strong\u003e\u003cbr\u003e\n I2C operation is activated when the mode pin is left open circuit.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003e\u003cu\u003e\u003cbr\u003e\n\u003c\/u\u003eI2C Operations\u003cbr\u003e\n I2C Bus\u003cbr\u003e\n\u003c\/strong\u003e The RLY08 is located on the I2C bus at a factory default address of 0X70. The SCL and SDA lines should have pull-up resistors on them somewhere on the bus. You only require 1 pair of resistors for the whole I2C bus, not specifically for the RLY08. They are normally on the master controller and you may already have them. If not, anything between 1k8 and 10k should work. I recommend 1k8 for best noise immunity.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eRLY08 register set\u003cbr\u003e\n\u003c\/strong\u003e The RLY08 has only two registers, register 0 and acts as a dual purpose register. When written to it is the command register where all of the instructions from the commands section should be sent. When read it returns the software version.\u003cbr\u003e \nRegister 1 is the relay register, when written to it allows the user to change all eight relay positions at once with a single byte. When the register is read it provides the current positions of the relays. If all relays are powered the register would contain 255 (1111 1111), all relays in the un-powered state would result in 0 (0000 0000)\u003cbr\u003e\n\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e \u003cstrong\u003eI2C register set\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ccffcc\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"300\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\"\u003e register\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\"\u003e\u003cp align=\"center\"\u003e Read\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\"\u003e Write\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\"\u003e 0\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Software version\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Command register\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Relay states\u003c\/td\u003e\n\n\u003ctd align=\"center\"\u003e Relay states \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=\"center\"\u003e \u003cstrong\u003eCommands for I2C\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ccffcc\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"300\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"46\"\u003e decimal\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"47\"\u003e hex\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"158\"\u003e\u003cp align=\"center\"\u003e command\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 100\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x64\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e All relays on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 101\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x65\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 1 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 102\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x66\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 2 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 103\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x67\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 3 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 104\u003c\/td\u003e \n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e0x68\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 4 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 105\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x69\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 5 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 106\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x6A\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 6 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 107\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x6B\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 7 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 108\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x6C\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 8 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 110\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x6E\u003c\/td\u003e\n\n\u003ctd align=\"center\" nowrap width=\"158\"\u003e All relays off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 111\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x6F\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 1 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 112\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x70\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 2 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 113\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x71\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 3 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 114\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x72\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 4 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 115\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x73\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 5 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 116\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x74\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 6 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 117\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x75\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 7 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"46\"\u003e 118\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"47\"\u003e 0x76\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"158\"\u003e Turn relay 8 off \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\u003e\u003c\/p\u003e\n\n \u003cp align=\"left\"\u003e\u003cstrong\u003e\u003ca name=\"Address\"\u003e\u003c\/a\u003eChanging the RLY08 Address\u003c\/strong\u003e\u003cbr\u003e \nTo change the I2C address of the RLY08 you must have only one module on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of a RLY08 currently at 0x70 (the default shipped address) to 0x7A, write the following to address 0x70; (0xA0, 0xAA, 0xA5, 0x7A ). 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 module with its address, however if you do forget, just power it up without sending any commands. The RLY08 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 to the RLY08 and then becomes a power LED. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"30%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"50%\"\u003e Address\u003c\/td\u003e\n\n           \u003ctd rowspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003eLong Flash\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Short flashes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 112\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x70\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 114\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x72\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 116\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x74\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 118\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x76\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 120\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x78\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 122\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x7A\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 124\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x7C\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 126\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 0x7E\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 7 \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 Take care not to set more than one module to the same address, there will be a bus collision and very unpredictable results.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eSERIAL MODE:\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/rly08pin.jpg\" border=\"0\" height=\"330\" width=\"475\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eSerial mode selection\u003cbr\u003e\u003c\/strong\u003e \nSerial Mode is selected by connecting the Mode pin to ground. The Tx pin is out of the RLY08 and should be connected to Rx on your controller. The Rx pin is into the RLY08 and should be connected to Tx on your controller. These signals are 5v levels, not RS232. Do NOT connect RS232 directly to the module - you will destroy it. Use a MAX232 or equivalent to convert the RS232 levels to 5v.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eCommunication settings\u003c\/strong\u003e\u003cbr\u003e\n The Serial mode operates over a link with a baud rate of 9600 bps (no parity, 1 stop bit) and 5v signals, The RLY08 can be found at a factory default address of 1, although this is easily changed to another of eight locations - see \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/rly08ser.htm#Changing%20the%20RLY08%20Address\"\u003eChanging the RLY08 Address\u003c\/a\u003e \u003cstrong\u003e.\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommands\u003c\/strong\u003e\u003cbr\u003e \nTo send a command to the RLY08, you need to send two bytes. The first is the RLY08's address 1 (default) to 8, and then the actual command itself - see below. The RLY08 will then carry out the command and if applicable send its response. The only exception to this being the \"Set relay states\" command, it requires an additional required states byte to be sent immediately after the command byte. This will then set all relays to the status of the equivalent bit within the byte, with a high bit powering the relay on and a low bit turning it off.\u003cbr\u003e\n\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e \u003cstrong\u003eCommands for Serial\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ccenter\u003e\n\u003c\/center\u003e\n\n\u003ctable bgcolor=\"#ccffcc\" border=\"1\" cellpadding=\"2\" cellspacing=\"0\" width=\"70%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"5%\"\u003e Command\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"95%\"\u003e\u003cp align=\"center\"\u003e Action\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"2%\"\u003e dec\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"2%\"\u003e hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 90\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 5A\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Get software version - transmits a single byte back to the controller containing the software revision\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 91\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 5B\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e \u003cp align=\"center\"\u003eGet relay states - transmits a single byte back to the controller, bit high meaning the corresponding relay is powered\u003c\/p\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e ninety two\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 5C\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Set relay states - the next byte sent to the command register will set all relay states, All on = 255 (11111111) All off = 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 100\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 64\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e All relays on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 101\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 65\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 1 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 102\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 66\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 2 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 103\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 67\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 3 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 104\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 68\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 4 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 105\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 69\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 5 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 106\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 6A\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 6 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 107\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 6B\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 7 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 108\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 6C\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 8 on\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 110\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 6E\u003c\/td\u003e\n\n\u003ctd align=\"center\" nowrap width=\"95%\"\u003e All relays off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 111\u003c\/td\u003e \n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e6F\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 1 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 112\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 70\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 2 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 113\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 71\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 3 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 114\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 72\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 4 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 115\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 73\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 5 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 116\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 74\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 6 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 117\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 75\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 7 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 118\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e 76\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e Turn relay 8 off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 160\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e A0\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e 1st byte in sequence to change serial address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 165\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e A5\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e 3rd byte in sequence to change serial address\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"3%\"\u003e 170\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"2%\"\u003e AA\u003c\/td\u003e\n\n\u003ctd align=\"center\" width=\"95%\"\u003e 2nd byte in sequence to change serial 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\n\n\n\u003c\/div\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003e\u003ca name=\"Changing%20the%20RLY08%20Address\"\u003eChanging the RLY08 Address\u003c\/a\u003e\u003c\/strong\u003e\u003cbr\u003e \nTo change the address of the RLY08 you must have only one module connected. Write the 3 sequence commands in the correct order followed by the address. For example; to change the address of a RLY08 currently at 1 (the default shipped address) to 5, write the following to address 1; (0xA0, 0xAA, 0xA5, 0x05 ). These commands must be sent in the correct sequence to change the address, additionally, No other command may be issued in the middle of the sequence. The sequence must be sent as four separate commands to the current address of the module. i.e. 0x01, 0xA0 then 0x01, 0xAA, then 0x01, 0xA5 and finally 0x01, 0x05. When done, you should label the module with its new address, however if you do forget, just power it up without sending any commands. The RLY08 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 RLY08. \u003cbr\u003e\n\u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable bgcolor=\"#ffffcc\" border=\"1\" cellpadding=\"0\" cellspacing=\"0\" width=\"30%\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd colspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"50%\"\u003e Address\u003c\/td\u003e\n\n           \u003ctd rowspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003eLong Flash\u003c\/td\u003e\n\n\u003ctd rowspan=\"2\" align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Short flashes\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#66ffff\" width=\"25%\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 01\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 2\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 02\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 3\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 03\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 4\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 04\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 5\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 05\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 6\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 06\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 7\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 07\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 8\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ffff00\" width=\"25%\"\u003e 08\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 1\u003c\/td\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#ccffcc\" width=\"25%\"\u003e 7 \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 Take care not to set more than one module to the same address, there will be a bus collision and very unpredictable results. \u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868464473,"sku":"RLY08\/A","price":52.13,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036719961,"sku":"RLY08","price":52.13,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/rly08b_5.jpg?v=1695766410"},{"product_id":"rd02-12-volt-robot-drive-system","title":"RD02 - 12 Volt Robot Drive System","description":"\u003cbr\u003e\n \nA complete Robot Drive system, ready to integrate into your robot, comprising of an \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?products_id=642\" target=\"_blank\"\u003e\u003cstrong\u003eMD25\u003c\/strong\u003e\u003c\/a\u003e motor drive module, two \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?products_id=644\" target=\"_blank\"\u003e\u003cstrong\u003eEMG30\u003c\/strong\u003e\u003c\/a\u003e gearmotors with encoders, two \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?products_id=645\"\u003e\u003cstrong\u003emounting brackets\u003c\/strong\u003e\u003c\/a\u003e , two \u003ca href=\"http:\/\/www.xernuqvalzi.pro\/product_info.php?cPath=7_38\u0026amp;products_id=646\" target=\"_blank\"\u003e\u003cstrong\u003e100mm wheels\u003c\/strong\u003e\u003c\/a\u003e with hubs already fitted. Screws to fit the motors to the brackets and a hex key for the hub screw is included.\n\u003cp\u003e Only a single 12v battery capable of supplying peak current of 6Amps is required to power the system. Power for the logic comes from an on-board 5v regulator which is also capable of supplying up to 300mA to your own circuits.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868497241,"sku":"RD02\/A","price":163.38,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036851033,"sku":"RD02","price":163.38,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/rd02_5.jpg?v=1695766417"},{"product_id":"dual-12volt-2-8amp-h-bridge-motor-drive","title":"Dual 12Volt 2.8Amp H Bridge Motor Drive ","description":"\u003cbr\u003e\n\n\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 12V\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 Up to 2.8A for each motor\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Dimensions\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e 71mm x 60mm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e\n\n Overview\u003cbr\u003e\n The MD25 is a robust I2C dual motor driver, designed for use with our EMG30 motors. Main features are:\u003c\/p\u003e\n\n\u003cp\u003e 1. Reads motors encoders and provides counts in registers for determining distance traveled and direction.\u003cbr\u003e\n 2. Drives two motors with independent or combined control.\u003cbr\u003e\n 3. Motor current is readable through registers.\u003cbr\u003e\n 4. Only 12v is required to power the module.\u003cbr\u003e\n 5. Onboard 5v regulator can supply up to 1A peak, 300mA continuously to external circuitry\u003cbr\u003e\n 6. Steering feature, motors can be commanded to turn by I2C register value.\u003cbr\u003e\n 7. Variable acceleration and power regulation also included\u003cbr\u003e\n\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eMD25 Connections\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/md25a.jpg\" width=\"635\" height=\"384\"\u003e\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eMotor Noise Suppression\u003cbr\u003e\u003c\/strong\u003e \nWhen using our EMG30 encoded motors, you will find that a 10n noise suppression capacitor has already been fitted. Other motors may require suppression. This is easily achieved by the addition of a 10n snubbing capacitor across the motors. The capacitor should also be capable of handling a voltage of twice the drive voltage to the motor.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eLEDs\u003c\/strong\u003e\u003cbr\u003e\n The Red Power Led indicates power is applied to the module.\u003cbr\u003e\n A Green Led initially flashes the I2C address and then lights for 500mS to indicate correct I2C activity to the module. The internal 500mS timer is restarted each time there is I2C activity, so it will be on during continuous access.\u003c\/p\u003e\n\n\u003cp align=\"left\"\u003e \u003cstrong\u003eAutomatic Speed ​​regulation\u003cbr\u003e\u003c\/strong\u003e \nBy using feedback from the encoders the MD25 is able to dynamically increase power as required. If the required speed is not being achieved, the MD25 will increase power to the motors until it reaches the desired rate or the motors reach there maximum output. Speed ​​regulation can be turned off in the command register.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eControlling the MD25\u003cbr\u003e\n\u003c\/strong\u003e The MD25 is designed to operate in a standard I2C bus system on addresses from 0xB0 to 0xBE (last bit of address is read\/write bit, so even numbers only), with its default address being 0xB0. This is easily changed by removing the Address Jumper or in the software see Changing the I2C Bus Address.\u003cbr\u003e\n\u003cbr\u003e\n I2C mode allows the MD25 to be connected to popular controllers such as the PICAXE, OOPic and BS2p, and a wide range of micro-controllers like PIC's, AVR's, 8051's etc.\u003cbr\u003e \nI2C communication protocol with the MD25 module is the same as popular EPROM's such as the 24C04. To read one or more of the MD25 registers, first send a start bit, the module address (0XB0 for example) with the read\/write bit low, then the register number you wish to read. This is followed by a repeated start and the module address again with the read\/write bit high (0XB1 in this example). You are now able to read one or more registers. The MD25 has 17 registers numbered 0 to 16 as follows; \u003c\/p\u003e\n\n\u003ccenter\u003e\n\n\u003ctable width=\"500\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Register\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Name\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Read\/Write\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Description\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Speed1\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Motor1 speed (mode 0.1) or speed (mode 2.3)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Speed2\/Turn\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Motor2 speed (mode 0.1) or turn (mode 2.3) \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 2\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Enc1a\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Encoder 1 position, 1st byte (highest byte) and capture count when read \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e3\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Enc1b\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Encoder 1 position, 2nd byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e \n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 4\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Enc1c\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Encoder 1 position, 3rd byte \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" width=\"68\"\u003e\u003cp align=\"center\" class=\"ProductDescrGray\"\u003e5\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Enc1d\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Encoder 1 position, 4th (lowest byte)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Enc2a\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Encoder 2 position, 1st (highest byte) and capture count when read \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e7\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Enc2b\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Encoder 2 position, 2nd byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 8\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Enc2c\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Encoder 2 position, 3rd byte\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e 9\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Enc2d\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Encoder 2 position, 4th byte (lowest byte)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Battery volts\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e The supply battery voltage\u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e11\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Motor 1 current\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e The current through motor 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 12\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Motor 2 current\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e The current through motor 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e 13\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Software Review\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Software Revision Number\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 14\u003c\/td\u003e\n\n         \u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003eAcceleration rate\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Optional Acceleration register\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrGray\"\u003e 15\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrGray\"\u003e Modes\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrGray\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrGray\"\u003e Mode of operation (see below)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"68\" align=\"center\" class=\"ProductDescrWhite\"\u003e 16\u003c\/td\u003e\n\n\u003ctd width=\"176\" align=\"center\" class=\"ProductDescrWhite\"\u003e Command\u003c\/td\u003e\n\n\u003ctd width=\"119\" align=\"center\" class=\"ProductDescrWhite\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"472\" align=\"center\" class=\"ProductDescrWhite\"\u003e Used for reset of encoder counts and module address changes\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\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eSpeed1 Register\u003c\/strong\u003e\u003cu\u003e\u003cbr\u003e\n\u003c\/u\u003e Depending on what mode you are in, this register can affect the speed of one motor or both motors. If you are in mode 0 or 1 it will set the speed and direction of motor 1. The larger the number written to this register, the more power is applied to the motor. A mode of 2 or 3 will control the speed and direction of both motors (subject to effect of turn register).\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eSpeed2\/Turn Register\u003c\/strong\u003e\u003cu\u003e\u003cbr\u003e\n\u003c\/u\u003e When in mode 0 or 1 this register operates the speed and direction of motor 2. When in mode 2 or 3 Speed2 becomes a Turn register, and any value in this register is combined with the contents of Speed1 to steer the device (see below) .\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eTurn mode\u003cbr\u003e\u003c\/strong\u003e \nTurn mode looks at the speed register to decide if the direction is forward or reverse. Then it applies a subtraction or addition of the turn value on either motor.\u003c\/p\u003e\n\n\u003cp\u003e so if the direction is forward\u003cbr\u003e\n motor speed1 = speed - turn\u003cbr\u003e\n motor speed2 = speed + turn\u003cbr\u003e\n\u003cbr\u003e\n else the direction is reverse so\u003cbr\u003e\n motor speed1 = speed + turn\u003cbr\u003e\n motor speed2 = speed - turn\u003cbr\u003e\n\u003cbr\u003e\n If the either motor is not able to achieve the required speed for the turn (beyond the maximum output), then the other motor is automatically changed by the program to meet the required difference.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eEncoder registers\u003cbr\u003e\u003c\/strong\u003e \nEach motor has its encoder count stored in an array of four bytes, together the bytes form a signed 32 bit number, the encoder count is captured on a read of the highest byte (registers 2, 6) and the subsequent lower bytes will be held until another read of the highest byte takes place. The count is stored with the highest byte in the lowest numbered register. The registers can be zeroed at any time by writing 32 (0x20) to the \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/md23tech.htm#command%20register\"\u003ecommand register\u003c\/a\u003e .\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eBattery volts\u003cbr\u003e\n\u003c\/strong\u003e A reading of the voltage of the connected battery is available in this register. It reads as 10 times the voltage (121 for 12.1v).\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eMotor 1 and 2 current\u003cbr\u003e\n\u003c\/strong\u003e A guide reading of the average current through the motor is available in this register. It reads approximately ten times the number of Amps (25 at 2.5A).\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eSoftware Revision number\u003c\/strong\u003e\u003cbr\u003e \nThis register contains the revision number of the software in the modules PIC16F873 controller - currently 1 at the time of writing.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAcceleration Rate\u003c\/strong\u003e\u003cu\u003e\u003cbr\u003e\u003c\/u\u003e \nIf you require a controlled acceleration period for the attached motors to reach there ultimate speed, the MD25 has a register to provide this. It works by using a value into the acceleration register and increasing the power by that value. Changing between the current speed of the motors and the new speed (from speed 1 and 2 registers). So if the motors were traveling at full speed in the forward direction (255) and were instructed to move at full speed in reverse (0), there would be 255 steps with an acceleration register value of 1, but 128 for a value of 2 The default acceleration value is 5, meaning the speed is changed from full forward to full reverse in 1.25 seconds. The register will accept values ​​of 1 up to 10 which equates to a period of only 0.65 seconds to travel from full speed in one direction to full speed in the opposite direction.\u003cbr\u003e\n\u003cbr\u003e\n So to calculate the time (in seconds) for the acceleration to complete:\u003c\/p\u003e\n\n\u003cp\u003e if new speed \u0026gt; current speed\u003cbr\u003e \nsteps = (new speed - current speed) \/ acceleration register\u003c\/p\u003e\n\n\u003cp\u003e if new speed \u0026lt; current speed\u003cbr\u003e\n steps = (current speed - new speed) \/ acceleration register\u003cbr\u003e\n\u003cbr\u003e\n time = steps * 25ms\u003cbr\u003e\n\u003cbr\u003e\n For example: \u003c\/p\u003e\n\n\n\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eAcceleration register\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eTime\/step \u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Current speed\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eNew speed\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eSteps \u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"32\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Acceleration time \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 25ms\u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 6,375 \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 2\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 25ms\u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 127\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 64\u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 1.6s \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 3\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 25ms\u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 80\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 27\u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0.675s \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 5 (default)\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 25ms\u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 51\u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 1.275s \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"130\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 10\u003c\/td\u003e\n\n\u003ctd width=\"83\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 25ms\u003c\/td\u003e\n\n\u003ctd width=\"110\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"92\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"86\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 26\u003c\/td\u003e\n\n\u003ctd width=\"163\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0.65ms\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\u003cp\u003e \u003cstrong\u003eMode Register\u003c\/strong\u003e\u003cbr\u003e\n The mode register selects which mode of operation and I2C data input type the user requires. The options being:\u003cbr\u003e \n\u003cstrong\u003e0\u003c\/strong\u003e , (Default Setting) If a value of 0 is written to the mode register then the meaning of the speed registers is literal speeds in the range of 0 (Full Reverse) 128 (Stop) 255 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cstrong\u003e1,\u003c\/strong\u003e Mode 1 is similar to Mode 0, except that the speed registers are interpreted as signed values. The meaning of the speed registers is literal speeds in the range of -128 (Full Reverse) 0 (Stop) 127 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cstrong\u003e2,\u003c\/strong\u003e Writing a value of 2 to the mode register will make speed1 control both motors speed, and speed2 becomes the turn value.\u003cbr\u003e\n Data is in the range of 0 (Full Reverse) 128 (Stop) 255 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cstrong\u003e3,\u003c\/strong\u003e Mode 3 is similar to Mode 2, except that the speed registers are interpreted as signed values.\u003cbr\u003e\n Data is in the range of -128 (Full Reverse) 0 (Stop) 127 (Full Forward)\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eCommand register\u003c\/strong\u003e \u003c\/p\u003e\n\n\n\u003ccenter\u003e\n\n\u003ctable width=\"400\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"107\" height=\"16\" colspan=\"2\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Command \u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"32\" rowspan=\"2\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Action\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e \n\u003ctd width=\"52\" height=\"16\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Dec\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"16\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eHex \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"52\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 32\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e 20\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"24\" align=\"center\" class=\"ProductDescrWhite\"\u003e Resets the encoder registers to zero \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"52\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 48\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e 30\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"23\" align=\"center\" class=\"ProductDescrGray\"\u003e Disables automatic speed regulation \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"52\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 49\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e 31\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"23\" align=\"center\" class=\"ProductDescrWhite\"\u003e Enables automatic speed regulation (default) \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"52\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\u003e 160\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\u003e A0\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\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=\"52\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 170\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e AA\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"13\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2nd in sequence to change I2C address \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"52\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\u003e 165\u003c\/td\u003e\n\n\u003ctd width=\"53\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\u003e A5\u003c\/td\u003e\n\n\u003ctd width=\"696\" height=\"13\" align=\"center\" class=\"ProductDescrGray\"\u003e 3rd 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\n\n\u003cp\u003e \u003cstrong\u003eChanging the I2C Bus Address\u003c\/strong\u003e\u003cbr\u003e\n The I2C address can be changed by writing a new address to the MD25, or by fitting\/removing the Address Jumper.\u003cbr\u003e \nTo change the I2C address of the MD25 by writing a new address you must have only one module on the bus. Write the 3 sequence commands in the correct order followed by the address. Example; to change the address of an MD25 currently at 0xB0 (the default shipped address) to 0xB4, write the following to address 0xB0; (0xA0, 0xAA, 0xA5, 0xB4 ). 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 16, which means 4 separate write transactions on the I2C bus. Because of the way the MD25 works internally, there MUST be a delay of at least 5mS between the writing of each of these 4 transactions. When done, you should label the MD25 with its address, however if you do forget, just power it up without sending any commands. The MD25 will flash its address out on the green communication LED. One long flash followed by a number of shorter flashes indicating its address. Any command sent to the MD25 during this period will still be received and writing new speeds or a write to the command register will terminate the flashing.\u003c\/p\u003e\n\n\n\u003ccenter\u003e \n\u003ctable width=\"400\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"120\" colspan=\"2\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eAddress\u003c\/td\u003e\n\n\u003ctd width=\"64\" rowspan=\"2\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eLong Flash\u003c\/td\u003e\n\n\u003ctd width=\"64\" rowspan=\"2\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003eShort Flashes \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Decimal\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" bgcolor=\"#0033FF\" class=\"ProductDescrlHead\"\u003e Hex\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e 176\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e B0\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e 178\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e B2\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e 180\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e B4\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e 182\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e B6\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 3\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e 184\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e B8\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e 186\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e BA\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 5\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e 188\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrWhite\"\u003e BC\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrWhite\"\u003e 6\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e 190\u003c\/td\u003e\n\n\u003ctd width=\"63\" align=\"center\" class=\"ProductDescrGray\"\u003e BE\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 1\u003c\/td\u003e\n\n\u003ctd width=\"64\" align=\"center\" class=\"ProductDescrGray\"\u003e 7\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\u003cp\u003e Take care not to set more than one MD25 to the same address, there will be a bus collision and very unpredictable results.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAddress Jumper\u003c\/strong\u003e\u003cbr\u003e\n\u003cbr\u003e \nThe I2C address can also be changed by fitting\/removing the Address Jumper. With the jumper in place (factory default) the address is the same as programmed into the module (factory default is 0xB0). Removing the jumper will change the address to the next one up. The default address of 0xB0 will change to 0xB2 if the jumper is removed. 0xBA would change to 0xBC. The exception is 0xBE, the jumper has no effect on this address. After fitting or removing the Address Jumper, the MD25's I2C address will not change until the next time the module is powered on.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eSchematics\u003c\/strong\u003e\u003cbr\u003e\n The MD25 schematics: \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/images\/md23s1.jpg\" target=\"_blank\"\u003eSheet1\u003c\/a\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/images\/md23s2.jpg\" target=\"_blank\"\u003eSheet2\u003c\/a\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eMechanical\u003c\/strong\u003e\u003cbr\u003e\n\u003c\/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"..\/images\/m25b.jpg\" width=\"578\" height=\"489\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868530009,"sku":"MD25\/A","price":57.27,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036916569,"sku":"MD25","price":57.27,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/md25_4.jpg?v=1695766423"},{"product_id":"dual-5a-h-bridge","title":"Dual 5A H-Bridge ","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003cbr\u003e\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 5v logic supply and 5v - 24v for the motor\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\"\u003e50mA Max for logic and up to 5A for each motor\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e Dimensions\u003c\/td\u003e\n\n\u003ctd class=\"ProductDescrWhite\"\u003e 110 x 52 x H 25 mm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\n\u003cp\u003e \u003cb\u003eOverview\u003c\/b\u003e\u003cbr\u003e\n The MD22 is a robust low\/medium power motor driver, designed to supply power for two motors. Main features are:\u003cbr\u003e\n\u003cbr\u003e\n 1. Drives two motors with independent control.\u003cbr\u003e\n 2. Ease of use and flexibility.\u003cbr\u003e\n 3. The 15v MOSFET drive voltage is generated onboard with a charge pump, so the module requires only two supply voltages;\u003cbr\u003e\n a) A standard 5V supply for the control logic, only 50mA maximum is required.\u003cbr\u003e\n b) Motor voltage, anything up to 24vdc to suit your motors.\u003cbr\u003e\n 4. Steering feature, motors can be commanded to turn by I2C register or input (Analogue + Servo).\u003cbr\u003e\n 5. Control of the module can be any of;\u003cbr\u003e\n a) I2C bus, up to 8 MD22 modules, switch selectable addresses and 4 modes of operation including steering..\u003cbr\u003e\n b) 2 independent 0v-2.5v-5v analog inputs. 0v full reverse, 2.5v center stop, 5v full forward.\u003cbr\u003e \nc) 0v-2.5v-5v analog input for speed, with the other channel for steering.\u003cbr\u003e\n d) independent channel RC mode. Motors are individually Controlled directly from the RC receiver output.\u003cbr\u003e\n e) RC mode with steering, allows speed control with one stick of radio control, and steering with the other.\u003cbr\u003e\n 6. Uses high current MOSFETs capable of much more than the 5Amp Specification.\u003cbr\u003e\n They are capable of 27Amp continuous with a suitable heat-sink and up to 290Amps in very brief repetitive pulses.\u003cbr\u003e\n Without a heat-sink they can handle 5Amps continuously, hence our specification.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eMD22 Connections\u003c\/b\u003e \u003c\/p\u003e\n\n\u003ctable width=\"525\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"75%\"\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/md22.gif\" border=\"0\" height=\"162\" width=\"521\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\"\u003e\n\n\u003cp align=\"center\" class=\"style1\"\u003e Note - There is no fuse on the PCB. You should provide a 10A fuse in line with the +v battery terminal.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eDon't Ignore this, High currents can be dangerous\u003c\/strong\u003e\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 \u003cp align=\"left\"\u003e\u003cfont size=\"3\"\u003eThe Motor Ground and the Logic Ground are internally connected on the Module. Be sure to use cable rated for at least 10A for the Battery, Fuse and Motor leads.\u003c\/font\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eMode Switches\u003cbr\u003e\n\u003c\/b\u003e The 4 mode switches set the operating mode of the MD22. They are read once only when the module is powered up. You cannot switch modes while the unit is on. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable width=\"540\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrlHead\"\u003e Modes\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrlHead\"\u003e Switch 1\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrlHead\"\u003e Switch 2\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrlHead\"\u003e Switch 3\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrlHead\"\u003e Switch 4\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e I2C Bus - address 0xB0\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e I2C Bus - address 0xB2\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e I2C Bus - address 0xB4\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e I2C Bus - address 0xB6\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e I2C Bus - address 0xB8\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e I2C Bus - address 0xBA\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e \n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003eOff\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e I2C Bus - address 0xBC\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e I2C Bus - address 0xBE\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0v - 2.5v - 5v Analog\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e 0v - 2.5v - 5v Analog + Turn\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrWhite\"\u003e RC Servo\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"195\" align=\"center\" class=\"ProductDescrGray\"\u003e RC Servo + Turn\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd width=\"114\" align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd width=\"115\" align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e RC Servo - Timeout On\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrWhite\"\u003e Off\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e RC Servo + Turn - Timeout On\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e Hon\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e Off\u003c\/td\u003e\n\n\u003ctd align=\"center\" class=\"ProductDescrGray\"\u003e Off \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\u003e\u003cbr\u003e\n Note that I2C addresses are the upper 7 bits. Bit 0 the the read\/write bit, so addresses 0xB0\/0xB1 are write\/read respectively to the same address.\u003cbr\u003e \nThis range of I2C addresses is the same as those used by the MD03.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eDifferential drive\u003cbr\u003e\n\u003c\/b\u003e As well as controlling two motors independently, The MD22 incorporates a useful added function of differential drive, provided the motors are positioned so one is driving the left side movement and the other diving the right side. The MD22 can then use one channel to drive both motors forward\/reverse and the other for turning left\/right.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eAnalog Mode - 0v-2.5v-5v\u003c\/b\u003e\u003cbr\u003e\n In this mode the motors are controlled independently by two 0v to 5v analog signals on the SCL (Motor1) and SDA (Motor2) lines.\u003cbr\u003e\n 0v is maximum reverse power\u003cbr\u003e\n 2.5v is the center stop position\u003cbr\u003e\n 5v is full forward power\u003cbr\u003e\n There is a small (2.7%) dead band around 2.5v to provide a stable off position.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eAnalog Mode - 0v-2.5v-5v with Differential drive\u003cbr\u003e\n\u003c\/b\u003e Both\u003cb\u003e \u003c\/b\u003eMotors speed is now controlled by the analogue voltage level on the SCL line. The SDA line is now responsible for offsetting the two speeds and thus controlling the degree of turn.\u003cbr\u003e \nThe voltage levels are the same as above but turn degree is:\u003cbr\u003e\n 0v is hard turn left\u003cbr\u003e\n 2.5v is the straight position\u003cbr\u003e\n 5v is hard turn right\u003cbr\u003e\n There is the same dead band (2.7%) on the speed and the turn. .\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eRC Servo Mode\u003c\/b\u003e\u003cbr\u003e\n This mode allows direct connection to standard model radio control receivers. Most receivers work from a 4.8v-6v battery pack and can be powered by 5v supply that powers the MD22 logic. The control pulses (Yellow) from the receiver should be connected to the SCL (Motor1) and SDA (Motor2) terminals. Connect the receiver supply (Red) to +5v logic supply and the receiver 0v ground (Black) to the MD22 logic ground. The output from an RC receiver is a high pulse 1.5mS wide when the joystick is central. The MD22 provides full control in the range 1mS to 2mS with 1.5mS being the center off position. There is a 7uS dead zone centered on 1.5mS for the off position. The Radio Transmitter centering control should be adjusted so that the motor is off when the joystick is released.\u003c\/p\u003e\n\n \u003cp\u003e\u003cb\u003eRC Mode Servo with Differential drive\u003cbr\u003e\n\u003c\/b\u003e Again uses a standard radio control receiver module output to determine speed with the addition of the extremely useful steering function. the receivers Forward and Reverse channel should be wired to the SCL connection. And the steering through the SDA channel. Again fine adjustment to the transmitters offset may possibly be needed. Note that for this mode to work, the motors must be in the same phase. If you have one of the motors reversed, the robot will not steer correctly. If this happens then switch off and reverse one of the motors.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eRC Modes with timeout feature (from version 3)\u003c\/strong\u003e\u003cbr\u003e\n An extra couple of modes have been added and operate in much the same way as the normal servo control. The difference is the addition of a new timeout feature. If the RC pulse is not detected on a channel 1 (SCL) for a period in excess of 200ms, then both of the motors will be stopped being driven until a valid RC signal is received on channel 1.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eI2C Mode\u003c\/b\u003e\u003cbr\u003e \nI2C mode allows the MD22 to be connected to popular controllers such as the OOPic and BS2p, and a wide range of micro-controllers like PIC's, AVR's, 8051's etc.\u003cbr\u003e\n I2C communication protocol with the MD22 module is the same as popular eeprom's such as the 24C04. To read one or more of the MD22 registers, first send a start bit, the module address (0XB0 for example - see mode switches) with the read\/write bit low, then the register number you wish to read. This is followed by a repeated start and the module address again with the read\/write bit high (0XB1 in this example). You are now able to read one or more registers. The MD22 has 8 registers numbered 0 to 7 as follows; \u003c\/p\u003e\n\n\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=\"12%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Register Address\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Name\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Read\/Write\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Description \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 0\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Modes\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrWhite\"\u003e Mode of operation (see below) \u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e 1\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Speed1\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Left motor speed (mode 0.1) or speed (mode 2.3) \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 2\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Speed2\/Turn\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrWhite\"\u003e \u003cp align=\"center\"\u003eRight motor speed (mode 0.1) or turn (mode 2.3) \u003c\/p\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e 3\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Acceleration\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e R\/W\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Acceleration for i2c (mode 0.1) \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 4\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Unused\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Read as zero \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e 5\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Unused\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Read as zero \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e 6\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Unused\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrWhite\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrWhite\"\u003e\u003cp align=\"center\"\u003e Read as zero \u003c\/p\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"12%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e 7\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"29%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Software Review\u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd width=\"23%\" align=\"center\" class=\"ProductDescrGray\"\u003e Read only\u003c\/td\u003e\n\n\u003ctd width=\"95%\" align=\"center\" class=\"ProductDescrGray\"\u003e\u003cp align=\"center\"\u003e Software Revision Number\u003c\/p\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\u003cp\u003e The mode register defaults to 0, as does the acceleration register (slowest acceleration). No motor will move until directly after speed1 or speed2\/turn registers are changed.\u003cbr\u003e\n\u003cbr\u003e\n \u003cb\u003eMode Register\u003c\/b\u003e\u003cbr\u003e\n The mode register selects which mode of operation and I2C data input type the user requires. The options being:\u003cbr\u003e\n\u003cspan style=\"background-color: rgb(255, 255, 0);\"\u003e\u003cbr\u003e\n\u003c\/span\u003e \u003cb\u003e0\u003c\/b\u003e , (Default Setting) If a value of 0 is written to the mode register then the meaning of the speed registers is literal speeds in the range of:\u003cbr\u003e \n0 (Full Reverse) 128 (Stop) 255 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cb\u003e1,\u003c\/b\u003e Mode 1 is similar to Mode 0, except that the speed registers are interpreted as signed values. The meaning of the speed registers is literal speeds in the range of:\u003cbr\u003e\n -128 (Full Reverse) 0 (Stop) 127 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cb\u003e2,\u003c\/b\u003e Writing a value of 2 to the mode register will make speed1 control both motors speed, and speed2 becomes the turn value.\u003cbr\u003e\n Data is in the range of 0 (Full Reverse) 128 (Stop) 255 (Full Forward).\u003cbr\u003e\n\u003cbr\u003e\n \u003cb\u003e3,\u003c\/b\u003e Mode 3 is similar to Mode 2, except that the speed registers are interpreted as signed values.\u003cbr\u003e\n Data is in the range of -128 (Full Reverse) 0 (Stop) 127 (Full Forward)\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eSpeed1 Register\u003c\/b\u003e\u003cu\u003e\u003cbr\u003e\u003c\/u\u003e \nDepending on what mode you are in, this register can affect the speed of one motor or both motors. If you are in mode 0 or 1 it will Set the speed of the motor 1. The larger the number written to this register, the more power is applied to the motor. If mode is set to 2 or 3 it controls the speed and direction of both motors (subject to effect of turn register).\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eSpeed2\/Turn Register\u003c\/b\u003e\u003cu\u003e\u003cbr\u003e\n\u003c\/u\u003e Again when in mode 0 or 1 this register operates the same as speed1 but controls the operation of the motor 2. When mode is set to 2 or 3 Speed2 becomes a Turn register, and any value in speed 1 is combined with the contents of this register to steer the device.\u003c\/p\u003e\n\n\u003cp\u003e \u003cb\u003eAcceleration Register (in direct motor control)\u003c\/b\u003e\u003cu\u003e\u003cbr\u003e\u003c\/u\u003e \nIf you require a controlled acceleration period for the attached motors to reach there ultimate speed, the MD22 has a register to provide this. It works by inputting a value into the acceleration register which acts as a delay in the power stepping. The amount of steps is the difference between the current speed of the motors and the new speed (from speed 1 and 2 registers). So if the motors were traveling at full speed in the forward direction (255) and were instructed to move at full speed in reverse (0), there would be 255 steps.\u003cbr\u003e\n\u003cbr\u003e\n The acceleration register contains the rate at which the motor board moves through the steps. At 0 (default) the board changes the power (accelerates) at its fastest rate, each step taking 64us. When the acceleration register is loaded with the Slowest setting of 255, the board will change the power output every 16.4ms.\u003cbr\u003e\n\u003cbr\u003e\n So to calculate the time (in seconds) for the acceleration to complete:\u003cbr\u003e\n time = accel reg value * 64us * steps.\u003cbr\u003e\n For example: \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable width=\"420\" height=\"199\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e \n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrlHead\"\u003eAccel reg\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Time\/step\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Current speed\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrlHead\"\u003e New speed\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Steps\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrlHead\"\u003e Acceleration time\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 20\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1.28ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 127\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 128\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 164ms\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 50\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 3.2ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 80\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 80\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 256ms\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 100\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 6.4ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 45\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 7\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 38\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 243ms\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 150\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 9.6ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 5\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 250\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2.4s\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrGray\"\u003e 200\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 12.8ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 127\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 0\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 127\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrGray\"\u003e 1.63s\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"16%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 255\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 16.32ms\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 65\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 150\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 85\u003c\/td\u003e\n\n\u003ctd width=\"17%\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1.39s\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\u003e\u003cu\u003e\u003cbr\u003e\n\u003c\/u\u003e \u003cb\u003eSoftware Revision number\u003c\/b\u003e\u003cbr\u003e\n This register contains the revision number of the software in the modules PIC16F873 controller - currently 1 at the time of writing.\u003c\/p\u003e\n\n \u003cp\u003e\u003cb\u003eUsing the MD22 with popular controllers\u003c\/b\u003e\u003cbr\u003e\n One the easiest ways of connecting the MD22 to a standard controller, such as the BS2 Stamp, is to use RC Servo mode. Select normal (independent) or differential mode on the switches before powering the module. Now you can use the PULSOUT command to simulate the servo pulse and control the motors. The pulse needs to vary between 1mS (full reverse) to 2mS (full forwards) with 1.5mS being the center off position. Unlike servo's, which require the pulse to be repeated every 20mS or so, the MD22 need only be sent a new pulse when you want to change speed. With no pulses being sent it simply continues at the current speed. The timing parameter will vary depending on the controller. Here are some popular examples - all tested by us. \u003c\/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n\u003ccenter\u003e\n\n\u003ctable width=\"596\" border=\"0\" cellpadding=\"3\" cellspacing=\"0\" class=\"ProductDescrBorder\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr bgcolor=\"#0033FF\"\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrlHead\"\u003e Controllers\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrlHead\"\u003e Pulsout Resolution\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrlHead\"\u003e Full reverse\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrlHead\"\u003e Center off\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrlHead\"\u003e Full Forwards\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrlHead\"\u003e Command example for Stop\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrWhite\"\u003e BS2\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2uS\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrWhite\"\u003e 500\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrWhite\"\u003e 750\u003c\/td\u003e \n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrWhite\"\u003e1000\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrWhite\"\u003e mot1 pulsout, 750\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrGray\"\u003e BS2e\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrGray\"\u003e 2uS\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrGray\"\u003e 500\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrGray\"\u003e 750\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrGray\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrGray\"\u003e mot1 pulsout, 750\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrWhite\"\u003e BS2sx\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrWhite\"\u003e 0.8uS\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1250\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1875\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2500\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrWhite\"\u003e pulsout mot1, 1875\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrGray\"\u003e BS2p\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrGray\"\u003e 0.8uS *\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrGray\"\u003e 1250\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrGray\"\u003e 1875\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrGray\"\u003e 2500\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrGray\"\u003e pulsout mot1, 1875\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrWhite\"\u003e To Tom\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1uS\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1000\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrWhite\"\u003e 1500\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrWhite\"\u003e 2000\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrWhite\"\u003e mot1 pulsout, 1500\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd width=\"100\" align=\"center\" class=\"ProductDescrGray\"\u003e BX-24\u003c\/td\u003e\n\n\u003ctd width=\"83\" align=\"center\" class=\"ProductDescrGray\"\u003e 1.085uS\u003c\/td\u003e\n\n\u003ctd width=\"60\" align=\"center\" class=\"ProductDescrGray\"\u003e 922\u003c\/td\u003e\n\n\u003ctd width=\"52\" align=\"center\" class=\"ProductDescrGray\"\u003e 1382\u003c\/td\u003e\n\n\u003ctd width=\"72\" align=\"center\" class=\"ProductDescrGray\"\u003e 1843\u003c\/td\u003e\n\n\u003ctd width=\"213\" align=\"center\" class=\"ProductDescrGray\"\u003e call pulseout(mot1, 1382, 1)\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\u003e * BS2p resolution is 0.8uS - rather than 0.75uS or 1.18uS as specified in earlier BS2p documentation. Parallax have confirmed this to us.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868562777,"sku":"MD22\/A","price":70.87,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890036949337,"sku":"MD22","price":70.87,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/md22_5.jpg?v=1695766430"},{"product_id":"md04-20a-h-bridge","title":"MD04 - 20A H-Bridge","description":"\u003cp\u003e\u003cspan\u003eThe MD04 is a medium power motor driver and is an upgraded replacement for the MD03, the main features are ease of use and flexibility. The motor's power is controlled by on-board Pulse Width Modulation (PWM) generators driving the H-Bridge Transistors.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eVoltage - 5v - 24v\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eCurrent - up to 20A\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eControl 1 - 0v - 2.5v - 5v Analogue for Reverse - Stop - Forward\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eControl 2 - 0v - 5v (or PWM equiv.) with separate direction control\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eControl 3 - RC Mode - Controlled by standard Radio Control system. Direct connection to RC receiver. (1mS - 2mS pulse with 1.5mS center off).\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eControl 4 - I2C Interface, full control, acceleration and status reporting. Up to 8 modules on bus. SCL speed up to 1MHz\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eControl 5 - Serial at 5v levels and up to 115.2k baud rate\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eCurrent limiter - Preset at 20A\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eTemperature limiter - Reduces power gracefully if module overheats\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eSize - 113mm x 52mm x 30mm\u003c\/span\u003e\u003c\/p\u003e\n\n \u003cp\u003e\u003cspan\u003eFull\u003c\/span\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/md04tech.pdf\" target=\"_blank\"\u003eMD04 Documentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eExamples\u003c\/strong\u003e \u003cspan\u003e\u003cstrong\u003e\u003cstrong\u003e\u003cbr\u003e\u003c\/strong\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/i2c-tutorial\" target=\"_blank\"\u003eI2C bus tutor\u003c\/a\u003e\u003c\/strong\u003e\u003c\/strong\u003e\u003c\/span\u003e \u003cstrong\u003e-\u003c\/strong\u003e general I2C guide \u003cspan\u003e\u003cstrong\u003e\u003cbr\u003e\u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/arduino_examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003eArduino\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003c\/span\u003e \u003cstrong\u003e-\u003cstrong\u003e \u003c\/strong\u003e\u003c\/strong\u003econtrol using an I2C interface and display using the LCD05\u003cbr\u003e \u003cstrong\u003e\u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/ATMEGA32_examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003eATMEGA32\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e -\u003c\/strong\u003e Simple communication example\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/pic18_examples.htm\" target=\"_blank\"\u003ePIC18F4410\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e - driving the motor and displaying variables on the LCD03 \u003cbr\u003e\u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/pic24_examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003ePIC24FJ16GA002\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - reading the result and displaying on a LCD03\/LCD05\u003cbr\u003e \u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/picaxe_examples.htm\" target=\"_blank\"\u003e\u003cstrong\u003ePicaxe18x\u003c\/strong\u003e\u003c\/a\u003e\u003c\/span\u003e - I2C communication example\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868595545,"sku":"MD04\/A","price":62.87,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037047641,"sku":"MD04","price":62.87,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/md04-2.jpg?v=1695766437"},{"product_id":"i2c-bus-to-14-general-purpose-i-o-lines","title":"I2C bus to 14 general purpose I\/O lines","description":"\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003eThe ideal chip for adding general purpose I\/O lines to the RF04\/CM02, USB-I2C or any I2C based application.\u003c\/strong\u003e \u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n \u003cstrong style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003eFeatures:\u003c\/strong\u003e\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Ideal for adding general purpose I\/O lines to the RF04\/CM02 or USB-I2C.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Up to 2 SRF04's or 2 SRF05's controlled, including all timing.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Up to 14 general purpose Input\/Output lines.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Up to 5 Analogue input channels with 10-bit A\/D conversion.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n 1 PWM output usable as an 8-bit D\/A with a simple filter.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e \nI2C address 0x40, can be changed to allow up to 8 devices on the same I2C bus.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n 6 I\/O lines have programmable pull-up resistors built into the chip.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Individual control of each pin for Input or Output.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Simple commands for Bit Set, Bit Clear and Bit Toggle.\u003cbr style=\"font-family: Arial, Helvetica, sans-serif; font-size: 11px; \"\u003e\n Easy I2C bus control, similar protocol as popular EEPROM's such as 24C02.\u003c\/p\u003e\n\n\u003cp\u003e \u003ca target=\"_blank\" href=\"http:\/\/www.robot-electronics.co.uk\/htm\/gpio14tech.htm\"\u003eOn Line User manual\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169868628313,"sku":"GPIO14\/A","price":9.71,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037080409,"sku":"GPIO14","price":9.71,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/gpio14_5.jpg?v=1695766444"},{"product_id":"emg30-mounting-bracket","title":"EMG30 Mounting Bracket","description":"\u003cbr\u003e\n Providing easy mounting of the EMG30 to the robot, the bracket is made from a 2mm thick strong aluminum and finished in blue enamel. \u003cbr\u003e\n\n\u003cp align=\"left\"\u003e\u003cimg src=\"..\/images\/emg30brack.jpg\" width=\"300\" height=\"249\"\u003e\u003cimg src=\"..\/images\/bracketviews.jpg\" width=\"339\" height=\"341\"\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169869054297,"sku":"EMG30BR\/A","price":5.08,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037145945,"sku":"EMG30BR","price":5.08,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/emg30brack_5.jpg?v=1695766450"},{"product_id":"12v-170rpm-gearmotor-with-encoder","title":"12V - 170RPM Gearmotor with encoder","description":"\u003cbr\u003e\n The EGM30 (encoder, motor, gearbox 30:1) is a 12v motor fully equipped with encoders and a 30:1 reduction gearbox. It is ideal for small or medium robotic applications, providing cost effective drive and feedback for the user. It also includes a standard noise suppression capacitor across the motor windings.\n\u003cp align=\"center\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eMeasurements\u003c\/strong\u003e \u003c\/p\u003e\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"http:\/\/www.robot-electronics.co.uk\/images\/EMG30.jpg\" border=\"0\" height=\"210\" width=\"786\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eConnector\u003c\/strong\u003e\u003c\/p\u003e\n\n \u003cp\u003eThe EGM30 is supplied with a 6 way JST connector (part no PHR-6) at the end of approx. 90mm of cable as standard.\u003cbr\u003e\n The connections are:\u003c\/p\u003e\n\n\u003ctable border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"315\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"19\" width=\"181\"\u003e \u003cstrong\u003eWire colour\u003c\/strong\u003e \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"436\"\u003e \u003cstrong\u003eConnection\u003c\/strong\u003e\n\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"15\" width=\"181\"\u003e Purple (1) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"15\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"15\" width=\"436\"\u003e Hall Sensor B Vout\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"19\" width=\"181\"\u003e Blue (2) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"436\"\u003e Hall sensor A Vout\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"19\" width=\"181\"\u003e Green (3) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"436\"\u003e Hall sensor ground\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"19\" width=\"181\"\u003e Brown (4) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"436\"\u003e Hall sensor Vcc\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"19\" width=\"181\"\u003e Red (5) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"19\" width=\"436\"\u003e + Motor\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" height=\"20\" width=\"181\"\u003e Black (6) \u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"20\" width=\"66\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" height=\"20\" width=\"436\"\u003e - Engine\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e note that pull up resistors (we used 4k7) are required on the hall sensor outputs, and wires are the colors from the actual cable.\u003c\/p\u003e\n\n\u003ctable border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"405\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e\u003cp align=\"left\"\u003e \u003cstrong\u003especification\u003c\/strong\u003e \u003c\/p\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003eRated voltage\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 12v\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Rated torque\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 1.5kg\/cm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Rated speed\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 170rpm\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Rated current\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 530mA\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e No load speed\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 216\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e No load current\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 150mA\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Stall Current\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n       \u003ctd align=\"left\" width=\"123\"\u003e2.5A\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Rated output\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 4.22W\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd align=\"right\" width=\"255\"\u003e Encoder counts for output shaft turn\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"19\"\u003e\u003c\/td\u003e\n\n\u003ctd align=\"left\" width=\"123\"\u003e 360\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169869087065,"sku":"EMG30\/A","price":40.22,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037277017,"sku":"EMG30","price":40.22,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/emg30motor_5.jpg?v=1695766457"},{"product_id":"radio-telemetry-module","title":"Radio Telemetry Module","description":"\u003cp\u003e The CM02 module, together with its companion RF04 module, form a complete interface between your PC and our range of I2C modules. You can send commands down to your robot and receive telemetry data back up to the PC. Now you have all the modules necessary to control your robot from your PC. The CM02 is powered by your robots battery, which can be anything from 6v to 12v. The CM02 can monitor battery voltage and report this back to the PC (so your robot knows when its hungry!). There are four I2C connectors on the CM02, but you are not limited to four I2C devices. In practice, you may only need one connector and route the I2C bus around all the modules you wish. Bit rate on the I2C bus is approximately 100KHz.\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169869152601,"sku":"CM02\/A","price":12.2,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037244249,"sku":"CM02","price":12.2,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/cm02_5.jpg?v=1695766463"},{"product_id":"esp32lr88-wifi-8-x-16a-relays","title":"ESP32LR88 - WIFI 8 x 16A relays","description":"\u003cp\u003e \u003cstrong\u003eControlled over WIFI using preprogrammed command sets or html page.\u003c\/strong\u003e\u003c\/p\u003e\n\n \u003cp\u003eThe ESP32LR88 is a WIFI connected relay module using the popular ESP32. It provides 8 relays capable of switching up to 16Amps and 8 digital inputs with pull-ups that can interface directly with volt free contacts. The normally open relay contacts have snubbers fitted across them, and can drive inductive loads such as contactors and solenoids. Power for the board is 12v dc, which can be provided by a standard universal wall power supply. A 1A or greater supply should be selected.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eControl Protocols\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003e 1. Simple plain text commands sent to the module.\u003cbr\u003e 2. HTML commands\u003cbr\u003e 3. MQTT\u003cbr\u003e 4. A built in webpage\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eWifi\u003c\/strong\u003e\u003cbr\u003e The ESP32LR88 connects via WiFi to your network. Therefore it must be located in a position where it gets a good WiFi signal. The module should not be enclosed in a metal box\/cabinet as this will shield the WiFi signal. You can check the signal level by looking at the RSSI figure which is reported by the ST (STatus) command.\u003c\/p\u003e\n\n\u003cp\u003e\u003cstrong\u003e \u003c\/strong\u003e\u003cbr\u003e \u003cbr\u003e\u003cstrong\u003eRelays\u003c\/strong\u003e \u003cspan\u003e- 8 with snubbers for inductive loads\u003cbr\u003e\u003c\/span\u003e \u003cstrong\u003eInputs\u003c\/strong\u003e - 8 volt free contact compatible inputs or 3.3v digital inputs\u003cbr\u003e \u003cstrong\u003ePower\u003c\/strong\u003e \u003cspan\u003e- 12V DC adapter, supplied separately\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eControl interface\u003c\/strong\u003e \u003cspan\u003e-\u003c\/span\u003e HTTP (webpage), HTML commands, MQTT commands or plain text commands (ASCII terminal)\u003cbr\u003e \u003cstrong\u003eRelay current\u003c\/strong\u003e - Up to 16Amp @24vdc or 250vac\u003cbr\u003e \u003cstrong\u003eOutput connections\u003c\/strong\u003e - Screw Terminals for N\/ON\/C and Common contacts.\u003cbr\u003e \u003cstrong\u003eProgramming connection\u003c\/strong\u003e - USB programmable with Arduino IDE\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e Built around the ESP-WROOM-32, the module is fully customizable around open source software.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca title=\"ESP32LR88\" href=\"http:\/\/www.robot-electronics.co.uk\/files\/ESP32LR88.pdf\" target=\"_blank\"\u003eDocumentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870201177,"sku":"809230\/A","price":89.55,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037178713,"sku":"809230","price":89.55,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/esp32lr88.jpg?v=1695766469"},{"product_id":"tcp184-industrial-4-x-16a-relays","title":"TCP184 - industrial 4 x 16A relays","description":"\u003cp\u003e Ruggedised, Industrial, DIN rail mounting control module\u003cbr\u003e Built in snubbers for safe connection to inductive loads.\u003cbr\u003e Optically isolated inputs. \u003cbr\u003eMains power - 90 - 264Vac, 47-63Hz.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eRight out of the box -\u003cbr\u003e\u003c\/strong\u003e Simple configuration and setup from your web browser.\u003cbr\u003e Control it from a web page, or select tcp\/ip control with an option of ASCII, Binary or Modbus protocols.\u003cbr\u003e Send email notifications on selected events.\u003cbr\u003e Optional AES encryption for totally secure control using binary tcp\/ip mode.\u003cbr\u003e Add simple relay automation, for automatic relay control.\u003cbr\u003e Create Peer to Peer control in a few clicks.\u003cbr\u003e Up to eight 32-bit counters with capture and reset, 20 counts\/second on inputs.\u003cbr\u003e Event schedules for timed events daily or weekly.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eStill want more?\u003cbr\u003e\u003c\/strong\u003e You can completely customize the module using our powerful dScript language! - or just modify a supplied example.\u003cbr\u003e Create custom webpages - Add your own logo, buttons and functionality.\u003cbr\u003e Add a tcp server to respond to incoming tcp requests with your own functions.\u003cbr\u003e Include a tcp client and send packets of tcp data to other devices using your own protocol.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eHardware\u003c\/strong\u003e \u003cbr\u003eSerial port - 1 x RS485 port.\u003cbr\u003e Relays - 4 with up to 16Amp @24vdc or 250vac, screw Terminals for N\/ON\/C and Common contacts\u003cbr\u003e Inputs - 8 flexible channels, your choice of VFC input, counters or 12-bit analogue input.\u003cbr\u003e Communication - USB for development, RJ45 Ethernet for normal access\u003cbr\u003e Mains power - 90 - 264Vac, 47-63Hz.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFDI\u003cbr\u003e\u003c\/strong\u003e dScript editor requirements - Windows 7 or later, Linux or macOS.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca title=\"dscript\" href=\"http:\/\/www.robot-electronics.co.uk\/dscript.html\" target=\"_blank\"\u003eDocumentation, editor and examples\u003c\/a\u003e\u003c\/strong\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870725465,"sku":"809228\/A","price":141.67,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037342553,"sku":"809228","price":141.67,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/tcp184-din-crop.jpg?v=1695766475"},{"product_id":"bno055-bosch-9-axis-absolute-orientation-sensor","title":"BNO055 - BOSCH 9 axis absolute orientation sensor","description":"\u003cp\u003e \u003cspan\u003eBased around the fantastic BNO055 9 axis absolute orientation sensor from Bosch our module offers supply regulation and comms level translation, this means the module will work fine with any voltage between 3.3V and 5V. Default mode is serial communication, but this is easily changed to I2C with by closing a link on the board.\u003c\/span\u003e\u003cbr\u003e \u003cbr\u003e\u003cspan\u003e\u003cstrong\u003eHeading\u003c\/strong\u003e - Simple to read tilt compensated angle\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eQuaternion\u003c\/strong\u003e - 4 vectors for more accurate requirements\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eEular angles\u003c\/strong\u003e - 3 angles with reference to x, y and z axes\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eRotation vector\u003c\/strong\u003e - angular velocity from the gyro\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eLinear acceleration\u003c\/strong\u003e - 3 axis of acceleration due to movement\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eGravity\u003c\/strong\u003e - 3 axis of acceleration due to gravity\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003e\u003cstrong\u003eTemperatures\u003c\/strong\u003e - output in °C\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSerial communication is 115,200bps 8N1 (8 bit, no parity and 1 stop bit)\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eI2C communication is with a slave address of 0x50 (0x28 7 bit) and clock rate of up to 400khz\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eModule is supplied with straight and right angle connectors.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/BNO055.pdf\"\u003e\u003cspan\u003e\u003cstrong\u003eBNO055 datasheet\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/p\u003e\n\n \u003cp\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/BNO055-schematic.pdf\"\u003e\u003cspan\u003e\u003cstrong\u003eSchematic\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870758233,"sku":"809214\/A","price":30.93,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037637465,"sku":"809214","price":30.93,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/bno055.jpg?v=1695766482"},{"product_id":"ds3484c-case-for-the-ds3484","title":"dS3484C - Case for the dS3484","description":"\u003cp\u003e \u003cspan\u003edS3484 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the dS3484 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the dS3484 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870823769,"sku":"809094\/A","price":30.45,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037539161,"sku":"809094","price":30.45,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds3484c-1_1.jpg?v=1695766488"},{"product_id":"ds2824c-case-for-the-ds2824","title":"dS2824C - Case for the dS2824","description":"\u003cp\u003e \u003cspan\u003edS2824 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the dS2824 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the dS2824 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870856537,"sku":"809093\/A","price":40.7,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037375321,"sku":"809093","price":40.7,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds2824c.jpg?v=1695766495"},{"product_id":"ds378c-case-for-the-ds378","title":"dS378C - Case for the dS378","description":"\u003cp\u003e \u003cspan\u003edS378 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the dS378 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the dS378 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169870889305,"sku":"809092\/A","price":32.57,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037670233,"sku":"809092","price":32.57,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds378c.jpg?v=1695766501"},{"product_id":"ds1242c-case-for-the-ds1242","title":"dS1242C - case for the dS1242","description":"\u003cp\u003e\u003cspan\u003edS1242 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the dS1242 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the dS1242 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169871675737,"sku":"809091\/A","price":24.91,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037703001,"sku":"809091","price":24.91,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/img_4458.jpg?v=1695766507"},{"product_id":"usb-rly82c-case-for-the-usb-rly82","title":"USB-RLY82C - Case for the USB-RLY82","description":"\u003cp\u003e \u003cspan\u003eUSB-RLY82 case. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the USB-RLY82 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the USB-RLY82 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169871708505,"sku":"809090\/A","price":20.94,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037866841,"sku":"809090","price":20.94,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/usb-rly82c-2.jpg?v=1695766514"},{"product_id":"mbh88-8-x-16a-modbus-relay","title":"MBH88 - 8 x 16A modbus relay","description":"\u003cp\u003e \u003cstrong\u003eControlled by modbus RTU over RS485, address, baud rate and parity set by dip switch.\u003cbr\u003e\u003c\/strong\u003e\u003cbr\u003e \u003cstrong\u003eRelays\u003c\/strong\u003e \u003cspan\u003e- 8 VFC with snubbers on N\/O\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eDigital opto isolated inputs\u003c\/strong\u003e \u003cspan\u003e- 8\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003ePower\u003c\/strong\u003e \u003cspan\u003e- Universal input: 90 – 264Vac, 47-63Hz\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eControl interface\u003c\/strong\u003e \u003cspan\u003e- Modbus RTU over RS485.\u003c\/span\u003e \u003cbr\u003e\u003cstrong\u003eRelay current\u003c\/strong\u003e \u003cspan\u003e- Up to 16Amp @24vdc or 250vac\u003c\/span\u003e\u003cbr\u003e \u003cstrong\u003eConnections\u003c\/strong\u003e \u003cspan\u003e- Screw Terminals for N\/ON\/C and Common contacts.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan\u003eFull\u003c\/span\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/mbh88.pdf\" target=\"_blank\"\u003eMBH88 Documentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169871741273,"sku":"809074\/A","price":187.68,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037768537,"sku":"809074","price":187.68,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/mbh88boxed.jpg?v=1695766523"},{"product_id":"bt004ble-4-x-16a-bluetooth-relay","title":"BT004BLE - 4 x 16A Bluetooth Relay","description":"\u003cp\u003e The BT004BLE provides four volt free contact relay outputs with a current rating of up to 16Amp each controlled over a HM10 Bluetooth serial port. The module is powered from a 12vdc supply which can be regulated or unregulated. The DC input jack is 2.1mm with positive core polarity, DC supplies are required to supply at least 500mA at 12vdc. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals\u003c\/p\u003e\n\n\u003cp\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/bt004ble.pdf\" target=\"_blank\"\u003eDatasheet (PDF)\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872134489,"sku":"808975\/A","price":55.72,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890037899609,"sku":"808975","price":55.72,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/bt004ble_1.jpg?v=1695766533"},{"product_id":"wor-r1-research-platform-for-rd02","title":"WOR-R1 - Research platform for RD02","description":"\u003cp\u003e\u003cspan\u003eDeveloped in collaboration with\u003c\/span\u003e Manu Systems \u003cspan\u003e, the WOR-R1 is a solid research base carrying the RD02 robot drive. There are slot cutouts in the base to enable a wide variety of 12v batteries to be fitted and the top has a huge matrix of holes and slots for fixing sensors, controllers etc. Ideal for Hobbyist and University researchers looking for a top quality robot platform. The RD02 (ordered separately) mounts on the WOR-R1 as shown below.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003ctable class=\"revw\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr class=\"rlvw-dta\"\u003e\n\n\u003ctd\u003e Weight\/Load Limit (kg)\u003c\/td\u003e\n\n\u003ctd align=\"right\"\u003e 1.2kg \/ 5kg\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr class=\"rlvw-dta\"\u003e\n\n\u003ctd\u003e Engine power (W)\u003c\/td\u003e\n\n\u003ctd align=\"right\"\u003e 2 x 6 W nominal \/ 2 x 30 W maximum\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr class=\"rlvw-dta\"\u003e\n\n\u003ctd\u003e Top speed (km\/h)\u003c\/td\u003e\n\n\u003ctd align=\"right\"\u003e 3.2km\/h\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr class=\"rlvw-dta\"\u003e\n\n\u003ctd\u003e Turn speed (degree\/s)\u003c\/td\u003e\n\n\u003ctd align=\"right\"\u003e 450 degrees\/s\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e\u003cspan\u003e\u003cbr\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/WOR-R1.pdf\" target=\"_blank\"\u003eWOR-R1 assembly manual\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/en.manu-systems.com\/WOR-0005.shtml\" target=\"_blank\"\u003eAndroid app for remote control via bluetooth\u003c\/a\u003e\u003c\/strong\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n \u003cp\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/WOR-0004.pdf\" target=\"_blank\"\u003e\u003cspan\u003e\u003cstrong\u003eWOR-R1 manual robot\u003c\/strong\u003e\u003c\/span\u003e\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872200025,"sku":"808904\/A","price":235.87,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038030681,"sku":"808904","price":235.87,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/wor-01.jpg?v=1695766541"},{"product_id":"tsa01-analog-temperature-sensor","title":"TSA01- Analog Temperature Sensor","description":"\u003cp\u003e The TSA01 is a voltage output temperature sensor module employing Microchip's MCP9700A sensor.\u003c\/p\u003e\n\n\u003ctable border=\"0\" height=\"147\"\u003e\n\n\u003ctbody\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\"\u003e \u003cstrong\u003eSpecification\u003c\/strong\u003e \u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\" align=\"right\"\u003e Operating Voltage\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e 2.3v to 5.0v\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"18\" align=\"right\"\u003e Operating Current\u003c\/td\u003e\n\n\u003ctd height=\"18\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"18\"\u003e 6uA (typical)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\" align=\"right\"\u003e Outputs\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e 10.0 mV\/°C (typical)\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\" align=\"right\"\u003e Output Voltage at 0°C\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e 500mV\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\" align=\"right\"\u003e Range\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e 40°C to +125°C\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\u003ctr\u003e\n\n\u003ctd height=\"21\" align=\"right\"\u003e Accuracy\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e\u003c\/td\u003e\n\n\u003ctd height=\"21\"\u003e ±1°C (typ.) ±2°C (max.), 0°C to +70°C\u003c\/td\u003e\n\n\n\u003c\/tr\u003e\n\n\n\u003c\/tbody\u003e\n\n\n\u003c\/table\u003e\n\n\u003cp\u003e \u003cstrong\u003eConnectivity\u003cbr\u003e\u003c\/strong\u003e The TSA01 should be connected to your controller using \u003cstrong\u003eshielded twin core cable\u003c\/strong\u003e .\u003cbr\u003e The shield is the 0v ground connection.\u003cbr\u003e One of the cores carries the supply voltage, marked as 5v on the PCB.\u003cbr\u003e The other core carries the temperature voltage, marked as T on the PCB.\u003c\/p\u003e\n\n\u003cp\u003e Do not power the module from a higher voltage as there are ESD protection diodes on the board that start conducting at around 6v.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eEnclosures\u003c\/strong\u003e \u003cbr\u003e\u003cspan\u003eWe do not supply an enclosure for these, however you do have a couple of choices.\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eThe module is designed to fit a Schneider NSYTBS775 enclosure (RS 2550359430).\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eIf you have access to a 3D printer then you can print your own case from the following STL files.\u003c\/span\u003e \u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/Base.stl\" target=\"_blank\"\u003e\u003cbr\u003eBase.stl\u003c\/a\u003e\u003cspan\u003e   \u003c\/span\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/Lid.stl\" target=\"_blank\"\u003eLid.stl\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872265561,"sku":"808903\/A","price":9.14,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038096217,"sku":"808903","price":9.14,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/tsa01.jpg?v=1695766550"},{"product_id":"ds378-8-x-16a-ethernet-relay","title":"dS378 - 8 x 16A ethernet relay","description":"\u003cp\u003e \u003cstrong\u003eRight out of the box -\u003c\/strong\u003e\u003cbr\u003e Simple configuration and setup from your web browser.\u003cbr\u003e Control it from a web page, or select tcp\/ip control with an option of ASCII, Binary or Modbus protocols.\u003cbr\u003e Send email notifications on selected events.\u003cbr\u003e Optional AES encryption for totally secure control using binary tcp\/ip mode.\u003cbr\u003e Add simple relay automation, for automatic relay control.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eStill want more?\u003c\/strong\u003e \u003cbr\u003eYou can completely customize the module using our powerful dScript language! - or just modify a supplied example.\u003cbr\u003e Create custom webpages - Add your own logo, buttons and functionality.\u003cbr\u003e Add a tcp server to respond to incoming tcp requests with your own functions.\u003cbr\u003e Include a tcp client and send packets of tcp data to other devices using your own protocol.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAnd the best bit!\u003c\/strong\u003e\u003cbr\u003e You will probably never need to use dScript - but its great to know its there - just in case!\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eHardware\u003c\/strong\u003e\u003cbr\u003e Serial ports - 2 x TTL level serial ports, 1 x RS485 port.\u003cbr\u003e Relays - 8 with up to 16Amp @24vdc or 250vac, screw Terminals for N\/ON\/C and Common contacts\u003cbr\u003e I\/O - 7 flexable channels, your choice of VFC input, NPN output or 10-bit analogue input.\u003cbr\u003e Communication - USB for development, RJ45 Ethernet for normal access\u003cbr\u003e Power - 12V DC jack 2.1mm (adaptor sold separately)\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003edScript editor requirements -\u003c\/strong\u003e Windows 7 or later \u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cdiv id=\"description\" class=\"data item content\"\u003e\n\n\u003cdiv class=\"product attribute description\"\u003e\n\n\u003cdiv class=\"value\"\u003e\n\n \u003cp\u003e\u003cspan\u003e\u003cspan\u003e\u003ca title=\"dscript\" href=\"https:\/\/www.robot-electronics.co.uk\/dscript.html\" target=\"_blank\"\u003eDocumentation, editor and examples\u003c\/a\u003e\u003c\/span\u003e\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cdiv\u003e\u003cspan\u003e\u003cbr\u003e\u003c\/span\u003e\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e\n\n\n\u003c\/div\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872363865,"sku":"808866\/A","price":113.48,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890037932377,"sku":"808866","price":113.48,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds378logo.png?v=1695766559"},{"product_id":"eth8020c-case-for-the-eth8020","title":"ETH8020C - Case for the ETH8020","description":"\u003cp\u003e \u003cspan\u003eETH8020 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the ETH8020 module.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan\u003eSupplied as a case only, the ETH8020 module should be ordered separately.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872396633,"sku":"808839\/A","price":47.42,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890038128985,"sku":"808839","price":47.42,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/eth8020c_1.jpg?v=1695766565"},{"product_id":"eth008c-case-for-the-eth008","title":"ETH008C - Case for the ETH008","description":"\u003cp\u003e \u003cspan\u003eETH008 houses. Includes mounting holes for fixing to a wall or back panel. This precision snap together case includes screws for mounting the ETH008 module.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eSupplied as a case only, the ETH008 module should be ordered separately.\u003c\/span\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872494937,"sku":"808838\/A","price":25.05,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038358361,"sku":"808838","price":25.05,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/eth008c2.jpg?v=1695766571"},{"product_id":"ds2824-24-x-16a-ethernet-relay","title":"dS2824 - 24 x 16A ethernet relay","description":"\u003cp\u003e \u003cstrong\u003eRight out of the box -\u003c\/strong\u003e\u003cbr\u003e Simple configuration and setup from your web browser.\u003cbr\u003e Control it from a web page, or select tcp\/ip control with an option of ASCII, Binary or Modbus protocols. \u003cbr\u003eSend email notifications on selected events.\u003cbr\u003e Optional AES encryption for totally secure control using binary tcp\/ip mode.\u003cbr\u003e Add simple relay automation, for automatic relay control.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eStill want more?\u003c\/strong\u003e\u003cbr\u003e You can completely customize the module using our powerful dScript language! - or just modify a supplied example.\u003cbr\u003e Create custom webpages - Add your own logo, buttons and functionality.\u003cbr\u003e Add a tcp server to respond to incoming tcp requests with your own functions.\u003cbr\u003e Include a tcp client and send packets of tcp data to other devices using your own protocol.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAnd the best bit!\u003c\/strong\u003e\u003cbr\u003e You will probably never need to use dScript - but its great to know its there - just in case!\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eHardware\u003c\/strong\u003e\u003cbr\u003e Serial ports - 1 x TTL level serial port, 1 x RS485 port.\u003cbr\u003e Relays - 24 with up to 16Amp @24vdc or 250vac, screw Terminals for N\/ON\/C and Common contacts\u003cbr\u003e I\/O - 8 flexable channels, your choice of VFC input, NPN output or 12-bit analogue input. \u003cbr\u003eCommunication - USB for development, RJ45 Ethernet for normal access\u003cbr\u003e Power - 12V DC jack 2.1mm (adaptor sold separately)\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eFDI\u003c\/strong\u003e\u003cbr\u003e dScript editor requirements - Windows 7 or later.\u003c\/p\u003e\n\n\u003cp class=\"p1\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003edScript editor requirements -\u003c\/strong\u003e Windows 7 or later\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cspan\u003eDocumentation, editor and examples -\u003c\/span\u003e\u003cstrong\u003e\u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/dScriptPublish.php\" target=\"_blank\"\u003edScript IDE\u003c\/a\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003e \u003cspan\u003eModule documentation only -\u003c\/span\u003e \u003cstrong\u003e\u003cspan\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/files\/dS2824.php\" target=\"_blank\"\u003edS2824 documentation\u003c\/a\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872560473,"sku":"808741\/A","price":195.65,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038260057,"sku":"808741","price":195.65,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/img_4407.jpg?v=1695766579"},{"product_id":"ds1242-2-x-16a-ethernet-relay","title":"dS1242 - 2 x 16A ethernet relay","description":"\u003cp\u003e \u003cstrong\u003eRight out of the box -\u003c\/strong\u003e\u003cbr\u003e Simple configuration and setup from your web browser.\u003cbr\u003e Control it from a web page, or select tcp\/ip control with an option of ASCII, Binary or Modbus protocols.\u003cbr\u003e Send email notifications on selected events.\u003cbr\u003e Optional AES encryption for totally secure control using binary tcp\/ip mode. \u003cbr\u003eAdd simple relay automation, for automatic relay control.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eStill want more?\u003c\/strong\u003e\u003cbr\u003e You can completely customize the module using our powerful dScript language! - or just modify a supplied example.\u003cbr\u003e Create custom webpages - Add your own logo, buttons and functionality.\u003cbr\u003e Add a tcp server to respond to incoming tcp requests with your own functions.\u003cbr\u003e Include a tcp client and send packets of tcp data to other devices using your own protocol.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAnd the best bit!\u003c\/strong\u003e\u003cbr\u003e You will probably never need to use dScript - but its great to know its there - just in case!\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eHardware\u003c\/strong\u003e\u003cbr\u003e Serial ports - 1 x TTL level serial port.\u003cbr\u003e Relays - 2 with up to 16Amp @24vdc or 250vac, screw Terminals for N\/ON\/C and Common contacts\u003cbr\u003e I\/O - 4 channels, your choice of VFC input or NPN output.\u003cbr\u003e Analogue Inputs - 2 channels of 10-bit A\/D.\u003cbr\u003e Communication - USB for development, RJ45 Ethernet for normal access\u003cbr\u003e Power - 12V DC jack 2.1mm (adaptor sold separately)\u003c\/p\u003e\n\n\u003cp class=\"p1\"\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003edScript editor requirements -\u003c\/strong\u003e Windows 7 or later\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n \u003cp\u003e\u003cspan\u003eDocumentation\u003c\/span\u003e \u003cspan\u003e-\u003c\/span\u003e \u003cstrong\u003e\u003cspan\u003e\u003ca href=\"https:\/\/robot-electronics.co.uk\/dscript.html\" target=\"_blank\"\u003edScript documentation\u003c\/a\u003e\u003c\/span\u003e\u003c\/strong\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169872986457,"sku":"808678\/A","price":73.33,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890038194521,"sku":"808678","price":73.33,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds21421logo_1_1.png?v=1695766587"},{"product_id":"ds3484-4-x-16a-ethernet-relay","title":"dS3484 - 4 x 16A ethernet relay","description":"\u003cp\u003e \u003cstrong\u003eRight out of the box -\u003c\/strong\u003e\u003cbr\u003e Simple configuration and setup from your web browser.\u003cbr\u003e Control it from a web page, or select tcp\/ip control with an option of ASCII, Binary or Modbus protocols.\u003cbr\u003e Send email notifications on selected events.\u003cbr\u003e Optional AES encryption for totally secure control using binary tcp\/ip mode.\u003cbr\u003e Add simple relay automation, for automatic relay control.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eStill want more?\u003c\/strong\u003e\u003cbr\u003e You can completely customize the module using our powerful dScript language! - or just modify a supplied example.\u003cbr\u003e Create custom webpages - Add your own logo, buttons and functionality.\u003cbr\u003e Add a tcp server to respond to incoming tcp requests with your own functions.\u003cbr\u003e Include a tcp client and send packets of tcp data to other devices using your own protocol.\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eAnd the best bit!\u003c\/strong\u003e \u003cbr\u003eYou will probably never need to use dScript - but its great to know its there - just in case!\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eHardware\u003c\/strong\u003e\u003cbr\u003e Serial ports - 2 x TTL level serial ports, 1 x RS485 port..\u003cbr\u003e Relays - 4 with up to 16Amp @24vdc or 250vac, screw Terminals for N\/ON\/C and Common contacts\u003cbr\u003e I\/O - 8 channels, your choice of VFC input or NPN output.\u003cbr\u003e Analogue Inputs - 4 channels of 10-bit A\/D.\u003cbr\u003e Communication - USB for development, RJ45 Ethernet for normal access\u003cbr\u003e Power - 12V DC jack 2.1mm (adaptor sold separately)\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003edScript editor requirements -\u003c\/strong\u003e Windows 7 or later\u003c\/p\u003e\n\n\u003cp\u003e \u003ca href=\"https:\/\/www.robot-electronics.co.uk\/dscript.html\" target=\"_blank\"\u003eDocumentation\u003c\/a\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169873019225,"sku":"808677\/A","price":95.34,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890038391129,"sku":"808677","price":95.34,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/ds3484-1logo.png?v=1695766596"},{"product_id":"robospine-robot-interface-module","title":"RoboSpine - Robot interface module","description":"\u003cp\u003e \u003cspan\u003eRoboSpine does for your robot what your spinal chord does for you. It connects eyes and ears to the brain and the brain to the muscles. RoboSpine connects sensors to the controller and the controller to the motors.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eRoboSpine performs scanning of up to 8 x SRF01's, 2 x IR range sensors, a CMPS11, a TPA81 thermal sensor and the MD25\/MD49 (part of the RD02\/RD03 drive system) encoders, battery voltage etc. Your controller sends new motor speeds to the RoboSpine which passes them on to the MD25\/MD49 and sends you back a 60 byte stream of sensor data. Your controller looks at this to decide what to make the motors do next. RoboSpine can connect directly to a bluetooth module and your PC can be the controller which gives you fantastic visibility into your robot and what it can see. We have an open source example written in C# to get you started.\u003c\/span\u003e\u003cbr\u003e \u003cbr\u003e\u003cspan\u003eAnd you are not limited to the default modules the Robospine can connect to. By building in the same serial to I2C firmware that we use in our USB-I2C and USB-ISS modules, you have access to any I2C device you want to add. An on-board I2C level shifter means both 3.3v and 5v I2C levels are available on various connectors so you have huge flexibitlity.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eThe flexibility doesn't stop there. We have provided an \"I2C hook\" feature that will allow you to include read data from your own I2C devices into spare positions in the 60 byte data stream, so you don't need to issue separate commands which would otherwise slow things down.\u003c\/span\u003e\u003cbr\u003e\u003cbr\u003e \u003cspan\u003eAnd there is an on-board boot loader so you will never be stuck with out of date firmware. You will be able to download future versions free from our website.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/robospinetech.htm\" target=\"_blank\"\u003eRoboSpine Tech Page\u003c\/a\u003e\u003c\/strong\u003e\u003cbr\u003e\u003cbr\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169873051993,"sku":"808564\/A","price":36.27,"currency_code":"EUR","in_stock":true},{"title":"2-4 Weeks","offer_id":47890038423897,"sku":"808564","price":36.27,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/robospine2.jpg?v=1695766604"},{"product_id":"wifi008-8-relays-at-16a","title":"WIFI008 - 8 Relays at 16A","description":"\u003cp\u003eThe WIFI008 provides 8 volt free contact relay outputs with a current rating of up to 16Amp each, the module is powered from a 12vdc supply which can be regulated or unregulated. The DC input jack is 2.1mm with positive core polarity, DC supplies are required to supply at least 1A at 12vdc. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals.\u003cbr\u003e The Relays on the WIFI008 can be controlled by the inputs on the WIFI484. This offers the opportunity to construct a system where an input can control an output anywhere on the earth provided both locations are connected to the network\/internet.\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eOperating Temperature\u003c\/strong\u003e\u003cbr\u003e -20C to +70C\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLED Indication\u003cbr\u003e\u003c\/strong\u003e \u003cspan\u003eThe WIFI008 provides an LED to indicate each of the relay states and three for board status, these are:\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eBoard power - red LED\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eWIFI connected - yellow LED\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eUSB connected - green LED\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cbr\u003e\u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/wifi008tech.htm\" target=\"_blank\"\u003eFull Documentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169873117529,"sku":"808408\/A","price":59.21,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038587737,"sku":"808408","price":59.21,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/wifi008-400.gif?v=1695766611"},{"product_id":"wifi002-2-relays-at-16a","title":"WIFI002 - 2 Relays at 16A","description":"\u003cp\u003e \u003cspan\u003eThe WIFI002 provides 2 volt free contact relay outputs with a current rating of up to 16Amp each, the module is powered from a 12vdc supply which can be regulated or unregulated. The DC input jack is 2.1mm with positive core polarity, DC supplies are required to supply at least 1A at 12vdc. The relays are SPCO (Single Pole Change Over) types. The normally open, normally closed and common pins are all available on the screw terminals.\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eThe Relays on the WIFI002 can be controlled by the inputs on the WIFI484. This offers the opportunity to construct a system where an input can control an output anywhere on the earth provided both locations are connected to the network\/internet.\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eOperating Temperature\u003c\/strong\u003e\u003cbr\u003e -20C to +70C\u003c\/p\u003e\n\n\u003cp\u003e \u003cstrong\u003eLED Indication\u003c\/strong\u003e \u003cbr\u003e\u003cspan\u003eThe WIFI002 provides an LED to indicate each of the relay states and three for board status, these are:\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eBoard power - red LED\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eWIFI connected - yellow LED\u003c\/span\u003e\u003cbr\u003e \u003cspan\u003eUSB connected - green LED\u003c\/span\u003e\u003c\/p\u003e\n\n\u003cp\u003e\u003cbr\u003e \u003cstrong\u003e\u003ca href=\"http:\/\/www.robot-electronics.co.uk\/htm\/wifi002tech.htm\" target=\"_blank\"\u003eFull Documentation\u003c\/a\u003e\u003c\/strong\u003e\u003c\/p\u003e","brand":"Devantech","offers":[{"title":"1 day","offer_id":47169873510745,"sku":"808407\/A","price":47.42,"currency_code":"EUR","in_stock":false},{"title":"2-4 Weeks","offer_id":47890038489433,"sku":"808407","price":47.42,"currency_code":"EUR","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0781\/1009\/7753\/files\/wifi002-400.gif?v=1695766619"}],"url":"https:\/\/xernuqvalzi.pro\/en\/collections\/devantech.oembed?page=3","provider":"Robot Italy","version":"1.0","type":"link"}