{"id":1035,"date":"2012-10-10T23:32:46","date_gmt":"2012-10-10T12:32:46","guid":{"rendered":"http:\/\/www.madox.net\/blog\/?p=1035"},"modified":"2013-02-24T08:52:23","modified_gmt":"2013-02-23T21:52:23","slug":"tl-wr703n-example-project-2-cute-exterminator-remote-control-toy","status":"publish","type":"post","link":"http:\/\/www.madox.net\/blog\/2012\/10\/10\/tl-wr703n-example-project-2-cute-exterminator-remote-control-toy\/","title":{"rendered":"TL-WR703N Example Project 2 : Cute Exterminator (Remote Control Toy)"},"content":{"rendered":"<p>The Cute Exterminator is another demonstration project\u00a0using the\u00a0<a href=\"http:\/\/www.madox.net\/blog\/projects\/tp-link-tl-wr703n\/\" target=\"_blank\">TP-Link TL-WR703N<\/a>\u00a0router to create a WiFi enabled remote control toy. \u00a0It shows how the router can be used to control servos with minimal programming other than with html\/javascript and a single line of shell script.<\/p>\n<p><object width=\"560\" height=\"315\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/ILpe1saMmnc?version=3&amp;hl=en_US\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed width=\"560\" height=\"315\" type=\"application\/x-shockwave-flash\" src=\"http:\/\/www.youtube.com\/v\/ILpe1saMmnc?version=3&amp;hl=en_US\" allowFullScreen=\"true\" allowscriptaccess=\"always\" allowfullscreen=\"true\" \/><\/object><\/p>\n<p>Again (well I repeat this a lot), not a comprehensive write up because it was a quick a dirty build but read on for the short description and a visual walk-through.<\/p>\n<p><!--more--><\/p>\n<h2>Concept<\/h2>\n<p><a href=\"http:\/\/robodino.org\/\" target=\"_blank\">Robots &amp; Dinosaurs<\/a> (the Sydney Hackerspace) is co-located with the <a href=\"http:\/\/www.sydneyrobotworkshop.com\/\" target=\"_blank\">Sydney Robot Workshop<\/a>, or to cut to the point, there are A LOT of Daleks there! \u00a0I loved Doctor Who as a kid but building a large life size replica of a Dalek seemed a bit too hard for lazy me. \u00a0eBay fluffy Dalek to the rescue!<\/p>\n<figure id=\"attachment_1037\" aria-describedby=\"caption-attachment-1037\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0002.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1037\" title=\"Fluffy Dr Who Dalek!  In Red!\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0002-450x798.jpg\" alt=\"Fluffy Dr Who Dalek!  In Red!\" width=\"450\" height=\"798\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0002-450x798.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0002-577x1024.jpg 577w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0002.jpg 1840w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1037\" class=\"wp-caption-text\">Fluffy Dr Who Dalek! In Red!<\/figcaption><\/figure>\n<p>It is a decent size and only costs around $25 including shipping, should fit a router! \u00a0Cute little bugger, there&#8217;s even a BONUS! \u00a0Recorded voice module! \u00a0Win!<\/p>\n<h2>The hacking<\/h2>\n<p>Ripping apart a plush Dalek isn&#8217;t as emotionally challenging as tearing apart a teddy bear. \u00a0Using some sewing tools to remove the thread is handy so you don&#8217;t have to incise into the toy. \u00a0I pulled out the battery holder so I knew where the wires were, just in case.<\/p>\n<figure id=\"attachment_1039\" aria-describedby=\"caption-attachment-1039\" style=\"width: 270px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0003.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1039 \" title=\"Batteries exposed, don't ask why I have sewing tools!\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0003-450x798.jpg\" alt=\"Batteries exposed, don't ask why I have sewing tools!\" width=\"270\" height=\"479\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0003-450x798.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0003-577x1024.jpg 577w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0003.jpg 1840w\" sizes=\"auto, (max-width: 270px) 85vw, 270px\" \/><\/a><figcaption id=\"caption-attachment-1039\" class=\"wp-caption-text\">Batteries exposed, don&#8217;t ask why I have sewing tools!<\/figcaption><\/figure>\n<p>Digging into the fluffy Dalek reveals the inner workings. \u00a0It is basically comprised of a battery module, a switch for activating the voice and a voice module that integrates the speaker wrapped in the blue cover pictured below. \u00a0Of course there is a lot of stuffing as well!<\/p>\n<figure id=\"attachment_1042\" aria-describedby=\"caption-attachment-1042\" style=\"width: 270px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0007.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1042 \" title=\"The guts exposed!\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0007-450x798.jpg\" alt=\"The guts exposed!\" width=\"270\" height=\"479\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0007-450x798.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0007-577x1024.jpg 577w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0007.jpg 1840w\" sizes=\"auto, (max-width: 270px) 85vw, 270px\" \/><\/a><figcaption id=\"caption-attachment-1042\" class=\"wp-caption-text\">The guts exposed!<\/figcaption><\/figure>\n<p>Since we&#8217;re hacking though, we need to go deeper (no Inception jokes thanks) and see how the voice module ticks. \u00a0Luckily it is very easy to pry apart with a small flat screwdriver and inside shows a small speaker wired up to a PCB. \u00a0Surprisingly for something that is off a mass produced toy, the PCB is extremely well labelled.<\/p>\n<figure id=\"attachment_1046\" aria-describedby=\"caption-attachment-1046\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0010.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1046\" title=\"The electronic guts\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0010-450x253.jpg\" alt=\"The electronic guts\" width=\"450\" height=\"253\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0010-450x253.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0010-1024x577.jpg 1024w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1046\" class=\"wp-caption-text\">The electronic guts<\/figcaption><\/figure>\n<p>Now that we can see all the apparently simple innards, we need to figure out how it ticks. \u00a0A common mistake that many people make when they take things apart to learn how they work is that&#8230; well they take it apart. \u00a0The easiest way to understand how something works is to keep it in working order and observe it working. \u00a0In the case of the Dalek, I kept all wiring in place and and measured across various points as I squeezed the Dalek to make it squeal.<\/p>\n<p>The two wires coming in from the battery were obvious starting points and measured 4.75V. \u00a0Great, this will go well with the USB 5V power of the router.<\/p>\n<p>The &#8216;switch&#8217; that activates the voice module should be a simple normally open contact based on assumption. \u00a0What assumption? \u00a0It is probably safe to assume that whatever you buy that is made in China is made as cheap as possible. \u00a0Which leads to the next question what does the switch do? \u00a0The switch comes in via two white wires and with a multimeter we can simply measure each wire with reference to the ground or black wire from the battery. \u00a0We take a set of measurements with the switch in its normal state, as well as when it is &#8216;squeezed&#8217;. \u00a0What do we find? \u00a0We find that the switch pulls low a 4.75 voltage to active the voice module.<\/p>\n<p>i.e. to activate the voice module, we need to pull the &#8220;TG&#8221; pin near the VCC\/+ve (red wire) low. \u00a0One of the simplest ways to effect this voice module is to use an open collector output.<\/p>\n<figure id=\"attachment_1052\" aria-describedby=\"caption-attachment-1052\" style=\"width: 270px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0028.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1052 \" title=\"A better look at the PCB\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0028-450x600.jpg\" alt=\"A better look at the PCB\" width=\"270\" height=\"360\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0028-450x600.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0028-768x1024.jpg 768w\" sizes=\"auto, (max-width: 270px) 85vw, 270px\" \/><\/a><figcaption id=\"caption-attachment-1052\" class=\"wp-caption-text\">A better look at the PCB<\/figcaption><\/figure>\n<h2>The electronics<\/h2>\n<p>Now that the Dalek has been hacked open and its inner workings deciphered, we can try figure out what components we need to make it a remote control toy.<\/p>\n<p>So the electronics include :-<\/p>\n<ul>\n<li>Brains \u2013 TP-Link TL-WR703N Router [eBay?] ~$20<\/li>\n<li>Locomotion &#8211; 2 x Continuous Rotation Servos\u00a0~$3.40ea<\/li>\n<li>Interface &#8211; <a href=\"http:\/\/www.pololu.com\/catalog\/product\/1350\" target=\"_blank\">Pololu Maestro 6 USB Servo Controller<\/a>\u00a0~$20 (Or <a href=\"http:\/\/littlebirdelectronics.com\/products\/micro-maestro-6-channel-usb-servo-controller-assembled\" target=\"_blank\">~$28 from\u00a0LittleBirdElectronics<\/a>\u00a0in Aus)<\/li>\n<li>Battery \u2013\u00a0<a href=\"http:\/\/www.hobbyking.com\/hobbyking\/store\/uh_viewItem.asp?idProduct=14075\" target=\"_blank\">Zippy 6.6V 700mA LiFePO4<\/a>\u00a0~$2.70<\/li>\n<li>Power Regulator \u2013\u00a0<a href=\"http:\/\/www.hobbyking.com\/hobbyking\/store\/uh_viewItem.asp?idProduct=15212\" target=\"_blank\">HobbyKing 3A \/ 5V UBEC<\/a>\u00a0~$3.70<\/li>\n<li>The fluffy Dalek and its innards of course&#8230;<\/li>\n<\/ul>\n<figure id=\"attachment_1044\" aria-describedby=\"caption-attachment-1044\" style=\"width: 360px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0012.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1044 \" title=\"The chosen ones (cool sounding name for components...)\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0012-450x600.jpg\" alt=\"The chosen ones (cool sounding name for components...)\" width=\"360\" height=\"480\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0012-450x600.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0012-768x1024.jpg 768w\" sizes=\"auto, (max-width: 360px) 85vw, 360px\" \/><\/a><figcaption id=\"caption-attachment-1044\" class=\"wp-caption-text\">The chosen ones (cool sounding name for components&#8230;)<\/figcaption><\/figure>\n<p>The Pololu Maestro 6 USB Servo controller is really good because it is USB controlled via a simple serial interface and the outputs are configurable so that one channel can be used as a general purpose output, which conveniently able to drive the voice module. \u00a0Like in the previous example project, I found the HobbyKing UBECs to be extremely good value for money and their small package is an added bonus.<\/p>\n<h2>The mechanicals<\/h2>\n<p>Since I have a 3D printer at home, replacing the &#8216;base&#8217; of the Dalek was relatively easy.<\/p>\n<figure id=\"attachment_1040\" aria-describedby=\"caption-attachment-1040\" style=\"width: 270px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0004.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-1040 \" title=\"The 'base' that needs to be replaced\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0004-450x798.jpg\" alt=\"The 'base' that needs to be replaced\" width=\"270\" height=\"479\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0004-450x798.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0004-577x1024.jpg 577w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0004.jpg 1840w\" sizes=\"auto, (max-width: 270px) 85vw, 270px\" \/><\/a><figcaption id=\"caption-attachment-1040\" class=\"wp-caption-text\">The &#8216;base&#8217; that needs to be replaced<\/figcaption><\/figure>\n<p>&lt;Shameless Plug&gt;<br \/>\nIf you&#8217;re interested in a 3D printer and you&#8217;re in Oceania (Australia\/New Zealand), please consider buying the Up! printer using my <a href=\"http:\/\/store.3dprintingsystems.com\/index.php?route=product\/product&amp;product_id=42&amp;tracking=4f6ba0ffd6ee1\" target=\"_blank\">Affiliate Code Here<\/a>\u00a0[seriously!]<br \/>\n&lt;\/Shameless Plug&gt;<\/p>\n<figure id=\"attachment_1047\" aria-describedby=\"caption-attachment-1047\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0014.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1047\" title=\"3D Printed base (this didn't work out...see next pic)\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0014-450x337.jpg\" alt=\"3D Printed base (this didn't work out...see next pic)\" width=\"450\" height=\"337\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0014-450x337.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0014-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1047\" class=\"wp-caption-text\">3D Printed base (this didn&#8217;t work out&#8230;see next pic)<\/figcaption><\/figure>\n<p>Easy isn&#8217;t necessarily without pain and I think I&#8217;ve said before that having access to rapid prototyping tools like a 3D printer at home just lets you make mistakes quicker! \u00a0Yup that&#8217;s right, the wheels don&#8217;t fit through the base plate.<\/p>\n<figure id=\"attachment_1049\" aria-describedby=\"caption-attachment-1049\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0021.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1049\" title=\"3D Printed base that didn't work... kids, don't look at the chat window behind\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0021-450x337.jpg\" alt=\"3D Printed base that didn't work... kids, don't look at the chat window behind\" width=\"450\" height=\"337\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0021-450x337.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0021-1024x768.jpg 1024w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1049\" class=\"wp-caption-text\">3D Printed base that didn&#8217;t work&#8230; kids, don&#8217;t look at the chat window behind on the next pic&#8230;<\/figcaption><\/figure>\n<p>Yup, definitely screwed up the holes in the base for the wheels but the little mount for the Maestro 6 to sit on the router looks nice though.<\/p>\n<figure id=\"attachment_1048\" aria-describedby=\"caption-attachment-1048\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0018.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1048\" title=\"Testing general fit, you've been warned about language in the chat window!\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0018-450x600.jpg\" alt=\"Testing general fit, you've been warned about language in the chat window!\" width=\"450\" height=\"600\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0018-450x600.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0018-768x1024.jpg 768w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1048\" class=\"wp-caption-text\">Testing general fit, you&#8217;ve been warned about language in the chat window!<\/figcaption><\/figure>\n<p>Making mistakes quick is a good thing though, now that I have a defective base it is relatively easy to measure how &#8216;wrong&#8217; I was on the measurements and adjust. \u00a0A short while later on the printer, everything fits! \u00a0Notice the black on the printed wheels, this is plasti-dip to improve traction. \u00a0The unpowered roller is also 3D printed held on by two M3 countersunk screws from each side mounted on flanged 3x6x2.5 bearings (rotates real nicely). \u00a0Strips of Velcro (the hook bits) is attached to the sides of the base to &#8216;stick&#8217; onto the fabric sides of the Dalek.<\/p>\n<figure id=\"attachment_1051\" aria-describedby=\"caption-attachment-1051\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0055.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-1051\" title=\"All the guts test fit...no swearing this time\" src=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0055-450x600.jpg\" alt=\"All the guts test fit...no swearing this time\" width=\"450\" height=\"600\" srcset=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0055-450x600.jpg 450w, http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/IMAG0055-768x1024.jpg 768w\" sizes=\"auto, (max-width: 450px) 85vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-1051\" class=\"wp-caption-text\">All the guts test fit&#8230;no swearing this time<\/figcaption><\/figure>\n<h2><\/h2>\n<h2>The software<\/h2>\n<p>I have used the Pololu Maestro servo controllers before for the mecanum wheel rovers but I use a Python script there to construct and send the appropriate commands as there is some &#8216;funky&#8217; encoding required as the commands as binary and in 7 bits etc etc. \u00a0I didn&#8217;t want to have additional hardware components like an USB disk just so I can install Python so I had to brain storm what I could do. \u00a0I wondered if I could do everything in Javascript (knowing full well that this thought could start a comment flame war&#8230;)?<\/p>\n<p>It turns out that it is feasible to do it all in Javascript, the trick is passing the serial data that needs to be sent out as urlencoded parameters to effectively a single line script on the router. \u00a0That script is :-<\/p>\n<pre style=\"padding-left: 30px;\">#!\/bin\/sh\r\n#This script decodes a url encoded query string and sends it to ttyACM0\r\nprintf $(echo $QUERY_STRING | sed -e 's\/%\/\\\\x\/g') &gt;&gt; \/dev\/ttyACM0<\/pre>\n<p>All it does is convert whatever query string is received from urlencoding back to binary, and send it straight out the serial port (the Maestro attaches as ttyACM0). \u00a0Neat eh?<\/p>\n<p>The control interface is written in HTML\/Javascript, where most of the code is adapted from the <a href=\"http:\/\/www.madox.net\/blog\/2011\/01\/24\/mecanum-wheel-rover-2\/\" target=\"_blank\">mecanum wheel rover<\/a>. \u00a0The control is pretty simple and should be self explanatory.<\/p>\n<p>Another tip for the budding hacker is to test your software before you put everything together! \u00a0It is very important, you wouldn&#8217;t want your robot to run away or you taking apart something you just painfully assembled.<br \/>\n<object width=\"560\" height=\"315\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/ZApN-PlP7ec?version=3&amp;hl=en_US\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed width=\"560\" height=\"315\" type=\"application\/x-shockwave-flash\" src=\"http:\/\/www.youtube.com\/v\/ZApN-PlP7ec?version=3&amp;hl=en_US\" allowFullScreen=\"true\" allowscriptaccess=\"always\" allowfullscreen=\"true\" \/><\/object><\/p>\n<p>The software used in this example project is available here :-\u00a0<a href=\"http:\/\/www.madox.net\/blog\/wp-content\/uploads\/2012\/10\/cutex_2012-08-13.zip\">cutex_2012-08-13<\/a>.<\/p>\n<p>To &#8220;install&#8221;,<\/p>\n<ol>\n<li>Create directory \/www\/cutex\/<\/li>\n<li>Copy index.html to \/www\/cutex\/<\/li>\n<li>Copy &#8216;serial.sh&#8217; into \/www\/cgi-bin<\/li>\n<li>Make sure serial.sh is executable ( &#8216;chmod +x serial.sh&#8217;)<\/li>\n<\/ol>\n<p>To &#8220;play&#8221;,<\/p>\n<p>Connect to the router, browse to the control page e.g. &#8220;http:\/\/192.168.1.1\/cutex\/&#8221;<\/p>\n<ul>\n<li>Initial &#8216;touch&#8217;\/&#8217;press&#8217; down sets the starting point,\n<ul>\n<li>Move the cursor\/touch up to go forward<\/li>\n<li>Move the cursor\/touch down to go backward<\/li>\n<li>Move the cursor\/touch left\/right to rotate<\/li>\n<\/ul>\n<\/li>\n<li>Exterminate button activates the voice module\n<ul>\n<li>Note, there is some issue with the latest webkit browsers like Chrome for this button&#8230; I didn&#8217;t bother to look into it, use Dolphin HD if you&#8217;re using Android.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>Enjoy!<\/p>\n<p><em>Note : You don&#8217;t really need to use a plush toy for this project \ud83d\ude42 \u00a0It was just cute \ud83d\ude42<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Cute Exterminator is another demonstration project\u00a0using the\u00a0TP-Link TL-WR703N\u00a0router to create a WiFi enabled remote control toy. \u00a0It shows how the router can be used to control servos with minimal programming other than with html\/javascript and a single line of shell script. Again (well I repeat this a lot), not a comprehensive write up because &hellip; <a href=\"http:\/\/www.madox.net\/blog\/2012\/10\/10\/tl-wr703n-example-project-2-cute-exterminator-remote-control-toy\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;TL-WR703N Example Project 2 : Cute Exterminator (Remote Control Toy)&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[53],"class_list":["post-1035","post","type-post","status-publish","format-standard","hentry","category-engineering","tag-tl-wr703n"],"_links":{"self":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/comments?post=1035"}],"version-history":[{"count":4,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/1035\/revisions"}],"predecessor-version":[{"id":1163,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/posts\/1035\/revisions\/1163"}],"wp:attachment":[{"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/media?parent=1035"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/categories?post=1035"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.madox.net\/blog\/wp-json\/wp\/v2\/tags?post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}