Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,

Slides:



Advertisements
Similar presentations
EMS1EP Lecture 6 Digital Inputs
Advertisements

Simple Microcontroller Programming with PIC16F88.
Chapter 3: Digital Inputs - Pushbuttons
Lab7: Introduction to Arduino
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
ECE 265 – LECTURE 13 Interface to switches and LEDs 7/3/ ECE265.
Copier Jam Detector Design Problem
Electrical Engineering 1 WISE Investments Electrical Engineering Lab Digital Logic Laboratory Dr. Keith Holbert.
Input and Output Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale
Digital I/O Connecting to the Outside World
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
Mayuresh Varerkar. Block Diagram March 15,2011 Accelerometer Based Mouse - Mayuresh Varerkar 2 Accelerometer and Buttons µC Graphical LCD PC InputOutputProcessing.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
BASIC Stamp Editor Once installed, the Stamp Editor will be available on your desktop, and as a menu option under Start  Program Files  Parallax Inc.
Microprocessors Tutorial 1: Arduino Basics
A Simple Tour of the MSP430. Light LEDs in C LEDs can be connected in two standard ways. Active high circuit, the LED illuminates if the pin is driven.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Jessica.
MICRO CONTROLLER MODULE 1. Learning Objectives Name some gadgets that use microcontrollers. Define a microcontroller. Differentiate between a computer.
Introduction to Robo Pro
Forging new generations of engineers
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Software and documentation Download and install: “Setup-Stamp-Editor-Lrg-v2.2.6.exe”  Downloads  BASIC Stamp software BASIC Stamp Syntax.
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
Basic Digital Logic 2 Combinational Logic
1 Chapters 2 And 3 Presentation based on: "What's a Microcontroller ?" By Andy Lindsay Parallax, Inc Presentation developed by: Martin A. Hebel Southern.
Microcontroller I Seth Price Department of Chemical Engineering New Mexico Tech Rev. 9/22/14.
ECS642U Embedded Systems Cyclic Execution and Polling William Marsh.
Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.
CSC522 Embedded Systems Introduction to Circuit Design.
Slide Menlo Drive Suite 100 Rocklin, CA Presentation based on: “What’s a Microcontroller?" by Andy Lindsay Presented by Andy.
Slide Menlo Drive Suite 100 Rocklin, CA
Digital Electronics The Boe-Bot and Servo Motors.
Digital Electronics Board-of-Education : Output. Board of Education - Output This presentation will explain, both from a hardware and software perspective,
AND Gate Inputs Output Input A (Switch) Input B (Switch) Output Y (Lamp) 0 (Open) 0 (OFF) A B Lamp.
4) Design the logic to control the motor on a simple remote control car. There are two buttons on the remote control for the motor. If neither button is.
Basic Stamp OEM module By Wilmer Arellano. 2  The BASIC Stamp 2 OEM is a discreet component version of the BS2 which may be purchased in kit form. 
ISA CLICK CONTROL #38 – FALL 2014 ERIC BRUNNGRABER DRAKE ISABIRYE.
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.
Arduino.
Seven Segment Displays
Segment Identification
Arduino is an open-source platform for building electronics projects
Pull-Up & Pull-Down Resistors
Get Your Project Started with Arduino
Basic Digital Logic.
Building Raspberry Pi Controllers with Python
Seven Segment Displays
Seven Segment Displays
Programming Boe-Bots (Part 1)
How to avoid catching things on fire.
Seven Segment Displays
Chapter 2 Push button and Potentiometer
Chapter 5: Tactile Navigation With Whiskers
Seven Segment Displays
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Welcome to Digital Electronics using the Arduino Board
JC Technology Logic Gates.
Copier Jam Detector Design Problem
Introduction to Wiring Logic Gates
Digital INPUTS/OUTPUTS and interrupts
Logic Gates AIM: To know the different types of logic gate
Introduction to Arduino
Interrupts.
I/O Experiments Assignment 1.
Buttons.
Presentation transcript:

Digital Electronics Board-of-Education : Input

Board of Education - Input This presentation will explain, both from a hardware and software perspective, how to properly connect simple input devices to the BOE. 2

Input / Output Pins on the BOE 3 The BOE has sixteen (16) pins that can be used for input or output. These pins are labeled P0 thru P15 and are connected to two headers on the BOE. Additionally, the headers have V dd (5 volts) and V ss (ground) connections.

Push-Button Switch 4 Normally Open Push-Button Switch Sometimes called a Tactile Switch Pins 1&4 and 2&3 are internally connected. When the button is pressed, the switch is closed. (right picture) When the button is NOT pressed, the switch is open. (left picture)

Example Switch Input 5 If the button is NOT PRESSED, P3 is pulled to a logic low (0 volts) through the 10KΩ Ω resistors. If the button is PRESSED, P3 is pulled to a logic high (5 volts) through the 220 Ω resistor.

Example Switch Input - Hardware 6 Switch Circuit

Example Switch Input - Software The IN command reads the logic level of the specified pin. Example : IN 3 Reads the logic level at P3 If the button is NOT PRESSED… IN 3 Will read a logic ‘0’. If the button is PRESSED… IN 3 Will read a logic ‘1’. 7 Switch Circuit

Example BASIC Program #1 New Commands: IN DEBUG 8 DO DEBUG ? IN3 PAUSE 500 LOOP END  Start of the DO/LOOP  Reads the status of P3, Displays the results  Pauses for 500 mSec (0.5 seconds)  End of the DO/LOOP  Ends the program Results Displayed in the Debug window 

Example BASIC Program #2 New Commands: IF/THEN/ELSE 9 DO IF (IN3=1) THEN HIGH 14 LOW 13 ELSE LOW 14 HIGH 13 ENDIF PAUSE 50 LOOP END  Start of the DO/LOOP  Reads the status of P3…. If it equals 1…  Turn P14 ON  Turn P13 OFF  Else…  Turn P14 OFF  Turn P13 ON  End of the IF/THEN/ELSE Command  Pause for 50 mSec  End of the DO/LOOP  Ends the program

Example BASIC Program #3 New Commands: DO / LOOP with Until 10  Start of the DO/LOOP  Execute command1 while in the loop  Continue DO/LOOP Until P3 = 1  Execute AFTER it leaves the loop  Ends the program DO command1 LOOP UNTIL IN3=1 Command2 END

Resources Parallax Inc. (2004). What’s A Microcontroller. –Retrieved July 15, 2009 –fttp://