Arduino Development for Beginners

Slides:



Advertisements
Similar presentations
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
Advertisements

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.
How to Build a Digital-Physical System-Lab Assegid Kidané Fall 2014.
George Washington University DC Circuits Lab Professor Ahmadi ECE 002.
Using Your Arduino, Breadboard and Multimeter Work in teams of two! living with the lab 1 © 2012 David Hall.
 Main Components:  Sensors  Micro controller  Motor drivers  Chasis.
Khaled A. Al-Utaibi  What is Arduino?  Arduino Boards  Arduino Shields  Arduino Uno Hardware.
Introduction to Arduino Prepared by R. Lamond.  “Arduino is an open-source electronics prototyping platform based on flexible, easy- to-use hardware.
Embedded Programming and Robotics
Dean Brock, Rebecca Bruce and Susan Reiser, CCSC SE 2009 Using Arduino Material taken from Todbot blog Bionic Arduino Todbot blog Bionic ArduinoTodbot.
Motors Make the world go ‘round By Jackson Greer, Room 305.
Arduino 101 Instructors: Ted Markson / Jim Sweeney.
Overview What is Arduino? What is it used for? How to get started Demonstration Questions are welcome at any time.
WELCOME TO ARDUINO E-DAY CAR PROJECT MEETING – ITALY MARCH.
Getting Started With the Arduino Uno
Electronics for Physical Computing Materials: capacitor, diode, LED, transistor, switch,resistor, relay, proto board, multimeter.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
Controlling an LED with a switch. 2 breadboard place where you can build electric circuits really quickly the magical breadboard.
1 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
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)
Prototyping with Microcontrollers and Sensors. Overview Objective Background Information Problem Statement Materials Procedure Assignment Closing.
Having fun with code, using Arduino in a middle school CS classroom
Arduino.
Arduino Part 1 Topics: Microcontrollers
By Rick Darby Sponsors: Geekspace Gwinnett The WorkSpot
Overview What is Arduino? What is it used for? How to get started
Obstacle avoiding robot { pixel }
Scrolling LCD using Arduino.
Prototyping with Microcontrollers and Sensors
Home automation using Arduino & ‘PIR sensor’
Microcontroller basics
Arduino is an open-source platform for building electronics projects
Introduction to the Arduino
Automatic human detector garbage can.
Microprocessors Tutorial 1: Arduino Basics
UTA010 : Engineering Design – II
UCD ElecSoc Robotics Club 2017/2018
‘SONAR’ using Arduino & ultrasonic distance sensor
Introduction to Arduino Microcontrollers
Unit 3 – Fundamentals of Electronics Examination Specifications
Introduction to Arduino Microcontrollers
How to avoid catching things on fire.
The Automatic Weather Station (AWS)
Arduino and Design of Embedded Applications
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.
Instructor Resources.
Welcome to Digital Electronics using the Arduino Board
Introducing the Arduino Uno
Banyule Coding Club: Learn Arduino Richard Counsel Malcolm Macleod Watsonia Library - June 2018 Reference materials here ->
Dave Mawdsley, DACS Member, Linux SIG January 16, 2013
Basic circuits Electrical circuits Electrical properties Ohm’s law
Manual Robotics ..
Prototyping with Micro-controllers, Sensors, and Materials
Current electricity Ch. 34
Prototyping with Micro-controllers, Sensors, and Materials
Arduino Leonardo Setup
Introduction to Arduino
Lab #1: Getting Started.
Prototyping with Micro-controllers, Sensors, and Materials
Arduino Board.
Arduino म्हणजे काय?.
Intro to Arduino Part 2 The Breadboard
Prototyping with Micro-controllers, Sensors, and Materials
Introduction to arduino
Instructor Resources.
2019 Investing Now Summer Program
Presentation transcript:

Arduino Development for Beginners Presented by Richard Gowen (@alt_bier) Founding Board Member of TheLab.ms MakerSpace / HackerSpace in Plano This Slide Deck Is Available at http://arduino.altbier.us/

WHAT IS 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 physical computing platform based on a simple microcontroller board, and a development environment for writing software for the board. Arduino can be used to develop interactive objects, taking inputs from a variety of switches or sensors, and controlling a variety of lights, motors, and other physical outputs.

Arduino Boards Arduino Uno Arduino Leonaido Arduino Due Arduino Yun Arduino boards come in many shapes and sizes to fit a wide variety of applications. Here is a list of just some of the Arduino boards available. Arduino Uno Arduino Leonaido Arduino Due Arduino Yun Arduino Tre Arduino Micro Arduino Robot Arduino Esplora Arduino Mega ADK Arduino Ethernet Arduino Mega 2560 Arduino Mini LilyPad Arduino USB LilyPad Arduino Simple LilyPad Arduino SimpleSnap LilyPad Arduino Arduino Nano Arduino Pro Mini Arduino Pro Arduino Fio

Arduino Boards Arduino Uno Arduino Nano Arduino Mega2560 Processor: ATmega328P Flash: 32 kB / SRAM: 2 kB Digital IO Pins: 14 / Analog Input Pins: 6 Dimensions: 2.7 in × 2.1 in Processor: ATmega328 Flash: 16 kB / SRAM: 1 kB Digital IO Pins: 14 / Analog Input Pins: 8 Dimensions: 1.70 in × 0.73 in Processor: ATmega2560 Flash: 256 kB / SRAM: 8 kB Digital IO Pins: 54 / Analog Input Pins: 18 Dimensions: 4 in × 2.1 in

Arduino Boards Arduino Ethernet Lilypad Arduino Arduino Fio Processor: ATmega328 Flash: 32 kB / SRAM: 2 kB Digital IO Pins: 14 / Analog Input Pins: 6 Built-in Ethernet Adapter instead of USB Dimensions: 2.7 in × 2.1 in Processor: ATmega168V Flash: 16 kB / SRAM: 1 kB Digital IO Pins: 14 / Analog Input Pins: 8 Wearable Design Dimensions: 2 in Round Processor: ATmega328P Flash: 32 kB / SRAM: 2 kB Digital IO Pins: 14 / Analog Input Pins: 8 Dimensions: 2.6 in × 1.1 in

Arduino IDE Software The Arduino integrated development environment contains a text editor for writing code, a message area, a text console, a toolbar with buttons for common functions, and a series of menus. It connects to the Arduino hardware to upload programs and communicate with them.

Arduino IDE Software Once you install the Arduino Software on your workstation simply choose the Arduino board that you wish to interface with and the port on your workstation it is physically connected to. At this point you can upload code to program the Arduino or interface with the Arduino’s console to view it’s output.

Arduino IDE Software The Arduino Software comes with several example programs that can be used to get started quickly programming your Arduino There are also several online resources you could use to download Arduino code that will allow you to program your Arduino to do a variety of things.

Community Resources Getting Started: Project Ideas: http://arduino.cc/en/Tutorial/HomePage http://www.ladyada.net/learn/arduino/index.html Project Ideas: http://playground.arduino.cc/Projects/Ideas http://www.instructables.com/id/Arduino-Projects/ http://duino4projects.com/ http://codeduino.com/projects/ http://fritzing.org/projects/

Where to Buy? Local: Online: Tanners Electronics http://www.tannerelectronics.com/ MicroCenter http://www.microcenter.com/ Fry’s http://www.frys.com/ Online: https://www.adafruit.com/ https://www.sparkfun.com/ http://www.seeedstudio.com/depot/

Electronics 101 AC/DC There are two types of electrical signals, those being alternating current (AC), and direct current (DC). With alternating current, the direction electricity flows throughout the circuit is constantly reversing. The rate of reversal is measured in Hertz, which is the number of reversals per second. So, when they say that the US power supply is 60 Hz, what they mean is that it is reversing 120 times per second (twice per cycle). With Direct Current, electricity flows in one direction between power and ground. In this arrangement there is always a positive source of voltage and ground (0V) source of voltage. As a general rule, any modern electronic device with computational ability uses DC. The reason is that they use specific voltage levels to indicate binary/logical states.

Electronics 101 Circuits and Switches Electrons will not flow through an open circuit (left diagram) but will only flow through a completed circuit (right diagram). A switch is a device that allows for a circuit to be toggled between its open and completed states.

Electronics 101 Parallel vs. Series In a series circuit, the current through each of the components is the same, and the voltage across the circuit is the sum of the voltages across each component. In a parallel circuit, the voltage across each of the components is the same, and the total current is the sum of the currents through each component.

Electronics 101 Resistance and resistors In electronics resistance is a quantity that measures how the device or material reduces the electric current flow through it. Resistance is measured in units of ohms (Ω). A resistor is a passive two-terminal electrical component that implements resistance as a circuit element. Resistors may be used to reduce current flow, and, at the same time, may act to lower voltage levels within circuits. The amount of resistance a resistor adds to a circuit as measured in ohms can be determined by looking at the colored stripes on it and referring to this chart (right).

Electronics 101 Diodes and Light Emitting Diodes In electronics, a diode is a two-terminal electronic component that conducts primarily in one direction; has low (ideally zero) resistance to the flow of current in one direction, and high (ideally infinite) resistance in the other. A light-emitting diode (LED) is a two-lead diode that emits light when activated. When a suitable voltage is applied to the leads, electrons that pass through the device release energy in the form of photons. This effect is called electroluminescence, and the color of the light corresponds to the energy of the photons released.

Arduino Nano Making One LED Blink Things you will need: Arduino Nano A breadboard An LED A resistor 100 ohm Jumper wires Wiring: You have to attach the LED to the Nano in a circuit as shown in the example image. Connect the LED's positive end to the resistor and the negative end to the Nano’s ground. Connect the other end of the resistor to the Nano's digital pin 13 to complete a circuit. To power the Nano board, you can use a USB cable or connect an external battery positive to VIN and negative to ground.

Arduino Uno Making One LED Blink Things you will need: Arduino Uno A breadboard An LED A resistor 100 ohm Jumper wires Wiring: You have to attach the LED to the Uno in a circuit as shown in the example image. Connect the LED's positive end to the resistor and the negative end to the Uno’s ground. Connect the other end of the resistor to the Uno's digital pin 13 to complete a circuit. To power the Uno board, you can use a USB cable or connect an external battery.

Arduino Making One LED Blink Programming the Arduino (This code works for the Nano & Uno): Connect the Arduino to your workstation via USB The LED blink code should be in your Arduino IDE software examples. Open the example blink code in File -> Examples -> Basics -> Blink Upload this code to the Arduino by clicking on the upload button You should see the LED start blinking on and off in 1 second intervals This Code Is Available Here: http://arduino.altbier.us/BlinkOneLED.txt

Arduino Uno Making An RGB LED Cycle Things you will need: Arduino Uno A breadboard An RGB LED Three resistors 100 ohm Jumper wires Wiring: You have to attach the LED to the Uno in a circuit as shown in the example image. Connect the LED's positive ends to the resistors and the negative end to the Uno’s ground. Connect the other ends of the resistors to the Uno's digital pins 3, 5, and 6 as shown to complete a circuit. To power the Uno board, you can use a USB cable or connect an external battery.

Arduino Uno Making An RGB LED Cycle Programming the Arduino Uno: Connect the Arduino Uno to your workstation via USB Type in the example code (right) into your Arduino IDE software as a new project Upload this code to the Arduino by clicking on the upload button You should see the RGB LED start transitioning between colors pausing on red, green, and blue for one second before transitioning to the next color This Code Is Available Here: http://arduino.altbier.us/RGB_LED.txt