DHT11 Sensor And NOKIA 5110 LCD Interfacing With Arduino | NOKIA3110

Опубликовано: 20 Ноябрь 2024
на канале: Electronics Developer
343
like

-------------------------
📌Introduction
-------------------------
This post shows how to interface Arduino with NOKIA 5110 LCD and DHT11 (AM2302) digital humidity and temperature sensor. Values of the relative humidity and the temperature are displayed on the Nokia 5110 (Nokia 3310) LCD screen which has a resolution of 84 x 48 pixel.

-------------------------
📌 Circuit Design
-------------------------
The Nokia 5110 which is shown in the circuit diagram has 8 pins (from left to right): RST (reset), CE (chip enable), DC (or D/C: data/command), Din (data in), Clk (clock), VCC (3.3V), BL (back light) and Gnd (ground).

The Nokia 5110 LCD works with 3.3V only (power supply and control lines). The LCD module is supplied with 3.3V which comes from the Arduino board (VCC pin of the LCD is connected to Arduino 3V3 pin), BL pin is also connected to 3.3V.

All Arduino UNO board output pins are 5V, connecting a 5V pin to the Nokia 5110 LCD may damage its controller circuit.To connect the Arduino to the LCD module, I used voltage divider for each line which means there are 5 voltage dividers. Each voltage divider consists of 2.2k and 3.3k resistors, this drops the 5V into 3V which is sufficient.

The DHT11 sensor has 4 pins (from left to right):
1. VCC: connected to Arduino 5V pin
2. Data pin: connected to Arduino analog pin 0 (A0)
Not connected pin
3. GND: connected to Arduino GND pin.

-------------------------
📌 Tags
-------------------------
#OLED #arduino #DHT11

-------------------------
📌 Source Code
-------------------------
To be able to compile project C code with no error, 3 libraries are required
1. Adafruit Nokia 5110 LCD library
2. Adafruit graphics library
3. Adafruit DHT library
Check out comment section for source code

📌 Tune With us so you never miss any update
-------------------------------------------------------------------------------------------------------------------------------------------------------------
🏷️Telegram : https://t.me/electronicsdeveloper
🏷️Facebook :   / electronicsdeveloper  
🏷️Instagram :   / electronics_developer  
🏷️Tweeter : https://twitter.com/Electronics_Dev?s=09
🏷️LinkedIn :   / electronics-with-shreyash  
🏷️Pinterest :   / electronics_developer  

Copyright Disclaimer under Section 107 of the copyright act 1976
--------------------------------------------------------------------------------------------------------------------------------------------------------------
Copyright Disclaimer under Section 107 of the copyright act 1976, allowance is made for fair use for purposes such as criticism, comment, news reporting, scholarship, and research. Fair use is a use permitted by copyright statute that might otherwise be infringing. Non-profit, educational or personal use tips the balance in favour of fair use.

---------------------------------------------------------------------------------------------------------------------------------------------------------------
About Electronics Developer : YouTube certified creative essentials and asset monetization
---------------------------------------------------------------------------------------------------------------------------------------------------------------