{"id":604,"date":"2011-12-27T00:32:27","date_gmt":"2011-12-27T05:32:27","guid":{"rendered":"http:\/\/blog.red-bean.com\/sussman\/?p=604"},"modified":"2012-02-15T15:28:39","modified_gmt":"2012-02-15T20:28:39","slug":"connecting-android-to-my-ham-radio","status":"publish","type":"post","link":"http:\/\/blog.red-bean.com\/sussman\/?p=604","title":{"rendered":"Connecting Android to my Ham Radio"},"content":{"rendered":"<p>I finally conjured up an electronics project which scratched an itch of mine &#8212; while simultaneously allowing my buddy and I to design a custom hardware\/software solution.<\/p>\n<p><u>The Problem<\/u>:   ham folks use morse code &#8216;keyer&#8217; devices to aid them.  It&#8217;s basically a tiny computer that plays a morse code message in a loop.  You program messages into a few memories on the device, then tell the device to play &#8220;CQ CQ CQ DE NN9S&#8221; in a loop while waiting for someone to hear your hail.  Or maybe you program the device to give standard canned responses when you&#8217;re participating in a radio contest.  Either way, I had this realization that the smartphone in my pocket was essentially a supercomputer;  why on earth was I bothering to assemble little IC devices with 5 or 10 flash memories to do this job?  My phone was infinitely more powerful.<\/p>\n<p>So really, the question boils down to this:  assuming we can write a phone app that plays any morse code we want, how do we convert a &#8216;beep&#8217; sound into a signal that my radio thinks is equivalent to &#8220;pressing the straight key&#8221;?<\/p>\n<p>The radio&#8217;s connector is quite simple:  it sends a small current out of a jack.  If the current comes back to it, it thinks you&#8217;re pressing down on the straight key (closing the circuit).  The straight key is just a physical switch.<\/p>\n<p>So Jack AI4SV (my mentor\/elmer) designed a circuit below which uses a common NPN bipolar transistor as the switch;  we simply need to tickle the transistor&#8217;s base with a bit of current from the phone&#8217;s audio, and poof, the transistor closes the radio&#8217;s circuit and the radio sends a &#8216;beep&#8217; out the antenna.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.red-bean.com\/sussman\/images\/AKA.png\"\/><\/p>\n<p>As you can see in the circuit, we take the ~.5V signal from the phone&#8217;s audio output jack and transform it into about ~5V.  From there, we use a full-wave rectifier to convert the AC into DC, then eventually send that current into the transistor.  The capacitor is there to smooth things out.<\/p>\n<p>The other half of the project, of course, was writing an Android app to act as a versatile memory keyer.  The open source code is <a href=\"http:\/\/code.google.com\/p\/androidomatic-keyer\">available on Google Code<\/a>, and the application <a href=\"https:\/\/market.android.com\/details?id=com.templaro.opsiz.aka&#038;feature=search_result#?t=W251bGwsMSwyLDEsImNvbS50ZW1wbGFyby5vcHNpei5ha2EiXQ..\">is freely downloadable from Android Market<\/a>.<\/p>\n<p>In the video below, you can see a live demo of the prototype hardware &#038; software in action:<\/p>\n<div class=\"iframe-wrapper\">\n  <iframe src=\"http:\/\/www.youtube.com\/embed\/AxzEJuLBOG0?rel=0\" frameborder=\"0\" style=\"height:360px;width:640px;\">Please upgrade your browser<\/iframe>\n<\/div>\n<p>I then built a &#8216;permanent&#8217; version of the hardware using a <a href=\"http:\/\/www.adafruit.com\/products\/589\">perma-proto board<\/a> from adafruit.com, which you can see here sitting inside an old dice box:<\/p>\n<p><a href=\"http:\/\/www.flickr.com\/photos\/30695675@N07\/6790950017\/\" title=\"AKA keyer project by bencollsuss, on Flickr\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/farm8.staticflickr.com\/7029\/6790950017_e5481ebd15.jpg\" width=\"375\" height=\"500\" alt=\"AKA keyer project\"\/><\/a><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/androidomatic-keyer.googlecode.com\/hg\/aka-built.jpg\"\/><\/p>\n<p>And here&#8217;s a screenshot of the final Android app.   I can confirm that the hardware\/software combo successfully drives my Yaesu 817-ND portable radio!<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/androidomatic-keyer.googlecode.com\/hg\/aka1.png\"\/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally conjured up an electronics project which scratched an itch of mine &#8212; while simultaneously allowing my buddy and I to design a custom hardware\/software solution. The Problem: ham folks use morse code &#8216;keyer&#8217; devices to aid them. It&#8217;s basically a tiny computer that plays a morse code message in a loop. You program [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-604","post","type-post","status-publish","format-standard","hentry","category-ham-radio"],"_links":{"self":[{"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/posts\/604","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=604"}],"version-history":[{"count":20,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions"}],"predecessor-version":[{"id":621,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=\/wp\/v2\/posts\/604\/revisions\/621"}],"wp:attachment":[{"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=604"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=604"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.red-bean.com\/sussman\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=604"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}