Projects / Model Ferris wheel

Model Ferris wheel

Beginner1.3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. NANO

    Make a light wheel

    From card, with small cups, and fit it to the motor shaft.

  2. NANO

    Wire the ULN2003 board

    IN1 to IN4 to D8 to D11, power from the 5 V supply, share the ground.

  3. NANO8.3 mA

    Wire the pot, button and LED

    Pot to A0, button to D2, LED through 220 ohms to D3.

  4. NANO

    Upload the sketch

    The wheel starts stopped.

  5. NANO

    Turn the pot up

    The wheel speeds up gently and the lamp glows brighter.

  6. NANO

    Press the button

    The wheel reverses.

  7. NANO

    Turn the pot down

    It slows smoothly to a stop.

In short

How do you build a model Ferris wheel?

A small stepper turns a model Ferris wheel slowly and smoothly, and a knob sets the speed from stopped to a gentle spin. A paper or card wheel, skewers and a stepper make a charming desk toy. Keep hair and fingers clear of the wheel. You need Arduino Nano, 28BYJ-48 Stepper Motor, ULN2003 driver board, 5 V 2 A USB adapter, Potentiometer 10 kΩ, Tactile push button 6 mm, LED 5 mm red, Resistor 220 Ω, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm). It takes 7 steps and about 80 minutes.

Level
Beginner
Time
About 80 min
Parts
10

Parts list

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
ULN2003 IN1, IN2, IN3, IN4Nano D8, D9, D10 and D11Step pulses to the coil driver
ULN2003 board + and -5 V supply and Nano GNDMotor power, grounds joined with the Nano
Stepper plugULN2003 board socketFive-wire motor connector
Pot outer legsNano 5V and GNDSupply for the speed knob
Pot middle legNano A0Sets the speed
Direction buttonNano D2 and GNDReverses the wheel
Lamp LED long legNano D3 through a 220 ohm resistor, short leg to GNDGlows brighter as it spins

Code

The 28BYJ-48 stepper has gears inside, so it turns the wheel slowly and with good strength. The AccelStepper library makes the steps, and the pot sets a target speed that the sketch follows gently: each twentieth of a second it moves the real speed five percent of the way towards the target, so the wheel eases up and slows smoothly instead of jerking. A small dead zone at the bottom of the pot makes sure it can be stopped. The button reverses the direction, and the lamp LED glows brighter the faster the wheel turns, which gives a nice night-time look. The stepper must not be powered from the Nano's 5 volt pin, because it takes more current than that pin should supply, so it has its own 5 volt supply with the ground joined to the Nano's ground. Install "AccelStepper" by Mike McCauley from the Library Manager. Keep the wheel light, keep hair and fingers clear, and switch the supply off when you are not watching, as the driver chip and motor warm up. The pin order 8, 10, 9, 11 in the code matches IN1 to IN4 wired to D8 to D11. Try adding a second lamp or a gentle stop that waits at the bottom of the wheel.

Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).

// Library: AccelStepper by Mike McCauley.
#include <AccelStepper.h>

AccelStepper motor(AccelStepper::HALF4WIRE, 8, 10, 9, 11);   // IN1, IN3, IN2, IN4 order

const uint8_t POT = A0;
const uint8_t BTN = 2;
const uint8_t LAMP = 3;
const float MAX_SPEED = 500.0;           // half steps a second, gentle for this motor
const float SMOOTHING = 0.05;

float speedNow = 0;
int dir = 1;
bool prevBtn = false;
unsigned long lastUpdate = 0;

void setup() {
  pinMode(BTN, INPUT_PULLUP);
  pinMode(LAMP, OUTPUT);
  motor.setMaxSpeed(MAX_SPEED);
  Serial.begin(9600);
}

void loop() {
  unsigned long now = millis();
  if (now - lastUpdate >= 20) {
    lastUpdate = now;
    int raw = analogRead(POT);
    float target = (raw < 30) ? 0 : (raw - 30) * MAX_SPEED / 993.0;   // dead zone at the bottom
    speedNow += (target - speedNow) * SMOOTHING;                      // gentle speed changes
    if (speedNow < 2) speedNow = 0;
    motor.setSpeed(dir * speedNow);
    analogWrite(LAMP, (int)(speedNow * 255.0 / MAX_SPEED));

    bool b = (digitalRead(BTN) == LOW);
    if (b && !prevBtn) dir = -dir;
    prevBtn = b;
  }
  motor.runSpeed();                       // steps when it is time
}

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Pot at the bottomWheel stopped and lamp off
Pot turned upSmooth speed up, lamp brightens
Button pressDirection reverses
Pot turned downSmooth slow down
SpeedA few turns a minute at most

If it does not work

Motor only buzzes or shakes

Check the pin order IN1 to IN4 matches the code.

Wheel does not turn

Check the 5 V supply is on and the ground is joined with the Nano.

Wheel is too fast

Lower MAX_SPEED in the code.

Motor gets warm

Normal for this motor, switch it off when you are not watching.

Wheel wobbles

Centre the card on the shaft and keep it light.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the model Ferris wheel?

Arduino Nano, 28BYJ-48 Stepper Motor, ULN2003 driver board, 5 V 2 A USB adapter, Potentiometer 10 kΩ, Tactile push button 6 mm, LED 5 mm red, Resistor 220 Ω, Breadboard 830 Tie Points and Jumper wires male to male (40 pcs, 20 cm).

How long does the model Ferris wheel take to build?

About 80 minutes for a beginner maker, in 7 steps.

How do I know the model Ferris wheel works?

Pot at the bottom: Wheel stopped and lamp off. Pot turned up: Smooth speed up, lamp brightens. Button press: Direction reverses.

Motor only buzzes or shakes: what should I check?

Check the pin order IN1 to IN4 matches the code.

Wheel does not turn: what should I check?

Check the 5 V supply is on and the ground is joined with the Nano.

Wheel is too fast: what should I check?

Lower MAX_SPEED in the code.

Motor gets warm: what should I check?

Normal for this motor, switch it off when you are not watching.