Experiment 4.B. Position Control. ECEN 2270 Electronics Design Laboratory 1

Similar documents
Electronics Design Laboratory Lecture #9. ECEN 2270 Electronics Design Laboratory

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

Electronics Design Laboratory Lecture #6. ECEN2270 Electronics Design Laboratory

Electronics Design Laboratory Lecture #10. ECEN 2270 Electronics Design Laboratory

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

Setup Download the Arduino library (link) for Processing and the Lab 12 sketches (link).

Training Schedule. Robotic System Design using Arduino Platform

Experiment (2) DC Motor Control (Direction and Speed)

Arduino Control of Tetrix Prizm Robotics. Motors and Servos Introduction to Robotics and Engineering Marist School

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

EECS 318 Electronics Lab Laboratory #2 Electronic Test Equipment

Figure 1. Digilent DC Motor

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Experiment 5.B. Multifunction Wireless Control. ECEN 2270 Electronics Design Laboratory 1

Lab 1: Testing and Measurement on the r-one

EECS 473 Final Exam. Fall 2017 NOTES: I have neither given nor received aid on this exam nor observed anyone else doing so. Name: unique name:

MASTER SHIFU. STUDENT NAME: Vikramadityan. M ROBOT NAME: Master Shifu COURSE NAME: Intelligent Machine Design Lab

Two Hour Robot. Lets build a Robot.

MICROCONTROLLERS Stepper motor control with Sequential Logic Circuits

Parts to be supplied by the student: Breadboard and wires IRLZ34N N-channel enhancement-mode power MOSFET transistor

the Board of Education

Motors and Servos Part 2: DC Motors

Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-4: Electric Actuators

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

DC motor control using arduino

Roborodentia Robot: Tektronix. Sean Yap Advisor: John Seng California Polytechnic State University, San Luis Obispo June 8th, 2016

Embedded Systems and Software. Rotary Pulse Generators

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

Experiment 5.A. Basic Wireless Control. ECEN 2270 Electronics Design Laboratory 1

Pulse Width Modulation and

Lab 5: Inverted Pendulum PID Control

EDC Quick Start Guide

Sensor and. Motor Control Lab. Abhishek Bhatia. Individual Lab Report #1

EXPERIMENT 1 INTRODUCTION TO LABORATORY INSTRUMENTS

Computational Crafting with Arduino. Christopher Michaud Marist School ECEP Programs, Georgia Tech

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

SPIDA SAW OPERATIONS MANUAL

V-MOTION LITE USER GUIDE. Rat Rig All rights reserved.

Simple Servo USER Instructions

MAE106 Laboratory Exercises Lab # 3 Open-loop control of a DC motor

Using Servos with an Arduino

Parts List. Robotic Arm segments ¼ inch screws Cable XBEE module or Wifi module

AN ARDUINO CONTROLLED CHAOTIC PENDULUM FOR A REMOTE PHYSICS LABORATORY

RC Servo Interface. Figure Bipolar amplifier connected to a large DC motor

The Motor sketch. One Direction ON-OFF DC Motor

Warm-Up. Complete the second homework worksheet (the one you didn t do yesterday). Please begin working on FBF010 and FBF011.

Quadro University Of Florida Department of Electrical and Computer Engineering Intelligent Machines Design Laboratory

Machine Intelligence Laboratory

Boe-Bot robot manual

Experiment 9 : Pulse Width Modulation

Activity Instructions - Classroom Wind Farm

PACIFIC LASER SYSTEMS. HVL100 Procedures

80 ` AutoCAD 2D I. Module 7. Drawing Lines Using Polar Coordinates PREPARED BY. IAT Curriculum Unit. February 2011

ECE 511: FINAL PROJECT REPORT GROUP 7 MSP430 TANK

CHAPTER 6. Motor Driver

Programming Design ROBOTC Software

Laboratory 2 More Resistor Networks and Potentiometers.

Lab 10. Magnetic-Levitation Controller

Başkent University Department of Electrical and Electronics Engineering EEM 214 Electronics I Experiment 8. Bipolar Junction Transistor

PWM CONTROL USING ARDUINO. Learn to Control DC Motor Speed and LED Brightness

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

Persistence of Vision LED Sphere

LAB 1 AN EXAMPLE MECHATRONIC SYSTEM: THE FURBY

Assignments from last week

Part of: Inquiry Science with Dartmouth

6.1 - Introduction to Periodic Functions

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

DCS Series Brush DC Servo Drive. Datasheet

Exercise 3-3. Manual Reversing Starters EXERCISE OBJECTIVE DISCUSSION. Build manual reversing starters and understand how they work.

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Mechatronics Laboratory Assignment 3 Introduction to I/O with the F28335 Motor Control Processor

LED + Servo 2 devices, 1 Arduino

FABO ACADEMY X ELECTRONIC DESIGN

Learning Objectives. References 10/26/11. Using servos with an Arduino. EAS 199A Fall 2011

Experiment P48: Transistor Lab 1 The NPN Transistor as a Digital Switch (Power Amplifier, Voltage Sensor)

Programming 2 Servos. Learn to connect and write code to control two servos.

Unit 4: Robot Chassis Construction

Students will design, program, and build a robot vehicle to traverse a maze in 30 seconds without touching any sidewalls or going out of bounds.

Voltage Dividers a learn.sparkfun.com tutorial

ARDUINO BASED DC MOTOR SPEED CONTROL

User Interface Engineering FS 2013

HB-25 Motor Controller (#29144)

Lab 06: Ohm s Law and Servo Motor Control

Project 27 Joystick Servo Control

APSC 150 Project: Remotely Controlled Satellite Launcher Design [Feb.2015]

Photo/Image Controls

TETRIX PULSE Workshop Guide

Quantizer step: volts Input Voltage [V]

Robot Control. Robot Control

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Capstone Python Project Features CSSE 120, Introduction to Software Development

Advanced Mechatronics 1 st Mini Project. Remote Control Car. Jose Antonio De Gracia Gómez, Amartya Barua March, 25 th 2014

Electronics Design Laboratory Lecture #4. ECEN 2270 Electronics Design Laboratory

ME 461 Laboratory #5 Characterization and Control of PMDC Motors

Programming Design. ROBOTC Software

Lab 8: Introduction to the e-puck Robot

Portland State University MICROCONTROLLERS

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

Lesson 2 Bluetooth Car

A Do-and-See Approach for Learning Mechatronics Concepts

Transcription:

Experiment 4.B Position Control Electronics Design Laboratory 1

Procedures 4.B.1 4.B.2 4.B.3 4.B.4 Read Encoder with Arduino Position Control by Counting Encoder Pulses Demo Setup Extra Credit Electronics Design Laboratory 2

Experiment 4 B.1 Read Encoder with Arduino Connect the encoder output from both of your motors to the Arduino. A recommended wiring diagram is seen below. Place a 1kΩ resistor in series between the encoder and the Arduino Write a program that will count encoder pulses. You may reuse some of code from the examples posted online. Have both the left and the right wheel encoder counts printed out to the serial console using the following format for the left count, right count, and the count difference: >LEFT: #### RIGHT:#### DIFF ### Have Arduino reset the encoder counts, and then run both wheels at half speed for 1s. In your report, comment on why the left and right encoder counts are not the same. Note: the robot wheel radius is r = 6.5 cm Recommended Pin Connections Electronics Design Laboratory 3

Experiment 4 B.2 Position Control by Counting Encoder Pulses Using the example code on the course website, implement position control for your robot. When completed, you should be able to precisely control the distance your robot travels. It is recommended that you split this program into multiple functions. These functions may include int forward( char distance, char speed); int reverse( char distance, char speed); int turn_left( char degrees, char speed); int turn_right( char degrees, char speed); Modify your main loop function to have the robot preform the following tasks Stop, wait for the switch to be in the ON position Wait 1 second 180 o clockwise rotation of the robot 180 o counter clockwise rotation of the robot In the report: Include a copy of your code Comment on the position accuracy achieved, and how fast your robot could accomplish the positioning task Electronics Design Laboratory 4

Experiment 4 B.3 Demo Setup Show how the robot powered from 2 battery packs in series (approximately 10 V) can accomplish the specified Part B.2 positioning task: Stop, wait for the switch to be in the ON position Wait 1 second 180 o clockwise rotation of the robot 180 o counter clockwise rotation of the robot Accuracy: the robot should come back to the starting position Show your position control program Show complete speed control circuit, and complete LTspice diagram of your speed control circuit Answer questions related to your position control code and speed control circuit This Lab includes an extra credit opportunity: see next page Note: the robot wheel radius is r = 6.5 cm, each encoder pulse corresponds to approximately 0.53 mm distance traveled Electronics Design Laboratory 5

Experiment 4, B.4 Extra Credit The groups whose robot accurately completes the following tasks will be eligible for extra credit Robots will start centered on a floor intersection facing north From the starting position, robot must perform the following moves, as shown on the diagram: Move forward one square north Turn 90 o CC Move forward two squares west Turn 90 o CW Move forward one square north Turn 90 o CW Move forward one square east Turn 90 o CW Move forward two squares south Turn 90 o CC Move forward one square east Turn 90 o CC and stop At the end, the robot should ideally be in the starting position. Accuracy requirements: Robot platform must always cover a portion of the floor line along the route shown in the diagram In the end position, both wheel axis tips must be within +/ 5cm (+/ 2 ) of the southern horizontal floor line, and the caster wheel must be within +/ 5cm (+/ 2 ) of the eastern vertical floor line W N S E The robot wheel radius is r = 6.5 cm START and END Caster wheel 39.5 = 100 cm Electronics Design Laboratory 6