Arduino Project #00002 - LCD 16x2 LCM1602B and temperature sensor with NTC thermistor

In this project I developed a simple temperature sensor using an NTC thermistor, and 1k resistor and an LCD display. For the display I followed the same as in this tutorial, just adjusting to the pinout of my display that is not 1-16, but "14-1,15,16".




Notice that a sensor like the KY-013, is just an NTC thermistor with the appropriate resistance, you don`t need to measure and know the internals. For understanding how to build a sensor like this, I used this tutorial and this another one.


Just the thermoresistor connections is like that:

The reading of the value is via A0 - please adjust resistance according to the NTC, both must be the same.




So let`s go to the display connections:

Function
Arduino PIN
Comments
Vss
GND
Vdd
Vcc
V0
GND
The most references recommend to add a 200ohm resistance or a 10k potentiometer.
I tried, and the display was to faded, so I connected direct to GND.
Check datasheet of your display if you can do it too.
This is the PIN for the cleareance/contrast of the text in the display, it`s also possible
to adjust it via an PWM pin.
RS
12

RW
GND

E
11

D0

Not connected
D1

Not connected
D2

Not connected
D3

Not connected
D4
D5

D5
D4

D6
D3

D7
D2

A
VCC 5V
16 and 17 is the back-light, so you might also want to adjust it`s insensitivity via a potentiometer
K
GND



And here is the source code: https://github.com/heltonritter/play-with-arduino/blob/master/LCD_16022b-rev-2.3-example/lcd_display/lcd_display.ino


Resources and references:


https://www.arduino.cc/en/Tutorial/HelloWorld


Another tutorial with the same display module (in Portuguese) - my copy

http://www.uel.br/pessoal/ernesto/arduino/13_letreiro_digital_com_LCD.pdf - Original


LCM1602B display datasheet - my copy

https://s3-sa-east-1.amazonaws.com/multilogica-files/datasheets/LCM1602B.pdf


Looks like the same display, I`m not sure, but anyway, this datasheet here is more complete - my copy

http://www.seriallink.com.br/lab/Arduino/MGD1602BCompleto.pdf - Original


2018-06-03 00:19:00
Computers and science as a way to live

As you may know, I`m a programmer, I work most in web projects, but not only. This area is a mess! Each day you have to recycle what you know in many ways. The thing is, a knowledge that change so often can`t afford wait to be translated to Portuguese for instance, at that time, the known will be already deprecated. English to me is a functional requirement. I can`t imagine my daily life without it. I have been studding English for serious since 2009. In this section you can see what I`m working on. Have fun as I do.
RSS Feed
"A vida é curta demais para ser pequena / The live is so short to be small / Das leben zu kurz sind für kleine sein". (Benjamin Disraeli)