Arduino Morse Code Writer
Introduction: Arduino Morse Code Writer
I made a robot that can convert any given text into Morse code and then write it down!!
It's made out of cardboard and Lego and for the electronics I used Arduino and only two motors.
Supplies
Arduino Uno board
Stepper motor
Micro servo SG90
ULN2003 stepper motor driver module
Power supply module
Breadboard
4× Jumper wires
6× Female-to-Male dupont wires
9V1A Adapter
USB cable
Cardboard
2× Wooden dowels
2× Springs
Straw
White paper
Lego
Super glue
Hot glue gun
Elastic band ( to make a pen holder)
Scissors
Cutter
Step 1: Building the Base
Start by building the base.
Mine is 4 studs wide and 20 studs long, after building one layer with those lengths, I built a one stud wide boarder around it leaving a gap on one side to leave space for the stepper motor, then I added tile pieces to the middle part where the paper strip will be. Using Lego made it very sturdy and easy to modify.
To make the paper roll, I cut strips of A4 paper 1.2cm wide ( I chose this width because it's the same width as the Lego wheel I used, you can make yours bigger or smaller depending on your wheel) and I glued their ends together to form one very long strip, then I wrapped it around the wheel.
Step 2: The Servo Piece
For this step you need:
* two wooden dowels 4cm long
* two springs 2cm long
* one straw cut to two pieces 2cm long each
* one 12cm by 4cm piece of cardboard
* two 4cm by 1.5cm pieces of cardboard
* one 4cm by 2cm piece of cardboard
First, glue the dowels to one of the 4 by 1.5 pieces, then insert the springs and the straws in the dowels, then glue the other cardboard piece on the other side to hold everything in place.
Second, glue the 4cm by 2cm piece on top of the straws.
Third, flip the whole piece over and glue a small dowel to the back of it, not in the middle but slightly to the left. (I forgot to add the small dowel in the first picture)
Finally, cut a hole in the big piece of cardboard the size of the front of the servo motor and glue the motor in, then glue the piece we just made with the dowels to the big piece so that when the servo moves, it pushes the small dowel down which in turn pushes the springs down too.
I ended up cutting about 3cm from the bottom part of the 12cm by 4cm piece and gluing two more 4cm by 1.5cm pieces to it, then covering that with a 5.5cm by 4cm piece of cardboard.
And to hold the marker I made a small loop of elastic band and glued it to a small piece of cardboard then I glued that to the 4cm by 2cm piece which will move down when the servo starts. These additions stopped the marker from moving from side to side when the springs come back up.
Step 3: Adding the Servo Motor and the Paper Roll to the Base
I added two more bricks to one side of the base to support the servo piece and I glued it in place.
Then I added the wheel to the far end of the base.
Step 4: Building the Stepper Motor Frame
This step was a bit of a challenge, because the motor wasn't made to fit with Lego perfectly. 949
However, I did manage to do it by using the two holes in the motor to secure it to in place. Next, I glued a Lego wheel to the tip of the motor and then I put it right next to the base on the side that I left open in step 1.
Step 5: Finishing Touches
I added two arc pieces to cover the wheel to fix the paper in place. And I added two smaller arc pieces one to hold the wires of the stepper motor and another one to hold the paper. Lastly, I changed the stepper motor wheel to a slightly bigger one that moved the paper better than the old wheel.
Step 6: Electronics
Finally, you have to connect the motors to the Arduino and upload the code.
We will start with the servo motor, connect the brown wire (the ground wire) to the GND pin, then the red wire (the power wire) to the 5V pin, and the orange wire(the signal wire) to the Dig #5 pin. 259