<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Arduino Morse Code Project: Part 1</title><link>/products/arduino/b/blog/posts/arduino-morse-code-project-part-1</link><description>For many years Morse code was a large part of the mandatory licensing examination in both Canada and the US. In order to get a basic license to transmit on amateur bands, a prospective amateur would have to commit him or hers...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Arduino Morse Code Project: Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/arduino-morse-code-project-part-1</link><pubDate>Wed, 30 Nov 2016 03:23:40 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a6303782-b054-436d-9cf0-82a7896d5b9c</guid><dc:creator>econjack</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Usually it&amp;#39;s not a good idea to use the &lt;em&gt;Serial&lt;/em&gt; object in an ISR because it uses its own set of interrupts. Also, I almost always have a &lt;em&gt;default&lt;/em&gt; like:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp; // the switch/case list here...&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; default:&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.print(&amp;quot;I shouldn&amp;#39;t be here. toneStatus: &amp;quot;);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Serial.println(toneStatus);&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;which can be helpfui in debugging. I&amp;#39;m not too worried about interrupt blocking in the &lt;em&gt;default&lt;/em&gt; because we only reach it when something has already gone wrong.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17418&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Arduino Morse Code Project: Part 1</title><link>https://community.element14.com/products/arduino/b/blog/posts/arduino-morse-code-project-part-1</link><pubDate>Fri, 16 May 2014 06:52:59 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:a6303782-b054-436d-9cf0-82a7896d5b9c</guid><dc:creator>Former Member</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Thanks again for sharing your code.&amp;nbsp; I have been modifying it to get a stripped down version to run on an ATtiny13.&amp;nbsp; I&amp;#39;m working on making small beacon circuits for my flying groups RC aircraft.&amp;nbsp; I don&amp;#39;t have C programming skills.&amp;nbsp; I&amp;#39;m wondering if you can give me some help with code changes to move the output pin from pin 6 to pin 4 so my stripped down version of your code will work with the ATtiny13.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;You might be interested in the thread on RCgroups where the idea for the trackers are discussed.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.rcgroups.com/forums/showthread.php?t=2079662" rel="nofollow" target="_blank"&gt;http://www.rcgroups.com/forums/showthread.php?t=2079662&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&lt;a class="jive-link-external-small" href="http://www.rcgroups.com/forums/showthread.php?t=2012386" rel="nofollow" target="_blank"&gt;http://www.rcgroups.com/forums/showthread.php?t=2012386&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Check out the above threads and thanks for any help you can give me with my project.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Curt&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;OK, looking at the code with rested eyes this morning it looks like I can just change the value from 6 to 4 in this line of the code and it should move the output to pin 4 and not effect the rest of the program.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;const uint8_t speakerPin = 6;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I&amp;#39;ll give it a try later today, headed out to fly in a few minutes.&amp;nbsp; I&amp;#39;ll give an update after I try changing the code and loading into the ATtiny13.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks Again!&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=17418&amp;AppID=145&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>