Electrical team Arduino tutorial I BY: JOSHUA arduini

Slides:



Advertisements
Similar presentations
Wireless Cue Light Project
Advertisements

Making Electronic Fashion Welcome Pink Team!. Etiquette Creative Girls Technology Arts.
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
EMS1EP Lecture 6 Digital Inputs
EMS1EP Lecture 4 Intro to Programming Dr. Robert Ross.
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Lab7: Introduction to Arduino
Anurag Dwivedi & Rudra Pratap Suman.  Open Source electronic prototyping platform based on flexible easy to use hardware and software.
How to use Arduino By: Andrew Hoffmaster.
Embedded Sumo 1T4 – 1T5 UTRA.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
Living with the lab Introduction to Arduino Programming arduino.cc Gerald Recktenwald Portland State University
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.
Introduction.
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.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Programming Hexors on Arduino Uno. Arduino Uno Arduino is an open-source electronics platform based on easy- to-use hardware and software. It's intended.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Introduction to the Arduino
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Cascade switching of an LED EAS 199B Winter 2013.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
SAMI MAKERSPACE MAKE: AN ELECTRONICS WORKSHOP. ARDUINO BASICS Credit to: Sparkfun and Linz Craig, Nick Poole, Prashanta Aryal, Theo Simpson, Tai Johnson,
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
Microcontrollers, Microcomputers, and Microprocessors
Arduino libraries Datatekniker Udvidet hardware/software.
Microcontroller basics Embedded systems for mortals.
1 Introduction to Haptics Introduction to the Hapkit board Allison M. Okamura Stanford University.
ME 120: Arduino Programming Arduino Programming Part II ME 120 Mechanical and Materials Engineering Portland State University
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Introduction to Arduino A very basic intro to Arduino, the IDE and the Servos class.
:Blink Blink: Er. Sahil Khanna
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
ME 120: Arduino Programming Arduino Programming Part 1 ME 120 Mechanical and Materials Engineering Portland State University
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.
Microcontroller basics
Val Manes Department of Math & Computer Science
Microcontroller basics
Introduction to the Arduino
UTA010 : Engineering Design – II
Cascade switching of an LED
UCD ElecSoc Robotics Club 2017/2018
Arduino.
Introduction to Arduino Microcontrollers
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
What is Arduino? By James Tedder.
Arduino 101 Credit(s):
using the Arduino to make LEDs flash
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
Arduino programs Arduino toolchain Cross-compilation Arduino sketches
Arduino : Introduction & Programming
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Aeroponic Engineering and Vertical Farming
Lab #1: Getting Started.
Arduino Uno circuit basics
Arduino程式範例.
Interrupts.
Presentation transcript:

Electrical team Arduino tutorial I BY: JOSHUA arduini Qset Electrical team Arduino tutorial I BY: JOSHUA arduini

what IS ARDUINO Microcontroller Allows for quick prototyping of ideas Accepts both digital and analog signals Simple to use Readily available online support / help / documentation Big part of the QSET Rover

Downloading Arduino ide Go to WWW.ARDUINO.CC Select “Download” Download the appropriate version & follow instructions

Getting started Ensure Arduino.exe will open Navigate to www.123d.circuits.io Create an account Then select “New Breadboard Circuit”

The breadboard Two sections Connected horizontally labelled by + and – Each row is a separate piece of wire Connected vertically labeled 1 – 60 in this case but can have more or less Each column is a separate piece of wire Pattern repeats after the dotted line. This gap separates the electrical connections. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Basic l.e.d. circuit The arrow marks the direction of current flow. Voltage supply comes directly from the Arduino board (in this example) V = 5 V R = 330 Ω

Creating the circuit on 123d.circuits DEMO

Writing the Arduino code Typically in 3 main parts Initialization of variables Setting up the hardware to recognize components Loop instance that runs indefinitely

1. Initialization of variables In this case we only need one variable “int” denotes that it is an integer led was the chosen name for the variable 13 is the pin we are plugging the LED into

2. Setting up the hardware to recognize components “Void setup() {“ tells the compiler we are going to start our setup phase of code “pinMode” tells the compiler that we need to do a pin assignment. This instruction has the form: pinMode(PIN#,mode); PIN# - Taken from the #s on the board Mode – Tell the compiler if it is going to be an INPUT or an OUTPUT. “}” denotes the end of the setup function

3. Loop instance that runs indefinitely “Void loop() {“ tells the compiler we are going to start our loop phase of code “digitalWrite” tells the compiler that we would like to set a digital value. 1(current) OR 0(no current). This instruction is of the form digitalWrite(PIN#, Value). PIN# - The pin we want to alter Value – Whether we want it to be a HIGH(1) or LOW(0) “delay” tells the compiler to wait for a duration of 1000ms (1 second).

3. Loop instance that runs indefinitely cont. Now we do the “digitalWrite” to tell the LED to turn off and wait 1000ms “}” tells the compiler that this is the end of the instructions that we want to loop Once the program has executed the second delay, it will go up to the beginning of the loop and turn the LED on again

Now execute on 123d.ciruits DEMO