Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

EMS1EP Lecture 8 Pulse Width Modulation (PWM)
Controlling Motors OBEY ME!. On-Off Control 1. Switch control.
Basic DC Motor Circuits
Indian Institute of Technology Hyderabad ROBOTICS LINE FOLLOWER HARI KISHAN TANDEY – ES12B1008 DILIP KONDAPARTHI – ES12B1010 SAI KARTIK – CE12B1015.
PHY 235 Robotics Workshop Day 6 DC Motors, H-Bridge Board, Simple Lego/Boe Bot.
Servos The material presented is taken from a variety of sources including:
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Part 1: Introduction FRC Introduction  FRC 2907 since 2008  Each area of the robot has a team assigned  The Electronics team is headed this year.
L.
The Solar Tracker. Solar Tracking Project Team Members: –Cristian Ruvalcaba –Ken Seal –David Clark –Mark McKinley –Richard DeJarnatt.
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.
Secret Door Knock Detector
SENIOR DESIGN 10/16.
Introduction.
Embedded Programming and Robotics Lesson 1 Basic Electricity and Electronics Transistor Basics Lesson 1 -- Basic Electricity1.
Micromouse Meeting #3 Lecture #2 Power Motors Encoders.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Microprocessors Tutorial 2: Arduino Robotics
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Introduction to Robotics Electronics and Robotics Club.
Pulse Width Modulation (PWM) LED Dimmer Circuit
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.
ENGR 6806 – Motor Control Prepared By: Rob Collett September 15, Office: EN2074.
Dr. John Helferty.  Arduino  Wi-Fi Shield  Relay  H-Bridge  Standard Servos  DC Fans  Impeller  Battery  PCB  Headers.
Microcontroller Hands-on Workshop #4 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 14, 2009.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
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.
Motors & Motor Drivers ECE 450.
Electrical Actuation System Lecture 9 (Chapter 9).
Servos The material presented is taken from a variety of sources including:
Microprocessors Tutorial 2: Arduino Robotics. Agenda 1. Robot Anatomy 2. Sensor Review 3. PWM 4. MAKE: Fade 5. Motors 6. H Bridge 7. Robot Control library.
Automatic accident avoiding system PROJECT MEMBERS MUTHUKUMAR.K (05ME33) SAKTHIDHASAN.S (05ME39) SAKTHIVEL.N (05ME40) VINOTH.S (05ME56) PROJECT GUIDE:
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
PIC18F4431. PIC18F1330 Infrared Encoder/Decoder.
Robot Project by Ahmad Shtaiyat Supervised by Dr. Salem Al-Agtash.
Motor TYWu.
Microcontroller basics Embedded systems for mortals.
BLDC Motor Speed Control with RPM Display. Introduction BLDC Motor Speed Control with RPM Display  The main objective of this.
Istituto Tecnico Industriale A.Monaco EURLAB Moving a robot simple example program to control a DC-Motor Next - Press the button (left)
Istituto Tecnico Industriale A.Monaco EURLAB Control a Servo Motor If you want to swing an robot arm or … steer a robot you need a special motor (Servo).
Sitarambhai Naranjibhai Patel Institute Of Technology & R.C.
DC motor principles Speed control Direction Stepper motor principles
Pulse-Width Modulation: Simulating variable DC output
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
Microcontroller basics Embedded systems for mortals.
Arduino Application: Speed control of small DC Motors
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Motors & Motor Controllers
Introduction to Motors, servos and steppers
Controlling Servos with the Arduino
Microcontroller basics
If you want to swing an robot arm or …
Microcontroller basics
ARDUINO LINE FOLLOWER ROBOT
Arduino - Introduction
Electric Motors.
Arduino Application: Speed control of small DC Motors
Introduction to H-Bridge
Servos and Stepper Motors
Introducing the Arduino Uno
Arduino : Introduction & Programming
Sensors and actuators Sensors Resistive sensors
UNIT 11: RC-SERVOMOTOR CONTROL
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009

2 Agenda for Today  Quick Review  More sensors (Infrared)  Introduction to pulse width modulation (PWM)  Controlling motors with the Arduino  Begin working on robot

3 Today’s Kit 1.Arduino Microcontroller/ USB Cable 2.Breadboard 3.1x Red LED 4.Infrared Sensor 5.Wires 6.Soldering Iron w/ solder 7.Freeduino Motor Controller

4 Quick Review - Code int ledPin = 13; // LED connected to digital pin 13 void setup() { pinMode(ledPin, OUTPUT); // sets the digital pin as output } void loop() { digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(1000); // waits for a second }

5 Quick Review - Breadboard

6 Infrared Proximity Sensor  Send infrared light through IR-LEDs, which is then reflected by any object in front of the sensor.

7 Infrared Proximity Sensor  Sender: IR Emitter LED  Receiver: IR Detector LED w/ an operational amplifier.

8 Solder Wires to IR Sensor  Left pin (1) – SIGNAL  Middle pin (2) – GROUND  Right pin (3) – POWER( +5 volts) 1 2 3

9 How to Solder Wires to IR Sensor 1. Warm up the iron 2. Prepare a moisten sponge 3. Apply heat to the lead. 4. Apply solder to the lead 5. Allow solder to cool down 6. Inspect the connection

10 IR connected to arduino - CODE

11 Pulse Width Modulation  PWM signal is a digital square wave where the fraction of the time the signal is on can be varied between 0 and 100%.  Call analogWrite(pin, dutyCycle), where dutyCycle is a value from 0 to 255.  Use one of the PWM pins (3, 5, 6, 9, 10, or 11).

12 Applications of Pulse Width Modulation Dimming an LED Generating audio signals. Generating a modulated signal, for example to drive an infrared LED for a remote control. Providing variable speed control for motors.

13 Motors Electromechanical device that converts electrical energy to mechanical energy

14 Motors! DC Motor Servo Motors Stepper Motor

15 DC Motor Pros Simple & cheap (only 2 wires) Fast & can be geared down for higher torque Easy to reverse Speed control through PWM Cons No built-in feedback

16 Servo Motor (DC motor w/ feedback) Pros Simple (3 wire) and “Standard” accurate even under load High torque Cons Slower More expensive

17 Servo Motor

18 Simple Motor Driver Motors are inductive loads and require a high current Use a transistor to switch the high-current load

19 H-Bridge  An H-bridge is an electronic circuit which enables a voltage to be applied across a load in either direction.  Often used in robotics and other applications to allow DC motors to run forwards and backwards.  H-bridges are available as integrated circuits, or can be built from discrete components (i.e. four switches)

20 H-Bridge S1 and S4 closed - positive voltage applied across the motor. S2 and S3 closed - voltage is reversed, negative voltage applied. S1 and S2 (or S3 and S4) closed – short circuit!

21 Freeduino Motor Controller Control 2 motors from your Arduino SN754410NE motor driver Board and Arduino pinout: Motor A Direction - Arduino Digital pin 13 Motor A Speed (PWM) - Arduino Digital pin 10 Motor B Direction - Arduino Digital pin 12 Motor B Speed (PWM) - Arduino Digital pin 9

22 Assembling Freeduino Motor Controller GO TO: TYPE: FREEDUINO MOTOR CLICK ON THE FIRST LINK CLICK THE LINK: “THIS GUIDE” Or Type the following in the address bar: arduino-motor-shield/

23 Soldering Components to PCB

24 Robot Design  Discuss Robot Plans with Team Members!

25 Questions or Comments?