Code Monkey home page Code Monkey logo

raspi_lcd_acm1602ni's Introduction

Python LCD Controller (ACM1602NI)

This package contains LCD controller for Raspberry Pi.

  • Raspbian Jessie
  • Python 2.7
  • LCD (ACM1602NI-FLW-FBW-M01)
  • Raspberry Pi2 Model B
  • Raspberry Pi Model A/B+ (unconfirmed)

Usage

$ sudo python raspi_lcd.py "Message for line 1" ["Message for line 2"]

You have to enable I2C in advance. Please read Prerequisite section.

Displayable Characters

  • Half-width English numbers and letters
  • Full-width / half-width Katakana
  • Some special characters

Configuration

If needed, edit BUS_NUMBER and LCD_ADDR in config.py.

Prerequisite

Enable I2C

Enable I2C

$ sudo raspi-config
  1. Select 9 Advanced Options
  2. Select A7 I2C
  3. Select Yes twice
  4. Reboot Raspberry Pi

Install i2c-tools, python-smbus

$ sudo apt-get install i2c-tools python-smbus

Load Drivers

$ sudo modprobe i2c-bcm2708
$ sudo modprobe i2c-dev

Edit I2C Config

Open /boot/config.txt and add line below.

dtparam=i2c_baudrate=50000

Reboot Raspberry Pi.

Breadboard wiring example

Breadboard wiring of ACM1602NI

Attention

Do not use i2cdetect command when LCD(ACM1602NI) is connected. Read access to i2c bus will causes hungging up of LCD.

raspi_lcd_acm1602ni's People

Contributors

yuma-m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.