Telecnatron Forum

Discuss and comment on telecnatron.com articles and related topics.

Welcome! [Log In] [Register]
Jean-Pierre
Re: Morse Code Library For AVR
December 12, 2018 02:53PM
I did a similar project in Basic Bascom for AVR, it different because I use a database for all letters. I use a Attiny45 because I have one under my hand. but it will work with a Attiny25. JP
Mark P
Re: Morse Code Library For AVR
December 12, 2018 02:53PM
Hi Stephen, This is very useful thank you for sharing it. I found that the letter "M" in the morse_table has two characters, not one. I had issues if the first character was a space, but that may be something else that I have that isn't quite right.
Re: Morse Code Library For AVR
June 19, 2024 07:49PM
To use a Morse code library for AVR microcontrollers, you can consider using the Arduino framework, which is compatible with AVR-based boards. The Arduino framework provides a simplified programming environment and a vast library ecosystem that includes Morse code libraries.

Here are the steps to use a Morse code library for AVR using the Arduino framework:

Set up your AVR-based board:

Make sure you have an AVR-based board, such as Arduino Uno, Arduino Mega, or any other AVR development board.
Connect the board to your computer via USB.
Install the Arduino IDE:

Download and install the Arduino IDE from the official Arduino website (https://www.arduino.cc).
Follow the installation instructions specific to your operating system.
Install the Morse code library:

Open the Arduino IDE.
Go to "Sketch" > "Include Library" > "Manage Libraries".
In the Library Manager, search for "Morse code" or a specific Morse code library of your choice.
Select the library from the search results and click the "Install" button.
Wait for the installation to complete.
Create a new Arduino sketch:

Go to "File" > "New" to create a new Arduino sketch.
You will see a new sketch window.
Include the Morse code library:

At the top of your sketch, add the line #include <Morse.h>.
This line includes the Morse code library in your sketch.
Write Morse code program:

In the setup() function, initialize the Morse code library and any necessary pins or settings.
In the loop() function, use the Morse code library functions to send and receive Morse code as desired.
Refer to the documentation or examples provided with the Morse code library for specific usage instructions and function calls.
Upload the sketch to your AVR board:

Connect your AVR-based board to your computer.
Select the appropriate board and port from the "Tools" menu in the Arduino IDE.
Click the "Upload" button (or go to "Sketch" > "Upload") to compile and upload the sketch to your board.
Test the Morse code functionality:

After uploading the sketch, verify that your AVR board is connected to an appropriate output device (such as an LED or a buzzer) to observe the Morse code signals.
Run the sketch and test the Morse code functionality according to the library's documentation or examples.
By following these steps, you should be able to use a Morse code library with your AVR-based board using the Arduino framework. Remember to consult the documentation and examples provided with the specific Morse code library you choose for more detailed usage instructions and examples.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: