ABCs of Arduino. Kurt Turchan -

Similar documents
LED + Servo 2 devices, 1 Arduino

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

Using Servos with an Arduino

Servo Sweep. Learn to make a regular Servo move in a sweeping motion.

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

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Assignments from last week

Pulse Width Modulation and

Arduino. AS220 Workshop. Part II Interactive Design with advanced Transducers Lutz Hamel

The Motor sketch. One Direction ON-OFF DC Motor

Disclaimer. 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

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

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

Design with Microprocessors Year III Computer Science 1-st Semester

Lecture 6. Interfacing Digital and Analog Devices to Arduino. Intro to Arduino

Motors and Servos Part 2: DC Motors

Coding with Arduino to operate the prosthetic arm

Drawbot DC Motor Servo Motor Creative Design 03 Interactive Digital Prototyping Junior Software Academy. 10 Drowbot 121 MIC

Arduino Digital Out_QUICK RECAP

100UF CAPACITOR POTENTIOMETER SERVO MOTOR MOTOR ARM. MALE HEADER PIN (3 pins) INGREDIENTS

FABO ACADEMY X ELECTRONIC DESIGN

Introduction to. An Open-Source Prototyping Platform. Hans-Petter Halvorsen

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

Introduction: Components used:

Figure 1. Digilent DC Motor

Robotic Arm Assembly Instructions

Rodni What will yours be?

Using Transistors and Driving Motors

Control Robotics Arm with EduCake

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

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

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

Lab 06: Ohm s Law and Servo Motor Control

2.017 DESIGN OF ELECTROMECHANICAL ROBOTIC SYSTEMS Fall 2009 Lab 4: Motor Control. October 5, 2009 Dr. Harrison H. Chin

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

Operating Mode: Serial; (PWM) passive control mode; Autonomous Mode; On/OFF Mode

Lesson4 Obstacle avoidance car

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

4WD Mobile Platform SKU:ROB0022

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

02 Digital Input and Output

Arduino Advanced Projects

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

1. Introduction to Analog I/O

URM37 V3.2 Ultrasonic Sensor (SKU:SEN0001)

Intelligent Systems Design in a Non Engineering Curriculum. Embedded Systems Without Major Hardware Engineering

MAE106 Laboratory Exercises Lab # 1 - Laboratory tools

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

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

Arduino Lesson 1. Blink. Created by Simon Monk

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

HOW TO BUILD A CAR PARK WITH INTEL GALILEO!

Demon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:

FlareBot. Analysis of an Autonomous Robot. By: Sanat S. Sahasrabudhe Advisor: Professor John Seng

CMSC838. Tangible Interactive Assistant Professor Computer Science. Week 11 Lecture 20 April 9, 2015 Motors

Arduino Programming Part 3

INTRODUCTION to MICRO-CONTROLLERS

Arduino and Servo Motor

Arduino DC Motor Control Tutorial L298N PWM H-Bridge

Arduino Application: Speed control of small DC Motors

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

Basics before Migtrating to Arduino

THE INPUTS ON THE ARDUINO READ VOLTAGE. ALL INPUTS NEED TO BE THOUGHT OF IN TERMS OF VOLTAGE DIFFERENTIALS.

URM37 Ultrasonik Mesafe Sensörü - Arduino - Raspberry Pi - LattePanda Uyumlu - DFRobot

INTRODUCTION to MICRO-CONTROLLERS

Arduino: Sensors for Fun and Non Profit

Lesson 2 Bluetooth Car

ELECTRONICS PULSE-WIDTH MODULATION

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

1. Controlling the DC Motors

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

LEDs and Sensors Part 2: Analog to Digital

Training Schedule. Robotic System Design using Arduino Platform

Bill of Materials: PWM Stepper Motor Driver PART NO

DFRduino Romeo All in one Controller V1.1(SKU:DFR0004)

INTRODUCTION to MICRO-CONTROLLERS

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

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

DC motor control using arduino

Yihao Qian Team A: Aware Teammates: Amit Agarwal Harry Golash Menghan Zhang Zihao (Theo) Zhang ILR01 Oct.14, 2016

Module: Arduino as Signal Generator

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

RGB LED Strips. Created by lady ada. Last updated on :21:20 PM UTC

Project #6 Introductory Circuit Analysis

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

B RoboClaw 2 Channel 30A Motor Controller Data Sheet

THE IMPORTANCE OF PLANNING AND DRAWING IN DESIGN

Robotycs - YLab Robotics Group Toy Hacking Workshop Part 2 November 11, 2015

Project 27 Joystick Servo Control

Two Hour Robot. Lets build a Robot.

NAMASKAR ROBOT-WHICH PROVIDES SERVICE

Feed-back loop. open-loop. closed-loop

Community College of Allegheny County Unit 4 Page #1. Timers and PWM Motor Control

3.5 hour Drawing Machines Workshop

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

Touch Potentiometer Hookup Guide

Analog Feedback Servos

The µbotino Microcontroller Board

Sensors and Sensing Motors, Encoders and Motor Control

Experiment 1: Robot Moves in 3ft squared makes sound and

Transcription:

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 and contracts for several online projects. Kurt has 20 years in IT (nortel, DSET, trailswest, Canada Post, )

Arduino -- it s Italian! What is a micro-controller? - C coding style in a simple editor to control. sensors (PIR, range, temperature,.... motors (for your robot!). electronics ( A / D input, digital I/O) Safety - not yours so much, the arduinos!. I/O pins can sink or source 40 milliamps. drive an LED with a resistor (limit current in components) Lots of 3rd party sensors, kits, examples, books.... free IT books (tons of free Arduino Youtube, books, examples) - google arduino books - arduino.cc Robotshop.ca is quality! Cheap sensors and even arduino at Deal-Extreme (DX)!? Electronics Goldmine another favourite! Oh, and most importantly - arduino.cc!!

exercise - PWM Blink (Fade) /* Fade - This example shows how to fade an LED on pin 9 using the analogwrite() function. */ int led = 9; // the pin that the LED is attached to int brightness = 0; // how bright the LED is int fadeamount = 5; // points to fade the LED by // the setup routine runs once void setup() // declare pin 9 to be an output: pinmode(led, OUTPUT); // the loop routine runs over and over void loop() // set the brightness of pin 9: analogwrite(led, brightness); // change the brightness for next time through the loop: brightness = brightness + fadeamount; // reverse the direction of the fading at the ends of the fade: if (brightness == 0 brightness == 255) fadeamount = -fadeamount ; // wait for 30 milliseconds to see the dimming effect delay(30);

PWM a motor with Tranistor (simple) /* Adafruit Arduino - Lesson 13. DC Motor */ int motorpin = 3; void setup() pinmode(motorpin, OUTPUT); Serial.begin(9600); while (! Serial); Serial.println("Speed 0 to 255"); 3 void loop() if (Serial.available()) int speed = Serial.parseInt(); if (speed >= 0 && speed <= 255) analogwrite(motorpin, speed);

Control 2 DC brushed motors L298N H-bridge a) H-bridge (dual) using L298N http://www.bristolwatch.com/l298n/index.htm

Stepper Motor precise movement, high holding torque at lo-speed continuous https://www.youtube.com/watch?v=t-3vnladibc

Stepper s Cont d - Arduino hookup PWM on ENA and ENB pins controls speed (on off) H-bridge changes direction of current in each phase (pair of windings) http://www.geekonfire.com/wiki/index.php?title=dual_h-bridge_motor_driver

Servo Motors Go to a position and stop Control circuitry built in (black box) 0-180 deg only (unless modify for rotation) simple arduino connection and control via yellow control wire http://www.robotshop.com/blog/en/arduino-5-minute-tutorials-lesson-5-servo-motors-3636 #include <Servo.h> Servo myservo; // create servo object to control a servo int pos = 0; // variable to store the servo position void setup() myservo.attach(9); // attaches the servo on pin 9 to the servo object void loop() for(pos = 0; pos < 180; pos += 1) // goes from 0 degrees to 180 degrees // in steps of 1 degree myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position for(pos = 180; pos>=1; pos-=1) // goes from 180 degrees to 0 degrees myservo.write(pos); // tell servo to go to position in variable 'pos' delay(15); // waits 15ms for the servo to reach the position.. code as usual from arduino.cc

kurt@trailpeak.com Contact Kurt Turchan for... Wall Avoiding Robot Instruction class of 5 or more (3-4 week build) soup to nuts Arduino course Aquatic Arduino (ROV) projects Web Design / Project Management Java / Spring / JSP/JSTL based PHP based (Laravel) jquery / UI Kurt is founder of www.trailpeak.com 10,000+ trails with GPS across Canada popular across Canada at 1.5 Million uniques