Using AirPods as a Morse Transmitter

(github.com)

177 points | by etherdream 12 days ago

15 comments

  • NoMoreNicksLeft 11 days ago
    What I really need is for the buzzer in the phone to buzz out Morse, so I can get information about who's sending a message without taking it out of my pocket. Maybe even for short messages just play out the whole message. First I guess I need to learn Morse though.
    • fr0sty 11 days ago
      I'll put in a vote for: https://lcwo.net/ (Learn CW Online)

      If your goal is to be "conversational" in CW I suggest you crank up the character speed until you are not able to count individual dits/dahs anymore. This will probably be somewhere in the 25-35WPM range. The goal is "instant character recognition" where you hear the sound/shape of the entire character rather than counting elements, assembling them in your head, and doing a mental hash lookup on the result.

      If you have trouble receiving or copying down the 5letter groups at this speed resist the temptation to add "farnsworth" spacing (extra gaps between letters). Instead increase the word spacing until you have enough down time in between to get everything copied.

    • teeray 10 days ago
      Apple Watch actually has a setting[0] to buzz the time in Morse when you put two fingers on the watch face. This is really useful for discretely checking the time.

      [0] https://support.apple.com/guide/watch/tell-time-with-haptic-...

    • hiimshort 11 days ago
      May I recommend the learn Morse with google page?

      https://morse.withgoogle.com/learn/

      I went through it a few times in a day and felt confident enough to be able to solve the Morse puzzles on my own in Keep Talking and Nobody Explodes when playing with friends. The site made it pretty easy to pick up!

      • san_dimitri 11 days ago
        Thank you for this website. I tried so many time learning Morse and often failed. With this site, I picked up half the alphabet in 20 mins. All I can see now are "Tape", "Submarine", "Hippo" etc.
        • geoffeg 11 days ago
          Make sure you're not memorizing each letter's dits and dahs, that'll make it much harder to receive and transmit morse code at faster speeds. Better to learn the general "sound" of each character, often using a Koch method trainer.
          • fr0sty 11 days ago
            +1 to the above.

            Implementing a mental dit/dah decoder + lookup table is the shortest path to being able to decode written CW ` _ . ___ _ ` but it will cause you problems trying to receive faster CW since you can't count, assemble, lookup fast enough to receive at more than 5-8WPM. And even then you are generally doing "keyboard copy" where you write down the letters as you hear them and then go back to actually read the message you received later.

          • swalberg 11 days ago
            +1 to this. I started learning Morse with that same Google site and it's optimizing for reading, not hearing. Took me time to unlearn everything and do it properly.
    • RobotToaster 11 days ago
      Or a miniature ticker tape printer, so your texts can come out your pocket like a telegram.
      • GJim 10 days ago
        Sir clearly hasn't watched the opening scene to the classic Bond film, The Spy Who Loved Me.

        It's on Youtube :-)

      • saltcured 11 days ago
        This should use some kind of impact printer, so the vibration of it working also indicates incoming messages.
      • NoMoreNicksLeft 11 days ago
        Shut up and take my money.
    • amatecha 11 days ago
      I had this exact thought the other day, I could make morse code vibration patterns for whoever is calling/texting so I know who it is without looking :)

      btw small world, I assume you're the person with the same name on other sites going back many years .. I was someone who got in touch with you like.. easily 20 years ago about some networking stuff... chatting in a cove-like space :)

    • givinguflac 11 days ago
      For what it’s worth, you could set a custom vibration for each important contact in settings.
    • ianburrell 10 days ago
      I have thought about writing a program that makes Morse Code ringtones that could used for contacts. Next step would be program that changed the ringtones for contacts to the name or whatever was entered.

      Unfortunately, I don't think it is possible to control vibrate patterns, at least not for notifications.

  • chadrs 11 days ago
    This is a cool toy, I've been wanting to do something similar with my flipper zero to make a BT morse keyboard.

    This also reminds me of TapXR, which I would totally buy if did morse, instead of inventing their own encoding. I get it, theirs is probably way faster but fluency is morse is more general purpose.

    • KMnO4 11 days ago
      > more general purpose

      Just how general purpose is it these days? I learned it for amateur radio (a couple years ago), which is probably the only “common” place to use Morse. And even there it’s all but dead

      • amatecha 11 days ago
        Continuous Wave / Morse is definitely not "all but dead". In fact, it's in literally continuous use, 24/7, worldwide. If you turn on an HF radio (and have an antenna up) and tune to an open band, you will hear morse code.

        Go here and see a live map of CW contacts picked up by the Reverse Beacon Network in the past 10 minutes (only the most recent 100, which is the most I could get it to show at once): https://www.reversebeacon.net/main.php?zoom=44.44,6.37,2.40&...

      • swalberg 11 days ago
        It's getting more and more popular within amateur radio. If I look on the Parks On The Air spots page, there are currently 20 people in a park across the US doing Morse, and I know that when I go to a park I can knock out 60 Morse contacts in about an hour on one band since there are so many hunters.

        Clubs like Long Island CW have thousands of members and run classes all day to teach people Morse and help with their operating skills. Just this morning I joined the weekly CWOps mini contest which is so popular they have it in 4 x 1 hour sessions. And that's on top of the 3 medium speed sessions on Mondays, and 2 slow speed ones.

        There might not be as much ragchew activity but between contests, DXers, and POTA, there's CW activity all over the bands.

      • jabroni_salad 11 days ago
        There was a downswing awhile ago because the macro users switched to using digital modes. People who want to make handmade CW contacts are still having fun and that is attracting some people to the space.

        Also, knowing Morse has been my escape room superpower. Escape room designers love Morse.

      • funkaster 10 days ago
        all (RF) navigational aids in aviation have a more code associated. It's actually required to identify them (by listening to the morse code/looking at the decoded morse code in your panel) to be able to use them for instrument navigation. So that means a big part of all GA flights and pretty much any commercial flight at any point in time in the world are using morse code.
  • finaard 11 days ago
    A while ago I hooked up the ambient light sensor of android devices as morse input for Emacs: https://www.youtube.com/watch?v=IBrvhiiZyf8
    • FredPret 11 days ago
      Straight out of Cryptonomicon
  • dheera 11 days ago
    Another method -- Why not use one airpod to emit a constant sinewave and then use the other airpod's microphone listen for the amplitude of that sine wave to detect whether or not the microphone hole it is covered by a finger? I think it could make for a much faster and more efficient morse input, since you can detect dots and dashes directly instead of requiring a double-press as a dash.

    There's a good chance you could also just do it with the amplitude of ambient noise and forget the sine wave generator.

  • als0 11 days ago
    Awesome. This is why I come to Hacker News.
  • willwade 10 days ago
    I think we could tweak this so you can use it as a morse keyboard/mouse for desktop. I find it interesting the single, double tap thing. Hadnt considered that. https://github.com/acecentre/MorseWriter (nb: if you ever want to develop on this look at https://github.com/AceCentre/MorseWriter/tree/pynput https://github.com/AceCentre/MorseWriter/issues/31)
  • Ecco 11 days ago
    Time well wasted :)
    • xucian 10 days ago
      :)) I'll steal this saying

      btw dude, try to not get upvoted, you've got 1337 karma

  • aidenn0 11 days ago
    Because of how it works you can also key using the pause and next multimedia buttons on your keyboard. Now we need to make the snake eat its tail by rigging an Iambic paddle to send pause/next events.
    • iiovemiku 11 days ago
      Next you'll tell me we could rig a telegraph to play music haha.
  • lenerdenator 11 days ago
    In five years, wireless headphones will be the new thing ruining ham radio.
  • zer0w1re 11 days ago
    Neat! I wonder if both airpods could be used more like paddles for dot/dash, rather than one click for dot and two clicks for dash.
  • _justinfunk 11 days ago
    This would be sweet using the tap feature in the previous generations of AirPods.
  • elwell 11 days ago
    I guess the interesting thing here is that it's being simply handled by JS:

        navigator.mediaSession.setActionHandler('pause', () => {
          press('.')
        })
        navigator.mediaSession.setActionHandler('nexttrack', () => {
          press('-')
        })
        navigator.mediaSession.setActionHandler('previoustrack', () => {
          inputCodes = ''
          showInput()
          say('backspace')
          clearTimeout(timerId)
          txtOutput.value = txtOutput.value.slice(0, -1)
        })
  • gentile 10 days ago
    [dead]
  • simone319 10 days ago
    [dead]
  • huhuhu111 11 days ago
    [dead]