GithubHelp home page GithubHelp logo

octopicharlcd's Introduction

OctoPiCharLCD

Show OctoPrint status on a character LCD display

This app will show some status info for OctoPrint on a 20x4 character LCD display. The LCD display is connected to Raspberry Pi GPIO pins and the data is pulled from the OctoPrint API.

Note: Now requires Octoprint version 1.2 or higher due to changes in the Octoprint software API key requirements.

Installation

ssh into your Octoprint machine as the 'pi' user

Install required packages

sudo apt-get install build-essential python-dev python-smbus python-pip git
sudo pip install rpi.gpio
sudo pip install requests

Clone the repository

cd /home/pi
sudo git clone https://github.com/matt448/OctoPiCharLCD.git

Create symbolic links for startup scripts

sudo ln -s /home/pi/OctoPiCharLCD/octolcd.py /usr/bin/octolcd
sudo ln -s /home/pi/OctoPiCharLCD/etc/init.d/octolcd /etc/init.d/octolcd

Edit octolcd.cfg config file and set apikey to value from Settings > API

vi OctoPiCharLCD/octolcd.cfg

Start up the service

sudo service octolcd start

Screenshot

Screenshot

LCD Wiring

This is the wiring for the very first Raspberry Pi. Newer models may be different. If different pins are used on the RPi you will need to edit the pin numbers in the octolcd.py script.

LCD Pin # LCD Pin Desc Connection
1 GND Ground
2 5V 5V
3 Contrast Center pin 10k pot
4 RS RPi GPIO #25
5 R/W Ground
6 EN RPi GPIO #24
7 Data Bit 0 NOT USED N/C
8 Data Bit 1 NOT USED N/C
9 Data Bit 2 NOT USED N/C
10 Data Bit 3 NOT USED N/C
11 Data Bit 4 RPi GPIO #23
12 Data Bit 5 RPi GPIO #17
13 Data Bit 6 RPi GPIO #21
14 Data Bit 7 RPi GPIO #22
15 LCD Backlight +5v 5V
16 LCD Backlight GND Ground

octopicharlcd's People

Contributors

matt448 avatar

Stargazers

 avatar

Watchers

James Cloos 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.