Programming a Servo. Servo. Red Wire. Black Wire. White Wire
|
|
- Andrew Cobb
- 5 years ago
- Views:
Transcription
1 Programming a Servo Learn to connect wires and write code to program a Servo motor. If you have gone through the LED Circuit and LED Blink exercises, you are ready to move on to programming a Servo. A Servo is a motor that is programmable. There are 2 different types of Servos that we use here in the lab, a full rotation (or continuous) Servo and a regular (or position based) Servo. If you purchased a kit online, it may only have come with a regular Servo, but you could buy a full rotation Servo online for around $10 if you wanted one. Arduino Servo Red Wire Black Wire White Wire 1. Start by opening a new sketch and erasing everything that is already there. Also don t forget to connect to the right port!
2 2. Coding a Servo is actually quite complicated as it needs a very unique signal in order to make it work. However, others before us have made some shortcuts for us to make it a bit easier. They made a library that we can reference Programming that controls our Servo a Servo more easily. To use this library, go to Sketch -> Include Library and find and click on Servo. It should come up on your screen as #include <Servo.h>. This means that we are including the Servo library in this project. 3. Use your arrow key to arrow down so you are on the next line, and then type in Servo myservo;. This names your servo myservo but you really could call it whatever you want. Please note, if you decide to change the name of your servo, be sure to change it everywhere and not just here! 4. Next press Enter twice to move your cursor down, then type in void setup(){ and press enter. When you press enter, a closed bracket should appear at the bottom of the code. These brackets are like hamburger buns, you can decide what you want to put on your burger, but you always need a top and bottom bun. Anything you type between the open bracket and the closed bracket will be part of the setup.
3 5. Our set up has one line of code, type in myservo.attach(9);. This means that we will attach the signal wire of our servo to pin 9. Keep this in mind later when we go to connect our wires! Note that we use pin 9 because Programming it has the ~ symbol a next Servo to it which means that it generates the PWM signal needed for the Servo. 6. Use your arrow key to arrow down, and then press Enter twice. We want the closed bracket to remain where it is but our cursor to move down the page. 7. Next we will code the action phase of our servo,. Again, once you have typed this in press enter and you will get a closed bracket at the bottom of the page.
4 8. The last part of the code is the motion. There are 4 lines of code that will make up the action of our servo. The first line, myservo.write(0); tells the big servo to spin fast to the left and tells the small servo to go to 0 degrees. Programming The next line, a delay(2000); Servo tells the Arduino to wait before reading the next line of code (so the big Servo would keep spinning to the left for 2 seconds and the small Servo would stay at 0 degrees for 2 seconds). Next, myservo.write(180); tells the big servo to spin fast to the right and tells the small servo to go to 180 degrees. The last line, delay(2000); again tells the Arduino to wait for 2 seconds before reading the next line of code (so the big Servo would keep spinning to the right for 2 seconds and the small Servo would stay at 180 degrees for 2 seconds. So the value we put in myservo.write( ); tells it the motion to do and the delay( ); essentially tells it how long to do that motion. 9. Once all of your code is written, upload the code to your Arduino. If you get any errors, see troubleshooting below.
5 1. Connect your wires to Programming your Servo. The red wire a Servo connects to the red wire, the black wire connects to the black wire, and the white wire connects to the white wire. (Remember, the color of the wire helps us to keep things straight. This is especially true with a Servo where the manufacturer has made red to be positive and black to be negative.) Next, connect these wires to the Arduino. Connect the red wire to Vin or 5V (positive), connect the black wire to GND (negative) and connect the white wire to pin 9 (the signal). Note: in my picture the white wire is actually yellow, but they behave the same. You may also have a brown wire instead of a black wire or an orange wire instead of a red wire, but again they behave the same. Your servo should now be moving. Congratulations! If you have multiple Servos, test them and see how the same code affects the different Servos. If you get an error when you upload, download the Troubleshooting document and try to find a solution. Most common problems: missed semicolons, missed brackets, misspelled words, and not connecting to the board. If your code uploads but the servo does not move, check that your wires are all in the right place. Next, check that your setup looks exactly like the code above. Often students change the number in myservo.attach( ); but if you change this value you will need to move your white wire to that number. You also must choose a number that can generate a PWM signal, these are the numbers with the ~ symbol next to them (3, 5, 6, 9, 10, and 11). 1. Try to make your big servo spin to the left for 3 seconds and to the right for 1 second. 2. Try to make your regular servo go to 0 for 1 second, 45 for 1 second, 90 for 1 second, 135 for 1 second, 180 for 1 second, and then back, stopping at each of the above mentioned degrees for 1 second each. For example, 0, 45, 90, 135, 180, 135, 90, 45, 0, etc. 3. Try to make your big Servo spin slow to the left forever.
6 4. Try a new function, random! In myservo.write( ); type in random(0, 180) and this will give a random value between 0 and 180, meaning that your regular Servo will go to a random degree and your full rotation Servo Programming will spin a random a Servo direction and speed. Keep the delay big enough to see the effect, either 1000 or 2000, or make the delay random too! Note: Only the loop is shown in the solutions below, as the setup and pre-setup are the same for all solutions. Challenge 1 Solution: myservo.write(0); delay(3000); myservo.write(180); Challenge 2 Solution: myservo.write(0); myservo.write(45); myservo.write(90); myservo.write(135); myservo.write(180); myservo.write(135); myservo.write(90); myservo.write(45); Challenge 3 Solution: myservo.write(80); Challenge 4 Solution: myservo.write(random(0,180)); delay(2000);
Programming 2 Servos. Learn to connect and write code to control two servos.
Programming 2 Servos Learn to connect and write code to control two servos. Many students who visit the lab and learn how to use a Servo want to use 2 Servos in their project rather than just 1. This lesson
More informationLED + Servo 2 devices, 1 Arduino
LED + Servo 2 devices, 1 Arduino Learn to connect and write code to control both a Servo and an LED at the same time. Many students who come through the lab ask if they can use both an LED and a Servo
More informationServo Sweep. Learn to make a regular Servo move in a sweeping motion.
Servo Sweep Learn to make a regular Servo move in a sweeping motion. We have seen how to control a Servo and also how to make an LED Fade on and off. This activity will teach you how to make a regular
More informationMechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators
Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators Ahmed Okasha, Assistant Lecturer okasha1st@gmail.com Objective Have a
More informationCoding with Arduino to operate the prosthetic arm
Setup Board Install FTDI Drivers This is so that your RedBoard will be able to communicate with your computer. If you have Windows 8 or above you might already have the drivers. 1. Download the FTDI driver
More informationEE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino
EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs 10-11 Introduction to Arduino In this lab we will introduce the idea of using a microcontroller as a tool for controlling
More information100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS
05 POTENTIOMETER SERVO MOTOR MOTOR ARM 100UF CAPACITOR MALE HEADER PIN (3 pins) INGREDIENTS 63 MOOD CUE USE A SERVO MOTOR TO MAKE A MECHANICAL GAUGE TO POINT OUT WHAT SORT OF MOOD YOU RE IN THAT DAY Discover:
More informationUsing Servos with an Arduino
Using Servos with an Arduino ME 120 Mechanical and Materials Engineering Portland State University http://web.cecs.pdx.edu/~me120 Learning Objectives Be able to identify characteristics that distinguish
More informationLearning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011
Using servos with an Arduino EAS 199A Fall 2011 Learning Objectives Be able to identify characteristics that distinguish a servo and a DC motor Be able to describe the difference a conventional servo and
More informationFABO ACADEMY X ELECTRONIC DESIGN
ELECTRONIC DESIGN MAKE A DEVICE WITH INPUT & OUTPUT The Shanghaino can be programmed to use many input and output devices (a motor, a light sensor, etc) uploading an instruction code (a program) to it
More informationCONSTRUCTION GUIDE Robotic Arm. Robobox. Level II
CONSTRUCTION GUIDE Robotic Arm Robobox Level II Robotic Arm This month s robot is a robotic arm with two degrees of freedom that will teach you how to use motors. You will then be able to move the arm
More informationA servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:
Project 4: Arduino Servos Part 1 Description: A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads: a. Red: Current b. Black:
More informationParts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module
Robotic Arm 1 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the Sten-Bot kit against component defects.
More informationJ. La Favre Using Arduino with Raspberry Pi February 7, 2018
As you have already discovered, the Raspberry Pi is a very capable digital device. Nevertheless, it does have some weaknesses. For example, it does not produce a clean pulse width modulation output (unless
More informationFor this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.
Physics 222 Name: Exercise 6: Mr. Blinky This exercise is designed to help you wire a simple circuit based on the Arduino microprocessor, which is a particular brand of microprocessor that also includes
More informationRodni What will yours be?
Rodni What will yours be? version 4 Welcome to Rodni, a modular animatronic animal of your own creation for learning how easy it is to enter the world of software programming and micro controllers. During
More informationArduino: Sensors for Fun and Non Profit
Arduino: Sensors for Fun and Non Profit Slides and Programs: http://pamplin.com/dms/ Nicholas Webb DMS: @NickWebb 1 Arduino: Sensors for Fun and Non Profit Slides and Programs: http://pamplin.com/dms/
More informationLesson4 Obstacle avoidance car
Lesson4 Obstacle avoidance car 1 Points of this section The joy of learning, is not just know how to control your car, but also know how to protect your car. So, make you car far away from collision. Learning
More informationObjectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink
Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink By the end of this session: You will know how to use an Arduino
More informationSetup Download the Arduino library (link) for Processing and the Lab 12 sketches (link).
Lab 12 Connecting Processing and Arduino Overview In the previous lab we have examined how to connect various sensors to the Arduino using Scratch. While Scratch enables us to make simple Arduino programs,
More informationArduino and Servo Motor
Arduino and Servo Motor 1. Basics of the Arduino Board and Arduino a. Arduino is a mini computer that can input and output data using the digital and analog pins b. Arduino Shield: mounts on top of Arduino
More informationAssignments from last week
Assignments from last week Review LED flasher kits Review protoshields Need more soldering practice (see below)? http://www.allelectronics.com/make-a-store/category/305/kits/1.html http://www.mpja.com/departments.asp?dept=61
More informationStenBOT Robot Kit. Stensat Group LLC, Copyright 2018
StenBOT Robot Kit 1 Stensat Group LLC, Copyright 2018 Legal Stuff Stensat Group LLC assumes no responsibility and/or liability for the use of the kit and documentation. There is a 90 day warranty for the
More informationLab 2: Blinkie Lab. Objectives. Materials. Theory
Lab 2: Blinkie Lab Objectives This lab introduces the Arduino Uno as students will need to use the Arduino to control their final robot. Students will build a basic circuit on their prototyping board and
More informationHAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1
HAW-Arduino Sensors and Arduino 14.10.2010 F. Schubert HAW - Arduino 1 Content of the USB-Stick PDF-File of this script Arduino-software Source-codes Helpful links 14.10.2010 HAW - Arduino 2 Report for
More informationComputational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech
Computational Crafting with Arduino Christopher Michaud Marist School ECEP Programs, Georgia Tech Introduction What do you want to learn and do today? Goals with Arduino / Computational Crafting Purpose
More informationURM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)
URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001) From Robot Wiki Contents 1 Introduction 2 Specification 2.1 Compare with other ultrasonic sensor 3 Hardware requierments 4 Tools used 5 Software 6 Working Mode
More informationABCs of Arduino. Kurt Turchan -
ABCs of Arduino Kurt Turchan - kurt@trailpeak.com Bio: Kurt is a web designer (java/php/ui-jquery), project manager, instructor (PHP/HTML/...), and arduino enthusiast, Kurt is founder of www.trailpeak.com
More informationArduino Setup & Flexing the ExBow
Arduino Setup & Flexing the ExBow What is Arduino? Before we begin, We must first download the Arduino and Ardublock software. For our Set-up we will be using Arduino. Arduino is an electronics platform.
More informationArduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.
Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K. Roberts Page 1 See Appendix A, for Licensing Attribution information
More informationAttribution Thank you to Arduino and SparkFun for open source access to reference materials.
Attribution Thank you to Arduino and SparkFun for open source access to reference materials. Contents Parts Reference... 1 Installing Arduino... 7 Unit 1: LEDs, Resistors, & Buttons... 7 1.1 Blink (Hello
More informationPeek-a-BOO Kit JAMECO PART NO / / Experience Level: Beginner Time Required: 1+ hour
Peek-a-BOO Kit JAMECO PART NO. 2260076/2260084/2260092 Experience Level: Beginner Time Required: 1+ hour Make a ghost that reacts to an approaching object in the room. When idle, the ghost will keep its
More informationArduino. AS220 Workshop. Part II Interactive Design with advanced Transducers Lutz Hamel
AS220 Workshop Part II Interactive Design with advanced Transducers Lutz Hamel hamel@cs.uri.edu www.cs.uri.edu/~hamel/as220 How we see the computer Image source: Considering the Body, Kate Hartman, 2008.
More informationLesson 3: Arduino. Goals
Introduction: This project introduces you to the wonderful world of Arduino and how to program physical devices. In this lesson you will learn how to write code and make an LED flash. Goals 1 - Get to
More informationD - Robot break time - make a game!
D - Robot break time - make a game! Even robots need to rest sometimes - let's build a reaction timer game to play when we have some time off from the mission. 2017 courses.techcamp.org.uk/ Page 1 of 7
More informationThe USELESS BOX. Procedure:
The USELESS BOX The useless box is exactly what it implies. A project that is pretty much Useless and is made for pure entertainment. You are going to go through the process of building this project from
More informationArduino Control of Tetrix Prizm Robotics. Motors and Servos Introduction to Robotics and Engineering Marist School
Arduino Control of Tetrix Prizm Robotics Motors and Servos Introduction to Robotics and Engineering Marist School Motor or Servo? Motor Faster revolution but less Power Tetrix 12 Volt DC motors have a
More informationObjective of the lesson
Arduino Lesson 5 1 Objective of the lesson Learn how to program an Arduino in S4A All of you will: Add an LED to an Arduino and get it to come on and blink Most of you will: Add an LED to an Arduino and
More informationControl Robotics Arm with EduCake
Control Robotics Arm with EduCake 1. About Robotics Arm Robotics Arm (RobotArm) similar to the one in Figure-1, is used in broad range of industrial automation and manufacturing environment. This type
More informationWorkshops Elisava Introduction to programming and electronics (Scratch & Arduino)
Workshops Elisava 2011 Introduction to programming and electronics (Scratch & Arduino) What is programming? Make an algorithm to do something in a specific language programming. Algorithm: a procedure
More informationMICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)
PH-315 Portland State University MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable read-only memory, 1 which is
More information4WD Mobile Platform SKU:ROB0022
4WD Mobile Platform SKU:ROB0022 Contents [hide] 1 Function Introduction 1.1 STEP1: Assemble Robot 1.2 STEP2: Debug Motor 1.3 STEP3:Install Upper Plate 1.4 STEP4: Debug Ultrasonic Sensor and Servo 1.5 STEP5:
More informationCURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet
Lab : Computer Engineering Software Perspective Sign-Off Sheet NAME: NAME: DATE: Sign-Off Milestone TA Initials Part 1.A Part 1.B Part.A Part.B Part.C Part 3.A Part 3.B Part 3.C Test Simple Addition Program
More informationFigure 1. Digilent DC Motor
Laboratory 9 - Usage of DC- and servo-motors The current laboratory describes the usage of DC and servomotors 1. DC motors Figure 1. Digilent DC Motor Classical DC motors are converting electrical energy
More informationCreate Your Own World
Create Your Own World Introduction In this project you ll learn how to create your own open world adventure game. Step 1: Coding your player Let s start by creating a player that can move around your world.
More information1. Controlling the DC Motors
E11: Autonomous Vehicles Lab 5: Motors and Sensors By this point, you should have an assembled robot and Mudduino to power it. Let s get things moving! In this lab, you will write code to test your motors
More informationLab 06: Ohm s Law and Servo Motor Control
CS281: Computer Systems Lab 06: Ohm s Law and Servo Motor Control The main purpose of this lab is to build a servo motor control circuit. As with prior labs, there will be some exploratory sections designed
More informationWelcome to Arduino Day 2016
Welcome to Arduino Day 2016 An Intro to Arduino From Zero to Hero in an Hour! Paul Court (aka @Courty) Welcome to the SLMS Arduino Day 2016 Arduino / Genuino?! What?? Part 1 Intro Quick Look at the Uno
More informationOperating Mode: Serial; (PWM) passive control mode; Autonomous Mode; On/OFF Mode
RB-Dfr-11 DFRobot URM V3.2 Ultrasonic Sensor URM37 V3.2 Ultrasonic Sensor uses an industrial level AVR processor as the main processing unit. It comes with a temperature correction which is very unique
More informationArduino Lesson 1. Blink. Created by Simon Monk
Arduino Lesson 1. Blink Created by Simon Monk Guide Contents Guide Contents Overview Parts Part Qty The 'L' LED Loading the 'Blink' Example Saving a Copy of 'Blink' Uploading Blink to the Board How 'Blink'
More informationMAE106 Laboratory Exercises Lab # 1 - Laboratory tools
MAE106 Laboratory Exercises Lab # 1 - Laboratory tools University of California, Irvine Department of Mechanical and Aerospace Engineering Goals To learn how to use the oscilloscope, function generator,
More informationHOW TO BUILD A CAR PARK WITH INTEL GALILEO!
HOW TO BUILD A CAR PARK WITH INTEL GALILEO! A step by step tutorial to build, in a very simple way, a funny car park with automatic barrier and display counter with your Intel Galileo!» Recommended age
More informationkeyestudio keyestudio Mini Tank Robot
keyestudio Mini Tank Robot Catalog 1. Introduction... 1 2. Parameters... 1 3. Component list... 1 4. Application of Arduino... 2 5. Project details... 12 Project 1: Obstacle-avoidance Tank... 12 Project
More informationIn this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller.
Catch the Dots Introduction In this project you ll learn how to create a game, in which you have to match up coloured dots with the correct part of the controller. Step 1: Creating a controller Let s start
More informationDemon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:
Demon Pumpkin This is a lab guide for creating your own simple animatronic pumpkin. This project encourages students and makers to innovate upon the base design to add their own personal touches. APPROXIMATE
More informationA - Debris on the Track
A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! 2017 https://www.hamiltonbuhl.com/teacher-resources
More informationA - Debris on the Track
A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! 2018 courses.techcamp.org.uk/ Page 1 of 7
More informationYou'll create a lamp that turns a light on and off when you touch a piece of conductive material
TOUCHY-FEELY LAMP You'll create a lamp that turns a light on and off when you touch a piece of conductive material Discover : installing third party libraries, creating a touch sensor Time : 5 minutes
More informationAgent-based/Robotics Programming Lab II
cis3.5, spring 2009, lab IV.3 / prof sklar. Agent-based/Robotics Programming Lab II For this lab, you will need a LEGO robot kit, a USB communications tower and a LEGO light sensor. 1 start up RoboLab
More informationControlling motors with Arduino and Processing
Fabian Winkler Controlling motors with Arduino and Processing Today s workshop illustrates how to control two different types of motors with the Arduino board: DC motors and servo motors. Since we have
More informationYihao Qian Team A: Aware Teammates: Amit Agarwal Harry Golash Menghan Zhang Zihao (Theo) Zhang ILR01 Oct.14, 2016
Yihao Qian Team A: Aware Teammates: Amit Agarwal Harry Golash Menghan Zhang Zihao (Theo) Zhang ILR01 Oct.14, 2016 Individual Progress For sensors and motors lab, I was in charge of the servo and force
More informationI.1 Smart Machines. Unit Overview:
I Smart Machines I.1 Smart Machines Unit Overview: This unit introduces students to Sensors and Programming with VEX IQ. VEX IQ Sensors allow for autonomous and hybrid control of VEX IQ robots and other
More informationThe Motor sketch. One Direction ON-OFF DC Motor
One Direction ON-OFF DC Motor The DC motor in your Arduino kit is the most basic of electric motors and is used in all types of hobby electronics. When current is passed through, it spins continuously
More informationRobotic Arm Assembly Instructions
Robotic Arm Assembly Instructions Last Revised: 11 January 2017 Part A: First follow the instructions: http://www.robotshop.com/media/files/zip2/rbmea-02_-_documentation_1.zip While assembling the servos:
More informationScratch for Beginners Workbook
for Beginners Workbook In this workshop you will be using a software called, a drag-anddrop style software you can use to build your own games. You can learn fundamental programming principles without
More informationPulse Width Modulation and
Pulse Width Modulation and analogwrite ( ); 28 Materials needed to wire one LED. Odyssey Board 1 dowel Socket block Wire clip (optional) 1 Female to Female (F/F) wire 1 F/F resistor wire LED Note: The
More informationUCL Micro:bit Robotics Documentation
UCL Micro:bit Robotics Documentation Release 0.1 Rae Harbird Sep 25, 2018 Contents 1 Building Your Own Robots 3 2 Contents 5 2.1 Micro:bit - Getting Started........................................ 5 2.2
More informationInspiring Creative Fun Ysbrydoledig Creadigol Hwyl. S4A - Scratch for Arduino Workbook
Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl S4A - Scratch for Arduino Workbook 1) Robotics Draw a robot. Consider the following and annotate: What will it look like? What will it do? How will you
More informationModule: Arduino as Signal Generator
Name/NetID: Teammate/NetID: Module: Laboratory Outline In our continuing quest to access the development and debugging capabilities of the equipment on your bench at home Arduino/RedBoard as signal generator.
More informationUnderstanding the Arduino to LabVIEW Interface
E-122 Design II Understanding the Arduino to LabVIEW Interface Overview The Arduino microcontroller introduced in Design I will be used as a LabVIEW data acquisition (DAQ) device/controller for Experiments
More informationTwo Hour Robot. Lets build a Robot.
Lets build a Robot. Our robot will use an ultrasonic sensor and servos to navigate it s way around a maze. We will be making 2 voltage circuits : A 5 Volt for our ultrasonic sensor, sound and lights powered
More informationCONSTRUCTION GUIDE IR Alarm. Robobox. Level I
CONSTRUCTION GUIDE Robobox Level I This month s montage is an that will allow you to detect any intruder. When a movement is detected, the alarm will turn its LEDs on and buzz to a personalized tune. 1X
More informationLab 5: Inverted Pendulum PID Control
Lab 5: Inverted Pendulum PID Control In this lab we will be learning about PID (Proportional Integral Derivative) control and using it to keep an inverted pendulum system upright. We chose an inverted
More informationDisclaimer. Arduino Hands-On 2 CS5968 / ART4455 9/1/10. ! Many of these slides are mine. ! But, some are stolen from various places on the web
Arduino Hands-On 2 CS5968 / ART4455 Disclaimer! Many of these slides are mine! But, some are stolen from various places on the web! todbot.com Bionic Arduino and Spooky Arduino class notes from Tod E.Kurt!
More information1Getting Started SIK BINDER //3
SIK BINDER //1 SIK BINDER //2 1Getting Started SIK BINDER //3 Sparkfun Inventor s Kit Teacher s Helper These worksheets and handouts are supplemental material intended to make the educator s job a little
More informationVeyron Servo Driver (24 Channel) (SKU:DRI0029)
Veyron Servo Driver (24 Channel) (SKU:DRI0029) From Robot Wiki Contents 1 Introduction 2 Specifications 3 Pin Definitions 4 Install Driver o 4.1 Windows OS Driver 5 Relationship between Steering Angle
More informationTETRIX PULSE Workshop Guide
TETRIX PULSE Workshop Guide 44512 1 Who Are We and Why Are We Here? Who is Pitsco? Pitsco s unwavering focus on innovative educational solutions and unparalleled customer service began when the company
More informationName & SID 1 : Name & SID 2:
EE40 Final Project-1 Smart Car Name & SID 1 : Name & SID 2: Introduction The final project is to create an intelligent vehicle, better known as a robot. You will be provided with a chassis(motorized base),
More informationSome prior experience with building programs in Scratch is assumed. You can find some introductory materials here:
Robotics 1b Building an mbot Program Some prior experience with building programs in Scratch is assumed. You can find some introductory materials here: http://www.mblock.cc/edu/ The mbot Blocks The mbot
More informationAn Introduction to Programming using the NXT Robot:
An Introduction to Programming using the NXT Robot: exploring the LEGO MINDSTORMS Common palette. Student Workbook for independent learners and small groups The following tasks have been completed by:
More informationLab book. Exploring Robotics (CORC3303)
Lab book Exploring Robotics (CORC3303) Dept of Computer and Information Science Brooklyn College of the City University of New York updated: Fall 2011 / Professor Elizabeth Sklar UNIT A Lab, part 1 : Robot
More informationArduino Digital Out_QUICK RECAP
Arduino Digital Out_QUICK RECAP BLINK File> Examples>Digital>Blink int ledpin = 13; // LED connected to digital pin 13 // The setup() method runs once, when the sketch starts void setup() // initialize
More informationServoDMX OPERATING MANUAL. Check your firmware version. This manual will always refer to the most recent version.
ServoDMX OPERATING MANUAL Check your firmware version. This manual will always refer to the most recent version. WORK IN PROGRESS DO NOT PRINT We ll be adding to this over the next few days www.frightideas.com
More informationThe µbotino Microcontroller Board
The µbotino Microcontroller Board by Ro-Bot-X Designs Introduction. The µbotino Microcontroller Board is an Arduino compatible board for small robots. The 5x5cm (2x2 ) size and the built in 3 pin connectors
More informationIntroduction. 1 of 44
Introduction I set out to create this robot kit to give teachers, students, and hobbyists an affordable way to start learning and sharing robotics in their community. Most robotics kits that have the same
More informationMICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)
PH-315 Portland State University MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O) ABSTRACT A microcontroller is an integrated circuit containing a processor and programmable read-only memory, 1 which is
More informationProgrammable Control Introduction
Programmable Control Introduction By the end of this unit you should be able to: Give examples of where microcontrollers are used Recognise the symbols for different processes in a flowchart Construct
More informationProject 27 Joystick Servo Control
Project 27 Joystick Servo Control For another simple project, let s use a joystick to control the two servos. You ll arrange the servos in such a way that you get a pan-tilt head, such as is used for CCTV
More informationPractical Assignment 1: Arduino interface with Simulink
!! Department of Electrical Engineering Indian Institute of Technology Dharwad EE 303: Control Systems Practical Assignment - 1 Adapted from Take Home Labs, Oklahoma State University Practical Assignment
More informationTWEAK THE ARDUINO LOGO
TWEAK THE ARDUINO LOGO Using serial communication, you'll use your Arduino to control a program on your computer Discover : serial communication with a computer program, Processing Time : 45 minutes Level
More informationArduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014
AD32600 Physical Computing Prof. Fabian Winkler Fall 2014 Arduino Workshop 01 This workshop provides an introductory overview of the Arduino board, basic electronic components and closes with a few basic
More informationAnalog Feedback Servos
Analog Feedback Servos Created by Bill Earl Last updated on 2018-01-21 07:07:32 PM UTC Guide Contents Guide Contents About Servos and Feedback What is a Servo? Open and Closed Loops Using Feedback Reading
More informationDesign with Microprocessors Year III Computer Science 1-st Semester
Design with Microprocessors Year III Computer Science 1-st Semester Lecture 9: Microcontroller based applications: usage of sensors and actuators (motors) DC motor control Diligent MT motor/gearbox 1/19
More informationMotors and Servos Part 2: DC Motors
Motors and Servos Part 2: DC Motors Back to Motors After a brief excursion into serial communication last week, we are returning to DC motors this week. As you recall, we have already worked with servos
More informationGetting Started with the micro:bit
Page 1 of 10 Getting Started with the micro:bit Introduction So you bought this thing called a micro:bit what is it? micro:bit Board DEV-14208 The BBC micro:bit is a pocket-sized computer that lets you
More informationArduino An Introduction
Arduino An Introduction Hardware and Programming Presented by Madu Suthanan, P. Eng., FEC. Volunteer, Former Chair (2013-14) PEO Scarborough Chapter 2 Arduino for Mechatronics 2017 This note is for those
More informationA - Debris on the Track
A - Debris on the Track Rocks have fallen onto the line for the robot to follow, blocking its path. We need to make the program clever enough to not get stuck! Step 1 2017 courses.techcamp.org.uk/ Page
More informationCNC Router Parts CNC Router Parts 2.2 kw Plug and Play Spindle / VFD System CRP800 Set Up Guide
Step 1: Congratulations on your purchase of the 2.2 kw Plug and Play Spindle / VFD System! The first step in setting up your Spindle will be to physically connect your VFD to your CRP800 Control Unit with
More informationUsing Transistors and Driving Motors
Chapter 4 Using Transistors and Driving Motors Parts You ll Need for This Chapter: Arduino Uno USB cable 9V battery 9V battery clip 5V L4940V5 linear regulator 22uF electrolytic capacitor.1uf electrolytic
More informationThe plan... CSE 6324 From control to actuators Michael Jenkin Office Hours: Sherman 1028 Wed 3-4. From the bottom up...
The plan... CSE 6324 From control to actuators Michael Jenkin jenkin@cse.yorku.ca Office Hours: Sherman 1028 Wed 3-4 Lectures this week No class next week Start building the week after (i) Need to sort
More information