ЧП Ворон. Электронные компоненты и радиомонтажное оборудование. Микросхемы, транзисторы, реле, резисторы, конденсаторы, паяльное оборудование, припой.
Корзина пуста!
ВХОД ДЛЯ КЛИЕНТОВ

Забыли пароль?
Зарегистрироваться
Поиск:

Enter a search string or click on the microphone icon and begin speaking.

×
История запросов
ваша история поиска пуста
Whole catalog Development toolsModulesArduino and shields
Код товара:
023977

ARDUINO module Shield LCD1602

Shield with character screen 1602 and 6 buttons.
ARDUINO module Shield LCD1602
In stock
117,60 UAH × = 117,60 UAH
from 1 pc : 117,60 UAH
from 10 pcs : 111,70 UAH ( -5,0%)
from 50 pcs : 99,96 UAH ( -15,0%)

Current balances:

Магазин-Днепр
69 pcs
For Online Orders
69 pcs

Изображение товара

Product description format_size zoom_out zoom_in

Standard display 16 characters 2 lines. The background color is blue, the color of the symbols is white. There is no Russian font.

Communication type: parallel interface.

Chip: HD44780 (or equivalent)

Requires a library to workLCD4Bit.h     

Controller outputs are used:

PIN4(DB4) PIN6(DB6), PIN7(DB7),
PIN8 (RS data or display signals),
PIN9 (enable),
PIN10 (backlight),
Analog0 (buttons on shield: select, up, right, down and left)

Sample code:

#include

LCD4Bit_mod lcd = LCD4Bit_mod(2);

char GP2D12;
char a,b;
char str1[]="Renge:";
char str2[]="   Renge Over   ";
char str3[]="cm";

void setup()
{
  lcd.init();
  lcd.clear();
  lcd.printIn("GP2D12 testing...");
}

void loop()
{
      GP2D12=read_gp2d12_range(1);
      if(GP2D12>80||GP2D12<10)
        {
          lcd.cursorTo(2,0);
          lcd.printIn(str2);     
        }
      else
        {
          a=0x30+GP2D12/10;
          b=0x30+GP2D12%10;          
          lcd.cursorTo(2, 3);
          lcd.printIn(str1);    
          lcd.print(a);    
          lcd.print(b);
          lcd.printIn(str3);                    
        }    
    delay(50);
}

float read_gp2d12_range(byte pin)
{
 int tmp;
 tmp = analogRead(pin);
 if (tmp < 3)return -1;
 return (6787.0 /((float)tmp - 3.0)) - 4.0;
}

Leave your feedback or ask a question

Only this product is discussed here. Off topic comments will be deleted! Please follow the Commenting Rules.

The data presented in the product description are for reference only and may differ from those indicated by the manufacturer.
To carry out technical calculations and obtain the exact parameters of the goods, use the datasheets from the manufacturer's website.

If you need additional information, or you found an error in the description, or have other questions about this product, then our manager will help you: Денис - Днепр unknown

Buy with this product: Посмотреть больше…