<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Devendra Rath on Medium]]></title>
        <description><![CDATA[Stories by Devendra Rath on Medium]]></description>
        <link>https://medium.com/@devendrarath?source=rss-3e5e912bec8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*aQeIJeoDAZqHT_e0.jpg</url>
            <title>Stories by Devendra Rath on Medium</title>
            <link>https://medium.com/@devendrarath?source=rss-3e5e912bec8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 20:59:46 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@devendrarath/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tin can robot tear down]]></title>
            <link>https://medium.com/@devendrarath/tin-can-robot-tear-down-88df80ca5020?source=rss-3e5e912bec8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/88df80ca5020</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[cam]]></category>
            <category><![CDATA[vibration-motor]]></category>
            <category><![CDATA[hardware]]></category>
            <dc:creator><![CDATA[Devendra Rath]]></dc:creator>
            <pubDate>Sat, 08 Oct 2016 16:49:11 GMT</pubDate>
            <atom:updated>2016-10-09T13:51:08.795Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IHWYMKVHS5dKWLKtbAN8cw.jpeg" /></figure><p>I bought a tin can robot recently and more interesting was understanding the design, than actually putting it together. But first, here is the litte fella that got made.</p><p>While the number of parts in the box seem overwhelming…in reality…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NbkVDn9oXNiqAScOOHR2IQ.jpeg" /></figure><p>the concept is pretty simple. It can be broken down into three parts.</p><p><strong>First, the vibration motor with “worm” coming out the back</strong>. This is the same motor used to make <a href="https://medium.com/@devendrarath/making-an-insect-robot-d5d8f64edab2#.rn73j8iq3">the insect robot</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-Xz1pRab5Z-5GWvQV8cVqw.jpeg" /></figure><p>Then, <strong>lets give the motor some power</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cB4cTKTFtHiGpYSdIVgYJQ.jpeg" /></figure><p>And as soon as you do that, the worm start to whirrrr like so:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FycyHPcv_m_E%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DycyHPcv_m_E&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FycyHPcv_m_E%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8e313b6b258fd7563d779ca11c4e726/href">https://medium.com/media/a8e313b6b258fd7563d779ca11c4e726/href</a></iframe><p>We need <strong>an axle, with a gear in the middle</strong>. The axle has wheels on either side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VFlldGThX68phbPrx_UGow.jpeg" /></figure><p>All that remains is to <strong>put the gear on the worm</strong>. That’s it — now when you supply power to the motor, the wheels will move.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S4c-Ixz1gwvDUJMYU-jxbw.jpeg" /></figure><p>The vibration motor vibrates, causing the worm to whirr, which then causes the gear to rotate, which causes the axle to rotate, and voila — the wheels spin!</p><p>You can make this at home with parts from your local electronics store. But how you design it so the whole thing stays up is up to your genius. Here is how this company designed it:</p><p>They made a base for the robot. It holds the vibration motor…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BD78R8zUAB0k4UpMHf_YfA.jpeg" /></figure><p>…and the battery compartment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exDITWpiKq9WbG4Ha2r3Xw.jpeg" /></figure><p>And rings that ran around that could hold a can for the body of the robot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTscri7p-j-AX_2lLZSw9g.jpeg" /></figure><p>Once you have the “inner workings” figured out, its all up to your creativity to make “your kind of robot”. Go for it, and watch someone have fun with it.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEQZV315njmg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEQZV315njmg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEQZV315njmg%2Fhqdefault.jpg&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a9608e2fc7aa3c59a4ea1c2c05fb01f8/href">https://medium.com/media/a9608e2fc7aa3c59a4ea1c2c05fb01f8/href</a></iframe><p>PS: If you notice the wheels…they aren’t nice and round. Instead they have a hump. Well here it is straight from the manual inside the box:</p><p>“The pieces of plastic on the ends of the axle are called <strong>cams</strong>. A cam is simply a circle with a hump. As the cam turns, the hump moves around it. When the motor is switched on, the cams make each side of the robot lift in turn, causing the robot to make walking movements.</p><p><strong>Using cams </strong>The Robot’s cams turn the rotational movement of the axle into up and down movement. Many machines contain cams to do the same job. For example, in a car engine, cams open and close the valves that let fuel into the cylinders and exhaust gases out”.</p><p>Well, how about <em>that</em>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88df80ca5020" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Blink a LED…or three!]]></title>
            <link>https://medium.com/@devendrarath/blink-a-led-or-three-92614c222bb1?source=rss-3e5e912bec8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/92614c222bb1</guid>
            <category><![CDATA[led]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Devendra Rath]]></dc:creator>
            <pubDate>Sun, 21 Aug 2016 09:21:40 GMT</pubDate>
            <atom:updated>2016-08-24T17:21:19.681Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JJ-1b_DNiSItjINQEnkiHQ.jpeg" /></figure><p>One of the most illuminating little programs for the little ones is blinking a LED using the Raspberry Pi. The code is short, and the effect is dramatic. At least, it was when my 4 year old saw it!</p><p>The basic tutorial has been excellently written up <a href="https://thepihut.com/blogs/raspberry-pi-tutorials/27968772-turning-on-an-led-with-your-raspberry-pis-gpio-pins">here</a> so there is no reason to repeat it here, except do NOT use the code from that site. There is a new library that makes it lot more simple, <em>and intuitive</em>, called <a href="https://gpiozero.readthedocs.io/en/v1.2.0/">gpiozero</a>.</p><p>So, once you have the connections in place by following the instructions at the link above, this is the code you need to get it all going.</p><pre>from gpiozero import LED</pre><pre>from time import sleep</pre><pre>led = LED(17)</pre><pre>while True:</pre><pre>    led.on()</pre><pre>    sleep(1)</pre><pre>    led.off()</pre><pre>    sleep(1)</pre><p>That’s it. Run it and you should see it all blink away. This is also an excellent program to introduce the concept of object-oriented programming (oooh!) if your student happens to be slightly older. The LED is a physical object he can see and touch. And look, he can control it using the ‘led object’ in the code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*q-xzUrcLnKvAEd00mHOZ3A.jpeg" /></figure><p>Finally, there are two simple things you can do to make this project more interesting:</p><p><strong>Add more LEDs to the circuit</strong>! To do so, you will need to go back to the old electrical concept of series and parallel circuits…and make sure you connect the LEDs in parallel (I tried to connect them in series and it did not work…you can try for yourself too!). It work when connected in parallel because each LED gets the full 3V it deserves!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/237/1*eXci7KagaDDc1_XbQ6GMKA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGMjPpeijjEzIfyCuPr7Vg.jpeg" /></figure><p>More colorful, right! :) Here it is, in technicolor.</p><iframe src="https://cdn.embedly.com/widgets/media.html?url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwMOPK2dKqCw&amp;src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwMOPK2dKqCw&amp;type=text%2Fhtml&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/4bba53f5e0fecb5cc407367cb928a581/href">https://medium.com/media/4bba53f5e0fecb5cc407367cb928a581/href</a></iframe><p>The other thing you can do is to <strong>reduce the delay</strong> between the on/off states to 0.1 seconds or so, so that the LED blinks “sooper-fast”.</p><p>Happy blinking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=92614c222bb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A simple time lapse recorder]]></title>
            <link>https://medium.com/@devendrarath/a-simple-time-lapse-recorder-d9df0d528aba?source=rss-3e5e912bec8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9df0d528aba</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[raspberry-pi]]></category>
            <dc:creator><![CDATA[Devendra Rath]]></dc:creator>
            <pubDate>Mon, 15 Aug 2016 02:51:34 GMT</pubDate>
            <atom:updated>2016-08-21T09:32:12.471Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*cMNuHAwcdVSzhxVxWG2IQg.jpeg" /></figure><p>Plants grow, we know that. But have you actually <em>seen one grow in front of your eyes? </em>Me neither. So lets go about making a time lapse recorder.</p><p>For this project you will need:</p><ol><li>A Raspberry Pi for the brains.</li><li>A PiCamera</li><li>A power bank battery (commonly used to charge phones)</li><li>A coffee tin to hold it all together</li><li>A driller (woohooo!!!)</li><li>Some code to get it all going.</li></ol><h4>Writing the code</h4><p>Write and test the code out completely. Code is never quite done and even the code below, while it does the job, still has more work to be done.</p><pre>from picamera import PiCamera</pre><pre>from os import system</pre><pre>from os import path</pre><pre>from time import sleep</pre><pre>import time</pre><pre>import sys</pre><pre>camera = PiCamera()</pre><pre>camera.framerate = 30</pre><pre># Wait for the automatic gain control to settle</pre><pre>sleep(2)</pre><pre># Now fix the values</pre><pre>camera.shutter_speed = camera.exposure_speed</pre><pre>camera.exposure_mode = &quot;off&quot;</pre><pre>g = camera.awb_gains</pre><pre>camera.awb_mode = &quot;off&quot;</pre><pre>camera.awb_gains = g</pre><pre>try:</pre><pre>for filename in camera.capture_continuous(&quot;/home/pi/Projects/time_lapse/img{timestamp:%Y-%m-%d-%H-%M-%S}.jpg&quot;):</pre><pre>date_time = time.strftime(&quot;%d/%m/%Y &quot;) + time.strftime(&quot;%H:%M:%S &quot;)</pre><pre>print(date_time + &quot;Captured %s&quot; % filename)</pre><pre>sleep(60)  # wait 1 minute</pre><pre>except:</pre><pre>print(&quot;Some error: &quot;, sys.exc_info()[0])</pre><pre>raise</pre><pre># Use ImageMagick to create the time-lapse video</pre><pre># system(&quot;convert -delay 10 -loop 0 img*.jpg animation.gif&quot;)</pre><pre># print(&quot;Done&quot;)</pre><p>There are two main aspects of the code above:</p><ol><li>Making the images look similar from an exposure standpoint.</li><li>Adding the timestamp to the filenames, which helps to keep things running well even if the program dies, or the Raspberry Pi reboots.</li></ol><p>The only other thing is some crontab magic to make sure that the program runs automatically on boot, and is restarted if it mysteriously dies.</p><pre>* * * * * flock -xn /tmp/forever.lck -c &quot;nohup python /home/pi/Projects/time_lapse/time_lapse.py &gt; /home/pi/Projects/time_lapse/time_lapse.out 2&gt;/tmp/log&quot;</pre><pre>@reboot python /home/pi/Projects/time_lapse.py &gt; /home/pi/Projects/time_lapse/time_lapse.out</pre><p>The first line uses the <strong>flock</strong> program to check, every minute, if the Python script is running or not. If it’s not running, it runs it. The second line makes sure the Python script runs every time the Pi reboots.</p><p>That’s all the code there is to it. Now on to the fun stuff of actually making the recorder!</p><h4>Making the recorder</h4><p>The hardest part is really throwing out all the coffee. But of course, if you love coffee, this won’t be that hard to do. Make sure your tin as large as your power bank.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*moH_HX0u4H3Rxf9e0vlPCQ.jpeg" /></figure><p>This is the PiCamera.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r-ZgyCdsc9cG3snX_lMshA.jpeg" /></figure><p>Decide where you will attach it and make a small marking for the lens <em>and the red LED light </em>to come through.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-9W2tV0EheMciX4XjtKoEg.jpeg" /></figure><p>Drill away. If you are doing this with a little one, this is the high point of the whole project, really. (Make sure to practice drilling on some other tin cans)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*shRPUj9q0N4f4UaBUgONzA.jpeg" /></figure><p>Now comes the tricky part. Use your ingenuinity to attach the camera to the can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*s1dtPgYNvFajGOmL3Z30xQ.jpeg" /></figure><p>I used the holes on the camera PCB to tie it to the front too, for good measure. The picture also shows the second hole drilled out to display the LED.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pW7Dm2pbpVPhs_FwCmhrug.jpeg" /></figure><p>This is the power bank. You can use anyone that supplies more than 2A, and has an amperage of more than 10,000mAh so you can record over several hours.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*zN_Gku8Xrpa_TKnUvpG2nA.jpeg" /></figure><p>Now put them all in the can.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wC6PVuzvtHXXicFVvRDF4Q.jpeg" /></figure><p>Looks like a sinister little robot now. With a one-eye patch. The eye is glowing because the program is running and camera is active.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*cMNuHAwcdVSzhxVxWG2IQg.jpeg" /></figure><p>Where can you place it? In the kitchen to see what’s cooking?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*iVlHFFqOFGKBgK8DIRYzSQ.jpeg" /></figure><p>Or the garden to watch the plants grow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zjOptO5MHpSNIr969M2h_A.jpeg" /></figure><p>Or behind a car. This last one might freak out your co-citizens and freak out law enforcement officers.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ae5MRVsGIkM9n_YSSKMpsA.jpeg" /></figure><p>Here is the timelapse video from the above position. Video created using iMovie but you can use ImageMagick to do the same too.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.facebook.com%2Fvideo%2Fembed%3Fvideo_id%3D1085339594894089&amp;url=https%3A%2F%2Fwww.facebook.com%2Fdevendra.rath%2Fvideos%2F1085339594894089%2F&amp;image=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.0-10%2Fs110x80%2F11919303_884579761636741_1315511384_n.jpg%3Foh%3D7a8f95df21ab5fa24aa6d0657eb71a86%26oe%3D5850D426&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=facebook" width="560" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/80da15467afc192fecef8d091bb8db50/href">https://medium.com/media/80da15467afc192fecef8d091bb8db50/href</a></iframe><p>Space reserved for a time lapse video of a plant growing up. That was the original inspiration of this project — to show kids how plants really grow.</p><p>That’s it. You now have the power to compress several hours in a day to a few seconds. How cool is that!</p><p>PS:</p><p>The can gets hot. I’ll update this post in case my power bank, or Raspberry Pi, or both blow up. Or if I make changes to the air flow.</p><p>The inspiration for this project came from <a href="http://www.fotosyn.com/blog/simple-timelapse-camera-using-raspberry-pi-and-a-coffee-tin">here</a>, but I added an extra hole. :)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9df0d528aba" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Making an Insect Robot]]></title>
            <link>https://medium.com/@devendrarath/making-an-insect-robot-d5d8f64edab2?source=rss-3e5e912bec8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/d5d8f64edab2</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[bangalore]]></category>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[sp-road]]></category>
            <dc:creator><![CDATA[Devendra Rath]]></dc:creator>
            <pubDate>Fri, 05 Aug 2016 20:13:17 GMT</pubDate>
            <atom:updated>2017-04-17T16:53:23.965Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dvxlw12dSI8RZv1bKye_Sg.jpeg" /></figure><p>Who doesn’t want to make one? Let’s get right to it. You will need the following:</p><ol><li>A vibrating motor, one that is commonly used in cell phones. Where I live, they cost about Rs. 55 and are available in SP Road, as are all the rest of the components.</li><li>A CR-2032 battery (and it’s corresponding holder). If that’s not available, try with a LR-44 battery. Or whatever else the shopkeeper gives you — he knows the best. Costs about Rs. 10.</li><li>A switch.</li><li>6 resistors, of any value. We only need to use them for the insect’s legs.</li><li>Some bits of electrical wire to make the connections. Old jumper wires will work just fine too.</li><li>A perfboard — that’t the thing with lots of holes.</li><li>Soldering iron and some solder. A third hand would be nice but it’s totally optional so long as you prop up the perfboard to solder the bits.</li><li>A cutter (to slice the casing off the wires, cut the wires, etc)</li></ol><p>But when you go to your electronics store buy atleast enough material to make 5 insect robots. Trust me, you will need the practice. And if you get all of them right at the first shot, imagine how awesome an army of insect robots can be.</p><h4>Parts Overview</h4><p>Take a look at the components, starting with the vibration motor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3JzSxmbhvnWkhJEFPrq-A.jpeg" /></figure><p>It’s the uneven weight on the top that makes the motor vibrate when current flows through it (RED wire is positive).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/1*67IGQNv7C5u-FxainfLxog.jpeg" /></figure><p>Here’s CR-2032 battery (and the smaller LR-44 battery, any one will do)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K_VdQOP3owItvrN0bAPv1A.jpeg" /></figure><p>And here it is now snug in its holder. The holder has two pins sticking out at the bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*itZiN4tl27gyHCpchVFw0g.jpeg" /></figure><p>Last, and perhaps the least interesting, resistors and the switch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mpV2eCXqDspCtsfQFxmlxQ.jpeg" /><figcaption>Each pair is switch. This long strip has many. Just snap them off as you need them.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*vKQLw9ChM2DGcLh3cdo_Nw.jpeg" /><figcaption>Strip of resistors.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6MlWRjdli_r2-oxhnOITg.jpeg" /><figcaption>A jumper wire.</figcaption></figure><h4>Start making the Insect Robot</h4><p>The picture below shows the circuit we want to make in order to make the insect robot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*f75zOAf92Y0cXP72ob8png.png" /></figure><p>Lets start with the battery first. Place the battery in the holder and then fix the whole thing onto the perfboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/1*CT99XGntUlf4kXzG2DSwDg.jpeg" /></figure><p>Solder the backside. Now the battery is firmly positioned on the perfboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PB8VOmnX8n0hd533_JfIOw.jpeg" /></figure><p>Now connect the positive end of the battery to the positive end of the motor. To do so, stick the RED wire through the hole…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*5ZoFiBwGAYDFldBp9vYYyQ.jpeg" /></figure><p>…and then solder the two points on the back side.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AAWRUbxzxcbp5G2xVfFP1Q.jpeg" /></figure><p>Connect the other end of the motor to the switch. Again, the wires go inside the holes, and the soldering is done underneath.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*7E906NhPYI_195iHaqVTBA.jpeg" /></figure><p>Finally, connect the other end of the switch to the battery (negative terminal). For this, I used a long jumper wire, but of course, you can use a smaller strip of wire. (I liked the yellow loop because it gave the insect some “character”)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6MlWRjdli_r2-oxhnOITg.jpeg" /></figure><p>That’s it. The circuit is complete. Now just solder on the resistors which give the insect some legs to walk on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rx5wLyZZQgoVF_8ahZ3F2Q.jpeg" /></figure><p>Here is top view of the final circuit, with four legs soldered on. Six recommended.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-SK9H8jxT91YDgi66xgdPw.jpeg" /></figure><p>Push the switch in and watch the insect robot go!</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.facebook.com%2Fvideo%2Fembed%3Fvideo_id%3D1074608409300541&amp;url=https%3A%2F%2Fwww.facebook.com%2Fdevendra.rath%2Fvideos%2F1074608409300541%2F&amp;image=https%3A%2F%2Fscontent.xx.fbcdn.net%2Fv%2Ft15.0-10%2Fs110x80%2F12720178_1049271685109885_1265628252_n.jpg%3Foh%3D97ac6d706820adfef8557155dfeb0ecd%26oe%3D5853ECD2&amp;key=d04bfffea46d4aeda930ec88cc64b87c&amp;type=text%2Fhtml&amp;schema=facebook" width="560" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/4a25fa3c5f1d62309bbdacb87398cc2b/href">https://medium.com/media/4a25fa3c5f1d62309bbdacb87398cc2b/href</a></iframe><p>Find a kid (or three). Boundless curiosity will follow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qC_H3xjgmJOfZMq1uzwzRg.jpeg" /></figure><p>My first insect robot ended having a brain haemorrhage with all that beating on the perfboard. I took the insect back to the operating table, made some structural changes to the wiring of the motor, and after that things got much more stable. I’m sure your effort will have you innovating your own “fixes” along the way.</p><p>Good luck and hope you have a lot of fun making this critter!</p><p>PS: This post is based on this <a href="https://www.youtube.com/watch?v=jki7g5zXwjg">excellent YouTube video</a>. But the author goes a bit too fast because he’s likely an expert in circuit making and soldering. I made this so the steps could be more clear to a novice maker like myself.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d5d8f64edab2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A soldering primer]]></title>
            <link>https://medium.com/@devendrarath/a-soldering-primer-be0b60f46067?source=rss-3e5e912bec8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/be0b60f46067</guid>
            <category><![CDATA[electronics]]></category>
            <category><![CDATA[makers]]></category>
            <category><![CDATA[soldering]]></category>
            <dc:creator><![CDATA[Devendra Rath]]></dc:creator>
            <pubDate>Sat, 30 Jul 2016 18:20:27 GMT</pubDate>
            <atom:updated>2016-08-21T09:36:25.978Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXuSHatLkg6WibBmms5X4g.jpeg" /></figure><p>Just about every electronics project will need you to solder something. But if you have never soldered anything before, like me, then it’s better to get some practice beforehand.</p><p>So go get an old headphone that you no longer need…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3EWAstzduSGRNhAmg6pPOA.jpeg" /></figure><p>and snip it into two pieces. Gosh, it sure is broken now! (But we will fix it)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SB3hcxw02zXo-tm_VFfhQQ.jpeg" /></figure><p>Slice the rubber casing off each end and expose the wires inside. This is how mine looked — two thin blue wires and two copper coloured “ground wires”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*TQ7evEg1baH62Y4LPh9LmA.jpeg" /></figure><p>Now <em>twist </em>and join the common “ground” wires together, so you end up with three wires total on each end.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_YWjVUio_bPUM26ymnoTLw.jpeg" /></figure><p>Now, twist and join the blue (or whatever color you have) wires so that the two ends are joined again. The connections are complete, and we are now ready to start soldering!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ERFHI7kWc5ZikbQW22c2SA.jpeg" /><figcaption>Placing the wires on a box makes for a helpful “third hand” while soldering</figcaption></figure><p>Here is another shot of the wire, just before we start soldering.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/1*fYMAg9aNympvMyZrETVq3w.jpeg" /><figcaption>Placing the wires so you can solder is so important. Here I am making sure it does not move by placing a “Kangaro” puncher on top of the wire.</figcaption></figure><p>Now it is time to bring out the materials needed for soldering. That is a soldering iron like the one below…</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mRKTOqX6Snk4wJxwvzvOVw.jpeg" /></figure><p>and some solder itself.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuREWOcC8wxtYcOAOrgNcA.jpeg" /></figure><p>This would also be a good time to open the window — solder contains lead, and lead is not something you want to inhale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QlF8yUWNKChysHDcGt3_Tg.jpeg" /></figure><p>Plug in the soldering iron and wait. The hardest part of this whole exercise is just waiting for the iron to get hot enough. For the one I had, it took about 5 mins to get nice and hot. To test, touch the solder wire and it should melt right away. Flick it, and you are ready to solder.</p><p>To solder, touch the soldering iron to the wire. And the solder to the wire. Initially, it will be hard. But soon you will get the hang of it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*7BdgmEB-kCui9OqouQYjAw.jpeg" /></figure><p>The soldering iron heats up the wire. The solder then, when it touches the wire, melts…leaving a nice coating of solder material on the wire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ffti4Uk4Ys4er5-_WctxCw.jpeg" /></figure><p>If it looks nice and shiny, you know you have a good connection now. And that is the purpose of soldering — to make connections, so electrical current can flow through it.</p><p>Now connect the headphones to your phone, and enjoy the music again! So there you have it — a simple introduction to soldering. Give it a try.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be0b60f46067" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>