Quantcast
Channel: Geekroo Technologies
Viewing all articles
Browse latest Browse all 15

Setting up Fairywren LCD Screen

$
0
0

Overview

The LCD Screen comes with the Fairywren K120 is based on a open source project called LCD2USB[1]. We impreoved the original design.

LCD1
LCD2
LCD3
 

How to Use

Software

You can use any softwares that support the LCD2USB hardware. In this tutorial, we use LCDProc[2] on the Raspbian system as example.

Install LCDProc

pi@raspberrypi ~ $ sudo apt-get install lcdproc

Setup LCDProc

Please use your favorite text editor to edit this file:
/etc/LCDd.config

For example:
sudo vim /etc/LCDd.conf

In this file, please find

# The following drivers are supported:
#   bayrad, CFontz, CFontz633, CFontzPacket, curses, CwLnx, ea65,
#   EyeboxOne, g15, glcdlib, glk, hd44780, icp_a106, imon, imonlcd,
#   IOWarrior, irman, joy, lb216, lcdm001, lcterm, lirc, lis, MD8800,
#   mdm166a, ms6931, mtc_s16209x, MtxOrb, mx5000, NoritakeVFD, picolcd,
#   pyramid, sed1330, sed1520, serialPOS, serialVFD, shuttleVFD, sli,
#   stv5730, svga, t6963, text, tyan, ula200, xosd
Driver=curses

Replace Driver=curses with Driver=hd44780:

# The following drivers are supported:
#   bayrad, CFontz, CFontz633, CFontzPacket, curses, CwLnx, ea65,
#   EyeboxOne, g15, glcdlib, glk, hd44780, icp_a106, imon, imonlcd,
#   IOWarrior, irman, joy, lb216, lcdm001, lcterm, lirc, lis, MD8800,
#   mdm166a, ms6931, mtc_s16209x, MtxOrb, mx5000, NoritakeVFD, picolcd,
#   pyramid, sed1330, sed1520, serialPOS, serialVFD, shuttleVFD, sli,
#   stv5730, svga, t6963, text, tyan, ula200, xosd
Driver=hd44780

Find [hd44780], modify the configurations as below:

[hd44780]
ConnectionType=lcd2usb
Contrast=850
Brightness=800
OffBrightness=0
Keypad=yes
Backlight=yes
Size=16x2
KeyDirect_1=Enter
KeyDirect_2=Down
KeyDirect_3=Escape

Save the file, reboot your Fairywren/Raspberry Pi

Connection

After the Fairywren/Raspberry Pi restarted, connect the LCD screen to a USB port on the Fairywren board or Raspberry Pi with a Micro-USB cable.

Run LCDProc

Login to the Rapsberry Pi, then:
sudo LCDd
sudo lcdproc
Your LCD screen should be running.

References

1. LCD2USB project: http://www.harbaum.org/till/lcd2usb/index.shtml
2. LCDProc project: http://www.lcdproc.org


Viewing all articles
Browse latest Browse all 15

Trending Articles