Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Pointless fun: Morse Code Interpreter


  • Please log in to reply
8 replies to this topic

#1 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 02 October 2010 - 06:04 AM

When I saw this post, I thought it would be cool to write an app that goes the opposite direction. Instead of blinking out morse code, the app would "look" at the morse code, measure the pulse and pause widths and convert them back into words.

Looking at the blinking LED was easy, but converting that back into morse code was more difficult than I expected. I will not share how I did it here, just in case you want to try the challenge yourself. However, my code is attached to this post if you're interested in seeing how I solved the problem.

http://www.youtube.com/watch?v=V2ZPYs7jHKs

Part 1: Staring at the LED


http://www.youtube.com/watch?v=9RuwKBmQxvg

Part 2:Interpreting the blinks

Thanks to N2MOH for the morse sender (I also copied your timing constants) and Scott Hanselman for the morse array.

Attached Files



#2 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 02 October 2010 - 01:49 PM

Wow, hari. That's pretty fantastic. I love it! I see that you're using a Netduino Plus for the "morse code encoder/sender" unit. Now I'm thinking of making an app which takes text messages and/or e-mails and translates them into morse code ;) That would be awesome and hillarious. Chris

#3 Eric Burdo

Eric Burdo

    Advanced Member

  • Members
  • PipPipPip
  • 130 posts

Posted 03 October 2010 - 12:53 AM

Now I'm thinking of making an app which takes text messages and/or e-mails and translates them into morse code ;) That would be awesome and hillarious.


If you ever want a good book to read... The Cuckoo's Egg - http://en.wikipedia.org/wiki/The_Cuckoo's_Egg_(book)

Great book about computer hacking in the mid 80's.

Anyhow... Cliff Stoll (guy in the book) wrote some code to have the computers call his pager when certain events happened... and the page gave out morse code to alert Cliff of the specifics. Kinda neat for something from the 80's (pre-text messaging, email devices, etc).
~ Eric D. Burdo ~ http://brick-labs.com/

Today LED's, tomorrow, the world!!! Well, OK, maybe servos.

#4 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 03 October 2010 - 03:01 AM

Wow, hari. That's pretty fantastic. I love it!

Thanks Chris.

I see that you're using a Netduino Plus for the "morse code encoder/sender" unit. Now I'm thinking of making an app which takes text messages and/or e-mails and translates them into morse code ;) That would be awesome and hillarious.

I don't want to hog all the fun. Posted Image Go for it!

#5 bill.french

bill.french

    Advanced Member

  • Members
  • PipPipPip
  • 260 posts
  • LocationPrinceton, NJ

Posted 04 October 2010 - 04:29 PM

if you've never seen this video, it's mildly entertaining -- Morse Code vs. Text Messaging:

#6 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 04 October 2010 - 05:15 PM

if you've never seen this video, it's mildly entertaining -- Morse Code vs. Text Messaging:



Man, they are _quick_.

#7 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 05 October 2010 - 01:58 AM

if you've never seen this video, it's mildly entertaining -- Morse Code vs. Text Messaging:


Posted Image No, never seen that before, thx for sharing.

#8 dm3281

dm3281

    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 27 October 2010 - 08:43 PM

When I saw this post, I thought it would be cool to write an app that goes the opposite direction. Instead of blinking out morse code, the app would "look" at the morse code, measure the pulse and pause widths and convert them back into words.

Looking at the blinking LED was easy, but converting that back into morse code was more difficult than I expected. I will not share how I did it here, just in case you want to try the challenge yourself. However, my code is attached to this post if you're interested in seeing how I solved the problem.

http://www.youtube.com/watch?v=V2ZPYs7jHKs

Part 1: Staring at the LED


http://www.youtube.com/watch?v=9RuwKBmQxvg

Part 2:Interpreting the blinks

Thanks to N2MOH for the morse sender (I also copied your timing constants) and Scott Hanselman for the morse array.



What kind of styro foam are you using to hold your netduino? I need something like that.

Also, can you publish your diagram?

#9 hari

hari

    Advanced Member

  • Members
  • PipPipPip
  • 131 posts

Posted 28 October 2010 - 06:07 AM

What kind of styro foam are you using to hold your netduino? I need something like that.

Also, can you publish your diagram?

In the U.S. it's called Foam Board. Here's the exact product that I bought at my local Staples office store.
I just love this material, for only $12 you get three huge sheets. I've created many projects and still have one sheet left over.

Here is the blog post on the Morse Code Decoder. Let me know if you have any questions.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.