MCP9808 5110 LCD
Hello mates!
In this short instructable i will show you how to display temperature readings from the MCP9808 I2C sensor with an Arduino and a Nokia5110 LCD display.
The Sensor
Shortly: The MCP9808 is (in theory of course) is a high precision temperature sensor which is using the I2C bus of Arduino. So wee need only 4 wires to connect it. And it was darn cheap :)
Here are some links:
https://learn.adafruit.com/adafruit-mcp9808-precis...
https://www.microchip.com/wwwproducts/en/en556182
I was searching for new sensors for my arduino projects to build and since it was very cheap on Ali (1 dollar) i ordered two of theese sensors. I have a number of different displays laying around and of course i have chosen the Nokia 5110 LCD again (for simplicity ).
It's time to build our new thermometer :)
Materials Needed
The parts needed for this projects are:
- Arduino Uno, Nano etc.....
- A few jumper wires
- MCP9808 temperature sensor
- Nokia5110 LCD
- Libraries and sketch
Software
I created a very simple sketch to display the readings from the sensor. It is very straight forward and easy to understand.
Download and install the correct libraries included in the sketch.
First we include the correct libraries,set the measuring resolution of the sensor, create the objects for the sensor and display. Setup the serial, set temperature sensor address and finally setup the display to print the values.
We have to be careful to clear display in the void setup and void loop or othervise the display will blink in each second.
The results are displayed in Celsius and Fahrenheit.
Easy or not??
Connections
The connections are the folowing:
Nokia 5110
RST - D12
CE - D11
DC - D10
DIN - D9
CLK - D8
VCC - 3.3 Volts
GND - Ground
The MCP9808 sensor
VCC - 3.3 or 5 Volts
GND - Ground
SDA - Analog 4
SCL - Analog 5
The Results
If you have done everything correctly you can see that the arduino is displaying temperature on the lcd.
I don't know how accurate is the sensor , the only comparsion i had is between the ds18b20 sensor.
At this time i have to give credit to the sensor :)
Done!
You are done.
Use it as you like and have a nice day!