I2C Serial 2.6 LCD Module

Similar documents
JOY-iT TFT-Display 1.8

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

TABLE OF CONTENTS. 1.8 TFT Display. 1. Introduction. 2. Usage with an Arduino 2.1 Connecting the display 2.2 Installing the library 2.

3.2 / 3.5 Touch-Display

Gravity: I2C ADS Bit ADC Module(Arduino & Raspberry Pi Compatible) SKU: DFR0553

StromPi 3 Softwaremanual

StromPi 3 Softwaremanual

LCD Display 16x2 with Buttons

Configuration the Raspberry Pi for the SmartPI. There are two ways to install the necessary software to use the SmartPi with your Raspberry Pi!

Joy-IT Ultrasonic Distance Sensor

Arduino Digispark. Ausgabe Copyright by Joy-IT 1

Robot-Arm-Assembly-Kit Calibration

TABLE OF CONTENTS. StromPi Introduction. 2. Overview. 3. Power Sources. 4. Serial Console. 5. Input Prioritization

Adding a Real Time Clock to Raspberry Pi

LK-RB-Shield Ausgabe Copyright by Joy-IT

Manual of ET-LCD SW HAT

Raspberry Pi NTP Clock Setup Guide

Raspberry Pi 3 Model B RetroPi Set

BASIC Arduino. Part I

I2C/TWI LCD1602 Module (Gadgeteer Compatible) (SKU: DFR0063)

10.1 HDMI LCD. Index. Published: Copyright by Joy-IT 2

I2C TWI LCD2004 Module (Arduino/Gadgeteer Compatible) (SKU:DFR0154)

I2C. I2C, sometimes IIC or I 2 C, stands for inter IC. 2-line bus, clock (SCL) and data (SDA) Devices individually addressable

Raspberry PI 'How-To' Series

1.3inch LCD HAT User Manual

Installation guide. Step1. Install the OS for Raspberry Pi 3. Go to to download Raspbian to the PC.

BME280 Documentation. Release Richard Hull

Power over Ethernet (PoE) Adaptor

Project 15 - Reading a keypad with the Raspberry Pi

5inch HDMI LCD (B) User Manual

1.8inch LCD Module USER MANUAL

RaspiDigiHamClock. Raspberry Pi Amateur Radio Digital Clock. v WA4EFH R.Grokett

Adafruit NFC/RFID on Raspberry Pi

Matrix and 7-Segment LED Backpack with the Raspberry Pi

Connect the GSM-DSA to a router where the network is configured to x with a mask

10.1 HDMI LCD. 1. Introduction. 2. Bracket Mounting. 3. Usage with a PC 3.1 Device Connection

Adafruit NFC/RFID on Raspberry Pi

AlaMode User Manual Revision

Adafruit seesaw. Created by Dean Miller. Last updated on :30:23 AM UTC

PiCAN2 DUO ISO USER GUIDE V1.1. PiCAN 2 DUO ISO Rev B V1.1. PiCAN2 DUO CAN-Bus ISO Board for Raspberry Pi

1.44inch LCD HAT USER MANUAL

Davide Cavaliere 18 th February 2017

PiCAN 2 USER GUIDE V1.2

7inch HDMI LCD (H) User Manual

Using the BMP085/180 with Raspberry Pi or Beaglebone Black

User-space SPI TFT Python Library - ILI9341

ECE471: Embedded Systems Homework 7 SPI, A/D and Temperature Probe. Due: Friday, 2 November 2018, 10:00am

Bob Rathbone Computer Consultancy

Raspberry Pi GPIO Zero Reaction Timer

Rs-Pi 7 USB- Hub & I2C 1-Wire User Manual

Raspberry Pi RTC Expansion Module User Manual

Preparing SD card for Pi

Dixicoin (DXC) Masternode Guide for VPS

I n t e r a c t i v e HA u t o m a t a _. Programming for Engineers Winter Andreas Zeller, Saarland University

Atmel 328-Processor for RaspberryPi

1.5inch OLED Module User Manual

JUN 18 Rev 3

ARPI600. Contents. From Waveshare Wiki

UM2375 User manual. Linux driver for the ST25R3911B/ST25R391x high performance NFC frontends. Introduction

Adafruit's Raspberry Pi Lesson 6. Using SSH

Home Automation With Arduino

FINAL PROJECT: MUSIC SERVER

Relarium (RLM) Masternode Guide for VPS

PiCAN GPS + Gyro +Accelerometer USER GUIDE V1.0

User Manual. DVK512 Expansion Board For Raspberry Pi

Gooligum Electronics 2015

// Press and hold TXsim button and select antenna with left or right button. // Press and hold left and right button to reset EEPROM

This Game HAT will turn your Raspberry Pi into a classic game console in a. 60 frame experience, smoothly display, no more frame loss

/* ///////////////////////////////////////////////////////////////////////////////////////////////////////REAL- TIME CLOCK MODULE DS1307 */

SF Innovations Ltd. Custard Pi 7 - Control Interface with I2C for the Raspberry Pi. User Instructions (5th January 2016) Contents.

Setup LCD 2x16 Screen I2C Interface

Here's how the 4 channel receiver attaches to a Raspberry Pi B+, A+ or Pi 2.

SPLDuino Programming Guide

Adafruit PiOLED - 128x32 Mini OLED for Raspberry Pi

SAROS MasterNode Guide V1.1

RASPBERRY PI INSTALLATION MANUAL

All rights reserved by Waveshare Electronics Co., Ltd. Not allow to modify, distribute, or copy without permission.

ANAVI Infrared phat hardware design is licensed under a Creative Commons Attribution- ShareAlike 3.0 Unported License.

Adafruit I2S MEMS Microphone Breakout

Wallet Installation Guide for Staking on Raspberry PI

RPi General Purpose IO (GPIO) Pins

Electronics Single Board Computers

Application-Note PiXtend Python Library

RASPBERRY PI EXAMPLES WITH CLICK BOARDS

Ultra Short Installation Procedure of the UPS PIco HV3.0 Daemons. and UPS PIco HV3.0 broadcasting System

5inch HDMI Display User Manual

Grove Digital Extender 0059-GRVDE-DSBT/SF

XLink Kai Raspberry Pi Beginners Tutorial

Install Eclipse Mosquitto MQTT on a Raspberry Pi 3B Running Raspbian Stretch

PiCAN 2 GPS Rev B V1.0. PiCAN GPS USER GUIDE V1.0. PiCAN GPS CAN-Bus Board for Raspberry Pi. SK Pang Electronics Ltd

5 inch HDMI Display-B

6 GPIO 84. Date: 29/09/2016 Name: ID: This laboratory session discusses about writing program to interact with GPIO of Reapberry Pi.

IoT WITH THE RASPBERRY-PI3

Node-RED Dashboard: Pi Control

Quick Reference Tables

P16105: CubeSat Attitude Determination Control System (ADCS) Testing Apparatus Presents

Buck and Boost Voltage Converter

7inch HDMI Display-B. User Manual. product description

Security Camera. by maartenbrysbaert. The SeCam is a security camera that allows you to: - Livestream. - Rotate your camera 180 degrees

10.1inch HDMI LCD (B) User Manual

Transcription:

Ausgabe 08.09.2017 Copyright by Joy-IT 1

Index 1. Using with an Arduino 1.1 Connecting the display 1.2 Installing the library 1.3 Example-Code 2. Using with a Raspberry Pi 2.1 Installing the software 2.2 Connecting the display 2.3 Installing the libraries 2.4 Communication with the display 3. Support Ausgabe 08.09.2017 Copyright by Joy-IT 2

Dear customer, Thank you for purchasing our product. Please find our instructions below. 1. Using with an Arduino 1.1 Connecting the display Connect the display, as seen in the following image and table, to the pins of your Arduino. Ausgabe 08.09.2017 Copyright by Joy-IT 3

Arduino Uno I2C 2.6 LCD GND GND +5V VCC SDA SDA SCL SCL 1.2 Installing the library Before you can transfer the code-example to your Arduino, you need to install the additional LiquidCrystal_I2C library. This library allows you to use your display as quick and easy as possible. Therefore, open up your Arduinos Library-Manager. Ausgabe 08.09.2017 Copyright by Joy-IT 4

In the now opened library manager, search for the LiquidCrystal_I2C library and install it. Ausgabe 08.09.2017 Copyright by Joy-IT 5

1.3 Example-Code To test your display, please copy the following example to your Arduino. The displays may vary in their hardware-address. Because of that, the right address needs to be set in the code. If your display might not work, change the specific address in the code to the second address. #include <Wire.h> #include <LiquidCrystal_I2C.h> //-----Hardware Addressing----- //If your display does not work, comment the line below and uncomment //the other address-line LiquidCrystal_I2C lcd(0x27,16,2); //LiquidCrystal_I2C lcd(0x3f,16,2); void setup() { lcd.init(); } void loop() { lcd.backlight(); //Print message lcd.setcursor(0,0); lcd.print(" joy-it"); lcd.setcursor(0,1); lcd.print(" I2C Serial LCD"); } Ausgabe 08.09.2017 Copyright by Joy-IT 6

2. Using with a Raspberry Pi 2.1 Installing the software You can skip this step and continue with step 2.3 if you are already using the latest Raspian-System on your Raspberry Pi. With the help of the Win32 Disk Imager -Program, install the latest Raspbian image which you can download here. Ausgabe 08.09.2017 Copyright by Joy-IT 7

2.2 Connecting the display Connect the display, as seen in the following image and table, to the pins of your Raspberry Pi. Raspberry Pi Pin 6 (Ground) Pin 4 (5V) Pin 3 (BCM 2 / SDA) Pin 5 (BCM 3 / SCL) I2C 2.6 LCD GND VCC SDA SCL Ausgabe 08.09.2017 Copyright by Joy-IT 8

2.3 Installing the libraries When you finished the Raspbian-Installation and started your system, open up the Terminal-Console and enter the following commands: sudo apt-get install python-pip python-dev build-essential sudo pip install RPi.GPIO sudo apt-get install python-imaging sudo apt-get install python-smbus i2c-tools If you haven t already enabled I2C on your Raspberry, you need to catch this up in the configuration. Open up the configuration with the following command: sudo raspi-config In the now opened window, enter the Advanced Options section. Ausgabe 08.09.2017 Copyright by Joy-IT 9

Choose and enable the I2C option. Now you need to add two entries in the modules-file. Therefore you need to open this file: sudo nano /etc/modules Append the following two lines at the very end of the file: i2c-bcm2708 i2c-dev Save the file with the combination CTRL + O and leave the editor with the combination CTRL+X. Now you need to restart your Raspberry Pi with the following command: sudo reboot Ausgabe 08.09.2017 Copyright by Joy-IT 10

Now we can download the LCD driver. We are using the Raspberry Pi LCD 4x20 I²C python driver to allow you a quick and easy use. These drivers are made by CaptainStouf and are published under the GNU General Public License v2.0 and are also available here. At first, create a new folder and download the driver-package: mkdir I2C-LCD && cd I2C-LCD wget http://tutorials-raspberrypi.de/wp-content/uploads/scripts/ hd44780_i2c.zip unzip hd44780_i2c.zip Now we start our first communication with the display. Please note, that the display needs to be connected. sudo i2cdetect -y 1 The output should look like the following example: 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- -- -- -- -- -- -- -- -- 10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- 27 -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: -- -- -- -- -- -- -- -- The executed check has detected an I2C-Signal at the address 27. This is the displays default address. But the address may vary in some cases. If your address is not 27, you need to modify your address in the driver-settings. Ausgabe 08.09.2017 Copyright by Joy-IT 11

Therefore, open up the driver-settings-file: sudo nano lcddriver.py Modify the command ADDRESS = 0x27 and change the 27 to match your address-number, which you have seen in the I2C-check before. After that, you can save and leave the editor with the usual combination. 2.4 Communication with the display The display-installation is now finished. The last step is to create a new file and to start the operation with the display: sudo nano LCD.py Enter the following code-example. The message inside the command lcd.lcd_display_string sets the shown text on the display. The number next to it addresses the specific line. Of course you can modify the text to your needs. After entering the example, save and leave the editor with the usual combination. import lcddriver from time import * lcd = lcddriver.lcd() lcd.lcd_clear() lcd.lcd_display_string(" joy-it", 1) lcd.lcd_display_string(" I2C Serial LCD", 2) sudo python LCD.py Ausgabe 08.09.2017 Copyright by Joy-IT 12

3. Support We also support you after your purchase. If there are any questions left or if you encounter any problems please feel free to contact us my mail, phone or by our ticket-supportsystem on our website. Mail: service@joy-it.net Ticket-System: http://support.joy-it.net Phone: +49 (0)2845 98469 66 (11-18 Uhr) Please visit our website for more informations: www.joy-it.net Ausgabe 08.09.2017 Copyright by Joy-IT 13