{"id":26136,"date":"2011-08-15T08:21:37","date_gmt":"2011-08-15T07:21:37","guid":{"rendered":"http:\/\/www.cqdx.ru\/ham\/?p=26136"},"modified":"2023-10-06T11:38:04","modified_gmt":"2023-10-06T09:38:04","slug":"morse-code-trainer","status":"publish","type":"post","link":"https:\/\/www.cqdx.ru\/ham\/diy\/morse-code-trainer\/","title":{"rendered":"Morse-code trainer"},"content":{"rendered":"<p><a href=\"https:\/\/www.cqdx.ru\/ham\/ham_radio\/morse-code-trainer\/attachment\/img_7843\/\" rel=\"attachment wp-att-26137\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-26137 size-medium\" title=\"IMG_7843\" src=\"https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/IMG_7843-300x199.jpg\" alt=\"\" width=\"300\" height=\"199\" srcset=\"https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/IMG_7843-300x199.jpg 300w, https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/IMG_7843-768x510.jpg 768w, https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/IMG_7843.jpg 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<blockquote><p>My kids are learning Morse code this summer, so I threw together this little circuit to help them learn. And to make it more fun&#8230;<br \/>\nIt uses an ATtiny85 ($2.26 at digikey.com) to drive a piezo beeper (? $3.50 at Radio Shack.) The ATtiny85 takes 5.5V max, so I built the circuit on a piece of strip-board so as to fit onto the back of a 3-AA-cell ($3 or so at Radio Shack) battery pack.<\/p>\n<p>To program it, I used<a href=\"http:\/\/hlt.media.mit.edu\/?p=1229\" target=\"_blank\" rel=\"noopener\"> MIT&#8217;s &#8220;High-Low Tech&#8221; ATtiny85 core<\/a> using an Arduino as an ISP programmer. I actually built a 6-pin ISP header into the board, so I don&#8217;t have to pull the chip out to reprogram it as you would with MIT&#8217;s instructions, but that&#8217;s neither here nor there. Using an Arduino core allows me to use all the Arduino tools I&#8217;m familiar with, but I don&#8217;t have to spend $20 or more on a full Arduino when all I really need is one output pin and a couple kb of program space. The ATtiny85 is perfect for this: plenty of memory and dirt cheap. (Actually, an ATtiny25 would work with the amount of memory this program takes, but ATtiny85s are so cheap you don&#8217;t save much buying the ATtiny25.)<\/p>\n<p><a href=\"https:\/\/www.cqdx.ru\/ham\/ham_radio\/morse-code-trainer\/attachment\/morse_schematic\/\" rel=\"attachment wp-att-26138\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-26138 size-medium\" title=\"morse_schematic\" src=\"https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/morse_schematic-300x190.png\" alt=\"\" width=\"300\" height=\"190\" srcset=\"https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/morse_schematic-300x190.png 300w, https:\/\/www.cqdx.ru\/ham\/wp-content\/uploads\/2011\/08\/morse_schematic.png 553w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/physics.csuchico.edu\/%7Eeayars\/code\/morse.pde.html\" target=\"_blank\" rel=\"noopener\">Here&#8217;s the code<\/a>. When the device is powered up, it waits 3 seconds then puts out the message at the desired speed. The message repeats until power is removed. Currently the message is &#8220;SOS the moon rover has broken down and I am stuck in the trash can in the garden shed.&#8221; Once the kids decode it, they&#8217;ll find a small Lego moon rover there as a prize.<\/p>\n<p>Changing the speed of the Morse output is easy: just increase or decrease the definition of DOTLENGTH and everything adjusts proportionally. Changing the message is equally simple: just change the value of message[] in the source code. As written, it can handle up to 255 characters in the message. The program can handle upper\/lower case, numbers, and some punctuation.<\/p>\n<p>The program will also work with an Arduino, of course. You can even change the value of OUTLINE to 13 and the Arduino will use the built-in LED. (No circuit required, just a bare Arduino!)<\/p>\n<p>I know Morse code is pretty much obsolete now. You don&#8217;t even need it for a ham license any more&#8230; but all the more reason to learn it!<\/p><\/blockquote>\n<p><a href=\"http:\/\/hacks.ayars.org\/2011\/06\/morse-code-trainer.html\" target=\"_blank\" rel=\"noopener\">LINK<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>My kids are learning Morse code this summer, so I threw together this little circuit to help them learn. And to make it more fun&#8230; It uses an ATtiny85 ($2.26 at digikey.com) to drive a piezo beeper (? $3.50 at Radio Shack.) The ATtiny85 takes 5.5V max, so I built the circuit on a piece&hellip;<\/p>\n","protected":false},"author":2,"featured_media":26171,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[2],"tags":[112,219,295],"class_list":["post-26136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-diy","tag-cw","tag-home-made","tag-morse","category-2","description-off"],"_links":{"self":[{"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/posts\/26136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/comments?post=26136"}],"version-history":[{"count":0,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/posts\/26136\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/media\/26171"}],"wp:attachment":[{"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/media?parent=26136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/categories?post=26136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cqdx.ru\/ham\/wp-json\/wp\/v2\/tags?post=26136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}