LED and a Button.

Slides:



Advertisements
Similar presentations
Digital & Analog Inputs. Review Fundamental parts of an Arduino program are … Setting output types using pinMode. Declaring variables Can write a digital.
Advertisements

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.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
Embedded Programming and Robotics
Image of Arduino. Arduino discussion Address issues with circuit walk-through – Electricity, Programming, Arduino Concepts Work on BeatTable (next week)
Microprocessors Tutorial 1: Arduino Basics
Introduction to the Arduino
Cascade switching of an LED EAS 199B Winter 2013.
Circuits Lab Introduction
Good LED Circuit 5V0 GND. What Voltage Does Meter See? Answer: 5 V.
Microprocessors Tutorial 1: Arduino Basics
Circuits, Systems, & the Arduino. Challenge: Make the bulb light up! -Make observations and explain why it has the setup it does? - What are the components.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
Microcontroller Hands-on Workshop #2 Ahmad Manshad New Mexico State University Institute of Electrical and Electronics Engineers October 31, 2009.
MAKE: AN ELECTRONICS WORKSHOP
Rebecca Bruce and Susan Reiser, May 2015 Analog Input and Output.
INTERNET OF EVERYTHING SDU 2016 Week 4. Simple Digital and Analog Inputs  The Arduino’s ability to sense digital and analog inputs allows it to respond.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Microcontroller basics Embedded systems for mortals.
Robotics Grant Agreement No LLP UK-LEONARDO-LMP Project acronym: CLEM Project title: Cloud services for E-Learning in Mechatronics Technology.
Bdps 2 Lecture 2. Circuits and Ohm's Law For resistive circuits.
LAB1 TYWU. Devices Dip Switch (4 Switches) Triple Output LED (RGB) –Common Cathode.
A LECTURE ON Arduino Interface With LabVIEW (Used Boards: Arduino UNO & Arduino MEGA 2560) By Satish Kumar Rai Assistant Professor Department of ECE BKBIET,
Arduino DC Motor Motion Control Instructor: Dr Matthew Khin Yi Kyaw.
:Blink Blink: Er. Sahil Khanna
Transistors to Gates © 2011 Project Lead The Way, Inc.Magic of Electrons.
ISA CLICK CONTROL #38 – FALL 2014 ERIC BRUNNGRABER DRAKE ISABIRYE.
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 Transistor. 2 Transistors are used to turn components on and off They come in all different shapes and sizes.
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 Setup & Flexing the ExBow
Assist. Prof. Rassim Suliyev - SDU 2017
Prototyping with Microcontrollers and Sensors
Microcontroller basics
Microcontroller basics
Microprocessors Tutorial 1: Arduino Basics
UTA010 : Engineering Design – II
Cascade switching of an LED
Get Your Project Started with Arduino
Logic Gates.
Liquid Crystal Display Arduino
Building Raspberry Pi Controllers with Python
Introduction to Arduino Microcontrollers
How to avoid catching things on fire.
Analog Input through POT
Roller Coaster Design Project
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.
Chapter 2 Push button and Potentiometer
Universal Interface, 12-fold, FM US/U 12.2
CS-4540 Robotics - Lab 05 Switch inputs to the Arduino Uno
The schematic of the wire connection in the module
Arduino Board.
Transistors to Gates Transistors to Gates Gateway To Technology
Learning outcomes 2.1 Parts and features of Maker?
Chapter 1 Introduction of Arduino
Introduction to Wiring Logic Gates
Making) LED table lamp.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino 7 Segment Display Lab
Arduino Uno circuit basics
Introduction to Arduino
Arduino Board.
Arduino म्हणजे काय?.
Arduino程式範例.
Logic Gates and Memory.
Buttons.
Presentation transcript:

LED and a Button

Led Output For the brains of our thermo chamber we will be using an Arduino Mega as it provides far more input/output pins than the Uno We are going to setup a button to digitally control an LED using a program on the Arduino. Example code is on course site Use pin 22 as the output to power the LED, as in the Blink program created earlier.

Digital Input Background Reseach Pull-up and Pull-down resistors http://en.wikipedia.org/wiki/Pull-up_resistor Read the Arduino reference page on Digital Pins http://arduino.cc/en/Tutorial/DigitalPins Read over the Arduino Digital Input excerpt from the Arduino Programming Notebook (on Coursesite) What is the digital input threshold? Could you figure it out through experimentation?

Adding a button What is the button schematic? No part number – Use an ohm meter to figure it out yourself We will use a Pull-down resistor based upon the schematic from the Arduino Digital Input diagram Use pin 23 as the input channel to tell the Arduino when to turn on the LED Example Button http://www.cooking-hacks.com/index.php/momentary-push-button-switch-12mm-square.html

Wiring Schematic Does your button match this wiring diagram? Digital Input Schematic

LED + Button Picture