Difference: HD44780 (1 vs. 6)

Revision 62017-11-16 - uli

Line: 1 to 1
 
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

Line: 16 to 16
 
  • a 4-bit mode where the data bits are transferred in 2 successive cycles on the upper 4 data lines (D4-D7) while the lower 4 bits are used to drive the control lines
Our I2C interface uses the 4-bit mode and is connected as follows:
Changed:
<
<
pcf8574ifce.png
>
>
hd44780-pcf8574circuit.png
  The display can be used in a multitude of applications. When running with the realtime clock for example it may display date and time while when running with the PCF8591 ADC it may show an input voltage and in this way transform our Raspberry Pi into a simple voltmeter. The left value is an 8 bit hex value directly read from the ADC while the second is the value converted into Volts under the condition that the PCF8591 is connected to Vcc=3.3V.
Line: 35 to 35
 
META FILEATTACHMENT attachment="pcf8574ifce.png" attr="" comment="" date="1485957577" name="pcf8574ifce.png" path="pcf8574ifce.png" size="65250" user="uli" version="1"
META FILEATTACHMENT attachment="voltmeter.png" attr="" comment="" date="1486214517" name="voltmeter.png" path="voltmeter.png" size="675546" user="uli" version="1"
META FILEATTACHMENT attachment="hd44780.tar.gz" attr="" comment="" date="1507551592" name="hd44780.tar.gz" path="hd44780.tar.gz" size="262163" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="hd44780-pcf8574circuit.png" attr="" comment="" date="1510854307" name="hd44780-pcf8574circuit.png" path="hd44780-pcf8574circuit.png" size="67950" user="uli" version="1"

Revision 52017-10-09 - uli

Line: 1 to 1
 
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

Line: 34 to 34
 
META FILEATTACHMENT attachment="i2c_pcf8574.png" attr="" comment="" date="1485952729" name="i2c_pcf8574.png" path="i2c_pcf8574.png" size="1038370" user="uli" version="1"
META FILEATTACHMENT attachment="pcf8574ifce.png" attr="" comment="" date="1485957577" name="pcf8574ifce.png" path="pcf8574ifce.png" size="65250" user="uli" version="1"
META FILEATTACHMENT attachment="voltmeter.png" attr="" comment="" date="1486214517" name="voltmeter.png" path="voltmeter.png" size="675546" user="uli" version="1"
Changed:
<
<
META FILEATTACHMENT attachment="hd44780.tar.gz" attr="" comment="" date="1507291520" name="hd44780.tar.gz" path="hd44780.tar.gz" size="5810" user="uli" version="1"
>
>
META FILEATTACHMENT attachment="hd44780.tar.gz" attr="" comment="" date="1507551592" name="hd44780.tar.gz" path="hd44780.tar.gz" size="262163" user="uli" version="1"

Revision 42017-10-06 - uli

Line: 1 to 1
 
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

Line: 22 to 22
  voltmeter.png
Added:
>
>
The source code of the library allowing access to the hd44780 via the pcf8574 is attached to this page (hd44780.tar.gz)
 -- Uli Raich - 2017-02-01

Comments

Line: 32 to 34
 
META FILEATTACHMENT attachment="i2c_pcf8574.png" attr="" comment="" date="1485952729" name="i2c_pcf8574.png" path="i2c_pcf8574.png" size="1038370" user="uli" version="1"
META FILEATTACHMENT attachment="pcf8574ifce.png" attr="" comment="" date="1485957577" name="pcf8574ifce.png" path="pcf8574ifce.png" size="65250" user="uli" version="1"
META FILEATTACHMENT attachment="voltmeter.png" attr="" comment="" date="1486214517" name="voltmeter.png" path="voltmeter.png" size="675546" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="hd44780.tar.gz" attr="" comment="" date="1507291520" name="hd44780.tar.gz" path="hd44780.tar.gz" size="5810" user="uli" version="1"

Revision 32017-10-05 - uli

Line: 1 to 1
 
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

A 2 line LCD display can be used to display simple information. When using an ADC to read voltages it can be used to show the results implementing like this a simple voltmeter.

Changed:
<
<
The display is driven by a HD44780 display driver from Hitachi. The data sheet explains all the details of this controller. The controller can be directly accessed through GPIO lines, which however requires quite a bit of cabling. The other possibility is to pass through a pcf8574 I2C I/O expander, in which case only the I2C connections SCL, SDA, Vcc and GND are needed.
>
>
The display is driven by a HD44780 display driver from Hitachi. The data sheet explains all the details of this controller. The controller can be directly accessed through GPIO lines, which however requires quite a bit of cabling. The other possibility is to pass through a pcf8574 I2C I/O expander, in which case only the I2C connections SCL, SDA, Vcc and GND are needed.
 
2linedisplay.png i2c_pcf8574.png
The 2 line LCD display Its I2C interface
The blue potentiometer you see on the I2C interface is used to control the display contrast.
When developing the access library I saw that the programs failed in ~ 20% of the cases, while re-running the same binary again would make it work. The contrast was very bad also and I had to turn the contrast potentiometer to maximum in order to see the text.

Revision 22017-02-04 - uli

Line: 1 to 1
 
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

A 2 line LCD display can be used to display simple information. When using an ADC to read voltages it can be used to show the results implementing like this a simple voltmeter.

Changed:
<
<
The display is driven by a HD44780 display driver from Hitachi. The data sheet explains all the details of this controller. The controller can be directly accessed through GPIO lines, which however requires quite a bit of cabling. The other possibility is to pass through a pcf8574 I2C I/O expander, in which case only the I2C connections SCL, SDA, Vcc and GND are needed.
>
>
The display is driven by a HD44780 display driver from Hitachi. The data sheet explains all the details of this controller. The controller can be directly accessed through GPIO lines, which however requires quite a bit of cabling. The other possibility is to pass through a pcf8574 I2C I/O expander, in which case only the I2C connections SCL, SDA, Vcc and GND are needed.
 
2linedisplay.png i2c_pcf8574.png
Changed:
<
<
The 2 line LCD display Its I2C interface
The blue potentiometer you see on the I2C interface is used to control the display contrast and, at least in my case, must be set to maximum contrast to see the text clearly.
>
>
The 2 line LCD display Its I2C interface
The blue potentiometer you see on the I2C interface is used to control the display contrast.
When developing the access library I saw that the programs failed in ~ 20% of the cases, while re-running the same binary again would make it work. The contrast was very bad also and I had to turn the contrast potentiometer to maximum in order to see the text.

When switching from 3.3V power to 5V power however, all these problems went away.

  The HD44780 can operate in 2 modes:
  • a 8-bit mode in which all 8 interface bits are used as data and additional I/O lines are used as backlight control, R/W, strobe and register select lines.
  • a 4-bit mode where the data bits are transferred in 2 successive cycles on the upper 4 data lines (D4-D7) while the lower 4 bits are used to drive the control lines
Changed:
<
<
Our I2C interface uses the 4-bit mode and is connected as follows:
>
>
Our I2C interface uses the 4-bit mode and is connected as follows:
  pcf8574ifce.png
Added:
>
>
The display can be used in a multitude of applications. When running with the realtime clock for example it may display date and time while when running with the PCF8591 ADC it may show an input voltage and in this way transform our Raspberry Pi into a simple voltmeter. The left value is an 8 bit hex value directly read from the ADC while the second is the value converted into Volts under the condition that the PCF8591 is connected to Vcc=3.3V.

voltmeter.png

 -- Uli Raich - 2017-02-01

Comments

Line: 25 to 31
 
META FILEATTACHMENT attachment="2linedisplay.png" attr="" comment="" date="1485952720" name="2linedisplay.png" path="2linedisplay.png" size="894036" user="uli" version="1"
META FILEATTACHMENT attachment="i2c_pcf8574.png" attr="" comment="" date="1485952729" name="i2c_pcf8574.png" path="i2c_pcf8574.png" size="1038370" user="uli" version="1"
META FILEATTACHMENT attachment="pcf8574ifce.png" attr="" comment="" date="1485957577" name="pcf8574ifce.png" path="pcf8574ifce.png" size="65250" user="uli" version="1"
Added:
>
>
META FILEATTACHMENT attachment="voltmeter.png" attr="" comment="" date="1486214517" name="voltmeter.png" path="voltmeter.png" size="675546" user="uli" version="1"

Revision 12017-02-01 - uli

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="MoreSensors"

The 2 line LCD display.

A 2 line LCD display can be used to display simple information. When using an ADC to read voltages it can be used to show the results implementing like this a simple voltmeter.

The display is driven by a HD44780 display driver from Hitachi. The data sheet explains all the details of this controller. The controller can be directly accessed through GPIO lines, which however requires quite a bit of cabling. The other possibility is to pass through a pcf8574 I2C I/O expander, in which case only the I2C connections SCL, SDA, Vcc and GND are needed.

2linedisplay.png i2c_pcf8574.png
The 2 line LCD display Its I2C interface
The blue potentiometer you see on the I2C interface is used to control the display contrast and, at least in my case, must be set to maximum contrast to see the text clearly.

The HD44780 can operate in 2 modes:

  • a 8-bit mode in which all 8 interface bits are used as data and additional I/O lines are used as backlight control, R/W, strobe and register select lines.
  • a 4-bit mode where the data bits are transferred in 2 successive cycles on the upper 4 data lines (D4-D7) while the lower 4 bits are used to drive the control lines
Our I2C interface uses the 4-bit mode and is connected as follows:

pcf8574ifce.png

-- Uli Raich - 2017-02-01

Comments

<--/commentPlugin-->

META FILEATTACHMENT attachment="2linedisplay.png" attr="" comment="" date="1485952720" name="2linedisplay.png" path="2linedisplay.png" size="894036" user="uli" version="1"
META FILEATTACHMENT attachment="i2c_pcf8574.png" attr="" comment="" date="1485952729" name="i2c_pcf8574.png" path="i2c_pcf8574.png" size="1038370" user="uli" version="1"
META FILEATTACHMENT attachment="pcf8574ifce.png" attr="" comment="" date="1485957577" name="pcf8574ifce.png" path="pcf8574ifce.png" size="65250" user="uli" version="1"
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback