Working with Arduino: Lesson #4: Servos EGN1007. Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino.

Slides:



Advertisements
Similar presentations
Sensing and Control.
Advertisements

Electrical team Arduino tutorial I BY: JOSHUA arduini
Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Servos The material presented is taken from a variety of sources including:
Servos The material presented is taken from a variety of sources including:
EET 2261 Unit 13 Controlling Stepper Motors and Servos  Read Almy, Chapter 21.  Lab #13 due next week.  Final Exam next week.
Components of a servomotor are: - a DC electric motor, - gears with an output shaft; - position-sensing mechanism; - control circuitry. Robotics and Automation.
Living with the Lab Using servos with an Arduino EAS 199A Fall 2011.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
Working with Arduino: Lesson #2: Variable, Photo, and Force Sensitive Resistors EGN1007.
Introduction.
Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.
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.
Servo Motors # A servo is a motor that you can position at any angle very accurately. # Servos have a limited servo range; most servos have a range of.
1 Servo Motor. 2 Overview A servo motor is a motor that is only capable of rotating 180 degrees A servo motor is controlled by giving it an angle to proceed.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
L.C. Technology Servo Motor Control / Genie Software
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Working with Arduino: Lesson #3: Force Sensitive Resistors EGN1007.
TechKnowTone Contents: Servo Features Servo Connections Coding Library Sample Sketch Questions …Applications… Arduino Coding – Servo Motors.
Manufacturing Advanced Design Applications Manufacturing © 2014 International Technology and Engineering Educators Association, STEM  Center for Teaching.
Controlling the Outside World
Introduction to the Arduino
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
Motors & Motor Drivers ECE 450.
Solar Energy Lab 1 ENGR Today's Learning Objectives  After today's class, students will be able to: Describe and build both a calibration and solar.
Servos The material presented is taken from a variety of sources including:
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Detection Circuit ENGR Pre Lab.
Norwood Elementary Science SCHEMATIC DIAGRAM SYMBOLS.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
STEERING TEAM: DRIFT KINGS ELEAZAR LUCIANO MATT HART SHANE MILLS STEVE GILLILAND.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Servo Motor Control Using Arduino Instructor: Dr Matthew Khin Yi Kyaw.
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).
INTERNET OF EVERYTHING SDU 2016 Week 9. Physical Output  Make things move by controlling motors with Arduino  Servo-motors  Rotary actuator that allows.
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
ARDUINO UNO The Arduino uno is a microcontroller board based on the ATmega328. It has 14 digital Input / Output pins (of which 6 can be used as PWM outputs),
Motors & Motor Controllers
Servo’s and Motor’s with Arduino
Controlling Servos with the Arduino
CU ATLAS Practical electronics Motion and Servos
Microcontroller basics
If you want to swing an robot arm or …
Introduction to Servos
Servo Motor.
cyBorg 1.0 Project by Team ROBOTECH The Green PAFIANS
Microprocessors Tutorial 1: Arduino Basics
Program the robotic arm
Resistance By the end of this lesson, you will be able to…
Servos The material presented is taken from a variety of sources including:
Arduino - Introduction
Control a motors angular position with a flex sensor
Servos The material presented is taken from a variety of sources including:
Arduino and Grove LET’S START.
Roller Coaster Design Project
Servos The material presented is taken from a variety of sources including:
Schematic Diagrams: Electrical Component Symbols
Continuing with LED’s and Arduino
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
EET 2261 Unit 12 Controlling Stepper Motors and Servos
Arduino : Introduction & Programming
Assist. Prof. Rassim Suliyev - SDU 2018
Sensors and actuators Sensors Resistive sensors
Aeroponic Engineering and Vertical Farming
UNIT 11: RC-SERVOMOTOR CONTROL
Lab #1: Getting Started.
Servo Motor.
Presentation transcript:

Working with Arduino: Lesson #4: Servos EGN1007

Learning Goals Learning Goals: The student will be able to: 1.Build a complete circuit using the Arduino microprocessor 2.Identify important electrical components in a circuit and explain their use 3.Identify and apply specific elements in “C” code used to run a program in conjunction with how a circuit is built

Servos A servo takes a timed pulse and converts it to an angular position. How do you communicate the angle at which the servo should turn? The control wire is used to communicate the angle. The angle is determined by the duration of a pulse that is applied to the control wire. This is called Pulse Coded Modulation. The servo expects to see a pulse every 20 milliseconds (.02 seconds). The length of the pulse will determine how far the motor turns. A 1.5 millisecond pulse, for example, will make the motor turn to the 90 degree position (often called the neutral position). If the pulse is shorter than 1.5 ms, then the motor will turn the shaft to closer to 0 degrees. If the pulse is longer than 1.5ms, the shaft turns closer to 180 degrees.

Schematic Symbol? There is no symbol for a servo because it is part of an EXTERNAL circuit. The servo itself will be plugged into 3 ports somewhere on the circuit board, often represented by a 3-pin header.

Let’s Begin 1.Place the 3 pin header into E5,6, & 7. 2.Plug the servo into the header 3.Run a wire from Analog 9 to A7. 4.Run a wire from the 5V to A6 5.Run a black wire from A5 to the ground(GND).

Programming our sketch Let’s define 1 variable as an integer.

Programming our sketch Just like before we need to set our SERVO as an output.

Programming our sketch We begin by creating a variable called “pulsetime” which will record the time of the pulse that corresponds to than angular position you want. Compile and download

Your turn! Using what you have learned in this lesson AND the past lessons, write a short program that controls servo using a potentiometer. Write your code on the lesson worksheet, draw the schematic, and explain your code. Hint: The POT reads values from 0 to 1024 and the servo only understands values from 0 to 180