Lecture 12. Building an LED Display

Similar documents
M. Horowitz E40M Lecture 13

E40M LEDs, Time Multiplexing. M. Horowitz, J. Plummer, R. Howe 1

E40M LEDs, Time Multiplexing. M. Horowitz, J. Plummer, R. Howe 1

E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

Physics 120/220 Lab Equipment, Hints & Tips

Connecting LEDs to the ADB I/O

E40M. An Introduction to Making: What is EE?

E40M. Binary Numbers, Codes. M. Horowitz, J. Plummer, R. Howe 1

E40M Useless Box, Boolean Logic. M. Horowitz, J. Plummer, R. Howe 1

1/Build a Mintronics: MintDuino

Vout R LED2 LED1 Nr. of LEDs R Ohm Current ma Vout V Ardunio Pin9

PIC Dev 14 Through hole PCB Assembly and Test Lab 1

Discharge by touching: BNC coax shield, outlet metal cover plate, wire connected to GND

Which LED(s) turn on? May 12, 2017 ENGR 40M Spring 2017 C.Z. Lee, J. Plummer, R. Howe 1

LED Knight Rider. Yanbu College of Applied Technology. Project Description

PIC Dev 14 Surface Mount PCB Assembly and Test Lab 1

Analog Input. Sure sure, but how to make a varying voltage? With a potentiometer. Or just pot.

K8099 NIXIE CLOCK. * optional enclosure TKOK19 (black) - TKOK17 (white) ** optional plexiglass enlcosure B8099 ILLUSTRATED ASSEMBLY MANUAL

Digital Electronics & Computer Engineering (E85)

Which LED(s) turn on? May 4, 2018 E40M Spring 2018 T. Diamandis, J. Plummer, R. Howe, C. Z. Lee 1

Part 2: Building the Controller Board

dual bipolar voltage controlled step sequencer DIY ASSEMBLY MANUAL v1.03

Lab 0: Wire Wrapping Project: Counter Board

Introduction to CMOS VLSI Design (E158) Lecture 7: Synthesis and Floorplanning

Test Procedure: Fault Finding Circuits

Thumb Joystick Retail. Tools and parts you'll need. Things you'll want to know. How does it work? Skill Level: Beginner. by MikeGrusin March 22, 2011

Universal Keying Adapter 3+

DIY Kit 113. DUAL STEPPER MOTOR CONTROLLER

How-To: Make an RGB combination door lock (Part 1)

Necessary software and hardware:

USB PowerControl 0042-USBPC-DSBT / USBPCNE-DSBT

Halloween Pumpkinusing. Wednesday, October 17, 12

Cygnos360 V2 Installation Manual

Building the FlipChip Tester

Electronics Construction Manual

Which LED(s) turn on?

Arduino 05: Digital I/O. Jeffrey A. Meunier University of Connecticut

ArdPicProg. Arduino PIC Programmer Construction Manual. Version 1.2 Release date 03/2015. Gregor Schlechtriem

Module 3B: Arduino as Power Supply

Manual Version March 2007

K191 3 Channel RGB LED Controller

9 Output Devices: Buzzers

DSI-4. DMX Optically Isolated 1x4 Splitter. D Series. DSI_4 Users Manual r3.lwp copyright 2009, 2010, 2011 ELM V. T. Inc.

Adobe Flash CS3 Reference Flash CS3 Application Window

The GENIE Light Kit is ideal for introducing simple lighting projects, such as an electronic die, a wearable badge or a night-time warning system.

Lab 2.2 Ohm s Law and Introduction to Arduinos

Objectives: Learn how to input and output analogue values Be able to see what the Arduino is thinking by sending numbers to the screen

AUDIO AMPLIFIER PROJECT

Cube67 - Modular I/O station

MEGATRONICS V3.0 QUICK START GUIDE

Display Datasheet. 3.1", 105 ppi, 312x74 pixels

Lecture 8: Synthesis, Implementation Constraints and High-Level Planning

Proto-DB (#28310): Prototyping Daughterboard

Bill of Materials: 8x8 LED Matrix Driver Game PART NO

CHAPTER 5. Voltage Regulator

CS12020 (Computer Graphics, Vision and Games) Worksheet 1

MCU-9201MT22 venetian blind controller

PANDORA HACKER GUIDE

EK307 Lab: Microcontrollers

RC Tractor Guy Controller V2.1 Assembly Guide

Installation/assembly manual for DCC/Power shield

Wiring Instructions v3

Zero2Go. User Manual (revision 1.03) Wide Input Range Power Supply for Your Raspberry Pi. Copyright 2017 UUGear s.r.o. All rights reserved.

Pacific Antenna Two Tone Generator

Button Code Kit. Assembly Instructions and User Guide. Single Button Code Entry System

Microcontrollers. Outline. Class 1: Serial and Digital I/O. March 7, Quick Tour of the Board. Pins, Ports, and Their Registers

Using PSpice to Simulate Transmission Lines K. A. Connor Summer 2000 Fields and Waves I

DIGWDF Ren-W Universal Assembly Guide

10/24/2016. Let s Name Some Groups of Bits. ECE 120: Introduction to Computing. We Just Need a Few More. You Want to Use What as Names?!

Display Datasheet. 2.1", 132 ppi, 240x146 pixels

Images Scientific OWI Robotic Arm Interface Kit (PC serial) Article

Layad Circuits Arduino Basic Kit B. Content Summary

E85: Digital Design and Computer Engineering Lab 1: Electrical Characteristics of Logic Gates

VKey Voltage Keypad Hookup Guide

Electronics Construction Manual

Embedded Systems and Software

Laboratory of Sensors Engineering Sciences 9 CFU

Outline for Today. Lab Equipment & Procedures. Teaching Assistants. Announcements

EE115C Digital Electronic Circuits. Tutorial 4: Schematic-driven Layout (Virtuoso XL)

Build Your Own Home Security System

GSV-1A4 M12/2 M12/2. Highlights

University of Hull Department of Computer Science C4DI Interfacing with Arduinos

Network Controller. Installation/Troubleshooting Instructions NK220 COM1131C

4x4x4 LED Cube Kit with Arduino

Introduction to MATLABs Data Acquisition Toolbox, the USB DAQ, and accelerometers

Revision No. Date Description Item Page

Propeller Project Board USB (#32810)

EFL VI TESTER - TFT MANUEL BOOK

ARDUINO UNO REV3 Code: A000066

NAME EET 2259 Lab 3 The Boolean Data Type

XYLOPHONE KIT ESSENTIAL INFORMATION. Version 2.0 CREATE YOUR OWN ELECTRONIC MUSICAL INTRUMENT WITH THIS

The PUMPKIN LIGHT LED

HUB-ee BMD-S Arduino Proto Shield V1.1

Introduction to PSpice

Schematic Diagram: R2,R3,R4,R7 are ¼ Watt; R5,R6 are 220 Ohm ½ Watt (or two 470 Ohm ¼ Watt in parallel)

Assembling the Printed Circuit Board for the EDE1200 Robot

Troubleshooting a K40 Laser Power Subsystem

DEV-1 HamStack Development Board

AXE Stack 18. BASIC-Programmable Microcontroller Kit. An inexpensive introduction to microcontroller technology for all ability levels

Building your own special-purpose embedded system gadget.

Transcription:

Lecture 12 Building an LED Display Copyright 2017 by Mark Horowitz 1

By the End of Lecture, You Should Be Able To: Use LEDs in simple circuits Use time division multiplexing to control LEDs Control n 2 lights using only 2n wires By turning n lights on in n different time slices Create a 2-D plane of LEDs that can be multiplexed And be able to stack planes to create a cube 2

LED Cube You are building a 4 x 4 x 4 cube of LEDs You can choose Red, Green, Blue, White Or can mix it up Two challenges How to control 64 lights? How to build something With 64 elements That is a lot of soldering A little planning will go a long way Friday s lecture will discuss building the cube strategies. M. Horowitz, J. Plummer 3

The Control Problem Our cube has 64 lights We would like to allow any combinations of lights to be on So you can create any light pattern that you would like If every light is independent Need at least one bit per light (on, off) State of lights is 64 bits (4x4x4 array) Our computer only has around 20 digital output pins And 20 is less than 64. Need to communicate 64 bits over 20 pins. How are we going to do this? M. Horowitz, J. Plummer 4

Optical Persistence We can take advantage of the fact that our eyes are slow If we turn an LED ON and OFF faster than our eyes can see then we will perceive a constant light intensity. The flicker fusion rate is around 30Hz Your eye averages the signal Off On Time Electronics takes advantage of the fact that your eyes are slow Creates more outputs than wires Creates analog light output values on digital pins M. Horowitz, J. Plummer 5

Basic Approach If I have many lights, I don t need to turn them all on at once I can create different slots in each time period Say I created 8 slots Then I only need to light 64 / 8 lights in each slot But how do I get the right lights to light up at the right time? Leverage the diode nature of the LED M. Horowitz, J. Plummer 6

LED Wiring Diagram M. Horowitz, J. Plummer 7

Where To Put The Resistor? M. Horowitz, J. Plummer 8

LED Array Wiring Diagram M. Horowitz, J. Plummer 9

Testing Our Understanding If we use time division multiplexing to drive the LED array How do you light up the red LEDs? How many time slots? T3 T2 T1 T0 N0 N1 N2 N3 M. Horowitz, J. Plummer 10

Driving the LED Cube M. Horowitz, J. Plummer 11

BUILDING THE LED CUBE Watch Mark Horowitz build an LED cube: Tutorial 4 on class website https://www.youtube.com/watch?v=4u4eand1yek&feature=youtu.be 12

The Numbers You have 64 LEDs Each has 2 wires, generally are soldering two wires together End up with 64+ solder joints This is not a huge amount But it is larger than a few And there are not to a well defined structure They are not going to be fixed on a printed wiring board You should be thinking about How to minimize the work you need to do How to catch your mistakes early When they are easier to fix, and so you don t repeat them 13

Making the Soldering Easier Since we need to do the same thing multiple times Need to build each plane And each plane consists of a set of rows What can we do to make the task easier? Think about how the lights will connect to each other Is there a way to make the connections easier to solder Before building the cube, test out your ideas Try before committing to a method Optimizing your technique might save you time in the long run If things are not working, think about what is going wrong Why isn t it working, and what can you do to fix that problem 14

Repetition Is Good While doing the same thing multiple times gets boring That is not all bad Boring means you don t need to think very much to do the job At Stanford, that can be relaxing ;-) It also means that your design will be modular You are building the same part multiple times So you can use one jig to test all the modules Can even build a jig to help you do the soldering Soldering things hanging in space is hard You don t have enough hands 15

For the LED Array Want the + to run horizontally And the - to run vertically Bend the leads of each LED 90 o to each other And make them different heights! 16

Building a Row 17

Adding Next Row 18

Final Array 19

Cube is a Little More Complex But actually is it not much worse Start with the LED plane and build 4, 4x4 planes Each plane would be straight forward to make Now the question is how to connect them together? 20

Currently You Have This 4, 4x4 planes top 2nd Would like to create an 8x8 array Create 2, 4x8 arrays by connecting the anodes of 1 st & 2 nd planes together and the 3 rd and 4 th anodes together bottom 3rd 21

Connecting Anodes of Planes To connect the 4 anode wires of the two planes On the top plane bend the 4 LED + leads on the left down But leave a little room to bypass the LED On the 2 nd plane, bend the 4 LED + leads on the left up But leave a little room to bypass the LED and miss the wire Solder these 4 wires to each other Your two planes will be floppy Solder two wires on the left, for mechanical support 22

Place 1 st Plane in Pliers to Hold 23

Add 2 nd Plane 24

2 Plane Module 25

Now You Have This top 2nd 2, 4x8 planes that are folded around the y axis Create an 8x8 array by connecting the wires of 1 st & 2 nd planes to the wires of the 4 th and 3 rd planes bottom 3rd 26

Final Cube top 2nd bottom 3rd 27

Completed Cube 28

By the End of Lecture, You Should Be Able To: Use LEDs in simple circuits Use time division multiplexing to control LEDs Control n 2 lights using only 2n wires By turning n lights on in n different time slices Create a 2-D plane of LEDs that can be multiplexed And be able to stack planes to create a cube 29

LED Cube Driver 30

So We Soldered Our Cube We have an 8 x 8 array Logically looks like: Physically it is different Need to drive it To light up the lights For independent light control Either only one + wire high Or only one - wire low Max of 8 LEDs on at once 31

The LED Driver Current Requirements Look at current requirements - wires drive 8 LEDs; + wires drive 8 LEDs But we decided to drive only + wire high at a time So each - wire can drive only one LED that is on at any time But each + wire can drive 8 LEDs that are on at on time How much current will each LED take? Series resistance is about 100 total 82 from explicit resistor, 20-30 from pin Voltage drop across this resistance is 2-3V Current is approximately 20-30mA (for green/blue or red) 32

Arduino Current Limitations If you read Arduino specs Each pin can drive 40mA Whole chip should drive less than 200mA Pin current is limited by MOS devices on the chip Have measured 20 ohm If you measure the current it is less ~60mA This makes sense. If the spec is 40mA That is the guaranteed value. Nominally it will be higher 33

Max Chip Current https://www.flickr.com/photos/john_gammell/4562350638/ Why is there a max total chip current? When current flows out of pin It must flow in from somewhere i = 0 Somewhere is the Gnd pin Or Vdd The current must flow through some small wires Called bonding wires, which connect chip to package Too much current and these wires become fuses Poof, and it is gone Very conservatively spec d. Probably 400mA is ok But remember Poof is possible and permanent 34

How to Drive Your LEDs Arduino can drive the - wires directly Use 82 series resistor to limit current Current will be 20mA for blue/green LEDs, 30mA for red Total Arduino current will be around 240mA max Above spec, but will be ok + wire driver will need to supply 160-240mA Arduino can t drive that current Will need an external driver for that What type or driver do we need? 35

Driving the + Wires of the Cube Want to build as little as possible Need to build 8 of them What do we need? Need to connect to Vdd Need to disconnect from Vdd Don t need to drive it to Gnd 36

Where To Put The Resistor and Transistor? 37