Project
Materials

IoT Telegraph

WHAT WILL YOU MAKE?

Make a Morse code device to send top-secret messages. Take the simplicity of a physical Morse key, add a Raspberry Pi ‚Äî an inexpensive web-connectable board that fits in a project box ‚Äî to connect to the Internet and start sending messages. You’ll solder and hook up a sensor, so get ready for a great challenge!

WHAT WILL YOU LEARN?

You will learn to code a Raspberry Pi and solder electronics components to make a cyptography device.

STEPS

STEP 1

Load the Pi

The simplest way to get the telegraph code set up on your Pi is to use the pre-packed disk image. Download and unzip the disk image. The disk image includes the Raspbian operating system, so it will take a few minutes to download. (For advanced options, or to install the telegraph client manually, check the instructions in the GitHub repository).

If you don't already have a tool for burning disk images, Etcher is a good option. Insert a blank microSD card into your card reader. Launch Etcher, click “Select Image,” and select the Internet Telegraph disk image (internet-telegraph.img). Click “Select Drive” and select your microSD card (be careful with this one — you don't want to write the image to your hard drive!). Click “Flash” and wait for Etcher to do its work. Eject the SD card and pull it out of your card reader, then put it back in. It should mount as a disk that's accessible through your file manager.

STEP 2

Configure Your Telegraph

Set the wireless network info

The telegraph can be run over Ethernet (using a micro USB to Ethernet adapter such as Adafruit #2992), or connected to a wireless network. To connect it to a wireless network, open /etc/wpa_supplicant/wpa_supplicant.conf from the SD card, and update the network info at the bottom of the file with your network's SSID and Wi-Fi password.

Set telegraph channel and server

Open config.json in the root directory of your SD card. There are two configuration options you can set: The “channel” determines who else you'll be communicating with. To send private Morse messages with your friends or relations, set this to an obscure series of words or string of characters that only you and your buddies know. The default channel is the “lobby.” Anyone with a telegraph who doesn't change their channel will be in the lobby.

By default, telegraph messages go through our server at morse.autodidacts.io. You can also grab the server code from GitHub and set up your own server either on the web or on your local network. If you're running your own server, change the “server” value from morse.autodidacts.io to the URL or IP address of your server.

Once you've saved the updated config, eject your SD card and pop it into the Pi Zero.

STEP 3

Wire It Up!
The first step for connecting things to your Pi Zero is to solder on the GPIO pin header. Put the header in from the top, then flip the Pi over and solder a pin in at each end to hold the header in place. Solder the rest of the pins, taking care to avoid bridging the gaps between pins with any errant solder blobs. Check out Adafruit for a more detailed tutorial. Slip a couple of sections of heat-shrink tubing over the leads of one of the JST connectors, and then solder the leads onto the terminals of the arcade button. It doesn't matter which wire goes to which terminal on the button. When you're done, slide the heat-shrink tubing over the joint and shrink it on with your soldering iron. Solder the other JST lead onto the buzzer. This one is polarity-specific: Make sure you connect the black or dashed negative wire onto the longer pin.

STEP 4

Assemble the Telegraph

Get Outside the Box: We've used an iPhone box for the enclosure. This is a convenient approach, but it's only one of many options for housing your telegraph. You could use clear acrylic, 3D print your enclosure, or even install the telegraph in a cottage cheese tub, like many of our early electronics experiments. Let your creativity, available materials, and aesthetic preferences lead the way.

Plug the buzzer lead into GPIO pin 19 and ground, making sure the negative side is toward the edge of the Pi, and glue the buzzer down with a dot of hot glue to prevent it from knocking around in the box like a poltergeist.

Cut a hole in the lid of the box, thread the arcade button's wire through the hole, and screw on the fastener from below. Plug the button's lead into GPIO pins 26 and ground. This one can be oriented either way.

STEP 5

Power Up

Plug in the USB power and wait about 30 seconds for the Pi to boot up. When the Pi is booted up and connected to the Morse server, it will beep out “ready” in Morse code ( .-.  .  .-  -..  -.–).

To test your connection, push the button on your telegraph. If you hear a beep, your telegraph is talking to the server. All systems go!

May the Morse be With You!

The standard Morse alphabet includes letters, numbers, and a variety of punctuation symbols. For a more complete set, as well as some tips on learning Morse, print out a copy of InternetTelegraph/Docs/translate-morse.pdf from the GitHub repo. You'll want to have a notebook handy for transcribing incoming messages.

Morse is made up of dots, dashes, and spaces (gaps). Each of these has a specific length in relation to the other symbols. Keeping these lengths in mind will help you send well-formed messages that are easy to decode, at whatever speed you're punching them out. A dash is three times as long as a dot. Gaps between symbols within a letter are as long as one dot. Gaps between letters are three dots long, and gaps between words are seven times as long as a dot.

Once you (and any other telegraph operators on your channel) are ready to go, it's time to send a message!

We suggest something short and sweet, like “hi.” In Morse, that's four dots, a space, and then two dots: dit-dit-dit-dit  dit-dit. (As it happens, “hi” was also the output sample that came just before the first ever use of “hello world” in a 1972 programming tutorial by Brian Kernighan. We're sticking with historical precedent here.)

Try going very slowly at first, and sending simple messages. You might want to jot down the Morse as it comes in, and then decode it after the transmission. The same works for sending: write out the Morse first, and then key it into the telegraph.

WHAT'S NEXT?

After you’ve built your IoT telegraph, you’ll be ready to send top-secret messages via Morse code. Try decoding and sending this one!

.– .. – …. / –. .-. . .- – / .–. — .– . .-. / -.-. — — . … / –. .-. . .- – / .-. . … .–. — -. … .. -… .. .-.. .. – -.– / ‚Äì / – — / -.- . . .–. / — .- -.- .. -. –. -.-.–

 

Materials:

  • Raspberry Pi Zero W
  • Arcade button switch
  • Piezo buzzer
  • Enclosure
  • Soldering iron and solder
  • Heat-shrink tubing
  • JST connector leads, 12" female 2-pin (2)
  • MicroSD card reader
  • Hot glue

See More Projects in these topics:

Electronics Microcontrollers STEM or STEAM

See More Projects from these themes:

The Shop (Makerspace)
Maker Camp
Maker Camp is a do-it-yourself online resource to help leaders like you organize a summer camp that engages children in making. Our goal is to provide you and your campers with the inspiration and the helpful resources, along with many possible projects to fit a wide range of interests and abilities. The idea is to focus on making as a playful, social activity. Maker Camp provides enough support for anyone to get started. Making provides experiences that help children become self-directed learners and good problem-solvers.
PRINT THESE INSTRUCTIONS
BROWSE MORE MAKER CAMP PROJECTS FIND EVEN MORE PROJECTS AT Make:

Please Note

Your safety is your own responsibility, including proper use of equipment and safety gear, and determining whether you have adequate skill and experience. Power tools, electricity, and other resources used for these projects are dangerous, unless used properly and with adequate precautions, including safety gear and adult supervision. Some illustrative photos do not depict safety precautions or equipment, in order to show the project steps more clearly. Use of the instructions and suggestions found in Maker Camp is at your own risk. Make Community, LLC, disclaims all responsibility for any resulting damage, injury, or expense.

Maker Camp Project Standards

Based on NGSS (Next Generation Science Standards)

NGSS (Next Generation Science Standards)

The Next Generation Science Standards (NGSS) are K–12 science content standards. Learn more.

Forces and Motion

  • 3-PS2-3. Ask questions to determine cause and effect relationships of electric or magnetic interactions between two objects not in contact with each other.
  • HS-PS4-5. Communicate technical information about how some technological devices use the principles of wave behavior and wave interactions with matter to transmit and capture information and energy.

K–12 Computer Science Framework

The K–12 Computer Science Framework is designed to guide computer science from a subject for the fortunate few to an opportunity for all. The guiding practices include:
  1. Fostering an Inclusive Computing Culture
  2. Collaborating Around Computing
  3. Recognizing and Defining Computational Problems
  4. Developing and Using Abstractions
  5. Creating Computational Artifacts
  6. Testing and Refining Computational Artifacts
  7. Communicating About Computing
You can download the complete framework here. You may also want to consider the International Society for Technology in Education Standards. The ISTE Standards provide the competencies for learning, teaching and leading in the digital age, providing a comprehensive roadmap for the effective use of technology in schools worldwide.

ISTE Standards (International Society for Technology in Education)

The ISTE Standards provide the competencies for learning, teaching and leading in the digital age, providing a comprehensive roadmap for the effective use of technology in schools worldwide.

1.1 Empowered Learner

  • Summary: Students leverage technology to take an active role in choosing, achieving, and demonstrating competency in their learning goals, informed by the learning sciences.
  • 1.1.a Students articulate and set personal learning goals, develop strategies leveraging technology to achieve them and reflect on the learning process itself to improve learning outcomes.
  • 1.1.b Students build networks and customize their learning environments in ways that support the learning process.
  • 1.1.c Students use technology to seek feedback that informs and improves their practice and to demonstrate their learning in a variety of ways.
  • 1.1.d Students understand the fundamental concepts of technology operations, demonstrate the ability to choose, use and troubleshoot current technologies and are able to transfer their knowledge to explore emerging technologies.

1.2 Digital Citizen

  • Summary: Students recognize the rights, responsibilities and opportunities of living, learning and working in an interconnected digital world, and they act and model in ways that are safe, legal and ethical.
  • 1.2.a Students cultivate and manage their digital identity and reputation and are aware of the permanence of their actions in the digital world.
  • 1.2.b Students engage in positive, safe, legal and ethical behavior when using technology, including social interactions online or when using networked devices.
  • 1.2.c Students demonstrate an understanding of and respect for the rights and obligations of using and sharing intellectual property.
  • 1.2.d Students manage their personal data to maintain digital privacy and security and are aware of data-collection technology used to track their navigation online.

1.3 Knowledge Constructor

  • Summary: Students critically curate a variety of resources using digital tools to construct knowledge, produce creative artifacts and make meaningful learning experiences for themselves and others.
  • 1.3.a Students plan and employ effective research strategies to locate information and other resources for their intellectual or creative pursuits.
  • 1.3.b Students evaluate the accuracy, perspective, credibility and relevance of information, media, data or other resources.
  • 1.3.c Students curate information from digital resources using a variety of tools and methods to create collections of artifacts that demonstrate meaningful connections or conclusions.
  • 1.3.d Students build knowledge by actively exploring real-world issues and problems, developing ideas and theories and pursuing answers and solutions.

1.4 Innovative Designer

  • Summary: Students use a variety of technologies within a design process to identify and solve problems by creating new, useful or imaginative solutions.
  • 1.4.a Students know and use a deliberate design process for generating ideas, testing theories, creating innovative artifacts or solving authentic problems.
  • 1.4.b Students select and use digital tools to plan and manage a design process that considers design constraints and calculated risks.
  • 1.4.c Students develop, test and refine prototypes as part of a cyclical design process.
  • 1.4.d Students exhibit a tolerance for ambiguity, perseverance and the capacity to work with open-ended problems.

1.5 Computational Thinker

  • Summary: Students develop and employ strategies for understanding and solving problems in ways that leverage the power of technological methods to develop and test solutions.
  • 1.5.a Students formulate problem definitions suited for technology-assisted methods such as data analysis, abstract models and algorithmic thinking in exploring and finding solutions.
  • 1.5.b Students collect data or identify relevant data sets, use digital tools to analyze them, and represent data in various ways to facilitate problem-solving and decision-making.
  • 1.5.c Students break problems into component parts, extract key information, and develop descriptive models to understand complex systems or facilitate problem-solving.
  • 1.5.d Students understand how automation works and use algorithmic thinking to develop a sequence of steps to create and test automated solutions.

NGSS MS.Engineering Design

The Next Generation Science Standards (NGSS) are K–12 science content standards.
  • MS-ETS1-1. Define the criteria and constraints of a design problem with sufficient precision to ensure a successful solution, taking into account relevant scientific principles and potential impacts on people and the natural environment that may limit possible solutions.
  • MS-ETS1-2. Evaluate competing design solutions using a systematic process to determine how well they meet the criteria and constraints of the problem.
  • MS-ETS1-3. Analyze data from tests to determine similarities and differences among several design solutions to identify the best characteristics of each that can be combined into a new solution to better meet the criteria for success.
  • MS-ETS1-4. Develop a model to generate data for iterative testing and modification of a proposed object, tool, or process such that an optimal design can be achieved.
For additional information on using content standards with our projects please visit the Maker Camp Playbook.

NGSS HS.Engineering Design

The Next Generation Science Standards (NGSS) are K–12 science content standards.
  • HS-ETS1-1. Analyze a major global challenge to specify qualitative and quantitative criteria and constraints for solutions that account for societal needs and wants.
  • HS-ETS1-2. Design a solution to a complex real-world problem by breaking it down into smaller, more manageable problems that can be solved through engineering.
  • HS-ETS1-3. Evaluate a solution to a complex real-world problem based on prioritized criteria and trade-offs that account for a range of constraints, including cost, safety, reliability, and aesthetics as well as possible social, cultural, and environmental impacts.
  • HS-ETS1-4. Use a computer simulation to model the impact of proposed solutions to a complex real-world problem with numerous criteria and constraints on interactions within and between systems relevant to the problem.
For additional information on using content standards with our projects please visit the Maker Camp Playbook.

ALL DONE? SHARE IT!

Share pictures and videos of your cool build! Be sure to use #maketogether or #makercamp

POST YOUR PROJECTS
Makeyland Graphic

Sign up for monthly project ideas for young makers from the leading maker educators.

FEEDBACK