browser icon
You are using an insecure version of your web browser. Please update your browser!
Using an outdated browser makes your computer unsafe. For a safer, faster, more enjoyable user experience, please update your browser today or try a newer browser.

Primer programa Arduino. Baliza Morse :)

Posted by on 17 julio, 2012


EA1NK Light Beacon
Blinks LED and transmit EA1NK callsign in morse code
2012 - Juan J. Lamas EA1NK


// Pin 13 as LED
int led=13;

// Morse code message (1= dot, 2 = dash, 0=space)as array.
int msg[]={4,1,0,3,1,0,2,0,3,1,0,2,0,2,0,2,0,2,0,3,2,0,1,0,3,2,0,1,0,2,0,4};
// . . - . - - - - - . - . -
// E A 1 N K

// Morse code speed configuration WPM.
int speed=12;

// Dot, dash and space timings using PARIS standard, dot = 60 milliseconds at 20 WPM.
int dot=(1200/speed);
int dash=3*dot;
int fig_space=dot;
int char_space=3*dot;
int word_space=7*dot;

void setup(){
// Initialize digital pin as output.


void loop() {

// We loop trough the array items and play the message.

for (int i=0;i

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos necesarios están marcados *

Puedes usar las siguientes etiquetas y atributos HTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>