Microcontrollers Module 3: Digital Display. 7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display.

Slides:



Advertisements
Similar presentations
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Advertisements

Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Chapter 6: Digital Display
Seven Segment Display. What's A 7-Segment Display? A 7-segment display is a package with 7 bar-shaped LEDs arranged to allow the display of many useful.
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
EET 2261 Unit 8 Seven-Segment Displays; S19 Records; System Clocks
LOGIC DESIGN AND CIRCUITS SEVEN SEGMENT LED DISPLAY Res. Assist. Hale İnan 1.
ECE 2372 Modern Digital System Design
MICROCONTROLLERS MODULE 2 Programming, Controlling and Monitoring.
1 Boe-Bot Parts BOE-BOT Lecture #1b DE - Digital Electronics.
Physics 4341 Some lessons from Module 1. A control usually needs a default –It is not the equivalent to a constant, unless you make “current value default”
OTHER COMBINATIONAL LOGIC CIRCUITS
Electrical Engineering 1 WISE Investments Electrical Engineering Lab Digital Logic Laboratory Dr. Keith Holbert.
TK I/O Peripherals Interface DR MASRI AYOB.
BCD to 7-Segment Display
Digital Outputs 7-Segment Display
Input and Output Developed by: Electronic Systems Technologies College of Applied Sciences and Arts Southern Illinois University Carbondale
Lecture – 7 Basic input and output
Module 2 – Digital I/O Output: Use the digital port to provide signals to display a number on a seven segment light emitting display (LED) display by wiring.
SEVEN SEGMENT DISPLAY By :- Shubham & Sidhant. WHAT EXACTLY IT IS …?  A seven-segment display (SSD), or seven-segment indicator, is a form of electronic.
RM2F Input / Output (I/O) Pin grouping code!. I/O Pin Group Operations: The Spin language has provisions for assigning values to groups of bits in the.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
UNIVERSAL COLLEGE OF ENGINEERING &TECHNOLOGY DIGITAL ELECTRONICS SUBJECT - DIGITAL ELECTRONICS.
Microcontrollers Module 4: Motion Control. Module Objectives Upon successful completion of this module, students will be able to: Give examples of microcontroller.
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.
Introduction to Interfacing Projects Nareen Khan.
Last week’s project demos Servo control with photoresistor and enable/disable buttons Demo in class tonight – don’t start on the next project until I’ve.
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.
RM2D Let’s write our FIRST basic SPIN program!. The Labs that follow in this Module are designed to teach the following; Turn an LED on – assigning I/O.
Dept. of Mechatronics Engg. Intro to SSD and BCD to SSD( conversion ) Decoder. Lab 09 1.
Digital Electronics Board-of-Education : Input. Board of Education - Input This presentation will explain, both from a hardware and software perspective,
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
PHY 201 (Blum)1 Microcode Source: Digital Computer Electronics (Malvino and Brown)
Asttraining.com Scan Procedures for Ford EEC-V OBD II Systems.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
July 7, 2003 Slide 1 of 6 Automation, Robotics and Mechatronics Lab, SUNY at Buffalo Introduction To Programming Chetan Jadhav Talib Bhabharawala Seung-Kook.
Seven Segment Displays
Slide Menlo Drive Suite 100 Rocklin, CA
Slide 1 Chapter #7: Measuring Light Light Sensor Circuit Parts (1) (1)Resistor – 220 Ω (red-red-brown) (1) Capacitor – 0.1  F (1) Capacitor – 0.01  F.
ECE 320 Homework #3 1. Simplify the Boolean function F using the don’t care conditions d, in both S.O.P. and P.O.S. form: a) F=A’B’D’+A’CD+A’BC d=A’BC’D+ACD+AB’D’
Magnitude Comparator Dr. Ahmed Telba.
Digital Electronics Board-of-Education : Output. Board of Education - Output This presentation will explain, both from a hardware and software perspective,
PLC ARCHITECTURE – Memory 2 by Dr. Amin Danial Asham.
BCD S EVEN SEGMENT D ECODER. I NTRODUCTION  A Decoder IC, is a device which converts one digital format into another and the most commonly used device.
Synchronous Counter Design
Praxis I 13 Oct Outline Component & Device Measurement and Instrument Datasheet How to build circuit using breadboard.
Arduino “Getting Started” Instructor : Dr Matthew Miss Khin Yi Kyaw
7 SEGMENT INTERFACE WITH AVR MICROCONTROLLER A. D. Patel Institute Of Technology EC :- Sem VPresent By :- Pratik Makadia ( ) 23 June
Seven Segment Displays
Prototyping with Microcontrollers and Sensors
Fundamentals of Computer Engineering
LED - Infrared 850nm   Description: This is a very simple, clear infrared LED. These devices operate between nm and work well for generic IR systems.
Segment Identification
Combinational Logic Design&Analysis.
IR Communication Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Microcontroller 8951S #interface-2.
Display Devices 7 segment led display.
Introduction to Arduino Microcontrollers
IR Control Materials taken from a variety of sources including IR Remote for the Boe-Bot by Andy Lindsay.
Programming Boe-Bots (Part 1)
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 7) Hasib Hasan
Roller Coaster Design Project
Seven Segment Displays
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.
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
EET 2261 Unit 8 Seven-Segment Displays
Arduino 7 Segment Display Lab
Lab #1: Getting Started.
2019 Investing Now Summer Program
Presentation transcript:

Microcontrollers Module 3: Digital Display

7 – Segment Display A seven-segment display (SSD), or seven- segment indicator, is a form of electronic display device for displaying decimal numerals. display devicedecimal numerals Seven-segment displays are widely used in digital clocks, electronic meters, and other electronic devices for displaying numerical information. digital clocks

DECIMAL POINT Each of the segments A through G contains an LED that can be controlled individually

7-Segment LED Display Part Drawing and Pin Map Pin NoMapping 1Controls segment E 2Controls segment D 3 & 8Common Cathode 4Controls segment C 5Controls Decimal point 6Controls segment B 7Controls segment A 9Controls segment F 10Controls segment G

7-Segment Schematic Each LED anode is connected to an individual pin. All the cathodes share a common connection, therefore, the 7-segment LED display can be called a “common cathode” display. By connecting either pin 3 or pin 8 to Vss, you will connect all the LED cathodes to Vss

Lab Activity 1 Objective:To manually build a circuit and test each segment in a 7-segment display. Background:In the first part of this activity, you will manually build a circuit with 7-segment display and resistors, and ensure that each segment lights when power is applied to that particular segment. In the second part, you will display number‘3’and the letter ‘A’ using the 7-segment LED circuit.

Equipment: 7-segment LED display Resistors – 1 kΩ (brown-black-red) Jumper wires Procedure: Part A With power disconnected from your Board of Education, build the circuit shown in Figure

Reconnect power and verify that the A segment emits light. Repeat the procedure for verifying different segments to emit light.

Display a number Build and test the circuit shown in the foll. Figure and verify that it displays the number three.

Controlling 7 segment display using Basic Stamp Objective:To build and control the 7-segment display LED circuit. Background: In this activity, you will connect the 7-segment display to the BASIC stamp, and then run a simple program to test and make sure each LED is properly connected. The HIGH and LOW commands will accept a variable as a pin argument. Therefore, they are placed in a FOR… NEXT loop, and index is used to set the I/O pin, high, then low again.

Equipment: 7-segment LED display Resistors – 1 kΩ (brown-black-red) Jumper wires Procedure: Build the circuit shown in figure.

Program and the BASIC Stamp by following the steps below: Enter and run SegmentTestWithHighLow.bs2. Verify that every segment in the 7-segment LED displays lights briefly, turning on and then off again. Record a list of which segment each I/O pin controls

Programming 7- segment display using Basic Stamp 2 Including the decimal point there are eight different BASIC Stamp I/O pins that send high/low signals to the 7-segment display. That’s eight different HIGH or LOW commands just to display one number. It requires more space in memory, so there are special variables used.

DIRH and OUTH Variable. DIRH DIRH VARIABLE OUTH OUTH VARIABLE

DIRH VARIABLE DIRH Variable that controls the direction ( input or output ) of the pins P8 – P15 DIR – Short for direction H – For high P8 – P15 DIRL – Also used. L – low for P0 – P7 Using DIRH Variable DIRH = %

% - following means binary number – Each bit corresponds to a pin in the following order. % PIN INPUT 1 OUTPUT BACK

OUTH VARIABLE OUTH is a variable that controls the status of each output pin ( high or low ) for the pins P8 – P15 OUTH – HIGH ( P8 – P15 ) OUTL – LOW (P0 – P7 ) Using OUTH Variable OUTH = %

% - following means binary number – Each bit corresponds to a pin in the following order. % PIN LOW 1 HIGH BACK

Using DIRH and OUTH commands Look at the following commands now ! – OUTH = % – DIRH = % The first command: OUTH = % gets all of the I/O pins (P8 through P15) ready to send the low signals. If they all send low signals, it will turn all the LEDs in the 7-segment display off.

The I/O pins will not actually send the low signals until you use the DIRH variable to change all the I/O pins from input to output. The second command: DIRH = % sets all I/O pins P8 through P15 to output. As soon as this command is executed, P8 through P15 all start sending the low signal.

Write the OUTH command for the figure shown.

The picture shows number 3. For displaying number 3,the following pins to be set high. Refer the previous activitythe previous activity

For displaying 3 – Make A B C D G as 1 – Make F E DP as 0 From the figure we can write Hence the command is OUTH = % P BAFGDPCDE

Look up command  Used to write code  The look up command lets you “ look up “ elements in a list.  It will help you select an item from the list, or compare an item to a list of items.  Command Syntax:  LOOKUP index, [item1, item2,…], value

Example for LOOKUP command LOOKUP index, [7, 85, 19, 167, 28], value There are two variables used in this command, index and value. INDEX VALUE

LOOKDOWN COMMAND LOOKDOWN command compares a value with items in a list and informs the position (index) It is the reverse of the LOOKUP command. Command Syntax: LOOKDOWN value, comparison[item1, item2,…], index

Example for LOOKDOWN command LOOKUP index, [7, 85, 19, 167, 28], value There are two variables used in this command, index and value. VALUEINDEX

PROGRAMMING WITH BASIC STAMP

SOLUTION: Since index is 2, in this example, the LOOKUP command places 19 into value, and that’s what the Debug Terminal displays.

PROGRAMMING WITH BASIC STAMP

SOLUTION The value of index in this case would be “3”.