ShiftOut Tutorial. Maria Taylor

Size: px
Start display at page:

Download "ShiftOut Tutorial. Maria Taylor"

Transcription

1 ShiftOut Tutorial Maria Taylor The Shift register works from Left to Right. The side with the indent is Up indicating that the left pin is #1 and the right pin is #16. Step #1: Assess the board. Depict top from bottom, left from right and understand the order of the pins. Step two: o GND (Pin 8) to ground o Vcc (Pin 16) to 5v o OE (Pin 13) to Ground o MR (Pin 10 to 5v Step Three: o DS (Pin 14) to Arduino Pin 11

2 o SH_CP (Pin 11) to Arduino Pin 12 o ST_CP (Pin 12) to Arduino Pin 8 Step Four: o Add 8 Leds with 220 ohm resistors. Code 1: Checks Voltage //Pin connected to ST_CP of 74HC595 int latchpin = 8; //Pin connected to SH_CP of 74HC595 int clockpin = 12; ////Pin connected to DS of 74HC595 int datapin = 11; void setup() { //set pins to output so you can control the shift register pinmode(latchpin, OUTPUT);

3 pinmode(clockpin, OUTPUT); pinmode(datapin, OUTPUT); void loop() { // count from 0 to 255 and display the number // on the LEDs for (int numbertodisplay = 0; numbertodisplay < 256; numbertodisplay++) { // take the latchpin low so // the LEDs don't change while you're sending in bits: digitalwrite(latchpin, LOW); // shift out the bits: shiftout(datapin, clockpin, MSBFIRST, numbertodisplay); //take the latch pin high so the LEDs will light up: digitalwrite(latchpin, HIGH); // pause before next value: delay(500); Code Two: Makes Lights Blink 1 by 1 */ //Pin connected to latch pin (ST_CP) of 74HC595 const int latchpin = 8; //Pin connected to clock pin (SH_CP) of 74HC595 const int clockpin = 12; ////Pin connected to Data in (DS) of 74HC595 const int datapin = 11; void setup() { //set pins to output because they are addressed in the main loop

4 pinmode(latchpin, OUTPUT); pinmode(datapin, OUTPUT); pinmode(clockpin, OUTPUT); Serial.begin(9600); Serial.println("reset"); void loop() { if (Serial.available() > 0) { // ASCII '0' through '9' characters are // represented by the values 48 through 57. // so if the user types a number from 0 through 9 in ASCII, // you can subtract 48 to get the actual value: int bittoset = Serial.read() - 48; // write to the shift register with the correct bit set high: registerwrite(bittoset, HIGH); // This method sends bits to the shift register: void registerwrite(int whichpin, int whichstate) { // the bits you want to send byte bitstosend = 0; // turn off the output so the pins don't light up // while you're shifting bits: digitalwrite(latchpin, LOW); // turn on the next highest bit in bitstosend: bitwrite(bitstosend, whichpin, whichstate); // shift the bits out: shiftout(datapin, clockpin, MSBFIRST, bitstosend);

5 // turn on the output so the LEDs can light up: digitalwrite(latchpin, HIGH); Code Three: Array Introduction */ //Pin connected to ST_CP of 74HC595 int latchpin = 8; //Pin connected to SH_CP of 74HC595 int clockpin = 12; ////Pin connected to DS of 74HC595 int datapin = 11; //holders for infromation you're going to pass to shifting function byte data; byte dataarray[10]; void setup() { //set pins to output because they are addressed in the main loop pinmode(latchpin, OUTPUT); Serial.begin(9600); //Binary notation as comment dataarray[0] = 0xFF; //0b dataarray[1] = 0xFE; //0b dataarray[2] = 0xFC; //0b dataarray[3] = 0xF8; //0b dataarray[4] = 0xF0; //0b dataarray[5] = 0xE0; //0b dataarray[6] = 0xC0; //0b dataarray[7] = 0x80; //0b dataarray[8] = 0x00; //0b dataarray[9] = 0xE0; //0b

6 //function that blinks all the LEDs //gets passed the number of blinks and the pause time blinkall_2bytes(2,500); void loop() { for (int j = 0; j < 10; j++) { //load the light sequence you want from array data = dataarray[j]; //ground latchpin and hold low for as long as you are transmitting digitalwrite(latchpin, 0); //move 'em out shiftout(datapin, clockpin, data); //return the latch pin high to signal chip that it //no longer needs to listen for information digitalwrite(latchpin, 1); delay(300); // the heart of the program void shiftout(int mydatapin, int myclockpin, byte mydataout) { // This shifts 8 bits out MSB first, //on the rising edge of the clock, //clock idles low //internal function setup int i=0; int pinstate; pinmode(myclockpin, OUTPUT); pinmode(mydatapin, OUTPUT); //clear everything out just in case to //prepare shift register for bit shifting

7 digitalwrite(mydatapin, 0); digitalwrite(myclockpin, 0); //for each bit in the byte mydataout //NOTICE THAT WE ARE COUNTING DOWN in our for loop //This means that % or "1" will go through such //that it will be pin Q0 that lights. for (i=7; i>=0; i- - ) { digitalwrite(myclockpin, 0); //if the value passed to mydataout and a bitmask result // true then... so if we are at i=6 and our value is // % it would the code compares it to % // and proceeds to set pinstate to 1. if ( mydataout & (1<<i) ) { pinstate= 1; else { pinstate= 0; //Sets the pin to HIGH or LOW depending on pinstate digitalwrite(mydatapin, pinstate); //register shifts bits on upstroke of clock pin digitalwrite(myclockpin, 1); //zero the data pin after shift to prevent bleed through digitalwrite(mydatapin, 0); //stop shifting digitalwrite(myclockpin, 0); //blinks the whole register based on the number of times you want to //blink "n" and the pause between them "d" //starts with a moment of darkness to make sure the first blink

8 //has its full visual effect. void blinkall_2bytes(int n, int d) { digitalwrite(latchpin, 0); shiftout(datapin, clockpin, 0); shiftout(datapin, clockpin, 0); digitalwrite(latchpin, 1); delay(200); for (int x = 0; x < n; x++) { digitalwrite(latchpin, 0); shiftout(datapin, clockpin, 255); shiftout(datapin, clockpin, 255); digitalwrite(latchpin, 1); delay(d); digitalwrite(latchpin, 0); shiftout(datapin, clockpin, 0); shiftout(datapin, clockpin, 0); digitalwrite(latchpin, 1); delay(d);

3 Wire LED Module (SKU:DFR0090)

3 Wire LED Module (SKU:DFR0090) 3 Wire LED Module (SKU:DFR0090) Contents 1 Introduction 2 Connection 3 Pinout Diagram 4 Sample Code 4.1 Test Procedure 4.2 Operating procedure Introduction This is 8 digital bits serial LED display. It

More information

Project 18 Dual 8-Bit Binary Counters

Project 18 Dual 8-Bit Binary Counters Project 18 Dual 8-Bit Binary Counters In Project 18, you will daisy chain (or cascade) another 74HC595 IC onto the one used in Project 17 to create a dual binary counter. Parts Required 2 74HC595 Shift

More information

Project 17 Shift Register 8-Bit Binary Counter

Project 17 Shift Register 8-Bit Binary Counter Project 17 Shift Register 8-Bit Binary Counter In this project, you re going to use additional ICs (Integrated Circuits) in the form of shift registers in order to drive LEDs to count in binary (I will

More information

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 15. Shift Register 8-Bit Binary Counter

Earthshine Design Arduino Starters Kit Manual - A Complete Beginners Guide to the Arduino. Project 15. Shift Register 8-Bit Binary Counter Project 15 Shift Register 8-Bit Binary Counter 84 Project 15 - Shift Register 8-Bit Binary Counter Right, we are now going to delve into some pretty advanced stuff so you might want a stiff drink before

More information

60mA maximum (all channels on)

60mA maximum (all channels on) macetech documentation ShiftBrite 2.0 A ShiftBrite 2.0 [http://macetech.com/store/index.php?main_page=product_info&cpath=1& products_id=1] has an RGB LED and a small controller chip, the Allegro A6281.

More information

Chapter 2 The Basic Functions

Chapter 2 The Basic Functions Chapter 2 The Basic Functions 2.1 Overview The code you learn to write for your Arduino is very similar to the code you write in any other computer language. This implies that all the basic concepts remain

More information

THE BASIC STARTER KIT TUTORIAL FOR UNO

THE BASIC STARTER KIT TUTORIAL FOR UNO THE BASIC STARTER KIT TUTORIAL FOR UNO V1.0.17.7.9 Our Company Preface Established in 2011, Elegoo Inc. is a thriving technology company dedicated to opensource hardware research & development, production

More information

REMOTE LABORATORIES USING THE TRAINING MODULEM2CI

REMOTE LABORATORIES USING THE TRAINING MODULEM2CI REMOTE LABORATORIES USING THE TRAINING MODULEM2CI Diego F. Sendoya-Losada 1, Pedro Torres Silva 2 and Fabián Bolívar Marín 2 1 Department of Electronic Engineering, Faculty of Engineering, Surcolombiana

More information

I2C interface Tutorial

I2C interface Tutorial UG108: Praxis II January 2013 Asian Institute of Technology Undergraduate Program Handout: I2C interface Instructor: Chaiyaporn Silawatchananai, Matthew N. Dailey I2C interface Tutorial Introduction: In

More information

Adafruit 1-Wire GPIO Breakout - DS2413

Adafruit 1-Wire GPIO Breakout - DS2413 Adafruit 1-Wire GPIO Breakout - DS2413 Created by Bill Earl Last updated on 2018-08-22 03:40:00 PM UTC Guide Contents Guide Contents Overview Assembly & Wiring Headers Position the Header And Solder! Wiring

More information

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno.

This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. This tutorial will show you how to take temperature readings using the Freetronics temperature sensor and an Arduino Uno. Note that there are two different module types: the temperature sensor module and

More information

4X4 Driver Shield Manual

4X4 Driver Shield Manual 3/31/2012 4X4 Driver Shield Manual High current, high side switching for Arduino Logos Electromechanical 4X4 Driver Shield Manual High current, high side switching for Arduino Introduction The Logos Electromechanical

More information

USB-BASED 8-CHANNEL DATA ACQUISITION MODULE

USB-BASED 8-CHANNEL DATA ACQUISITION MODULE DLP-IO8-G *LEAD-FREE* USB-BASED 8-CHANNEL DATA ACQUISITION MODULE Features: 8 Channels: Digital I/O, Analog In, Temperature USB Port Powered USB 1.1 and 2.0 Compatible Interface Small Footprint; Easily

More information

8051 Interfacing: Address Map Generation

8051 Interfacing: Address Map Generation 85 Interfacing: Address Map Generation EE438 Fall2 Class 6 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas 85 Interfacing Address Mapping Use address bus and

More information

Random Spooky LED Eyes

Random Spooky LED Eyes Random Spooky LED Eyes Created by Bill Earl Last updated on 2016-08-27 12:48:22 PM UTC Guide Contents Guide Contents Overview and Materials Overview: Materials: Assembly Connect the Pixels: Load and Test:

More information

Solutions - Homework 2 (Due date: October 4 5:30 pm) Presentation and clarity are very important! Show your procedure!

Solutions - Homework 2 (Due date: October 4 5:30 pm) Presentation and clarity are very important! Show your procedure! Solutions - Homework 2 (Due date: October 4 th @ 5:30 pm) Presentation and clarity are very important! Show your procedure! PROBLEM 1 (28 PTS) a) What is the minimum number of bits required to represent:

More information

Lab 8. Communications between Arduino and Android via Bluetooth

Lab 8. Communications between Arduino and Android via Bluetooth Lab 8. Communications between Arduino and Android via Bluetooth Dr. X. Li xhli@citytech.cuny.edu Dept. of Computer Engineering Technology New York City College of Technology (Copyright Reserved) In this

More information

MicroToys Guide: PS/2 Mouse N. Pinckney April 2005

MicroToys Guide: PS/2 Mouse N. Pinckney April 2005 Introduction A computer mouse provides an excellent device to acquire 2D coordinate-based user input, since most users are already familiar with it. Most mice usually come with two or three buttons, though

More information

PARALLEL COMMUNICATIONS

PARALLEL COMMUNICATIONS Parallel Data Transfer Suppose you need to transfer data from one HCS12 to another. How can you do this? You could connect PORTA of the sending computer (set up as an output port) to PORTA of the receiving

More information

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments

EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments EXPERIMENT 7 Please visit https://www.arduino.cc/en/reference/homepage to learn all features of arduino before you start the experiments TEMPERATURE MEASUREMENT AND CONTROL USING LM35 Purpose: To measure

More information

EMBEDDED HARDWARE DESIGN. Tutorial Interfacing LCD with Microcontroller /I

EMBEDDED HARDWARE DESIGN. Tutorial Interfacing LCD with Microcontroller /I EMBEDDED HARDWARE DESIGN Tutorial Interfacing LCD with Microcontroller 2009-10/I LCD (Liquid Crystal Display) has become very popular option for displaying in Embedded Applications. Since they are very

More information

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide

Introduction the Serial Communications Huang Sections 9.2, 10.2 SCI Block User Guide SPI Block User Guide Introduction the Serial Communications Huang Sections 9.2,.2 SCI Block User Guide SPI Block User Guide Parallel Data Transfer Suppose you need to transfer data from one HCS2 to another. How can you do

More information

Arduino: Serial Monitor Diagrams & Code Brown County Library

Arduino: Serial Monitor Diagrams & Code Brown County Library Arduino: Serial Monitor Diagrams & Code All projects require the use of the serial monitor in your Arduino IDE program (or whatever you are using to transfer code to the Arduino). Project 01: Monitor how

More information

Device: MOD This document Version: 1.0. Matches module version: v1. Date: 24 February Description: MP3 Audio Module

Device: MOD This document Version: 1.0. Matches module version: v1. Date: 24 February Description: MP3 Audio Module Device: MOD-1021 This document Version: 1.0 Matches module version: v1 Date: 24 February 2014 Description: MP3 Audio Module MOD-1021 v1 datasheet Page 2 Contents Introduction... 3 Features... 3 Connections...

More information

Note. The above image and many others are courtesy of - this is a wonderful resource for designing circuits.

Note. The above image and many others are courtesy of   - this is a wonderful resource for designing circuits. Robotics and Electronics Unit 2. Arduino Objectives. Students will understand the basic characteristics of an Arduino Uno microcontroller. understand the basic structure of an Arduino program. know how

More information

// sets the position of cursor in row and column

// sets the position of cursor in row and column CODE: 1] // YES_LCD_SKETCH_10_14_12 #include //lcd(rs, E, D4, D5, D6, D7) LiquidCrystal lcd(8, 9, 4, 5, 6, 7); int numrows = 2; int numcols = 16; void setup() Serial.begin(9600); lcd.begin(numrows,

More information

Microcontrollers and Interfacing

Microcontrollers and Interfacing Microcontrollers and Interfacing Week 10 Serial communication with devices: Serial Peripheral Interconnect (SPI) and Inter-Integrated Circuit (I 2 C) protocols College of Information Science and Engineering

More information

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

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 Thumb Joystick Retail Skill Level: Beginner by MikeGrusin March 22, 2011 Thank you for purchasing our Thumb Joystick! Whether you're blasting aliens or driving a robot, you'll find it a very useful addition

More information

NHD-0220D3Z-FL-GBW-V3

NHD-0220D3Z-FL-GBW-V3 NHD-0220D3Z-FL-GBW-V3 Serial Liquid Crystal Display Module NHD- Newhaven Display 0220-2 Lines x 20 Characters D3Z- Model F- Transflective L- Yellow/Green LED Backlight G- STN-Gray B- 6:00 Optimal View

More information

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9

BV4218. I2C-LCD & Keypad. Product specification. December 2008 V0.a. ByVac 2006 ByVac Page 1 of 9 Product specification December 2008 V0.a ByVac 2006 ByVac Page 1 of 9 Contents 1. Introduction...3 2. Features...3 3. Electrical Specification...3 4. I2C set...4 5. The LCD Set...5 5.1. 1...5 5.2. 2...5

More information

CSCI 2212: Intermediate Programming / C Chapter 15

CSCI 2212: Intermediate Programming / C Chapter 15 ... /34 CSCI 222: Intermediate Programming / C Chapter 5 Alice E. Fischer October 9 and 2, 25 ... 2/34 Outline Integer Representations Binary Integers Integer Types Bit Operations Applying Bit Operations

More information

PCMCIA RELEASE 2.0 INTERFACE BOARD FOR DRAGONBALL UPDATE

PCMCIA RELEASE 2.0 INTERFACE BOARD FOR DRAGONBALL UPDATE nc. PCMCIA RELEASE 2.0 INTERFACE BOARD FOR DRAGONBALL UPDATE DTACK GENERATOR DATE : 2 NOV 98 The DTACK Generator is a state machine. It delays the memory or I/O access cycle of the PC Card when the card

More information

Arduino Board Design. Nicholas Skadberg 4/30/09 EE290. Dr. Pushkin Kachroo

Arduino Board Design. Nicholas Skadberg 4/30/09 EE290. Dr. Pushkin Kachroo Arduino Board Design Nicholas Skadberg 4/30/09 EE290 Dr. Pushkin Kachroo Abstract In an effort to further understand the concept of digital control using a microprocessor, a simple serial output device

More information

NHD-0216K3Z-NS(RGB)-FBW-V3

NHD-0216K3Z-NS(RGB)-FBW-V3 NHD-0216K3Z-NS(RGB)-FBW-V3 Serial Liquid Crystal Display Module NHD- Newhaven Display 0216-2 Lines x 16 Characters K3Z- Model N- Transmissive S(RGB)- Side LED Backlights (Red-Green-Blue) F- FSTN(-) B-

More information

KNJN I2C bus development boards

KNJN I2C bus development boards KNJN I2C bus development boards 2005, 2006, 2007, 2008 fpga4fun.com & KNJN LLC http://www.knjn.com/ Document last revision on January 1, 2008 R12 KNJN I2C bus development boards Page 1 Table of Contents

More information

NHD-0220D3Z-FL-GBW-V3

NHD-0220D3Z-FL-GBW-V3 NHD-0220D3Z-FL-GBW-V3 Serial Liquid Crystal Display Module NHD- Newhaven Display 0220-2 Lines x 20 Characters D3Z- Model F- Transflective L- Yellow/Green LED Backlight G- STN Positive - Gray B- 6:00 Optimal

More information

KNJN I2C bus development boards

KNJN I2C bus development boards KNJN I2C bus development boards 2005, 2006, 2007, 2008 KNJN LLC http://www.knjn.com/ Document last revision on December 5, 2008 R22 KNJN I2C bus development boards Page 1 Table of Contents 1 The I2C bus...4

More information

IOX-16 User s Manual. Version 1.00 April Overview

IOX-16 User s Manual. Version 1.00 April Overview UM Unified Microsystems IOX-16 User s Manual Version 1.00 April 2013 Overview The IOX-16 Arduino compatible shield is an easy way to add 16 additional digital Input/Output (I/O) lines to your Arduino system.

More information

Basic Input/Output Operations

Basic Input/Output Operations Basic Input/Output Operations Posted on May 9, 2008, by Ibrahim KAMAL, in Micro-controllers, tagged In this third part of the 89s52 tutorial, we are going to study the basic structure and configuration

More information

Serial/CAN-Gateway. SerCAN-ARM7/RMD. User Manual. Thomas Wünsche

Serial/CAN-Gateway. SerCAN-ARM7/RMD. User Manual. Thomas Wünsche Serial/CAN-Gateway SerCAN-ARM7/RMD User Manual EMS Thomas Wünsche Serial/CAN Gateway SerCAN-ARM7/RMD User manual SerCAN-ARM7/RMD Document version: 1.03 Documentation date: May 05th, 2011 This document

More information

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C

ADC to I 2 C. Data Sheet. 10 Channel Analog to Digital Converter. with output via I 2 C Data Sheet 10 Channel Analog to Digital Converter with output via I 2 C Introduction Many microcontroller projects involve the use of sensors like Accelerometers, Gyroscopes, Temperature, Compass, Barometric,

More information

EE 109 Unit 4. Microcontrollers (Arduino) Overview

EE 109 Unit 4. Microcontrollers (Arduino) Overview 1 EE 109 Unit 4 Microcontrollers (Arduino) Overview 2 Using software to perform logic on individual (or groups) of bits BIT FIDDLING 3 Numbers in Other Bases in C/C++ Suppose we want to place the binary

More information

nrf24ex in a wireless keyboard design

nrf24ex in a wireless keyboard design nrfex in a wireless keyboard design *(($/ With the nrfe and nrfe, in this document called nrfex, from Nordic VLSI ASA is it now possible to design a wireless keyboard for the.ghz ISM band. The nrfex series

More information

Introduction to Arduino

Introduction to Arduino Introduction to Arduino Paco Abad May 20 th, 2011 WGM #21 Outline What is Arduino? Where to start Types Shields Alternatives Know your board Installing and using the IDE Digital output Serial communication

More information

#define BA {B ,B ,B ,B ,B ,B } #define BB {B ,B ,B ,B ,B ,B }

#define BA {B ,B ,B ,B ,B ,B } #define BB {B ,B ,B ,B ,B ,B } BA {B01110000,B10001000,B10001000,B11111000,B10001000,B10001000 BB {B11110000,B10001000,B10001000,B11110000,B10001000,B11111000 BC {B11111000,B10000000,B10000000,B10000000,B10000000,B11111000 BD {B11110000,B10001000,B10001000,B10001000,B10001000,B11110000

More information

84x48 LCD Display. 1. Usage with an Arduino 1.1 Connecting the display 1.2 Pin assignment 1.3 Code example

84x48 LCD Display. 1. Usage with an Arduino 1.1 Connecting the display 1.2 Pin assignment 1.3 Code example Index 1. Usage with an Arduino 1.1 Connecting the display 1.2 Pin assignment 1.3 Code example 2. Usage with a Raspberry Pi 2.1 Connecting the display 2.2 Pin assignment 2.3 Installation of the operating

More information

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515

FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515 FireBeetle Covers-OSD Character Overlay Module SKU:DFR0515 Introduction OSD is the abbreviation of On-screen Display, this is a screen menu adjustment display technology to add different menu-style characters

More information

NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual

NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual The information described in this document is the exclusive intellectual property of Nuvoton Technology Corporation

More information

The Big Idea: Background: About Serial

The Big Idea: Background: About Serial Lesson 6 Lesson 6: Serial Serial Input Input The Big Idea: Information coming into an Arduino sketch is called input. This lesson focuses on text in the form of characters that come from the user via the

More information

Blaupunkt ( DMS?? ) Page 1 of 13

Blaupunkt ( DMS?? ) Page 1 of 13 Page 1 of 13 Blaupunkt ( DMS?? ) for controlling a Blaupunkt car radio. It is basically a 2 wire (rx/tx) async. serial protocol with 9 bits of data where the 8th bit is used for synchronisation. That made

More information

Arduino Prof. Dr. Magdy M. Abdelhameed

Arduino Prof. Dr. Magdy M. Abdelhameed Course Code: MDP 454, Course Name:, Second Semester 2014 Arduino What is Arduino? Microcontroller Platform Okay but what s a Microcontroller? Tiny, self-contained computers in an IC Often contain peripherals

More information

Digital I/O Operations

Digital I/O Operations Digital I/O Operations CSE0420 Embedded Systems By Z. Cihan TAYŞİ Outline Digital I/O Ports, Pins Direction Pull-up & pull-down Arduino programming Digital I/O examples on Arduino 1 Digital I/O Unlike

More information

SX1509 I/O Expander Breakout Hookup Guide

SX1509 I/O Expander Breakout Hookup Guide Page 1 of 16 SX1509 I/O Expander Breakout Hookup Guide Introduction Is your Arduino running low on GPIO? Looking to control the brightness of 16 LEDs individually? Maybe blink or breathe a few autonomously?

More information

NHD 0216K3Z FL GBW. Serial Liquid Crystal Display Module

NHD 0216K3Z FL GBW. Serial Liquid Crystal Display Module NHD 0216K3Z FL GBW Serial Liquid Crystal Display Module NHD Newhaven Display 0216 2 lines x 16 characters K3Z Model F Transflective L Yellow/Green LED backlight G STN Gray B 6:00 view W Wide Temperature

More information

Adafruit DotStar FeatherWing

Adafruit DotStar FeatherWing Adafruit DotStar FeatherWing Created by lady ada Last updated on 2018-08-22 04:03:05 PM UTC Guide Contents Guide Contents Overview Pinouts Power Pins Data Pins Usage DotMatrix Usage Downloads Files Schematic

More information

Digital Design through. Arduino

Digital Design through. Arduino Digital Design through 1 Arduino G V V Sharma Contents 1 Display Control through Hardware 2 1.1 Powering the Display.................................. 2 1.2 Controlling the Display.................................

More information

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System

Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Mechatronics Engineering and Automation Faculty of Engineering, Ain Shams University MCT-151, Spring 2015 Lab-3: LCDs Serial Communication Analog Inputs Temperature Measurement System Ahmed Okasha okasha1st@gmail.com

More information

University of Texas at El Paso Electrical and Computer Engineering Department

University of Texas at El Paso Electrical and Computer Engineering Department University of Texas at El Paso Electrical and Computer Engineering Department EE 3176 Laboratory for Microprocessors I Fall 2016 LAB 07 Flash Controller Goals: Bonus: Pre Lab Questions: Familiarize yourself

More information

I2C-OC805S, I2C-OC805SA I2C Bus 8-Output Open Collectors

I2C-OC805S, I2C-OC805SA I2C Bus 8-Output Open Collectors I2C-OC85, I2C-OC85A I2C Bus 8-Output Open Collectors Features PCF8574 and PCF8574A I2C bus I/O expander 8 Outputs Open Collectors Operating voltage 2.5V to 5.5V Inverse polarity protection circuits khz

More information

36mm LED Pixels. Created by Phillip Burgess. Last updated on :45:20 PM EDT

36mm LED Pixels. Created by Phillip Burgess. Last updated on :45:20 PM EDT 36mm LED Pixels Created by Phillip Burgess Last updated on 2013-07-26 03:45:20 PM EDT Guide Contents Guide Contents Overview Project Ideas Wiring Powering Code Installation Using the Library Troubleshooting

More information

Sociable Objects Workshop. Instructor: Rob Faludi

Sociable Objects Workshop. Instructor: Rob Faludi Sociable Objects Workshop Instructor: Rob Faludi Plan for Today Final Projects Class in Review Readings & Assignments Final Project Presentations Class in Review Introduction Sociable Objects Connections

More information

CMSC838. Tangible Interactive Assistant Professor Computer Science

CMSC838. Tangible Interactive Assistant Professor Computer Science CMSC838 Tangible Interactive Computing Week 15 Lecture 27 May 5, 2015 Using ICs to Expand Arduino Functionality Human Computer Interaction Laboratory @jonfroehlich Assistant Professor Computer Science

More information

EMBED2000+ Data Sheet

EMBED2000+ Data Sheet EMBED2000+ Data Sheet Description The Ocean Optics EMBED2000+ Spectrometer includes the linear CCD-array optical bench, plus all the circuits necessary to operate the array and convert to a digital signal.

More information

Arduino: What is it? What can it do?

Arduino: What is it? What can it do? Arduino: What can it do? tswsl1989@sucs.org May 20, 2013 What is an Arduino? According to Arduino: Arduino is a tool for making computers that can sense and control more of the physical world than your

More information

Arduino - DigitalReadSerial

Arduino - DigitalReadSerial arduino.cc Arduino - DigitalReadSerial 5-6 minutes Digital Read Serial This example shows you how to monitor the state of a switch by establishing serial communication between your Arduino or Genuino and

More information

USB-SD MP3 Module Manual

USB-SD MP3 Module Manual USB-SD MP3 Module Manual WT9501M03 www.elechouse.com Copyright reserved by elechouse Features www.elechouse.com Can play 8 ~ 320Kbps MP3 audio files; Support maximum capacity of 32G Byte SD card; Support

More information

4Serial SIK BINDER //77

4Serial SIK BINDER //77 4Serial SIK BINDER //77 SIK BINDER //78 Serial Communication Serial is used to communicate between your computer and the RedBoard as well as between RedBoard boards and other devices. Serial uses a serial

More information

SPI bus communication with LDE/LME pressure sensors

SPI bus communication with LDE/LME pressure sensors This Application Note discusses methods and special considerations related to the Serial Peripheral Interface (SPI) protocol used to communicate digitally with LDE and LME series pressure sensors. 1. Scope

More information

MICRO LAMBDA WIRELESS, INC. YIG based Products. MLMS Synthesizer User Manual

MICRO LAMBDA WIRELESS, INC. YIG based Products. MLMS Synthesizer User Manual MICRO LAMBDA WIRELESS, INC. YIG based Products MLMS Synthesizer User Manual M I C R O L A M B D A W I R E L E S S, I N C. MLMS Synthesizer User Manual Micro Lambda Wireless, Inc. 46515 Landing Pkwy. Fremont,

More information

um-fpu Application Note 7 Developing a SPI Interface for um-fpu V2

um-fpu Application Note 7 Developing a SPI Interface for um-fpu V2 um-fpu Application Note 7 Developing a SPI Interface for um-fpu V2 This application note describes a suggested method of developing support software for connecting a microcontroller to the um-fpu V2 floating

More information

Device: EDR B. This document Version: 1c. Date: 11 November Matches module version: v3 [25 Aug 2016]

Device: EDR B. This document Version: 1c. Date: 11 November Matches module version: v3 [25 Aug 2016] Device: EDR-200200B This document Version: 1c Date: 11 November 2016 Matches module version: v3 [25 Aug 2016] Description: e-paper Display Driver and 200x200 e-paper Display EDR-200200B v1 datasheet Page

More information

Create your own wireless motion sensor with

Create your own wireless motion sensor with Create your own wireless motion sensor with Arduino If you have a friend that has an alarm system in his or her home, I am sure you ve all seen these white motion sensors that are usually fixed above doors

More information

1 single digit Nixie clock

1 single digit Nixie clock 1 single digit Nixie clock by Jānis Alnis 2014-2016 Young people are fascinated by Nixies. They have not seen such neon lights in the present solid-state era. IN-18 is the largest neon digit indicator

More information

AU5017. General Description

AU5017. General Description Features General Description High performance DSP process core High quality on-chip stereo DAC Decodes MP3/WAV audio format Supports bitrate from 32Kbps to 320Kbps Supports MicroSD/HC memory card up to

More information

PIC-I/O Multifunction I/O Controller

PIC-I/O Multifunction I/O Controller J R KERR AUTOMATION ENGINEERING PIC-I/O Multifunction I/O Controller The PIC-I/O multifunction I/O controller is compatible with the PIC-SERVO and PIC-STEP motor control modules and provides the following

More information

USB-4303 Specifications

USB-4303 Specifications Specifications Document Revision 1.0, February, 2010 Copyright 2010, Measurement Computing Corporation Typical for 25 C unless otherwise specified. Specifications in italic text are guaranteed by design.

More information

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2

cs281: Introduction to Computer Systems Lab03 K-Map Simplification for an LED-based Circuit Decimal Input LED Result LED3 LED2 LED1 LED3 LED2 1, 2 cs28: Introduction to Computer Systems Lab3 K-Map Simplification for an LED-based Circuit Overview In this lab, we will build a more complex combinational circuit than the mux or sum bit of a full adder

More information

Introduction to Microprocessors: Arduino

Introduction to Microprocessors: Arduino Introduction to Microprocessors: Arduino tswsl1989@sucs.org October 7, 2013 What is an Arduino? Open Source Reference designs for hardware Firmware tools + GUI Mostly based around 8-bit Atmel AVR chips

More information

MMA axis digital accelerometer module

MMA axis digital accelerometer module MMA7455 3-axis digital accelerometer module Instruction The MMA7455L is a Digital Output (I2C/SPI), low power, low profile capacitive micromachined accelerometer featuring signal conditioning, a low pass

More information

Arduino: Piezo Diagrams & Code Brown County Library. Projects 01 & 02: Scale and Playing a Tune Components needed: Arduino Uno board piezo

Arduino: Piezo Diagrams & Code Brown County Library. Projects 01 & 02: Scale and Playing a Tune Components needed: Arduino Uno board piezo Arduino: Piezo Diagrams & Code Projects 01 & 02: Scale and Playing a Tune Components needed: Arduino Uno board piezo /* Piezo 01 : Play a scale Code adapted from Adafruit Arduino Lesson 10 (learn.adafruit.com/adafruit-arduino-lesson-

More information

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS

LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide. Copyright 2008 IMS LCD Module with I2C / Serial Interface and Keypad Control «LCD I2C/Serial» User s Guide Copyright 2008 IMS CONTENTS 1 INTRODUCTION... 3 2 MODULE CONNECTION... 3 2.1 I2C/Serial interface connector...4 2.2

More information

Lab 8. Arduino and WiFi - IoT applications

Lab 8. Arduino and WiFi - IoT applications Lab 8. Arduino and WiFi - IoT applications IoT - Internet of Things is a recent trend that refers to connecting smart appliances and electronics such as microcontrollers and sensors to the internet. In

More information

Graphical LCD Display Datasheet EB

Graphical LCD Display Datasheet EB Graphical LCD Display Datasheet EB043-00-1 Contents 1. About this document... 2 2. General information... 3 3. Board layout... 6 4. Testing this product... 7 5. Circuit description... 8 Appendix 1 Circuit

More information

TIP815. ARCNET Controller. Version 1.0. User Manual. Issue September 2009

TIP815. ARCNET Controller. Version 1.0. User Manual. Issue September 2009 The Embedded I/O Company TIP815 ARCNET Controller Version 1.0 User Manual Issue 1.0.7 September 2009 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101 4058 0 Fax: +49 (0)

More information

CTEC 1802 Embedded Programming Labs

CTEC 1802 Embedded Programming Labs CTEC 1802 Embedded Programming Labs This document is intended to get you started using the Arduino and our I/O board in the laboratory - and at home! Many of the lab sessions this year will involve 'embedded

More information

I 2 C Application Note in Protocol B

I 2 C Application Note in Protocol B I 2 C Application Note in Protocol B Description This document is a reference for a possible coding method to achieve pressure, temperature, and status for SMI part readings using I 2 C. This SMI Protocol

More information

MOS-AV-162A Technical Manual. Revision: 1.0

MOS-AV-162A Technical Manual. Revision: 1.0 MOS-AV-162A Technical Manual Revision: 1.0 Contents Contents ii 1 Introduction 1 1.1 What to Expect From the MOS-AV-162A........................... 1 1.2 What Not to Expect From the MOS-AV-162A.........................

More information

tm1640-rpi Documentation

tm1640-rpi Documentation tm1640-rpi Documentation Release 0.1 Michael Farrell October 20, 2015 Contents 1 Introduction 3 1.1 Resources................................................. 3 2 Building the software 5 3 Wiring the

More information

Finite State Machine Lab

Finite State Machine Lab Finite State Machine Module: Lab Procedures Goal: The goal of this experiment is to reinforce state machine concepts by having students design and implement a state machine using simple chips and a protoboard.

More information

Manual iaq-engine Indoor Air Quality sensor

Manual iaq-engine Indoor Air Quality sensor Manual iaq-engine, Version 2.0 May 2011 (all data subject to change without notice) Manual iaq-engine Indoor Air Quality sensor Digital and analog I/O SMD type package Product summary iaq-engine is used

More information

If You Need Help. Registering Your PAK-IV PAK-IV

If You Need Help. Registering Your PAK-IV PAK-IV 1998, 1999, 2002 by AWC, All Rights Reserved AWC 310 Ivy Glen League City, TX 77573 stamp@al-williams.com http://www.al-williams.com/awce v1.6 8 Jan 2002 Overview The Stamp Pak IV is a16-bit I/O coprocessor

More information

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K

Adafruit 1-Wire Thermocouple Amplifier - MAX31850K Adafruit 1-Wire Thermocouple Amplifier - MAX31850K Created by lady ada Last updated on 2015-04-09 03:45:15 PM EDT Guide Contents Guide Contents Overview Pinouts Power Pins Address Pins Data Pin Themocouple

More information

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed

Features: Analog to Digital: 12 bit resolution TTL outputs, RS-232 tolerant inputs 4.096V reference (1mV/count) 115K max speed The Multi-I/O expansion board gives users the ability to add analog inputs and outputs, UART capability (for GPS or modem) and isolated high current outputs to the Flashlite 386Ex. Available in several

More information

Laboratory 5 Communication Interfaces

Laboratory 5 Communication Interfaces Laboratory 5 Communication Interfaces Embedded electronics refers to the interconnection of circuits (micro-processors or other integrated circuits) with the goal of creating a unified system. In order

More information

Microcontrollers and Interfacing week 10 exercises

Microcontrollers and Interfacing week 10 exercises 1 SERIAL PERIPHERAL INTERFACE (SPI) HARDWARE Microcontrollers and Interfacing week 10 exercises 1 Serial Peripheral Interface (SPI) hardware Complex devices (persistent memory and flash memory cards, D/A

More information

The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port

The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port The MC9S12 in Expanded Mode Using MSI logic to build ports Using MSI logic to build an output port Using MSI logic to build an input port A Simple Parallel Output Port We want a port which will write 8

More information

AK-DS2482S-100. Reference manual. Copyright 2016 Artekit Italy All rights reserved

AK-DS2482S-100. Reference manual. Copyright 2016 Artekit Italy All rights reserved AK-DS2482S-100 Reference manual Copyright 2016 Artekit Italy All rights reserved Contents About this document... 3 Revision history... 3 Contact information... 3 Life support policy... 3 Copyright information...

More information

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE,

IME-100 ECE. Lab 3. Electrical and Computer Engineering Department Kettering University. G. Tewolde, IME100-ECE, IME-100 ECE Lab 3 Electrical and Computer Engineering Department Kettering University 3-1 1. Laboratory Computers Getting Started i. Log-in with User Name: Kettering Student (no password required) ii.

More information

I2C-AO112DIx I2C-Bus 4-20mA Analog Output Boards Din-Rail supports

I2C-AO112DIx I2C-Bus 4-20mA Analog Output Boards Din-Rail supports I2C-AO2DIx I2C-Bus 4-2mA Analog Output Boards Din-Rail supports Features ingle Channel Analog Output 2-wire Current Loop 4-2 ma 2 Bits Digital to Analog Converter MCP4725 I2C-Bus Interfacing Khz, 4Khz

More information