Project 1: Introduction to Arduino and LED Blink (Sketch Version) Description:

Similar documents
Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Arduino Lesson 14. Servo Motors

Eric Mitchell April 2, 2012 Application Note: Control of a 180 Servo Motor with Arduino UNO Development Board

Introduction to Arduino

Arduino Lesson 13. DC Motors. Created by Simon Monk

Arduino Lesson 1. Blink

Theory and Practice of Tangible User Interfaces. Thursday Week 2: Digital Input and Output. week. Digital Input and Output. RGB LEDs fade with PWM

Working with microcontroller-generated audio frequencies (adapted from the Machine Science tutorial)

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Basic Pulse Width Modulation

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Arduino Lesson 16. Stepper Motors

POINTS POSITION INDICATOR PPI4

Experiment: Series and Parallel Circuits

Character LCDs. Created by Ladyada. Last updated on :45:29 PM EDT

Using and Wiring Light Emitting Diodes (LEDs) for Model Railroads

4/Really Getting Started with Arduino

Controlling a Dot Matrix LED Display with a Microcontroller

The basic set up for your K2 to run PSK31 By Glenn Maclean WA7SPY

Arduino Lesson 9. Sensing Light

Introduction to Arduino

Student Exploration: Circuits

Maximum value. resistance. 1. Connect the Current Probe to Channel 1 and the Differential Voltage Probe to Channel 2 of the interface.

ECEN 1400, Introduction to Analog and Digital Electronics

Three Arduino Challenges to Connect the Logical World with the Physical One. ISTE Philadelphia

1602 LCD adopts standard 14 pins(no backlight) or 16pins(with backlight) interface, Instruction of each pin interface is as follows:

cs281: Introduction to Computer Systems Lab08 Interrupt Handling and Stepper Motor Controller

mdm-mp3 minidirector with MP3 Player

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Lab 6 Introduction to Serial and Wireless Communication

Arduino Lesson 0. Getting Started

Set up and Blink - Simulink with Arduino

TEECES DOME LIGHTING SYSTEMS

Arduino Motor Shield (L298) Manual

CHAPTER 11: Flip Flops

Wireless Security Camera

Programming PIC Microcontrollers in PicBasic Pro Lesson 1 Cornerstone Electronics Technology and Robotics II

IR Communication a learn.sparkfun.com tutorial

MIDECO 64-outputs MIDI note decoder USER MANUAL. Roman Sowa 2012

DEPARTMENT OF ELECTRONICS ENGINEERING

Basic DC Motor Circuits. Living with the Lab Gerald Recktenwald Portland State University

Basic DC Motor Circuits

ISP Engineering Kit Model 300

ARDUINO SEVERINO SERIAL SINGLE SIDED VERSION 3 S3v3 (REVISION 2) USER MANUAL

1 of 5 12/31/ :51 AM

Arduino Microcontroller Guide W. Durfee, University of Minnesota ver. oct-2011 Available on-line at

DS1307 Real Time Clock Breakout Board Kit

Series and Parallel Circuits

2013 G Miller. 3 Axis Brushless Gimbal Controller Manual

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Microprocessor Project Laboratory

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

The components. E3: Digital electronics. Goals:

Electronics and Soldering Notes

Arduino Lesson 4. Eight LEDs and a Shift Register

Electronics 5: Arduino, PWM, Mosfetts and Motors

Resistors in Series and Parallel Circuits

Electric Landing Gear controllers and sequencer LGC12 / LGC 13C

Arduino Lab 1 - The Voltage Divider

Lab 3 - DC Circuits and Ohm s Law

Kit Watt Audio Amplifier

step 1 Unpack the lunchbox And check whether you have got all the components~ If you have questions please contact us at: info@unitunlikely.

RADIANT PLASMA 4700 Plasma Spark Generator

Pulse Width Modulation (PWM) LED Dimmer Circuit. Using a 555 Timer Chip

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

ILISC515-A Shift Interlock (Manual Lift Door) 2015 Ford Transit, 3.7L and 3.5L

Mini Effect Gizmo. User s Manual. RJM Music Technology, Inc.

Example use of a microcontroller. Revolution Education Ltd. Web:

Chapter 19. Electric Circuits

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

EXPERIMENT 2 TRAFFIC LIGHT CONTROL SYSTEM FOR AN INTERSECTION USING S7-300 PLC

Lab 3 Rectifier Circuits

Switch board datasheet EB

GLOLAB Universal Telephone Hold

Using the Communication Ports on the DG-700 and DG-500 Digital Pressure Gauges

Speedlink software will run on Windows NT, Windows 7, and Windows 8; it will run on both 32 byte and 64 byte versions of Windows.

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

Talon VFD / Inverter Meter

Points Position Indicator (PPI1) for Points Motors with Common Ground

Electronic WorkBench tutorial

RGB for ZX Spectrum 128, +2, +2A, +3

!Operation:!1. Connect an external power source to J1 (+ and - IN terminals). The

NTE2053 Integrated Circuit 8 Bit MPU Compatible A/D Converter

Odyssey of the Mind Technology Fair. Simple Electronics

Glolab Talking Phone Dial Monitor

How To Import Credit Card Charges Into Concur

Getting started with the O Watch

Fundamentals of Signature Analysis

Interfacing Analog to Digital Data Converters

COBRA 18R2 Wired Reprogramming Instructions

Intro to Intel Galileo - IoT Apps GERARDO CARMONA

High voltage power supply (1 to 20 KV)

GLOLAB Two Wire Stepper Motor Positioner

"Sophisticated Model Railroad Electronics"

SYSTEM 4C. C R H Electronics Design

Adding Heart to Your Technology

Lesson 8: Simon - Arrays

Servo Info and Centering

LAB2 Resistors, Simple Resistive Circuits in Series and Parallel Objective:

Transcription:

Project 1: Introduction to Arduino and LED Blink (Sketch Version) Description: The Arduino is a microprocessor. A Microprocessor is a compact programmable computing device with memory, processing, input, and output pins. In this lesson we will: 1. Build and wire a device with one LED, resistor, and Arduino board. 2. Program the device to Blink the Light 3. Identify the flow of electricity / signal in this computing unit. 4. Use the Blockly Programming system to control speed of Blink. Build and Wiring: You will need: 1. LED Light Bulb (Any Color) 2. 330 Ohm Resistor 3. Red Wire 4. White Wire 5. Black (Or dark colored Wire)

Process: 1. Run a red Wire from the 5V Pin to the Red Rail on the Breadboard. This will connect the current side of the circuit. 2. Run a black (or dark colored wire) from the Gnd Pin of the Arduino to the Blue Rail on the far side of the Breadboard.

3. Plug an LED bulb into the circuit. Note that the longer pin will face the Arduino Board and the pins should cross the gap in the breadboard. (Plug the Long Pin into F5 and the Short Pin into E5). 4. This step is VERY IMPORTANT!!! Plug a 330 OHM resistor from Port B5 to Ground (The blue rail). An LED bulb must ALWAYS have a Resistor in the circuit. If we do not use a Resistor, we will burn out the bulb or the Arduino Board.

5. Now we will run the signal wire. Wire Pin 9 on the Arduino to H5 on the Breadboard. This will carry the current from the Arduino Pin to the LED and allow the Arduino to switch on and off the LED. 6. You are finished! Go on to the next section to program your Arduino.

Sketch Programming: 1. Start your Arduino Sketch Program by clicking on the Sketch Icon. 2. Save the code by selecting File-Save and naming the program lastnameblink.

3. We want to set up the code by writing some comments and defining the two required functions (void setup() and void loop())

4. We want to write a function for our Arduino to switch the light. Outline the function blink as demonstrated:

5. Our Arduino device has the LED plugged in to Pin 9. So we will write the command digitalwrite(9, HIGH) inside the blink function. (Note that HIGH means on or current will flow from pin 9)

6. We want the program to wait 1 second. So we will write delay(1000) in the function. Note that 1000 stands for 1000 milliseconds or 1 second.

7. Now we want PIN 9 to switch to LOW and then wait one second. Write the command digitalwrite(9, LOW) and then delay(1000) in the blink function.

8. We now need to initialize PIN 9 as an output pin. We do this initialization in the setup() function. Go to the setup function and add the code pinmode(9, OUTPUT); 9. Now we want the program to call the blink() function over and over so the LED will blink as long as the Arduino is on. Move to the loop() function and call blink() 10. Select File-Save and save your code. We are now ready to run the code on the Arduino.

Downloading the Blockly Program to the Arduino 1. Make sure you have the lastnameblink program open from the previous section. 2. Plug in your Arduino board to your computer via the USB port. 3. Click the Upload Icon to lead the code onto the Arduino. The light should blink!

7. Congratulations! Here are some other ideas to try: a. Change the value of the delay code to control the speed of the blink. b. Create a new function blinkfast and write a function that will blink the light faster than blink

Vocabulary: Arduino Micro-Processor: A mini computer with memory, processing, input, and output. We can program this computer to control electrical current and signals to control electric powered devices. Breadboard: Where we can wire electrical circuits and make connections without permanently soldering the connections. A test platform for developing electronic devices. Signal: A pulse or pulses of electrical current to carry information. The Arduino uses signals to control LED s, speakers, motors, and other devices. Current: A steady state of charge from the positive side of the circuit Volts: The measure of potential energy difference between the positive and negative side of a circuit. Amps: The measure of how much current passes through the circuit in a given length of time. Ground: The source of electrons or the negative side of the circuit. LED: Light Emitting Diode. Acts as a one way gate for current and will emit a light when current is passed through the LED. LED s use very little power and are very common in electronic devices. Any light you see on an electronic device most likely is created by an LED. LED s have two pins: The Long Pin is wired to the Current side (+ side) of the circuit (Anode) The Short Pin is wired to the Ground side (- side) of the circuit (Cathode) Resistor: Resists the flow of current and electrons in a circuit. Measured in Ohms.