Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink

Similar documents
Objective of the lesson

For this exercise, you will need a partner, an Arduino kit (in the plastic tub), and a laptop with the Arduino programming environment.

FABO ACADEMY X ELECTRONIC DESIGN

Lab 2: Blinkie Lab. Objectives. Materials. Theory

Two Hour Robot. Lets build a Robot.

Lab 2.4 Arduinos, Resistors, and Circuits

Lesson 3: Arduino. Goals

Programming 2 Servos. Learn to connect and write code to control two servos.

Arduino Workshop 01. AD32600 Physical Computing Prof. Fabian Winkler Fall 2014

Coding with Arduino to operate the prosthetic arm

Rodni What will yours be?

Arduino Lesson 1. Blink. Created by Simon Monk

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

PLAN DE FORMACIÓN EN LENGUAS EXTRANJERAS IN-57 Technology for ESO: Contents and Strategies

EGG 101L INTRODUCTION TO ENGINEERING EXPERIENCE

Electronic Components

LED + Servo 2 devices, 1 Arduino

Pulse Width Modulation and

A servo is an electric motor that takes in a pulse width modulated signal that controls direction and speed. A servo has three leads:

PIR Motion Detector Experiment. In today s crime infested society, security systems have become a much more

Lecture 4: Basic Electronics. Lecture 4 Brief Introduction to Electronics and the Arduino

EE-110 Introduction to Engineering & Laboratory Experience Saeid Rahimi, Ph.D. Labs Introduction to Arduino

Breadboard Primer. Experience. Objective. No previous electronics experience is required.

Introduction 1. Download socket (the cable plugs in here so that the GENIE microcontroller can talk to the computer)

Module: Arduino as Signal Generator

Build a Mintronics: MintDuino

Internet of Things Student STEM Project Jackson High School. Lesson 2: Arduino and LED

The Motor sketch. One Direction ON-OFF DC Motor

Demon Pumpkin APPROXIMATE TIME (EXCLUDING PREPARATION WORK): 1 HOUR PREREQUISITES: PART LIST:

Arduino An Introduction

Arduino Setup & Flexing the ExBow

TV Remote. Discover Engineering. Youth Handouts

Circuit Board Assembly Instructions for Babuinobot 1.0

Programming a Servo. Servo. Red Wire. Black Wire. White Wire

Attribution Thank you to Arduino and SparkFun for open source access to reference materials.

Workshop 9: First steps in electronics

Activity 2: Opto Receiver

CONSTRUCTION GUIDE Robotic Arm. Robobox. Level II

Digital Electronics & Chip Design

Peek-a-BOO Kit JAMECO PART NO / / Experience Level: Beginner Time Required: 1+ hour

Internet of Things Student STEM Project Jackson High School. Lesson 3: Arduino Solar Tracker

Project Kit Project Guide

Light Emitting Diode IV Characterization

J. La Favre Using Arduino with Raspberry Pi February 7, 2018

Arduino: Sensors for Fun and Non Profit

Workshops Elisava Introduction to programming and electronics (Scratch & Arduino)

WEEK. Learning Objective. Materials to Prepare LESSON

Laboratory 6 Diodes and Transistors

Lesson 2: Soldering. Goals

Programmable Control Introduction

Arduino Sensor Beginners Guide

On the front of the board there are a number of components that are pretty visible right off the bat!

CONSTRUCTION GUIDE Capacitor, Transistor & Motorbike. Robobox. Level VII

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. S4A - Scratch for Arduino Workbook

Blink. EE 285 Arduino 1

Bill of Materials: PWM Stepper Motor Driver PART NO

The USELESS BOX. Procedure:

HAW-Arduino. Sensors and Arduino F. Schubert HAW - Arduino 1

Give one or two examples of electrical devices that you have personally noticed getting warm when they are turned on.

Getting started with the SparkFun Inventor's Kit for Google's Science Journal App

INA169 Breakout Board Hookup Guide

Pi-Cars Factory Tool Kit

WEEK. Learning Objective. Materials to Prepare. Summary of Class LESSON

Aim: To learn the resistor color codes and building a circuit on a BreadBoard. Equipment required: Resistances, millimeter, power supply

HOW TO BUILD A CAR PARK WITH INTEL GALILEO!

TETRIX PULSE Workshop Guide

Ardweeny 1.60" 0.54" Simple construction - only 7 parts plus pins & PCB! Ideal for breadboard applications

MAKEVMA502 BASIC DIY KIT WITH ATMEGA2560 FOR ARDUINO USER MANUAL

MATERIALS TO GATHER. Electronic Parts

Blue Point Engineering

LESSONS Lesson 1. Microcontrollers and SBCs. The Big Idea: Lesson 1: Microcontrollers and SBCs. Background: What, precisely, is computer science?

Congratulations on your purchase of the SparkFun Arduino ProtoShield Kit!

ZX Distance and Gesture Sensor Hookup Guide

Breadboard Arduino Compatible Assembly Guide

Lab 5: Arduino Uno Microcontroller Innovation Fellows Program Bootcamp Prof. Steven S. Saliterman

introduction to Digital Electronics Install the Arduino IDE on your laptop if you haven t already!

The DesignaKnit USB E6000 Link 1 & 2

CONSTRUCTION GUIDE IR Alarm. Robobox. Level I

CURIE Academy, Summer 2014 Lab 2: Computer Engineering Software Perspective Sign-Off Sheet

HANDS-ON LAB INSTRUCTION SHEET MODULE 3 CAPACITORS, TIME CONSTANTS AND TRANSISTOR GAIN

Smart Circuits: Lights On!

APDS-9960 RGB and Gesture Sensor Hookup Guide

EET 1150 Lab 6 Ohm s Law

CamJam EduKit Robotics Worksheet Six Distance Sensor camjam.me/edukit

Studuino Icon Programming Environment Guide

Pibrella Fairground Ride. This lesson follows on from the Pelican Crossing lesson

Getting Started with the micro:bit

smraza Getting Start Guide Contents Arduino IDE (Integrated Development Environment)... 1 Introduction... 1 Install the Arduino Software (IDE)...

In this project, you will create a memory game where you have to memorise and repeat a sequence of random colours!

Using the Pythagorean Theorem to Explore and Measure Topography in 2D/3D Space

Sten-Bot Robot Kit Stensat Group LLC, Copyright 2013

Experiment #3: Micro-controlled Movement

TOP SERVO SIGNAL 5 SERVO SIGNAL 3 SERVO SIGNAL 4 SERVO SIGNAL 6 T B T B T B T B T B SERVO TRIGGER 1 BOTTOM

Electric Circuit I Lab Manual Session # 2

The µbotino Microcontroller Board

Physics 323. Experiment # 1 - Oscilloscope and Breadboard

PSoC and Arduino Calculator

Laboratory Project 1a: Power-Indicator LED's

Sidekick Basic Kit for Arduino V2 Introduction

MICROCONTROLLERS BASIC INPUTS and OUTPUTS (I/O)

Transcription:

Objectives: Learn what an Arduino is and what it can do Learn what an LED is and how to use it Be able to wire and program an LED to blink By the end of this session: You will know how to use an Arduino and have a better understanding of how many electronic devices are made Page: 1

A microcontroller with many inputs and outputs which you can program to turn lights on, react to button pushes, control motors and do many more things. It acts as the brains in the circuits. You will use it for every project. Arduino Uno A collection of holes that are connected together in lines to easily join components together. Breadboard Wires to join the breadboard to the Arduino and also to link connections on the breadboard. Jumper Wires LED stands for Light Emitting Diode. They are lights that only work when they are used the correct way around. LED s Resistors come in many different values, and have different coloured stripes, they are used to protect LEDs from getting destroyed by too much current Page: 2

1) Place the breadboard on the table. As shown in the picture, each column is connected together inside. (All of the red holes are connected together, but they are separate from the yellow column.) 2) Look at the LED, you will see that one leg is shorter than the other, and that one side of the plastic is flat. Make sure that the flat side (short leg) is facing left (<- side). 3) Push the resistor into the breadboard, it does not matter which way around it goes in. 4) Push a wire into the Arduino s pin 13 and into the column with the resistor. Page: 3

5) Connect a wire between the Arduino s GND pin and the column in which the short leg of the LED is inserted. NOTE: Pin 13 is special, it is attached to an LED on the Arduino already, so you don t have to wire one up separately on a breadboard like this, however it is important to learn how it works. Page: 4

1) Plug the USB cable into the Arduino and Computer, then open the Arduino Program. 2) Visit the webpage where you found this document and copy and paste the Blink template program into the Arduino window. 3) An Arduino program has two main sections: The setup function runs once at the start of the program, then the loop function runs over and over again. When it gets to the end, it starts the loop function again. 4) Firstly, type this line to tell the program, that we want to call pin 13 LED. In the setup function we need to tell the Arduino that we want LED to be an output. Page: 5

5) Now, the Arduino knows that we have an LED connected to pin 13, so we just need to tell it what we want it to do with it. Firstly, make it blink an LED (turn it on and off) over and over again. To do this we need to write code in the loop section: HIGH means turn on LOW means turn off Delay(1000); means delay 1 second 6) Upload the program by clicking on the upload button. 7) Your LED should turn on and off every second. This is because even though you only wrote code to turn it on and off once, because it is in the loop function, it repeats forever! Try changing the delay number to 200 or 2000, repeat step 6 and watch what happens. Page: 6

8) Try connecting another LED in the breadboard as shown in the diagram. You will need to connect it to a pin other than pin 13, say pin 12, then connect the other side to the GND pin. You will see that the black wire connects the two LED s together, but since the first LED s leg was connected to GND, both LED s legs become connected to GND. Page: 7

9) We need to tell the program that we have added another LED. Firstly, we need to give it a name We need to tell it that LED1 is an output We then need to tell it what we want it to do. Here it is turning LED1 off and LED on, then waiting a second before doing the opposite. 10) Upload the program by clicking on the upload button. Page: 8

11) You should see the LEDs flashing alternately. Try experimenting and moving the digitalwrite lines so that both LED s flash at the same time, or make them on for a long time and off for a short time. Remember, whenever you change the program, you need to click the upload button to see the new program working! Extension task If you finish all of these steps, remove your wires from the Arduino and plug in the circuit board as shown in the picture. Extension task If you finish all of these steps, remove your wires from the Arduino and plug in the circuit board as shown in the picture. The LEDs are connected as follows: Red: pin 11 Amber: pin 12 Green: pin 13 Try and make a program to make them light in a Traffic light sequence. The board contains LEDs connected to pins 9, 10, 11, 12 and 13. Use these numbers in your program and make them flash alternately, or scroll along the row. Page: 9