العروض المميزة

شحن مجاني

أضِف 3+ ووفّر

Choice لوحة توسيع الإدخال/الإخراج LCD1602Character لوحة مفاتيح LCD درع LCD وحدة عرض LCD لـ Ardui...

العروض المميزة

27,9625,16SAR
  • ادفع SAR 6.29 على 4 من الأقساط من دون فوائد.

  • ادفع لغاية 4 من الأقساط من دون فوائد ابتداءً من SAR 6.29.


طرق الدفع
Payment method
Payment method
Payment method
Payment method
Payment method
Payment method
Payment method
left arrow
right arrow
Big Save Store
11.6K المتابعون
متجر البائع 
معلومات إضافية
يمكن طلب بحد أقصى عدد 5 وحدة (وحدات) من هذا المنتج. يحق لترينديول إلغاء الطلبات التي تزيد عن 5 وحدة (وحدات).
يشمل سعر البيع على ترينديول بالفعل التكاليف المتعلقة بالتصدير.
رقم الباركود: 3574565234763

ميزات المنتج

I / O expansion board LCDKeypad Shield

LCD Keypad shields input/output extended use 2 lines 16 characters LCD panel, with contrast adjustment and backlight, use a simulated input of mouth, completing five buttons, a reset button, the unused IO mouth extend out spare, make full use of I/o port. Take up the digital port: PIN4 (db3), 5 (DB5), 6 (DB6), 7 (DB7), 8 (RS), 9 (E), 10 (backlight control), A0 simulate keystrokes port. (LCD color is not specified, random delivery.)

Used with Roboduino:

Module debugging:

Will LCD Keypad shields inserted to the controller, then need to download the LCD4Bit_mod. H (right click save as) library files to the - 0015 \ \ hardware \ \ in the libraries, and then compile the following a test program to download to the , first use the LCD Keypad shields, did observe LCD display character first, if there is no contrast shows characters that may be incorrect, you can use a word screwdriver adjustment RP1 (clockwise), characters can be transferred to appear clearly.

The test renderings:

GP2D12Ranging 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;
}