Introduction: LEGO Catapult

About: I am an interaction designer and love physical computing.

The LEGO Catapult is made for kids who don't like taking a pill. I want to make the unwilling behavior more enjoyable for the kids. I love LEGO and Arduino, so I create a project by combining them together. You can launch a pill by pressing a button.

NOTE: I won't provide a perfect A to Z LEGO instructions. Create your own design with LEGO.

Step 1: Go Get Stuff

You will need:

- Materials

- Tools

  • Soldering kits

Step 2: Solder

- Servo motor connects to D3, 5V, and GND.

- Button connects to D5, 5V, and GND (Connect 10K resistor between one leg of button and GND).

Use the PCB board as a little of a PCB board as possible to put the whole materials in the enclosure. Attach the Arduino Nano to the bottom of the PCB board. And turn over the board and attach the button to the third image.

1.Servo motor

The servo motor has three wires. The red wire connects to 5V pin, The black wire connects to GND pin, The yellow wire connects to a digital pin.

The servo motor connects to... Red: 5V, Black: GND, and Yellow: D3 (Digital pin).

2. Button (Refer to first image)

The button has four legs. Solder one leg to a 10KΩ resistor and connect the wires to GND pin. Another leg connects to D5 pin with a wire. and connects to 5V pin. The other leg connects to 5V pin.

3. 9V battery case

It has two wires. The red wire is for "+" and the black wire is for "-". Connect the red wire to VIN pin of Arduino and connect the black wire to GND pin of Arduino.

Step 3: Code

Download the file and upload the code to the Arduino Nano through Arduino program. If you don't have the program, follow the Tips below.

The code is like...

  1. Press a button to rotate the servo wheel to 30 degrees.
  2. Press a button again to rotate the servo wheel to 100 degrees.

Tips:

  1. You need to download the Arduino program on your computer first. You can download here.
  2. Download and click the "*.ino" file.
  3. Connect the Arduino Nano to the computer with a USB cable.
  4. Change settings: "Tools > Board: Arduino Nano."
  5. Press "->" button to upload the code to your Nano.

Step 4: Glue: Servo Wheel

Connect the "C-shape" steel wire and 180-degree servo wheel with the glue gun. After gluing, insert the wheel on the motor (just like a red line of the third picture).

Step 5: Build the Lego

Get a 16x16 plate at shop.lego.com for the bottom. I don't have a full building Instructions. Be creative!

Tips:

1. Big box: 10x12x7 (Brick size) to insert the Arduino stuff.

- Tactile button hole: 2x2 (Brick size).

- Servo motor hole: 5x2 (Brick size).

2. Frame tower (x2): 4x2x11 (Brick size).

3. Lever: 20x2x1 (Brick size).

4. Put a rubber band on the lego block (See the last image).

Step 6: Done

Play it with your kids or friends!

Tips:

- Press the button to hang the lever, and press again to release it.

- Turn off the battery when you don't play.

Design For Kids Challenge

Participated in the
Design For Kids Challenge

Arduino Contest 2017

Participated in the
Arduino Contest 2017

Epilog Challenge 9

Participated in the
Epilog Challenge 9