CTY SAR FCPS Shawn Lupoli, Elliot Tan

Slides:



Advertisements
Similar presentations
ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Advertisements

Lab7: Introduction to Arduino
ARDUINO FRAMEWORK.
What is Arduino?  Arduino is a ATMEL 168 micro-controller kit designed specially for small projects  User friendly IDE(Integrated Development Environment)
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Intro to Programming and Microcontrollers. Activity Group into pairs and sit back-to-back. Pick one person who is going to draw. The other person will.
Lesson 4: Breathing Monitors. Breathing Monitors In the past 3 classes, we’ve learned – How to write to a digital pin – How to read the value of a digital.
Embedded Programming and Robotics Lesson 9 Keypad and LCD Display 1.
Embedded Programming and Robotics
Working with Arduino: Lesson #1: Getting Acquainted with the Kit EGN1007.
Arduino Part 1 Topics: Microcontrollers Programming Basics: structure and variables Digital Output Analog to Digital Conversion.
Digital Outputs LCD Display
1 Applied Control Systems Technology. 2 Pin configuration Applied Control Systems.
Practical Electronics & Programming
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
INTERFACING WEB SERVER WITH A ROBOT
Franz Duran INTRODUCTION TO A RDUINO PROGRAMMING & INTERFACING Engr. Franz Duran, MEP-ECE RapidSignal Electronics.
1 - Remove LED from 13 and GND - Bring out your breadboard from HW#4 Arduino Overview:
BM-305 Mikrodenetleyiciler Güz 2015 (10. Sunu) (Yrd. Doç. Dr. Deniz Dal)
Department of Electronic & Electrical Engineering LCD character display (parallel interface). How to interface a LCD character display to a PIC.
Arduino Programming Part 6: LCD Panel Output ME 121 Portland State University.
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.
Using a SparkFun™ serial LCD with an Arduino
Arduino Part 1 Topics: Microcontrollers
Assist. Prof. Rassim Suliyev - SDU 2017
Scrolling LCD using Arduino.
Lab 2: Arduino Sensors Topics: Arduino Sensor Reading, Display
Microcontroller basics
Peripherals – Keypad The Keypad provides a simple means of numerical data or control input. The keys can be attributed whatever data or control values.
LCD Interfacing using Atmega 32
ARDUINO BASED AUTOMATIC TEMPERATURE BASED FAN SPEED CONTROLLER
Display Devices 16 x 2 lcd display.
CS4101 Introduction to Embedded Systems Lab 10: Tasks and Scheduling
Introduction to the Arduino
ULTRASONIC DISTANCE METER USING 8051
UTA010 : Engineering Design – II
Welcome to Arduino A Microcontroller.
Get Your Project Started with Arduino
LCD.
Liquid Crystal Display Arduino
UCD ElecSoc Robotics Club 2017/2018
DIGITAL CALCULATOR USING 8051
Arduino - Introduction
‘SONAR’ using Arduino & ultrasonic distance sensor
Introduction to Arduino Microcontrollers
Get Your Project Started
EET 2261 Unit 11 Controlling LCD and Keypad
Visual Instructions.
Schedule 8:00-11:00 Workshop: Arduino Fundamentals
EET 2261 Unit 11 Controlling LCD and Keypad
Working with Arduino: Lesson #1: Getting Acquainted with the Kit
Chapter 1 Introduction of Arduino
Arduino Part 4 Let there be more light.
Intro to Micro Controllers
LCD and Keyboard Interfacing
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Motor Lab Inspired by NYU ITP project
CTY SAR FCPS Shawn Lupoli, Elliot Tan
LCD (LIQUID CRISTAL DISPLAY) SCREENS
Arduino 7 Segment Display Lab
Aeroponic Engineering and Vertical Farming
Arduino Leonardo Setup
Lab #1: Getting Started.
Arduino Uno circuit basics
Intro to Arduino Part 2 The Breadboard
CTY SAR FCPS Vedant mathur, Juliana schalkwyk
LCD.
CTY SAR FCPS Alexander Velikanov
Presentation transcript:

CTY SAR FCPS Shawn Lupoli, Elliot Tan Arduino LCD Lab CTY SAR FCPS Shawn Lupoli, Elliot Tan

Let’s understand what we are working with…

How does the LCD work? Microcontroller has to manipulate several interface pins at once to control the display Register select (RS) pin – controls where in memory you are writing data to Read/Write (R/W) pin – selects reading or writing mode Enable pin – enables writing to registers 8 data pins – states of these pins are the values the LCD is reading Liquid Crystal library allows you to control LCD displays which are compatible with the Hitachi HD44780 driver 16 pin interface Liquid Crystal simplifies two processes Puts data that form the image into the data registers Then puts instructions in the instruction registers

Visual of Connecting Arduino to LCD

Goal

Programming “Hello World” on LCD

“Hello World” Part 1 Include all necessary libraries #include <LiquidCrystal.h> Initializing global variables The LCD itself needs to initialized as a LiquidCrystal object “LiquidCrystal lcd(12, 11, 5, 3, 2)” Setup() lcd.begin(cols, rows) – initializes interface to LCD screen, then specifies the dimensions of the display lcd.print(“Hello, World”) – prints text to the LCD

“Hello World” Part 2 Loop() Functions Examples lcd.setCursor(col, row) – positions the LCD cursor, sets location where subsequent text written to LCD will be displayed Millis() – returns the numer of milliseconds sine the Arduino board began running current program Examples lcd.setCursor(0, 1) – sets cursor to column 0, line 1 lcd.print(millis() / 1000) – prints number of seconds since reset

CODE

Building the LCD circuit

Supplies 1 Arduino Leonardo/Uno board 1 breadboard 6 short wires (2 red, 4 black) 4 medium wires (3 brown, 1 black) 5 long wires (1 red, 4 brown) 1 potentiometer 1 resistor (1 kΩ) 1 LCD * Notes: Wires are 22 or 24 AWG, solid Short wires = 5 cm Medium wires = 12 cm Long wires = 16 cm

Diagram of LED Circuit

Connecting Code and Circuit

Putting it All Together UPLOAD! Remember to check for the flashing RX and TX lights, and a “Successful upload” message in your console Understanding the process LCD RS pin to digital pin 12 LCD Enable pin to digital pin 11 LCD D4 pin to digital pin 5 LCD D5 pin to digital pin 4 LCD D6 pin to digital pin 3 LCD D7 pin to digital pin 2 LCD R/W pin to ground

Troubleshooting Make sure to turn on the Potentiometer! Make sure all wires are connected to the correct pin! Questions?