Week 1 - Morse Code

Morse Code Challenge

Pushbuttons or switches connect two points in a circuit when you press them. This project is to create a simple circuit that sounds a buzzer when you press the button.

Hardware

All the hardware you need should be in the box.

  • Arduino Board

  • Momentary button

  • 10K ohm resistor

  • hook-up wires

  • breadboard

  • buzzer

Circuit

Schematic_bb.png

Connect four wires to the board. The first two, red and black, connect to the two long vertical rows on the side of the breadboard to provide access to the 5 volt supply and ground. The third wire goes from digital pin 2 to one leg of the pushbutton. That same leg of the button connects through a pull-down resistor (here 10K ohm) to ground. The other leg of the button connects to the 5 volt supply. The fourth wire goes from digital pin 10 to the resistor connected to the positive pin of the buzzer.

When the pushbutton is open (unpressed) there is no connection between the two legs of the pushbutton, so the pin is connected to ground (through the pull-down resistor) and we read a LOW. When the button is closed (pressed), it makes a connection between its two legs, connecting the pin to 5 volts, so that we read a HIGH. 

We can then send a signal on pin 10 to sound the speaker to sound the buzzer.

Say Something!

Now you’ve got all you need to start sending messages in Morse Code. There’s a handy table below to help you form your first letters. Why not upload a video message to our facebook page and let us all know how you got on.

9898048.jpg
Rob Stokes