Barobo
PortalSign In
HomeShopTutorialsFree CurriculumHour of Code
RoboBlockly for Learning Math and Coding

Sending an SOS Message with Morse Code (using LED module)

Piano
Linkbot Image Mindstorm Image
0x2418126y2418126
Grid:
Tics Lines:
Width px
Hash Lines:
Width px
Labels:
Font px
Trace Lines:
Robot 1:
Width px
Robot 2:
Width px
Robot 3:
Width px
Robot 4:
Width px
Labels: x-axis y-axis Show Grid
Grid: 12x12 inches 24x24 inches 36x36 inches
72x72 inches 96x96 inches 192x192 inches
Quad: 4 Quadrants 1 Quadrant 1&4 Quadrants
Units: US Customary Metric
Background: Background Image

Robot 1

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (0 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 2

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (6 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 3

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (12 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in

Robot 4

0
S
M
L
Initial Position:
( in, in)
Initial Angle:
deg
Current Position: (18 in, 0 in)
Current Angle: 90 deg
Wheel Radius:
Track Width:
in
Sending an SOS Message with Morse Code (using LED module)
/* Code generated by RoboBlockly v2.1 */
/* Problem Statement: 
    Add the necessary blocks to spell out "SOS" using Morse
    Code and the LED. We already provide the letters S and O.
    Then work on adding your initials using the LED and Morse
    Code, so the message is "SOS YourInitials". (Use the scroll
    bar to scroll down to add more blocks at the end.)
    */
#include <arduino.h>

pinMode(13, OUTPUT);
// Morse code for "S"
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
// Space between the letters
delay(3000);
// Morse code for "O"
digitalWrite(13, HIGH);
delay(3000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(3000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(3000);
digitalWrite(13, LOW);
// Space between the letters
delay(3000);
// Morse code for "S"
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
delay(1000);
digitalWrite(13, HIGH);
delay(1000);
digitalWrite(13, LOW);
// Space between different words
delay(7000);
// Add code for your initials after this
Load Blocks
Hardware
LArduino
Workspace Show Ch Save File
Problem Statement:

Add the necessary blocks to spell out "SOS" using Morse Code and the LED. We already provide the letters S and O. Then work on adding your initials using the LED and Morse Code, so the message is "SOS YourInitials". (Use the scroll bar to scroll down to add more blocks at the end.)


		
Rubbish bin
Time