Difference between revisions of "LCDDisplay"

From Let's Control It
Jump to navigation Jump to search
Line 1: Line 1:
[[Bestand:LCDConnexio.jpg]]
+
[[File:LCDConnexio.jpg]]
  
= Introductie =
+
= Introduction =
Een ESP8266 module kan worden gebruikt om een LCD Display aan te sturen
+
The ESP8266 module can be used to control an I2C LCD Display.
  
 
= Hardware =
 
= Hardware =
We sluiten een LCD Display aan met een I2C interface. Dit display werkt met 5 volt VCC, maar de I2C aansluitingen zijn mogelijk "zwevend". Het 2004 display van Funduino dat we bij de test hebben gebruikt kon direct worden aangesloten.
+
Connect the LCD Display to the I2C interface. This display works with 5 volt VCC, but the I2C connections should be "floating". The 2004 display from "Funduino" that we used in our testlab could be connected without levelshifters.
  
== Aansluitingen ==
+
== Connections ==
 
<span style="color:red">
 
<span style="color:red">
Let op: De LCD Module heeft een voedingsspanning van 5 volt. De I2C aansluitingen kunnen zwevend zijn en dan kun je deze direct op de ESP aansluiten. Sommige displays hebben blijkbaar weerstanden naar VCC en dan staat er 5 volt op. In dat geval moet je een levelshifter gebruiken (kan ook met 3V3 zenerdioden naar massa)</span>
+
WARNING: Some LCD Modules might have pullup resistors to 5 volts VCC. In that case a levelshifter should be used</span>
  
 
   LCD ESP-01
 
   LCD ESP-01
Line 18: Line 18:
  
 
= Software =
 
= Software =
 +
 
== Custom sketch ==
 
== Custom sketch ==
 +
 
== ESP Easy ==
 
== ESP Easy ==
 +
 
== ESP Connexio ==
 
== ESP Connexio ==
Het commando kan worden gebruikt in de eventlist of vanaf de command-line:
+
Command:
 
  ''<nowiki>LCDI2CWrite <line>,<column position>, <data command>, <data option></nowiki>''
 
  ''<nowiki>LCDI2CWrite <line>,<column position>, <data command>, <data option></nowiki>''
  
Line 52: Line 55:
  
  
=== Voorbeeld ===
+
=== Sample ===
 
  LCDWrite 1,1,Message,1
 
  LCDWrite 1,1,Message,1

Revision as of 20:59, 24 August 2015

LCDConnexio.jpg

Introduction

The ESP8266 module can be used to control an I2C LCD Display.

Hardware

Connect the LCD Display to the I2C interface. This display works with 5 volt VCC, but the I2C connections should be "floating". The 2004 display from "Funduino" that we used in our testlab could be connected without levelshifters.

Connections

WARNING: Some LCD Modules might have pullup resistors to 5 volts VCC. In that case a levelshifter should be used

 LCD 	 	ESP-01
 GND 	 	GND
 VCC    	-
 SDA		GPIO 0
 SCL		GPIO 2

Software

Custom sketch

ESP Easy

ESP Connexio

Command:

LCDI2CWrite <line>,<column position>, <data command>, <data option>
Parameter: Beschrijving: Bereik: Opmerking:
Line Regelnummer 1-2 (of 1-4)
Column Kolom positie 1-16 (1-20)
data command Message, Clock, IP, PortInput, Variable, Event
data option Indien Message: label id van de tekst die moet worden getoond Message:1-20


Sample

LCDWrite 1,1,Message,1