Roller Coaster Design Project

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Re-programming the Simon Says with Arduino Linz Craig, Brian Huang.
Intro to the Arduino Topics: The Arduino Digital IO Analog IO Serial Communication.
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.
Embedded Programming and Robotics
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Week 10 Today 1.Homework presentations and critique. 2.Review digital and analog inputs. 3.DIY - jumpers, soldering etc.
Intro to the Arduino Topics: The Arduino Digital IO
Microprocessors Tutorial 1: Arduino Basics
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.
Introduction to Sensor Technology Week Five Adam Taylor
Tweaking Your Simon Adding a photoresistor and changing code Instruction by Pete Lewis and Linz Craig.
Microprocessors Tutorial 1: Arduino Basics
Circuits, Systems, & the Arduino. Challenge: Make the bulb light up! -Make observations and explain why it has the setup it does? - What are the components.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
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.
C# SERIAL COMMUNICATION TEMPERATURE CONTROL WITH ARDUINO KAAN EREN
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
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).
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Having fun with code, using Arduino in a middle school CS classroom
Arduino - Introduction
Arduino.
Arduino Part 1 Topics: Microcontrollers
Application of Programming: Scratch & Arduino
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
If you want to swing an robot arm or …
Introduction to the Arduino
Wireless Cue Light Project
Microprocessors Tutorial 1: Arduino Basics
UTA010 : Engineering Design – II
Get Your Project Started with Arduino
Arduino Part 1 Topics: Microcontrollers Programming Basics
Arduino - Introduction
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Introduction to Arduinos
Roller Coaster Design Project
Intro to the Arduino Topics: The Arduino Digital IO
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
Arduino 101 Credit(s):
using the Arduino to make LEDs flash
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
CSCI1600: Embedded and Real Time Software
Arduino programs Arduino toolchain Cross-compilation Arduino sketches
Intro to the Arduino by Someet Singh
Arduino Practice: Photoresistors, PWM, Potentiometers, Motors
Sensors and actuators Sensors Resistive sensors
CSCI1600: Embedded and Real Time Software
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Introduction to Arduinos
SAURABH GINGADE.
Introduction to Arduino IDE and Software
Presentation transcript:

Roller Coaster Design Project Lab 4 Procedure: Arduino Introduction

Arduino Introduction Today in lab, we will cover building and programming of: A basic 'blinker' circuit as well as Two servo motor Arduino projects 2

Task 1: The Blinker An LED that blinks on and off every second, with a 50% duty cycle You'll need an LED, a breadboard, some jumper wires, and a resistor Reference the code and schematic on the following slides 3

Pseudo-code setup() function Set a digital pin to output Use the pinMode(<pin>, (OUTPUT|INPUT)) loop() function Turn on LED Use the digitalWrite(<pin>, (HIGH|LOW)) command Wait 1000ms Turn off LED Alternate ways of doing this? Turn the blinker on/off with Serial input? Going further: Fade the light in and out? 4

Circuit 5

Task 2: Servo Control Create a simple arduino program that illustrates the basics of controlling a servo You'll need the breadboard and some jumper wires along with the servo The servo must be connected to a port with a ‘~’ by the port number 6

Pseudo-code Header Declare servo & position variables Import the ‘Servo’ library from the ‘Sketch’ menu Use the 'Servo' type to declare a servo object setup() function Attach the servo Use <myservoname>.attach(port number of signal wire) loop() function loop through all positions (or speeds) by increments of 1, with a delay of 15ms between each Use <myservoname>.write(<mypos>) to set positions Have the loop built such that the servo alternates back and forth (speeds up then down) 7

Circuit 8

Servo Round 2 (Time Permitting) Modify your code to respond to user input via the Serial terminal In setup you'll need Serial.begin(<speed>) to open the port In your loop, you'll need to use Serial.available() to see if anything is on the serial port If it is, you'll need to use Serial.read() to get a character. Recommend using characters 1-9 as different positions to change to. 9