Skip to content

Parts

Note

Dr. Alvear is finalizing the order; some parts may be swapped for ones we already have.

From your kit

  • Arduino Uno and USB cable
  • Breadboard and jumper wires
  • Servo (the course one is fine for the latch if the MG90S hasn't arrived)
  • HC-SR04 ultrasonic sensor
  • Two 10 kΩ pots (the aiming knob, and a range knob for manual mode)
  • Two pushbuttons (fire, and scan/auto)
  • The speaker, with a 220 Ω and a 100 Ω resistor
  • An LED and a 470 Ω resistor (the arming light)
  • 100 µF electrolytic capacitor (next to the servos)

New for this project

Part Qty What it's for
Wooden mini-catapult kit (or a printed design) 1 The throwing arm and frame, rubber-band powered
28BYJ-48 stepper motor + ULN2003 driver board 1 Turns the turret
Lazy-susan bearing, 4–6 in 1 Lets the turret spin smoothly
MG90S metal-gear servo 2 One pulls the latch, one moves the stop bar
Plywood or MDF, wood screws — The base and the turntable top
Rubber band assortment 1 The catapult's power
Toggle switch 1 The arming switch
5 V supply, 2 A or more 1 Power for the servos and stepper (not the Arduino's 5V pin)
Pom-poms, ping-pong balls, plastic cups — Ammo and targets

Pin map

The whole project uses these pins. Each class adds a few. Don't move things around: every page assumes this map.

Arduino pin Goes to Added in
2 Fire button (other leg to GND) Class 1
3 Arming switch (other side to GND) Class 1
4 470 Ω → arming LED → GND Class 1
9 Latch servo, signal wire Class 1
A0 Pot, middle leg Class 1
8 ULN2003 IN1 Class 2
11 ULN2003 IN2 Class 2
12 ULN2003 IN3 Class 2
13 ULN2003 IN4 Class 2
10 Stop-bar servo, signal wire Class 3
5 HC-SR04 TRIG Class 4
6 HC-SR04 ECHO Class 4
7 220 Ω → 100 Ω → speaker → GND Class 5
A1 Scan/auto button (other leg to GND) Class 4
A2 Second pot (range knob), middle leg Class 6

On the Uno, the Servo library turns off analogWrite() on pins 9 and 10. You don't need analogWrite() in this project, so that's fine.

Power

There are two power rails on your breadboard, and they must stay separate except for ground:

Rail Fed by Powers
Logic rail Arduino 5V and GND Pots, LED, HC-SR04, speaker ground
Motor rail The separate 5 V supply Both servos, the ULN2003 board (+ and − pins)

Join the two ground rails with one wire. Never join the two + rails.

The stepper draws roughly 200 mA whenever it's powered, even standing still, because the library leaves its coils on. Each servo can pull several hundred mA when it starts moving. Together that's more than the Arduino's 5V pin should supply, which is why the motors get their own.

Safety

  • Soft ammo only: pom-poms and ping-pong balls.
  • Rubber bands snap. Keep your face out of line with a stretched band, and replace bands that look cracked.
  • The stepper gets warm. Warm is normal. If it's too hot to keep your finger on, unplug the motor supply and tell Dr. Alvear.
  • Unplug both supplies before you rewire: the USB cable and the 5 V motor supply.