RSS

Tag Archives: LCD1602

First Steps with the Arduino-UNO | Maker, MakerED, Maker-Spaces, Coding | Useful Tips | I2C LCD-Display Errors Solving

First Steps with the Arduino-UNO | Maker, MakerED, Maker-Spaces, Coding | Useful Tips | I2C LCD-Display Errors Solving

.

I2C Addresses on LCD1602

.


LCD-Display Errors Solving

WHO doesn’t have that error already with LCD-Displays: Once uploaded (compiling) the code to the Arduino IDE there could be some errors happening, it happens to me… Please check PIC below:

 

ERROR-1

Click image, please, to enlarge

.

Well I made some searches on the internet and I found the right answer on a forum about this error, which says that one should scan the I2C Address of the device and replace the “lcd.init();” by “lcd.begin (0x3F,16,2);” whereby “0x3F” is the I2C Address of my LCD1602/I2C module. I scanned to find out the I2C Addess with this sketch, please check here:

I bought 3 from Amazon (Germany) delivered from “AZ Delivery” <===>  https://www.amazon.de/gp/product/B079T1BW6T  <===> and they should have had ALL the I2C-Address “0X27” as explained in their FREE eBook <===>  https://bibliothek.az-delivery.de/wp-content/uploads/2018/01/11-AZ-Delivery_16x2LCD-I2C-Display-Bundle_Startertutorial.pdf   <===> but ONLY 1 had this address and two others the I2C-Address “0X3F”!! BTW: AZ Delivery has very GOOD stuff for reasonable prices!

Here below the results of the scan of the I2C-Address, shown in the Serial-Monitor of the Arduino IDE:.

 

I2C-ADDRESS-SCAN

Click image, please, to enlarge.

.

I2C-ADDRESS-SCAN-2

Click image, please, to enlarge.

.

SO, make sure to FIRST scan the I2C-Address through the above mentioned Sketch, will save you a lot of stress! 😉

TIP: Use a DYMO, print out the I2C-Addresses and glue them on the backside of the LCD1602 Display, so you know for next projects WHAT I2C-Address the module has! 😉 In a couple of weeks you wouldn’t remind it anymore! 

.

I2C Addresses on LCD1602

Click image, please, to enlarge.

.


Resolving the ERROR message

Coming back to resolve our ERROR-message and how to resolve it:

Please check the PIC below:

.

ERROR-1-Changing some code for working

Click the image, please, to enlarge.

.

Check the lines marked with ***************************, in my case it is lines 36 and 40-52! Change it as it is displayed above, save it and upload it; it should work correctly now!

.


Stay tuned for next blog posts and enjoy it 😉

Have FUN with your “LEARNing-By-Doing project” and try out ALSO the other examples 😉

.

Keywords necessary for me to create this blog post: Arduino, Coding, Maker, MakerED, MakerSpaces, Learning By Doing, Learning To Learn, PracTICE, LCD-Displays, I2C,

.


.

L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

.

Stay tuned for next blog post(s) 😉..

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , , ,

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Maker-Spaces, Coding | LCD1602-I2C | Tips

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Maker-Spaces, Coding | LCD1602-I2C | Tips

.

I2C Addresses on LCD1602

.


LCD1602-I2C isn’t working.

Well, I made some searches on the internet and I found the right answer on a forum about this error, which says that one should scan the I2C Address of the device and replace the “lcd.init();” by “lcd.begin (0x3F,16,2);” whereby “0x3F” is the I2C Address of my LCD1602/I2C module. I scanned to find out the I2C Addess with this sketch, please check here:

I bought 3 from Amazon (Germany) delivered from “AZ Delivery” <===>  https://www.amazon.de/gp/product/B079T1BW6T  <===> and they should have had ALL the I2C-Address “0X27” as explained in their FREE eBook <===>  https://bibliothek.az-delivery.de/wp-content/uploads/2018/01/11-AZ-Delivery_16x2LCD-I2C-Display-Bundle_Startertutorial.pdf   <===> but ONLY 1 had this address and two others the I2C-Address “0X3F”!! BTW: AZ Delivery has very GOOD stuff for reasonable prices!

Here below the results of the scan of the I2C-Address, shown in the Serial-Monitor of the Arduino IDE:.

 

I2C-ADDRESS-SCAN

Click image, please, to enlarge.

.

I2C-ADDRESS-SCAN-2

Click image, please, to enlarge.

.

SO, make sure to FIRST scan the I2C-Address through the above mentioned Sketch, will save you a lot of stress! 😉

TIP: Use a DYMO, print out the I2C-Addresses and glue them on the backside of the LCD1602 Display, so you know for next projects WHAT I2C-Address the module has! 😉 In a couple of weeks you wouldn’t remind it anymore! 

.

I2C Addresses on LCD1602

Click image, please, to enlarge.

.


Resolving the ERROR message

Coming back to resolve our ERROR-message and how to resolve it:

Please check the PIC below:

.

ERROR-1-Changing some code for working

Click the image, please, to enlarge.

.

Check the lines marked with ***************************, in my case it is lines 36 and 40-52! Change it as it is displayed above, save it and upload it; it should work correctly now!

.


.

L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure).


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

.

Stay tuned for next blog post(s) 😉

.

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , , ,

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | I2C LCD Temp./Humidity displaying

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | I2C LCD Temp./Humidity displaying

.

LCD1602 and LCD2004

.


Displaying Temperature/Humidity on a I2C LCD 

We were already playing around, as seen on my tutorials below, with the Temperature/Humidity sensors DHT11, DHT22 and LCD1602, without I2C possibility. There were a lot of cables to connect, we will try out this time to use a LCD with I2C bus connection as it uses ONLY 4 wires to connect. It’s a perfect project for newbies in coding as they will see the measured values directly on the LCD screen, the success and happy factor is guaranteed!

Related tutorials:

 

Let us have first a look on the wiring (cabling) which is actually very easy, have a look below please:

.

Fritzing-Wiring

====> Click image, please, to enlarge.

The wiring (cabling) will take about +/- 5-10 minutes depending on your own rhythm… Let us have a look on the coding now: we will use exactly the same code (Sketch) as in our first tutorial here, which we will change just a bit to fit for I2C LCD1602 display:

Copy&Paste the code from above tutorial where it is marked “I also made an example where I display the results on a LCD. Here’s the source code of that example:” and paste it into the Arduino IDE. Connect the Arduino NANO with your computer now. Open the Arduino IDE and choose the board “Arduino NANO”, see screenshot below, please:

Arduino-IDE-Board Manager-1

Click image, please, to enlarge.

.

Next step, on the same Arduino IDE select the Processor:

.

Arduino-IDE-Board Manager-OLD-NEW-BOOTLOADER

Click image, please, to enlarge.

.

TIP: when the LED on the Arduino NANO is lightning GREEN it is an original NANO and you must choose “Atmega328P”; if the LED is lightning RED, it is a clone and you must choose “Atmega328P (Old Bootloader)”.

.

NOW it is about time to adapt the code (Sketch) to an I2C-LCD1602 display, let us have a look on the Sketch (the original):

.

OLD Code to change

Click image, please, to enlarge.

.

As we can see in line 10: the library is meant for a normal LCD display, it needs to get changed for a “I2C LCD Library”.

In line 15: the same it shows the wiring pins for a normal LCD display, it needs to get changed for a “I2C LCD” display.

In line19: It is BETTER to add as well the I2C-Address, mostly “0x27” OR “0x3F”.

That is NOT much to change, we will see in the screenshot below the How-To:

.

NEW Code to change

Click image please, to enlarge.

.

By enlarging (click on the image) you will see by comparing where the changes are. I commented in the lines the WHY… Try it out to change it yourselves or just download the Sketch (Code) here below who is working:

Copy&Paste this code into a NEW Sketch on the Arduino IDE and upload now the code to the Arduino NANO (or Arduino UNO) and enjoy it! 😉 Here below a photo of the working sketch:

.

DHT11 on LCD I2C Display

.

And in case of that you have a I2C LCD with 20×4 configuration it works also, check photo below please:

.

I2C LCD2004 and DHT11

.

As you can see the two first lines from 4 possible lines are only used, that is normal as the Sketch (Code) is actually written for a 2 line LCD. BUT we can add some lines of code in the original Sketch to make it working on 4 lines, which is very easy actually, check below please for explication:

.

Printing text on the LCD

Click image, please, to enlarge.

.

As you can see in line 30 in above screenshot of the code ===> “lcd.setCursor(0,0); // Sets the location at which subsequent text written to the LCD will be displayed” the the line is set to “0” which means the first line on the LCD1602. By changing the value to “lcd.setCursor(0,1)” in line 30 and in line 34 to “”lcd.setCursor(0,2)” the text will be displayed as follows, see photo below please:

.

I2C LCD2004 DHT11

.

NOW, as you can see, we have two lines without any text where we could bring in some text. Let us try to find out HOW! We have seen already that “lcd.setCursor(0,0) above. We used in above example the lines 2 and 3 from 4 lines which were displayed as shown in above photo, right?

 

Printing text on the LCD in 4 lines

Click image, please, to enlarge.

.

Check lines 26 and 27 and also lines 37 and 38: I added them, do the same and the text between the “………” you may change it with your OWN text what will result in following, check photo below, please:

.

 

I2C LCD2004 4 lines of text

.

BUT wait, my text looks centralized and yours NOT, HOW?! Check photo below, please which explains:

.

4 Lines centered on I2C LCD

.


Prices and where to order

 

LCD1602 + I2C Modul

LCD1602-I2C

Click image, please, to enlarge.

Arduino NANO

ARDUINO NANO

Click image, please, to enlarge.

 

LCD2004-I2C

Click image, please, to enlarge.

 

 Temperature/Humidity Sensors

DHT11

.

.

Stay tuned for next blog post(s) 😉

.


.

GUST-AVRIL2014-800px-2L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

.

.

Keywords necessary for me to create this blog post: Arduino UNO R3, Arduino NANO, UNO R3 Project, LCD 1602, Sensors, DHT11,  DHT22, Temperature/Humidity Sensor, coding, learning to learn, learning by doing, trouble shooting, hygrometer, I2C, LCD 20×4,

.

.

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , ,

First Steps with the NodeMCU ESP8266 | Maker, MakerED, Coding | Text on I2C-LCD1602 Display written over Web-Page

First Steps with the NodeMCU ESP8266 | Maker, MakerED, Coding | Text on I2C-LCD1602 Display written over Web-Page

.

I2C-LCD WEB-TEXT on NodeMCU ESP8266

.


Text on I2C-LCD1602 Display written over Web-Page

Sometimes it might be useful to write a text which should be displayed on a LCD display without any cabling, that is possible to do over your own Wi-Fi network and a NodeMCU ESP8266 module. And the project uses ONLY 4 wires as the LCD1602 gets addressed over the I2C bus. Let us remember WHAT the I2C bus is in our previous tutorial:

Check out the wiring below please, ONLY 4 wires plus 2 for the power supply connections:

.

.

Let us have a look on the video below who shows how it works:

.

.

SO, knowing now how it works, let us have a look on the Sketch (Code). I changed a bit the code, as I am using an I2C LCD1602 and I added as well some more text displayed on the LCD1602 display. Check below, please, the original code. I will explain WHAT could (should) GET changed later with a screenshot of the changes and/or a download…

The Arduino code and the library for this project can be found at the links below. The library has to be saved in the Arduino libraries folder of the same name:

 

Find below, please, my changed code (Sketch) for downloading:

The download is a text file created with OpenOffice, copy the content and place it into a new Sketch on the Arduino IDE. ALL you have to do now is to change some lines, e.g.:

  • in line 47: Enter your SSID
  • in line 48 Enter your Wi-Fi Network Password

See PIC below, please:

.

CODE-CHANGE

Click image, please, to enlarge.

.

This should work for you now; in case of that you wouldn’t see the display working find here the trouble-shooting:

Mostly it is that your LCD1602 uses a different I2C-Address and/or that the ESP8266 isn’t allowed in your network for security reasons, to make sure check my blog post here, please:

Here below a working Sketch which shows how it is working: for security reasons you won’t see my SSID, nor my real IP-Address! 😉

.

.


.

GUST-AVRIL2014-800px-2L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.

 


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

.

Stay tuned for next blog post(s) 😉..
.

Keywords necessary for me to create this blog post: NodeMCU, ESP8266, Web Server, I2C, LCD1602, Coding, Maker, MakerED, MakerSpaces…

.

.

.

.

 

.

.

.

.

.

.

.

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | Scrolling text with I2C-LCD1602

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | Scrolling text with I2C-LCD1602

.

Office Notification-I2C-LCD1602

.


Scrolling text with I2C-LCD1602

I was looking for a simple project for beginners, newbies on Coding and MakerED. A looong time ago since we did a project with ONLY four (4) wires, isn’t it! Well here is one which is very easy to create, a “Scrolling text on a LCD1602 with “I2C-Bus”. In previous blog post we were already using and explaining the “I2C-Bus” with an LCD, so it will be easy to create this one…

As a reminder, the I2C-Bus on an LCD1602:

Let us first have a look on the wiring, which is actually very easy.

.

I2C LCD1602 PINOUT-Arduino NANO

Click image, please, to enlarge.

The full tutorial could be found here, which I invite you to read carefully:

In  the tutorial are mentioned also the download link for the code in the upper side of the website, download it and check it; there are some bugs in 😉 I will explain where to look for changing the code, it’s actually very easy, here we GO!

Here the download link again:

The code looks like this (partial view for WHAT is interesting us…).

.

SCROLLING-TEXT-LCD1602-I2C-ORIGINAL-WITH-BUGS

Click image, please, to enlarge.

.

When we look at line 6, it is just a “comment” and so it will result in an ERROR, it should become uncommented by ” // “. In my case I didn’t get any text displayed, so I had a look at line 18 which is ” lcd.begin (16,2);” and I changed it into ===> “lcd.begin (0x3F,16,2);” which worked!! SO, that’s my recommendations, otherwise the Sketch works fine and you can change the lines 9 and 10 where you bring in your own text; NOT more than 16 characters, please 😉 Well, give it a try and find out yourselves…  Here below a screenshot with the working code…

.

SCROLLING-TEXT-LCD1602-I2C-WORKING

Click image, please, to enlarge.

.

Click the image, please, to enlarge it and find the necessary instructions to make the code work correctly, IF you have the same problem as I had.

.

 

Out of office notification


Office Notification-I2C-LCD1602

Click image, please, to enlarge.

 

 

 

Prices of the used material:

 

 

.

Please check video below to see the Sketch in action, e.g.

.

.

SO, now that your sketch is working, play a bit around while changing the variables, such as:

  • delays
  • text
  • etc.

Have fun and stay tuned for next blog posts 😉


.

GUST-AVRIL2014-800px-2L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

 

Keywords necessary for me to create this blog post: Arduino UNO R3, Arduino NANO, LCD 1602, I2C Bus, coding, learning to learn, learning by doing, trouble shooting, I2C scan, LCD160/I2C, Scrolling Text,

.

.

.

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , ,

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | RFID RC522 Tag-Card Reader with LCD1602-I2C

First Steps with the Arduino-UNO R3 and NANO | Maker, MakerED, Coding | RFID RC522 Tag-Card Reader with LCD1602-I2C

.

RFID-RC522-LCD1602-I2C

 

.


RFID RC522 Tag-Card Reader with LCD1602-I2C

We were already playing around with LCD’s in our previous tutorial <===> First Steps with the Arduino-UNO R3 | Maker, MakerED, Coding | Super Starter Kit UNO R3 Project | LCD and Sensors Project <===> but there we used the SPI-Bus, meaning: connecting 12 wires (Potentiometer connections included…)!! With the I2C Bus we need ONLY to connect 4 wires!!

Check PICs below please to see the difference:

SPI Bus connections

LCD1602-Wiring with Arduino

.

I2C Bus connections on Arduino UNO

.

I2C LCD1602 PINOUT on Arduino UNO

.

I2C Bus connections on Arduino NANO

.

I2C LCD1602 PINOUT-Arduino NANO

.

SO, as you can see there is a BIG difference in cabling 😉 Especially beginners in Coding would appreciate this I2C version with ONLY 4 wires!

Learn more:

.

Check this video tutorial which explains very well about I2C:

.

.

Let us NOW first watch the video tutorial to see about WHAT this tutorial is…

.

.

The video and the code description in the Sketch are in Portuguese, BUT DON’T worry, I will give you later some screenshots with English text which you will need to change in the code; there are anyway some lines of code to add (change…) to make it working correctly! But let us FIRST have a look on the PINOUT of the RFID RC522 to see WHAT we have to connect.

.

RFID-RC522-PINOUT

.

So, let us now connect the RFID-RC522 to the Arduino UNO or the Arduino NANO, I used a Arduino NANO and its working perfectly! Check the translated (Google translate) wiring instructions.

.

 

1ibdy1vf6wghd-n05dgl-attenzionearchitettofr01Make sure to connect the RFID-RC522 to 3,3 Volts and NOT to 5 Volts, you will fry the device otherwise!!

.

.

 

 

Connections-RFID-ARDUINO

Click PIC , please, to enlarge.

.

As we can see from the bove there are 7 wires to connect from 8 possible connections on the RFIF RC522 device; the “interrupt pin (IRQ)” isn’t needed! SO, lets connect these pins to the Arduino UNO, or as I did to the Arduino NANO; it works on both! Next step is to connect the LCD1602 I2C to the Arduino, it’s pretty simple, check below please. ONLY 4 wires!

.

LCD-I2C-PINOUT-ARDUINO

.

The wiring done, NOW we can download the code (Sketch) and upload it to our Arduino UNO, or NANO through the Arduino IDE, please find the download link below:

Once uploaded (compiling) the code there could be some errors happening, it happens to me… please check PIC below:

 

ERROR-1

Click image, please, to enlarge

.

Well I made some searches on the internet and I found the right answer on a forum about this error, which sais that one should scan the I2C Address of the device and replace the “lcd.init();” by “lcd.begin (0x3F,16,2);” whereby “0x3F” is the I2C Address of my LCD1602/I2C module. I scanned to find out the I2C Addess with this sketch, please check here:

I bought 3 from Amazon (Germany) delivered from “AZ Delivery” <===>  https://www.amazon.de/gp/product/B079T1BW6T  <===> and they should have had ALL the I2C-Address “0X27” as explained in their FREE eBook <===>  https://bibliothek.az-delivery.de/wp-content/uploads/2018/01/11-AZ-Delivery_16x2LCD-I2C-Display-Bundle_Startertutorial.pdf   <===> but ONLY 1 had this address and two others the I2C-Address “0X3F”!! BTW: AZ Delivery has very GOOD stuff for reasonable prices!

Here below the results of the scan of the I2C-Address, shown in the Serial-Monitor of the Arduino IDE:.

 

I2C-ADDRESS-SCAN

Click image, please, to enlarge.

.

I2C-ADDRESS-SCAN-2

Click image, please, to enlarge.

.

SO, make sure to FIRST scan the I2C-Address through the above mentioned Sketch, will save you a lot of stress! 😉

TIP: Use a DYMO, print out the I2C-Addresses and glue them on the backside of the LCD1602 Display, so you know for next projects WHAT I2C-Address the module has! 😉 In a couple of weeks you wouldn’t remind it anymore! 

.

I2C Addresses on LCD1602

Click image, please, to enlarge.

.


Resolving the ERROR message

Coming back to resolve our ERROR-message and how to resolve it:

Please check the PIC below:

.

ERROR-1-Changing some code for working

Click the image, please, to enlarge.

.

Check the lines marked with ***************************, in my case it is lines 36 and 40-52! Change it as it is displayed above, save it and upload it; it should work correctly now!

Please check the PICs below to see different interactions of the reader and the display:

.

Access Control Start Display

Access Control Start Display

Click image, please, to enlarge.

Access Control Invalid card/tag

 

Access Control Invalid Card/Tag

Click image, please, to enlarge.

 

Access Control-Access granted

Access granted

Click image, plese, to enlarge.

 

 

 

Prices of the used material:

 

 

.

For those interested in to know a bit theory about NFC, RFID, please check below:

 

Check also this video, please:

Have fun learning with PracTICE and stay tuned for next adventures of learning 😉

 


.

GUST-AVRIL2014-800px-2L’auteur Gust MEES est Formateur andragogique / pédagogique TIC, membre du “Comité Conseil” de “Luxembourg Safer Internet” (LuSI), appelé maintenant BEESECURE, partenaire officiel (consultant) du Ministère de l’éducation au Luxembourg du projet  ”MySecureIT“, partenaire officiel du Ministère du Commerce au Luxembourg du projet ”CASES” (Cyberworld Awareness and Security Enhancement Structure). L’auteur était aussi gagnant d’un concours en électronique en 1979 ( Pays germaniques ) et voyait son projet publié dans le magazine électronique “ELO”.


The author Gust MEES is ICT Course Instructor, ”Member of the Advisory Board” from “Luxembourg Safer Internet” (LuSI), BEESECURE, Official Partner (Consultant) from the Ministry of Education in Luxembourg, project “MySecureIT“, Official Partner from the Ministry of Commerce in Luxembourg, project “CASES” (Cyberworld Awareness and Security Enhancement Structure).

The author was also a winner of an electronics contest (Germanic countries) in 1979 and got his project published in the “Electronics Magazine ELO”.

 

Keywords necessary for me to create this blog post: Arduino UNO R3, Arduino NANO, LCD 1602, I2C Bus, RFID, RC522,Tag, Card Reader, Tag Reader, Access Control, coding, learning to learn, learning by doing, trouble shooting, I2C scan, LCD160/I2C,

.

.

.

.

 

 

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , ,