Arduino Interval Motor

Introduction: Arduino Interval Motor

Description in actual Introduction

Step 1: Introduction

This is a circuit using an Arduino UNO board controls a toy motor that pulses on and off in intervals. This motor can be used for various things such as a fan, a vibrator, etc.

Step 2: Components Required

  • 1 Breadboard
  • 1 Arduino UNO
  • 1 2.2 K Ohm Resistor
  • Jumper Wires
  • 1 Diode
  • 1 Transistor (PNP)
  • 1 Toy motor

Step 3: Assembly

  • Gather all necessary components
  • Place motor, diode, and transistor in separate areas of breadboard
  • Connect resistor to base of transistor
  • Hook up jumper wires as shown in the picture to finish the circuit
  • Upload Arduino UNO code as shown on next part

Step 4: Code for Arduino

Variables can be changed for the delay of the motor and how long it's on and off

1 Person Made This Project!


  • Cold Challenge

    Cold Challenge
  • Baking Contest

    Baking Contest
  • Block Code Contest

    Block Code Contest



Question 3 years ago on Step 4

I would like to measure the time the airco is on during the day with an Arduino and connected to a real time clock.
As a trigger I would use a current probe. Start: "current goes above one amp", Stop: "current is below one amp". Can somebody help? Thanks


Answer 3 years ago

While I can't point you to a project that does exactly what you describe, here are a few resources that might help guide you:

realtime clock tutorial:

as for measuring amperage, you'll need to do it on DC part of the circuit, not the AC wall power. Here's a current sensor: but high power is no joke-- I wouldn't attempt this route if you are a beginner.

There are a few other sensor options you might consider:
vibration sensor:
microphone near the compressor:
hall effect sensor and magnet (on some spinning part inside):

Here's a guide for combining sample sketches in Arduino to build up the code for your project: