My little place on the web

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:lcd_module [2012/07/01 11:50]
elger
projects:lcd_module [2013/02/23 09:59]
127.0.0.1 external edit
Line 6: Line 6:
 {{ :​projects:​sainsmart_iic-i2c-twi_serial_2004_20x4_lcd_back.png?​200|}} {{ :​projects:​sainsmart_iic-i2c-twi_serial_2004_20x4_lcd_back.png?​200|}}
  
-My display has a PCB on the back labled "​YwRobot Arduino LCM1602 ​IICV1" but it appears it is the same as the the one of [[http://​www.sainsmart.com/​sainsmart-iic-i2c-twi-serial-2004-20x4-lcd-module-shield-for-arduino-uno-mega-r3.html|sainsmart.com]]+My display has a PCB on the back labled "​YwRobot Arduino LCM1602 ​IIC V1" but it appears it is the same as the the one of [[http://​www.sainsmart.com/​sainsmart-iic-i2c-twi-serial-2004-20x4-lcd-module-shield-for-arduino-uno-mega-r3.html|sainsmart.com]]
 The only difference is the text on the back.  The only difference is the text on the back. 
  
Line 32: Line 32:
 ===== The software ===== ===== The software =====
  
-<page is being edited>+You need to remove the standard liquidcrystal library, rename the old folder to something else. You can read [[http://​www.arduino.cc/​playground/​Code/​Library|here]] how to replace a library.
  
-<file cpp i2c_display.ino>​+Next you need to install the liquidcrystal library that works. I found mine here: 
 +[[https://​bitbucket.org/​fmalpartida/​new-liquidcrystal/​downloads| fmalpartida/​new-liquidcrystal]] 
 +And there is also lots more information on the library [[https://​bitbucket.org/​fmalpartida/​new-liquidcrystal/​wiki/​Home|here]] 
 + 
 +I used their examples and came up with this little demo: 
 + 
 +<code cpp i2c_display.ino>​
 /* /*
     ** Example Arduino sketch for SainSmart I2C LCD2004 adapter for HD44780 LCD screens     ** Example Arduino sketch for SainSmart I2C LCD2004 adapter for HD44780 LCD screens
Line 40: Line 46:
  ** The LCD2004 module appears to be identical to one marketed by YwRobot  ** The LCD2004 module appears to be identical to one marketed by YwRobot
  **  **
- ** Address pins 0,1 & 2 are all permenantly ​tied high so the address is fixed at 0x27+ ** Address pins 0,1 & 2 are all permanently ​tied high so the address is fixed at 0x27
  **  **
  ** Written for and tested with Arduino 1.0  ** Written for and tested with Arduino 1.0
Line 402: Line 408:
 } }
  
-</file>+</code>