1. Timothy Corbett-Clark
  2. pipit

Commits

Cmed Technology  committed a150f38

wip

  • Participants
  • Parent commits cc736d5
  • Branches default

Comments (0)

Files changed (1)

File README.txt

View file
-LCD
-===
+LCD wiring
+==========
 
+There are 16 pins on the 1602a LCD display (Hitachi HD44780U). These need to be
+connected to the GPIOs of the Pi,
 
-Sonar
-=====
+The following table shows the LCD pin, Pi Board number, Pi GPIO number, and the
+explanation.
+
+LCD     PI      GPIO    Comments
+1       6               0V
+2       2               +5V
+3       6               Contrast (but 0 seems to be ok contrast)
+4       16      23      RS
+5       6               R/W (but we keep in write mode)
+6       18      24      Enable
+7       6               D0 (0V because we are in 4 bit mode)
+8       6               D1 (0V because we are in 4 bit mode)
+9       6               D2 (0V because we are in 4 bit mode)
+10      6               D3 (0V because we are in 4 bit mode)
+11      19      10      D4
+12      23      11      D5
+13      24      8       D6
+14      26      7       D7
+15      2               Backlight power (+5V)
+16      6               Backlight ground (0V)
+
+
+Sonar wiring
+============
 
 
 Managing the code
 =================
 
-To deploy from a host linux box you need "fabric".
+To deploy from the *host* linux box you need "fabric".
 
     http://fabfile.org
 
-sudo apt-get install fabric
+Install with
+
+    sudo apt-get install fabric
 
 Every function in fabfile.py is callable using:
 
 
     fab provision
 
-The IP address of the pi is in a constant at the the top of fabfile.py.
+To flash the SD card:
+
+    fab flash
+
+There are some configuration parameters at the top of fabfile.py. E.g. to set
+the IP address and the location of the card .img.
+
+To run the LCD program:
+
+    fab deploy
+    fab lcd