Sunday, May 08, 2011

LCD with Arduino

I was able to have my Arduino UNO communicate with a 128x64 LCD
I'm pleased with these initial results but still have a ways to go before I finish my primary programs to control the pumps and use this display to make changes on the fly.



TECHNICAL NOTES
(things I needed to look up before I could get everything up and running)

LCD + Arduino purchased from eBay
http://bit.ly/mat6Vv


Datasheets (from CD) downloaded to:
C:\Users\globalloonan\Desktop\Data\Arduino with 12864 LCD


PINOUTs (from readme.txt)
ATmega168/328  uses configuration file: ks0108_Arduino.h
LCD ARDUINO
CSEL1 14 // CS1 Bit   // swap with CSEL2 if left/right is reversed
CSEL2 15 // CS2 Bit
R_W 16 // R/W Bit
D_I 17 // D/I Bit
EN 18 // EN Bit

LCD data 0-3 8-11
LCD data 4-7 4-7


Arduino LCD playground | KS0108 Graphics LCD library
http://www.arduino.cc/playground/Code/GLCDks0108
I have Pinout B

1. Read Me from CD
UNO Arduino

2. http://www.arduino.cc/playground/Code/GLCDks0108
I have Pinout B

3. Use this schematic but default to text (#2)
http://www.arduino.cc/playground/uploads/Code/KS0108_wiring.jpg

4. REMOVE the RESET (otherwise code wont load).  Just leave it dangle

5. This LCD board is KS0108-type and a GLCD (Graphical LCD) as opposed to textual (Character Mode)
http://www.instructables.com/id/ST7565-LCDs-Graphical-LCDs/#step1

Playa Gifting

I'd like to use my circular peg loom as a gift for the playa by making a few different products for my camp makes.  First I need to perfect the technique and then place an order (along with my Chasing El).  These are some rough ideas as well as approx materials needed


PEG LOOM
Hole 60 cm
Peg Diameter 13 mm
Distance between Pegs 10 mm




Peg Circumference 4.08 cm
Every other Peg Circum 11.31 cm




Number of Pegs 26




1 lap around every peg 1.66 cm
1 lap around every other 2.07 cm








PRESENTS


Belt Sheet Creative

Width 2 6 3

Length 1 1 4





Total (meters) of El Wire



Every Peg 3.32 9.97 19.94

Every Other 4.14 12.42 24.84





MATERIALS

12 presents 14.93 44.79 89.57

(2x of each)







Total El Wire (in meters) 149.28 meters






Total Inverters



small 4


large 8






Sequencer Working !

As a corollary to the Liquid Jacket ... the El Wire Jacket came to be (at least in theory)
The trade off for air/water flowing through the schlauch would either be sequenced El Wire (dividing the jacket into 8 or 16 sections) or Chasing El Wire. I finally got my hardware, time to play with it and got everything up and running in less than a night (thanks largely to Make)




A couple things I need to remember are:
Arduino Program
Tools -> Board -> Lilypad Arduino w/ ATmega328
Tools -> Serial Port -> COM13

Sequencier Board
Computer -> USB -> FTDI -> Sequencier
Flip Switch -> USB