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

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

УВАГА! Шановні клієнти магазину в м.Дніпро!

З 18.12.23 магазин в м.Дніпро за адресою вул.Новокримська 58 не працює.
Однак, наш інтернет-магазин відкритий для вас 24/7.
Усі місцеві замовлення можуть бути відправлені кур'єрськими службами.




Поиск:

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
120,00 UAH × = 120,00 UAH
from 1 pc : 120,00 UAH
from 10 pcs : 114,00 UAH ( -5,0%)
from 50 pcs : 102,00 UAH ( -15,0%)

Current balances:

Магазин-Днепр
77 pcs
For Online Orders
77 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: Посмотреть больше…