• Em promoção!
  • -3,30 €

Adaptador IIC/I2C para LCD 16x2 e 20x4

:LCD01072
6,30 €
3,00 € Poupe 3,30 €
preço com IVA incluído

Esta é outra ótima interface serial IIC / I2C / TWI / SPI. Como os recursos de I/Os do controlador Arduino são limitados, o seu projeto pode não ser capaz de usar o LCD normal. No entanto, com este módulo de interface I2C, você será capaz utilizar o LCD através de apenas 2 fios.

Quantidade

DESCRIÇÃO EM PORTUGUÊS BREVEMENTE DISPONÍVEL

Se tiver alguma dúvida neste produto não hesite em contactar-nos.

*Atenção: as imagens são meramente ilustrativas.

Connect the I2C Module to 1602 Display

There’s essentially two ways to connect these:

  1. Solder header pins to your 1602 display and use a breadboard (as I’ve shown in the first photo).  Make sure you connect the pins correctly.
  2. Solder the I2C module directly to the 1602 display.  As before, make SURE you connect the pins on the module to the correct connections on the display.  It’s quite simple and goes only one way, but I suppose one *could* still solder it backwards even though it looks completely wrong.

 

Connect the I2C Module to the Arduino

This is really simple and here are the connections:

SCL = A5
SDA = A4
VCC = 5V+
GND = GND

IIC/I2C Serial Interface Adapter Module For 1602 LCD Display tutorial

IIC/I2C Serial Interface Adapter Module For 1602 LCD Display tutorial

 

Load the Arduino Sketch 

/**
 * I2C/IIC LCD Serial Adapter Module Example
 * Tutorial by http://mklec.com
 * 
 * Instructions at http://blog.mklec.com/how-to-use-iici2c-serial-interface-module-for-1602-lcd-display
 *
 * This uses the Liquid Crystal library from https://bitbucket.org/fmalpartida/new-liquidcrystal/downloads GNU General Public License, version 3 (GPL-3.0)
 * Pin Connections: 
 *      SCL = A5
 *      SDA = A4
 *      VCC = 5V
 *      GND = GND
 */
#include <Wire.h>
#include <LCD.h>
#include <LiquidCrystal_I2C.h>

LiquidCrystal_I2C  lcd(0x27,2,1,0,4,5,6,7); // 0x27 is the I2C bus address for an unmodified module

void setup()
{
    lcd.setBacklightPin(3,POSITIVE);
    lcd.setBacklight(HIGH); // NOTE: You can turn the backlight off by setting it to LOW instead of HIGH
    lcd.begin(16, 2);
    lcd.clear();
}

void loop()
{
    lcd.setCursor(0,0);
    lcd.print("http://mklec.com");
    lcd.setCursor(0,1);
    lcd.print("I2C Module Demo");
    delay(1000);
}

LCD01072

Também poderá gostar