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:
|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.
|A||VCC 5V||16 and 17 is the back-light, so you might also want to adjust it`s insensitivity via a potentiometer|
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:
Another tutorial with the same display module (in Portuguese) - my copy
LCM1602B display datasheet - my copy
Looks like the same display, I`m not sure, but anyway, this datasheet here is more complete - my copy
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.