# tchakerian_serly — Project <<<<<<< HEAD Morse code transmitter using Arduino Project overview - This project is a Morse code transmitter written in C using Arduino hardware. The program takes a text message from the user through the serial monitor, converts the message into Morse code, and then transmits the signal using an LED and a buzzer. The project uses programming concepts, including: arrays, loops, functions, conditions, strings, indexing, serial input and output. The Morse code is displayed in the serial monitor and also transmitter physically through the LED and buzzer. ------------------------------------------------------------------------------------------------------------------------------------------------ Functional specification what the user can do The user can: - enter a text message in the serial monitor - send letters, numbers, and spaces - view the Morse signal through the LED and buzzer User interaction 1. The user uploads the program to the Arduino board. 2. The user opens the serial monitor. 3. The user types a message and presses send. 4. The program reads the input. 5. The program converts the input into Morse code. 6. The Morse code is printed in the serial monitor 7. The LED and buzzer transmit the Morse signal. Program output ======= Morse Code Transmitter using Arduino Project Overview This project is a Morse Code Transmitter written in C using Arduino hardware. The program takes a text message from the user through the Serial Monitor, converts the message into Morse code, and then transmits the signal using an LED and a buzzer. The project uses programming concepts covered in the course, including: arrays, loops, functions, conditions, strings, indexing, serial input and output The Morse code is displayed in the Serial Monitor and also transmitted physically through the LED and buzzer. Functional Specification What the user can do The user can: - enter a text message in the Serial Monitor - send letters, numbers, and spaces - view the Morse code translation in the terminal - observe the Morse signal through the LED and buzzer User interaction 1. The user uploads the program to the Arduino board 2. The user opens the Serial Monitor 3. The user types a message and presses Send 4. The program reads the input 5. The program converts the input into Morse code 6. The Morse code is printed in the Serial Monitor 7. The LED and buzzer transmit the Morse signal Program output >>>>>>> af885f37b9a6a9e658bb046ca21e3823b5c585ea The program outputs: - the original input message - the Morse code translation - LED blinking signals - buzzer sound signals <<<<<<< HEAD ------------------------------------------------------------------------------------------------------------------------------------------------ Hardware Setup Components used - Arduino - Breadboard - LED - Resistor - Active Buzzer - Jumper wires Wiring LED - Arduino pin 13 -> LED positive leg - LED negative leg -> GND Buzzer - Arduino pin 8 -> buzzer positive leg - buzzer negative leg -> GND ------------------------------------------------------------------------------------------------------------------------------------------------ How to build and run 1. Open the project in Arduino IDE. 2. Connect the Arduino Uno to the computer. 3. Select the correct board and port. 4. Upload the code to the Arduino. 5. Open the serial monitor. 6. Type a message and press send. Implementation specification Arrays The project uses two arrays: - one array for Morse code letter A-Z - One array for Morse code numbers 0-9 The arrays store Morse code strings. Main functions setup() initializes the LED Pin, buzzer pin, and serial communication. loop() continuously waits for user input and starts the Morse transmission process. getMorse() converts one character into Morse code using array indexing. printMorse() prints the Morse code translation in the serial monitor. transmitMessage() processes one Morse code string at a time. dot() and dash() control the LED and buzzer signals. dot = short signal, dash = long signal ------------------------------------------------------------------------------------------------------------------------------------------------ Testing the project was tested using different words and numbers. Test case 1 Input: SOS Expected Morse: ...---... Result: pass Test case 2 Input: A1 Expected Morse: .-.---- Result: pass Test case 3 Input: HI THERE Result: pass Conclusion The final system produces both visual output using an LED and audio output using a buzzer following Morse code time rules. ======= Example: Input: SOS Output: ... --- ... The LED and buzzer transmit the Morse code timing Hardware Setup Components used -Arduino Uno -Breadboard -LED -resistor -active buzzer -jumper wires Wiring LED: Arduino pin 13 -> resistor -> LED positive leg LED negative leg -> GND Buzzer: Arduino pin 8 -> buzzer positive leg buzzer negative leg -> GND How to Build and Run 1.Open the project in Arduino IDE 2.Connect the Arduino Uno to the computer 3.Select the correct board and port >>>>>>> af885f37b9a6a9e658bb046ca21e3823b5c585ea