Arduino Interval Motor

Introduction: Arduino Interval Motor

Description in actual Introduction

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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!

Recommendations

  • LED Strip Speed Challenge

    LED Strip Speed Challenge
  • Sculpting Challenge

    Sculpting Challenge
  • Clocks Contest

    Clocks Contest

2 Discussions

0
bennydm
bennydm

Question 10 months 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

0
bekathwia
bekathwia

Answer 10 months 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: https://learn.adafruit.com/ds1307-real-time-clock-breakout-board-kit

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: https://learn.adafruit.com/adafruit-ina219-current-sensor-breakout 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: https://www.adafruit.com/product/1766
microphone near the compressor: https://www.adafruit.com/product/1063
hall effect sensor and magnet (on some spinning part inside): https://www.adafruit.com/product/158https://www.adafruit.com/product/9

Here's a guide for combining sample sketches in Arduino to build up the code for your project: https://www.instructables.com/id/Mash-Up-Arduino-Code-Samples/