Engage in a minimalized text adventure game using Morse code via an LED and button on an Arduino Nano.
To make the experience fit your profile, pick a username and tell us what interests you.
We found and based on your interests.
body.stlStandard Tesselated Geometry - 126.06 kB - 08/31/2024 at 08:16 |
|
|
cap.stlStandard Tesselated Geometry - 714.34 kB - 08/31/2024 at 08:16 |
|
Wire components following the Image. You can use any Arduino-like device.
Upload the sketch from GitHub to Arduino-Like device. (https://github.com/reinlten/arduino-morse-text-adventure/blob/master/Adventure/Morse_Adventure.ino)
After you started, the game begins and the LED will blink, so you need to start decoding. You can vary the output speed by changing the value of the potentiometer. GL & HF!
Commands:
Create an account to leave a comment. Already have an account? Log In.
I noticed, that the timing is not correct. A dash should be 3 times a dot, the inter-character space should be equal to a dot, the space between letters should be 3x dot, and space between words should be 7x a dot. Therefore I changed to:
dot_time = analog_read;
between_time = analog_read;
dash_time = 3*analog_read;
letter_time = 2*analog_read;
word_time = 2*analog_read;
and uncommented the "delay(word_time);"
I’ve decided to put this into a mint tin and to include an on/off switch. I put the Nano onto a miniature breadboard so I can use the button on the tin box, or attach a straight key as the input device.
I did notice on the wiring diagram that there is no 9v battery connection listed. That would be on the VIN and GND pins.
Such a fun project. I can’t wait to play.
Very nice! Yeah I forgot about the wiring of the Battery, I actually did it the same way and have an on/off switch aswell.
Hope you have fun with the game!:)
This is cool, thanks! Is there an STL file for the enclosure?
This looks like a fun adventure. I am thinking of using a straight key as the switch. That’ll get my practice in.
I also like the LED instead of a speaker making noise.
Presently I am listening to a short story in Morse code to help me get quicker at decoding in my head. An interactive game will be more fun. Thanks.
I really appreciate your comment, thanks! The switch I am using is cheap but also hurts the fingers if used too long, a straight key is certainly more comfortable.
Become a member to follow this project and never miss any updates
I uploaded the code to an openCwKeyer Mk2. I just changed the pin numbers:
buttonPin=2
ledPin=4
analogPin=A0
and inverted the button, because in the openkeyer, the key pulls the pin to ground.
This way I can use my straight key and the code is sent with the buzzer of the keyer. I understand that it is nice to have a silent device, but to really learn the code, it has to be a tone. Additionally I added a few characters: . , - ?!