CU ATLAS Practical electronics Motion and Servos

Slides:



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

Servo Background Servos provide control of rotary position Servos are used extensively in the remote control hobby world for: Aircraft (flaps, ailerons,
Basic DC Motor Circuits
Servos The material presented is taken from a variety of sources including:
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Component Identification
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
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.
Understanding the Resistor Color Code
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
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.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
Instrumental Analysis Electrical Components and Circuits.
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.
Experiments Day 1 & 2 Resistors, Potentiometers and Photocells.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
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.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Digital Multimeter (DMM) Used to measure the following: Voltage – DC and AC Current – DC and AC Resistance Capacitance Temperature – w/ extra probe Also.
Servos The material presented is taken from a variety of sources including:
Arduino Circuits and Code. int ledPin = 9; void setup() { pinMode(ledPin, OUTPUT); } void loop() { digitalWrite(ledPin, LOW); delay(1000); digitalWrite(ledPin,
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.
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. SERVOS Precise rotations.
Throttle Arduino RC Receiver Stock Golf Cart Motor Controller Motor 1 PWM signal: Voltage: 0 – 5V Period = 22ms Positive Pulse Width: 1ms – 2ms Digital.
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.
Pulse-Width Modulation: Simulating variable DC output
Microcontroller basics Embedded systems for mortals.
Component Identification
Microcontroller basics
Experiment #1 Measurement of Resistance
Controlling Servos with the Arduino
Resistance A resistor is a component in a circuit that transforms electrical energy into other types of energy. Some resistors like the heating element.
Microcontroller basics
If you want to swing an robot arm or …
Microcontroller basics
Introduction to Servos
Servo Motor.
Using servos.
Microprocessors Tutorial 1: Arduino Basics
Program the robotic arm
CU ATLAS Practical electronics Making NOISE with the 555 TIMER
Exploring more with LED’s and Arduino
Get Your Project Started with Arduino
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:
Introduction to Arduinos
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
JC Technology Resistors.
RESISTANCE.
Secret Door Knock Detector
EET 2261 Unit 12 Controlling Stepper Motors and Servos
Determining Resistor Values
Arduino : Introduction & Programming
Assist. Prof. Rassim Suliyev - SDU 2018
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
UNIT 11: RC-SERVOMOTOR CONTROL
Arduino UMBC IEEE Sekar Kulandaivel
Introduction to Arduinos
Pulse-Width Modulation: Simulating variable DC output
Servo Motor.
Presentation transcript:

CU ATLAS Practical electronics Motion and Servos Wayne Seltzer – Mar 20, 2017

Learning Objectives Consider how physical motion is created and managed in electronics projects Introduction to servo motors Construct a circuit to control a servo Think about how servos may be used in your project(s)

What are some types of physical motion? In small groups, discuss how motion is a part of your ATLAS project(s) or future project ideas. What type of motion? (Linear, rotational, …) What electrical/electronic devices could create this motion? How is the motion controlled?

Servos Servo motors are an easy way to add motion to your electronics projects. Originally used in remote-controlled cars and airplanes, they now crop up in all sorts of other applications. You can instruct these small motors how far to turn, and they do it for you. Most hobby servos use a standard type of 3-pin plug, with the same control signaling, which makes RC servos reasonably interchangeable. Controlled by a pulse train signal between 1 and 2 milliseconds in width. The Pulse Width Modulation hardware available on a microcontroller is a great way to generate servo control signals. Servos (and other motors) can use a lot of power, so be careful about your power supply selection. Source: https://learn.sparkfun.com/tutorials/hobby-servo-tutorial

Pulse Width (milliseconds) SERVO MOTOR SG90 Pulse Width (milliseconds) Angle Position 1.0 ms 0˚ Counterclockwise stop 1.5 ms 90˚ Middle 2.0 ms 180˚ Clockwise stop Source: http://www.ee.ic.ac.uk/pcheung/teaching/DE1_EE/stores/sg90_datasheet.pdf

555 servo controller Servo 5 volts (+) 56Kresistor (green, blue, orange) Servo 100K potentiometer 3.3M resistor (orange, orange, green) 0.022 uF capacitor labeled “223” Ground (-) Source: http://www.555-timer-circuits.com/servo-tester.html

Arduino servo controller Source: https://www.arduino.cc/en/Tutorial/Knob

Arduino servo controller File … Examples … Servo … Thumb #include <Servo.h> Servo myservo;  // create servo object to control a servo int potpin = 0;  // analog pin used to connect the potentiometer int val;    // variable to read the value from the analog pin void setup() {   myservo.attach(9);  // attaches the servo on pin 9 to the servo object } void loop() {   val = analogRead(potpin);            // reads the value of the potentiometer (value between 0 and 1023)   val = map(val, 0, 1023, 0, 180);     // scale it to use it with the servo (value between 0 and 180)   myservo.write(val);                  // sets the servo position according to the scaled value   delay(15);                           // waits for the servo to get there } Source: https://www.arduino.cc/en/Tutorial/Knob

Discussion Topics How might you use a servo in your project(s)? What would the servo(s) move? How would the servo(s) be controlled? Analog vs. Digital controller tradeoffs? What other components might you consider? (motors, stepper motors, solenoids, electromagnets, …)

Resistor Color Code https://learn.sparkfun.com/tutorials/resistors The first two bands indicate the two most-significant digits of the resistor’s value. The third band is a weight value, which multiplies the two significant digits by a power of ten. The final band indicates the tolerance of the resistor. The tolerance explains how much more or less the actual resistance of the resistor can be compared to what its nominal value is. No resistor is made to perfection, and different manufacturing processes will result in better or worse tolerances. For example, a 1kΩ resistor with 5% tolerance could actually be anywhere between 0.95kΩ and 1.05kΩ. Example 4.7kΩ resistor with four color bands Yellow = 4, Violet = 7, Red = 100 multiplier 4700 Ω (= 4.7kΩ )