How to Connect an I2C Lcd Display to an Arduino Uno Tutorial

techydiy
techydiy
774.3 هزار بار بازدید - 8 سال پیش -
http://www.techydiy.org/how-to-connec...

16x2 i2c display:
Amazon  USA     https://amzn.to/2Nyzxab
Amazon UK            https://amzn.to/2Slvzsl
Amazon Canada         https://amzn.to/2t9ewKO
Amazon India            https://clnk.in/gylZ
Amazon Australia        https://amzn.to/2HYmS2b
Amazon Deutschland     https://amzn.to/2UPe00t
Amazon France             https://amzn.to/2HXQfl7
Amazon  Italia                https://amzn.to/2ULL8WH
Amazon España        https://amzn.to/2Seg8Sq

Ebay.com             https://ebay.to/2O3w2JL
Ebay.de                   https://ebay.to/2A2CfTs
Ebay.co.uk            https://ebay.to/2zWCTBG
Ebay.ca                    https://ebay.to/2L9KxOv
Ebay.nl                    https://ebay.to/2Lqj1eB
Ebay.fr                   https://ebay.to/2uAn2DK
Ebay.com.au           https://ebay.to/2mx6vfz

Arduino Kit:              
Amazon.com (USA)      https://amzn.to/2O3JjSw
Amazon.co.uk  (UK)               https://amzn.to/2DHoJod
Amazon.in  (India)      https://clnk.in/gyl0
Amazon.de   (Deutschland)       https://amzn.to/2DJ0few
Amazon.es  (España )               https://amzn.to/2DK9Em6
Amazon.fr (France)     https://amzn.to/2zmAP31
Amazon.it (Italia)      https://amzn.to/2S890T6
Amazon.ca (Canada)            https://amzn.to/2TGhgvd
Amazon.com.au (Australia)          https://amzn.to/2PVx3s5

Ebay.com                   https://ebay.to/2O4BEn1
Ebay.de                         https://ebay.to/2mwkLVB
Ebay.co.uk                  https://ebay.to/2uD8P9c
Ebay.ca                          https://ebay.to/2JGp1Lv
Ebay.nl                          https://ebay.to/2LzIzCZ
Ebay.fr                              https://ebay.to/2LpPzWo
Ebay.com.au                 https://ebay.to/2LrHyQB

FAQ:  
Q. My lcd display is not showing anything?    
Try changing the contrast potentiometer on the back of the display.

Q.  The lcd display  doesn't show anything or random just  characters?  
Your backpack might be wired differently.
Try this line instead:  LiquidCrystal_I2C lcd(0x27, 4, 5, 6, 0, 1, 2, 3, 7, POSITIVE);  // Change the 0x27  i2c address to your i2c address

Q.  Com port not found errors    
Run the windows "device manager", expand  "Ports (COM & LPT)". Check that the serial (com) port exists.
Check the board is plugged in to a usb port.
Check the device driver is loaded.
Some clones use the CH340 driver, you will need to download and install it.

Q. The scanner sketch can't find the i2c address?
Check the wiring.  
Some Arduino  models use different pins for the I2C connections, if you are not using an UNO then check which pins you need to use.

Please visit the techydiy Amazon com shop and help support the channel:
https://www.amazon.com/shop/techydiyo...

NewliquidCrystal library:
https://github.com/fmalpartida/New-Li...
Select the Code button and download zip

( Old link)  https://bitbucket.org/fmalpartida/new...

i2c Scanner:
http://playground.arduino.cc/Main/I2c...

Arduino IDE software:   https://www.arduino.cc/

SUBSCRIBE TECHYDIY CHANNEL:
http://bit.ly/2des2sq

SUBSCRIBE TECHYDIY REVIEWS CHANNEL:
http://bit.ly/2dGwUCl

techydiy ► http://www.techydiy.org
Facebook ► Facebook: techydiy
Twitter ► Twitter: techydiy
Pinterest ► Pinterest: techydiy
8 سال پیش در تاریخ 1395/08/03 منتشر شده است.
774,309 بـار بازدید شده
... بیشتر