Arduino UMBC IEEE Sekar Kulandaivel Week 3: Motor Control w/ H-Bridges

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
© red ©
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
Understanding the Resistor Color Code
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
1 Motors & Motor Controllers ECE AC or DC Motors AC –Few robots use AC except in factories –Most of those that use AC first convert to DC DC –Dominates.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
© The McGraw-Hill Companies, Inc McGraw-Hill 1 PRINCIPLES AND APPLICATIONS OF ELECTRICAL ENGINEERING THIRD EDITION G I O R G I O R I Z Z O N I C.
03 September 2007 Digital I/O Wiring Exercise. Copyright © 2007 Alien Technology Corporation. Advanced Academy Student use only. Not for redistribution.
Instrumental Analysis Electrical Components and Circuits.
Experiments Day 1 & 2 Resistors, Potentiometers and Photocells.
Experiments Day 1 Resistors.. Electronic Technology Definition: The technology of using small amounts of electricity for controlling, detecting, collecting,
Cascade switching of an LED EAS 199B Winter 2013.
Pulse Width Modulation (PWM). 100% Pulse Width Modulation (PWM) 0% On the chipKIT there are 490 periods per second. Use analogWrite(pin, value) to control.
Digital Multimeter (DMM) Used to measure the following: Voltage – DC and AC Current – DC and AC Resistance Capacitance Temperature – w/ extra probe Also.
Resistor Colour Code Why the Colour Code? The Colour code was developed to overcome two basic problems; Difficult to print and see numbers on a.
Daily Sprint START 1. If a computer uses 3A of current and is supplied with 120V of voltage, then what is the total resistance of the computer? 2. A circuit.
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Electrical Resistance University High School. Conductors Possess a great ability of conducting electricity Contain free electrons that flow easily through.
Arduino libraries Datatekniker Udvidet hardware/software.
CONDUCTION, INSULATION AND PROTECTION. CONDUCTION Energy (eg. Electrical) transfer from one material to another by direct contact. Conductors are materials.
Microcontroller basics Embedded systems for mortals.
Using Your Arduino, Breadboard and Multimeter ME 120 Fall 2013 Work in teams of two!
LAB1 TYWU. Devices Dip Switch (4 Switches) Triple Output LED (RGB) –Common Cathode.
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
Microcontroller basics Embedded systems for mortals.
Motors & Motor Controllers
Microcontroller basics
Experiment #1 Measurement of Resistance
Sparkfun Electronics ATtiny85 Arduino Quick Reference Sheet
CU ATLAS Practical electronics Motion and Servos
Microcontroller basics
How to read the strength of a resistor
Cascade switching of an LED
European Robotic LABoratory
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Controlling a Motor with Cascading Switches
Resistors (466) Chapter 14.
How to avoid catching things on fire.
Introduction to Arduinos
Topics: Analog/Digital Read Relay control 7 segment control Buzzer
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
RESISTOR COLOR CODE GUIDE
Digital Multimeter (DMM)
Exam 1 Review Dr. Hugh Blanton ENTC 2310.
analog and digital measurements
Fundamentals of Electrical Circuits
Arduino : Introduction & Programming
Arduino Practice: Photoresistors, PWM, Potentiometers, Motors
What Color is it?.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
Arduino UMBC IEEE Sekar Kulandaivel
Arduino at UMBC Sekar Kulandaivel Week 4: LCD & Serial
Electronics Resistance Practice Problems R LabRat Scientific © 2018.
Introduction to Arduinos
Arduino UMBC IEEE Sekar Kulandaivel
Arduino程式範例.
Interrupts.
Presentation transcript:

Arduino Microcontroller Workshop UMBC Institute of Electrical and Electronics Engineers Arduino UMBC IEEE Sekar Kulandaivel sekark1@umbc.edu Week 3: Motor Control w/ H-Bridges Technical Skills Series Presentation April 15th – 16th, 2014

Topics to Cover Diodes & Transistors External Voltage Sources MOSFETs and H-Bridges Motor Control (Speed & Direction)

Metal-Oxide-Semiconductor Field-Effect Transistor (MOSFET) Gate Source Drain

Battery Motor Made with Fritzing.org

Using Transistors Create constants and variables. Set inputs and outputs for setup() function. Read from switch and write to transistor pin.

Important Functions int val, time; void setup() { … } void loop() { … } Serial.begin(9600); Serial.print(“Hello”); Serial.println(“Hi”); delay(1000); pinMode(8, INPUT); pinMode(9, OUTPUT); val = digitalRead(8); digitalWrite(9, out); val = analogRead(A0); analogWrite(9, out); time = millis(); map(var, testLow, testHigh, mapLow, mapHigh);

Motor Driver (H-Bridge) Enable 1,2 VCC1 Input 1 Input 3 Output 1 Output 3 GND GND GND GND Output 2 Output 4 Input 4 Input 2 VCC2 Enable 3,4

Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

Input 1 Input 2 M Vin Output 1 Output 2 Design from Wikipedia

Battery Motor Made with Fritzing.org

Using H-Bridges Create constants and variables. Set inputs and outputs for setup() function. Read from on-off and direction switch. Changing the direction. Going in one direction Going in other direction. Enabling the H-bridge. Start or stop.

Important Functions int val, time; void setup() { … } void loop() { … } Serial.begin(9600); Serial.print(“Hello”); Serial.println(“Hi”); delay(1000); pinMode(8, INPUT); pinMode(9, OUTPUT); val = digitalRead(8); digitalWrite(9, out); val = analogRead(A0); analogWrite(9, out); time = millis(); map(var, testLow, testHigh, mapLow, mapHigh);

Color 1st Digit 2nd Digit Multiplier 4th band is Tolerance. L R Color 1st Digit 2nd Digit Multiplier Black 100 Brown 1 101 Red 2 102 Orange 3 103 Yellow 4 104 Green 5 105 Blue 6 106 Violet 7 107 Gray 8 108 White 9 109

330Ω 3 x 101 = 10kΩ 1 x 103 = 2kΩ 2 x 102 = 1MΩ 1 x 105 =