Hello, Habrasoobschestvo. After reading a few articles on the Arduino hub, I fired up to get this toy. And recently received a parcel with a fee. Then he indulged with the LEDs and wanted something more serious. I decided to make a simple thermometer using a thermistor, a 10 kΩ resistor and an LCD display. Who cares what happened - I ask under the cat.
Start
')
A thermistor is a variable resistor that changes its resistance depending on the ambient temperature.
We will need the following details:
Arduino Uno - 1 pc
Thermistor - 1 pc
Resistor with a resistance of 10 kΩ - 1 pc
LCD display HJ1602A - 1 pc
Connecting jumpers - a few pieces
I had all this, so I immediately started designing on the breadboard.
I also soldered the legs to the screen on the day of purchase.
Then we attach the screen to the outputs of the Arduino. My screen has this pinout.
1 (GND) GND - Earth
2 (VDD) 5v - Power (+)
3 (VO / Contrast) - Contrast control (here I connected a variable resistor)
4 (RS) - 12 - Data Channel
5 (RW) - 11 - Data Channel
6 (E) - 10 - Data Channel
11 (DB4) - 5 - Data Channel
12 (DB5) - 4 - Data Channel
13 (DB6) - 3 - Data Channel
14 (DB7) - 2 - Data Channel
15 (BL1 / Backlight1) - 13 - Backlight Power (+)
16 (BL2 / Backlight2) - GND - Earth (-)
It turned out this picture.
Next we connect one leg of the thermistor to the analog input A4 and a 10 kΩ resistor to ground, and the second leg of the thermistor to 5V.
In general, that's all. The hardware is ready. Here is a diagram.
Programming
With programming, everything is clear. Sketch source code:
The result of the program.
