Introducing the Arduino Uno

Slides:



Advertisements
Similar presentations
Lab7: Introduction to Arduino
Advertisements

ELCT 201 week 13 Analog ON/OFF control system conversion to Digital ON/OFF control system.
Arduino. Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer. It's an open-source.
1 Arduino Board: Arduino UNO Arduino Programing Environment: Arduino 0022
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
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.
Ballooning Bundle. What is a Microcontroller? Small computer with a processor core, memory and programmable input/output Continuously repeats software.
Microcontroller Hands-on Workshop #3 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers November 7, 2009.
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
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Getting Started With the Arduino Uno
Arduino A free development system based on Atmel AVR 8 bit microcontrollers. LB8X Tom.
Microcontrollers, Microcomputers, and Microprocessors
Microcontroller basics Embedded systems for mortals.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Intro to Arduino Basic Arduino John Wolf (WolfDenElectronics.com)
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Pulse-Width Modulation: Simulating variable DC output
Arduino Application: Speed control of small DC Motors
1 Microcontrollers. 2 Programmers work in the virtual world Machinery works in the physical world Microcontrollers connect the virtual and physical world.
CSE 341 Project : Ultrasonic Radar PRESENTED BY: NAME : AKIFA TASNEEM ID : SECTION: 02 1.
Introducing the Arduino Uno Presented by Dave Mawdsley, DACS Member, Linux SIG Member (wiring, programming and running a cute traffic light simulation)
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
ARDUINO BASED UNDERGROUND CABLE FAULT DETECTION
Arduino Part 1 Topics: Microcontrollers
Getting Started: Building & Programming
INTRODUCTION TO ROBOTICS Part 5: Programming
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Overview What is Arduino? What is it used for? How to get started
simple example program to control a DC-Motor
Prototyping with Microcontrollers and Sensors
Microcontroller basics
Dr. Kyung Eun Park Summer 2017
Microcontroller basics
Introduction to the Arduino
cyBorg 1.0 Project by Team ROBOTECH The Green PAFIANS
Arduino & its hardware interfacing
Microcontroller basics
UTA010 : Engineering Design – II
An Arduino Workshop A Microcontroller.
Overview What is Arduino? What is it used for? How to get started
Cascade switching of an LED
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
Arduino Development for Beginners
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
3.0 ARDUINO WORKSHOP PRESENTATION FOR STUDENTS IN 4º DEGREE OF COMPULSORY SECONDARY EDUCATION 3.0.
Introduction to Arduino Microcontrollers
Introduction to Arduino Microcontrollers
Roller Coaster Design Project
What is Arduino? By James Tedder.
FeMaidens Programming
Arduino 101 Credit(s):
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Building an Internet of Things Device
Welcome to Digital Electronics using the Arduino Board
CSCI1600: Embedded and Real Time Software
Dave Mawdsley, DACS Member, Linux SIG January 16, 2013
CSCI1600: Embedded and Real Time Software
Aeroponic Engineering and Vertical Farming
Arduino Leonardo Setup
Introduction to Arduino
Lab #1: Getting Started.
Arduino Uno circuit basics
Pulse-Width Modulation: Simulating variable DC output
Presentation transcript:

Introducing the Arduino Uno (wiring, programming and running a cute traffic light simulation) Presented by Dave Mawdsley, DACS Member, Linux SIG Member

The Arduino Uno Microcontroller 1 The Arduino Uno Microcontroller

Installing Software Packages 2 Installing Software Packages Ubuntu 10.04 LTS (without 'arduino' package) * download and install the latest release and install with Archive Manager: aduino-0022.gtz * install the compiler (gcc-avr) and the libraries (avr-libc) packages: sudo apt-get install gcc-avr avr-libc * if you use the USB port to dialog, you should add yourself to the group 'dialout' in order to have write permissions on that port: sudo usermod -aG dialout madmod

Selecting the Arduino Board 3 Selecting the Arduino Board

The Arduino IDE With Sketch Code 4

Uploading Bytecode to the Board 5 After a successful compilation, the bytecode needs to be uploaded to the board. Connect the USB cable and upload. Once uploaded, the program can be closed and the computer disconnected.

Traffic Light Schematic 6 Traffic Light Schematic

Traffic Light Program p1 of 3 7 Traffic Light Program p1 of 3

Traffic Light Program p2 of 3 8

Traffic Light Program p3 of 3 9 Traffic Light Program p3 of 3

Wiring – Arduino, Breadboard, 9-volt Battery 10 Wiring – Arduino, Breadboard, 9-volt Battery

All Wired and Connected to the Computer 11 All Wired and Connected to the Computer

Arduino Power Issues–Short Course 12 Arduino Power Issues–Short Course When the USB cable is connected to a running computer, the Arduino board can get its power via the USB's 5 volts of DC power from the computer's system board. That power of 5 volts DC is mainly for the board itself with some reserve for running simple external boards that have very low power requirements. Each of the Arduino digital pins 2 – 13 can supply a maximum of 40 mA to devices it connects with which should be okay for switching, transistors, diodes, etc. However, Arduino's external power connector additionally supports from 7-12 volts DC and is thus easy to use with a 9-volt battery. This power is intended for demands a bit beyond the board's 5-volt via USB and makes the board more stable. When external devices are still more demanding such as motors and relays, the external board needs its own power supply at its required ratings. Power transistors in the digital circuits can make the task easier when the power demands between the board itself and the external equipment differs considerably. In general, it's best to study the loading that devices running simultaneously will demand. Analog devices can create serious drains.

Notes About the Arduino C Language 13 The Arduino Integrated Development Environment (IDE) allows for the creation of C- like programs which features particular structures that land up in bytecode being uploaded to the Arduino board. Once there the board can execute the code disconnected from the computer using the external power connector with a 9-volt battery. The source code is not compiled into regular C object code that can be run from Terminal or a GUI. Regular C is missing lots of dependencies which are supplied by the Arduino IDE and require its environment. By preference, the source code can be written with a regular text editor and opened inside the Arduino IDE when it's ready. (my preference) The Arduino IDE allows for attempts to create bytecode without the board connected and will display what errors it can detect at that stage. The Arduino website at www.arduino.cc/ is very helpful with lots of community support.

Typical Coding for a Digital I/O Pin 14 int ledPin = 13; // LED connected to digital pin 13 void setup() // mandatory Arduino function { pinMode(ledPin, OUTPUT); // sets the digital pin as output } void loop() // main Arduino function digitalWrite(ledPin, HIGH); // sets the LED on delay(1000); // waits for a second digitalWrite(ledPin, LOW); // sets the LED off delay(2000); // waits for two seconds

Introducing the Arduino Uno (wiring, programming and running a cute traffic light simulation) This OpenOffice.org Presentation 'arduino.odp' can be downloaded from http://madmod.com/freebies.html