Controlling a Motor with Cascading Switches

Slides:



Advertisements
Similar presentations
temperature system wiring
Advertisements

Using the servo library living with the lab Libraries are computer programs written to add functionality to Arduino programs. A library to control hobby.
Conductivity sensor implementation living with the lab © 2011 LWTL faculty team.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2012 David Hall.
Waterproofing a thermistor ENGR 121 living with the lab © 2013 David Hall.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
User-defined functions in Arduino sketches living with the lab © 2012 David Hall.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Cascaded switching of a solenoid valve living with the lab transistor relay solenoid valve © 2012 David Hall.
Assembly of conductivity flow loop living with the lab (in preparation for calibrating conductivity sensor)
Switches & whiskers on the Arduino living with the lab lever arm switches mounted to Arduino © 2012 David Hall.
220  470  Gnd5V Currents Through Parallel Resistors 1 living with the lab © 2012 David Hall.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Introduction to Microsoft Excel living with the lab © 2012 David Hall.
Kirchoff’s Current Law (KCL) living with the lab University of Pennsylvania Library and Wikipedia Gustav Kirchoff (left) and Robert Bunsen (right) Bunsen.
Using for loops to control LEDs living with the lab 1 1 arduino.cc the for statement allows us to repeat a block of commands a limited number of times.
Building Circuits.
Pump Fabrication Day Group A will draw their pump
Controlling Servos with the Arduino
Connecting Switches.
Series and Parallel Resistors
Pump Project Requirements
Pump Efficiency Fluid Energy Out + - Electrical Energy In.
Introduction to the Arduino
Why Won’t My Arduino Work?
Robot Challenge Introduction
Troubleshooting Your Multimeter
Using servos.
Servo Library and Functions
Line Following Tips photoresistor circuits
What’s in your kit?.
Pump Project Overview.
Robot Assembly.
How to Use Dial Calipers
Introduction to Transistors
Introduction to the Fishtank
RGB LEDs.
Conservation of Mass Problem
Conductivity Sensor.
Introduction to Transistors
Servo Library and Functions
Troubleshooting Your Multimeter
a few of my favorite sensors
Relays.
using for loops to control LEDs
using the Arduino to make LEDs flash
Acquiring Data from an ADXL335 Accelerometer
Using Photoresistors with an Arduino
Line Following Tips photoresistor circuit
Torque and RPM of Gears
Conservation of Mass Problem
Data Types.
analog and digital measurements
Using “if” statements.
Design Project Forecast
Digital Input from Switches
Implementing Switches Using Interrupts
Arduino: For Loops.
Non-Concurrent Force Systems
IR Object Detection IR detector IR LED IR light reflected off object
Radio Frequency Transmitter and Receiver
Interfacing a Rotary Encoder with an Arduino
Conservation of Mass Problem
Non-Concurrent Force Systems
Evaluating Design Alternatives
Counting Servo Gear Teeth (FS90R Servos)
Static Equilibrium Problem
Reservoir Loop.
Freshman Design Expo Presentations
Gearmotor Efficiency W table top gearmotor pulley string.
Presentation transcript:

Controlling a Motor with Cascading Switches transistor relay DC Motor

DISCLAIMER & USAGE The content of this presentation is for informational purposes only and is intended for students attending Louisiana Tech University only. The authors of this information do not make any claims as to the validity or accuracy of the information or methods presented. Any procedures demonstrated here are potentially dangerous and could result in damage and injury. Louisiana Tech University, its officers, employees, agents and volunteers, are not liable or responsible for any injuries, illness, damage or losses which may result from your using the materials or ideas, or from your performing the experiments or procedures depicted in this presentation. The Living with the Lab logos should remain attached to each slide, and the work should be attributed to Louisiana Tech University. If you do not agree, then please do not view this content. boosting application-focused learning through student ownership of learning platforms

normally open contacts Wiring Setting the digital output on the Arduino to HIGH switches on the transistor The transistor allows current to flow through the relay coil, closing the relay contacts Power from Vin actuates the motor, allowing the shaft to spin 5V C B E Arduino digital pin 1kΩ diodes normally open contacts M coil SPST relay + - Vin

Flyback Diode Why Use the Flyback Diode? When the digital pin on the Arduino goes HIGH, electricity is conducted through the coil of the relay, inducing a magnetic field in the coil Energy is stored in the coil as a magnetic field When the digital pin on the Arduino goes LOW, the decay of the magnetic field induces a current that can be harmful to our electronics (can arc across contacts or send a surge through the system) The diode allows a circular current to be set up in the coil / diode loop so that the magnetic energy stored in the coil can be safely dissipated C B E 5V Arduino digital pin 1kW C B E 5V Arduino digital pin 1kW Bad Wiring Good Wiring

Power Considerations Power to switch transistor Power to switch relay source: max current per digital I/O pin: Power to switch relay source: max current from the voltage regulator: coil current for relay: Power to motor source: max current: Arduino digital I/O pin 20 mA 5V from Arduino (from the on-board voltage regulator) 800 mA 40 mA Vin (6 AA Batteries, 9V) depends on battery type (often lithium ion or NiCad) and remaining life

Implementation + - M 5V Arduino digital pin normally open contacts transistor wire to digital pin 8 5V Diode – silver stripe toward positive side void setup() { pinMode(8, OUTPUT); }   void loop() { digitalWrite(8, HIGH); delay(500); digitalWrite(8, LOW); delay(2000); SPST Relay 5V C B E Arduino digital pin 1kΩ coil normally open contacts SPST relay + - Vin M Vin coil leads contact leads