Code Monkey home page Code Monkey logo

digisparkmorsekeyboard's Introduction

DigisparkMorseKeyboard

This is a Morse Code USB Keyboard Arduino script for the Digispark.

This is based on Ralf Beesner's Digispark-Morse-Keyboard.
If you want to do this without the Digispark (just with AtTiny85), check out Ralf Beesner's website.

I completed the morse code character set by adding: ; ! _ ( ) ' @
I also added seamless integration for both US and DE Keyboard Layouts.
You can get a complete list of all available morse code characters at ./MorseCodes.txt.
Although all the letters should work on all QWERTY/QWERTZ style keyboards, there is currently no support for special characters for other Keyboard Layouts.

How It Works

Visit DigisparkMorseCode/MorseCodes.txt, or open a Text Editor and hold the key down for 4sec. It prints out all available Morse Codes. Hold down the key to switch between DE and US keyboard layout.

Example:

"M  A   L    U   D   O      U  N   O"
"-- •- •-•• ••- -•• ---    ••- -• ---"

Setting the Speed Switch to "Fast" activates automatic space insertion between words and allows your "dah's" (long presses) to be shorter.
If you set the switch to "Slow", you must manually add spaces between words with the morse codes "----" or "•-•••".

Wiring

  • Attach the Key to Pin 0
  • Attach an LED and current limiting resistor to Pin 1 (ignore this if you use a Digispark, there's already a LED built in)
  • Attach the Speed Switch to Pin 2

Picture

Alternatively, you can use my Maludo Uno custom PCB:

Picture

Software Setup

  • Follow the official Digispark setup guide for setting up the Arduino IDE and installing drivers.
  • Download my Arduino project from ./DigisparkMorseKeyboard and open it in the Arduino IDE
  • Adjust the "DeLayout" variable to reflect your Keyboard Layout
  • Go to "Tools" --> "Boards" --> "Digispark Default"
  • Go to "Tools" --> "Programmer" --> "Micronucleus"
  • Hit Upload, then plug in the Digispark when it says so

Feel free to contact me if you encounter any problems :)

Now you can start morsing! If you are a beginner (like me), flick the speed switch to deactivate the automatic space insertion between words and morsing at a slower speed. That means you have time to look up the Morse Codes for each letter one by one.

You can get a complete overview of all available Morse Codes at ./MorseCodes.txt or by opening a text editor and holding the Button for 4 seconds.

digisparkmorsekeyboard's People

Contributors

darioschmid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.