Electronics Developer
Electronics Developer
  • 309
  • 279 737
Interfacing Arduino with ILI9341 color TFT display | Electronics Developer
-------------------------
📌Introduction
-------------------------
This Arduino tutorial shows how to interface the Uno board with ILI9341 TFT display.
The ILI9341 TFT module contains a display controller with the same name: ILI9341. It’s a color display that uses SPI interface protocol and requires 4 or 5 control pins, it’s low cost and easy to use. The resolution of this TFT display is 240 x 320 which means it has 76800 pixels. This module works with 3.3V only and it doesn’t support 5V (not 5V tolerant).
TFT: Thin-Film Transistor.
SPI: Serial Peripheral Interface.
-------------------------
📌 Designing and Working
-------------------------
The ILI9341 TFT display board which is shown in the circuit diagram above has 14 pins, the first 9 pins are for the display and the other 5 pins are for the touch module.
So, the display side pins which numbered from 1 to 9 are (from left to right): VCC (5V), GND (ground), CS (chip select), RST (reset), DC (or D/C: data/command), MOSI (or SDI), SCK (clock), BL (back light LED) and MISO (or SDO).
MOSI: master-out slave-in.
SDI: serial data in.
MISO: master-in slave-out.
SDO: serial data out.
As mentioned above, the ILI9341 TFT display controller works with 3.3V only (power supply and control lines). The display module is supplied with 5V that comes from the Arduino board. This module has a built-in 3.3V regulator which supplies the display controller with 3.3V from the 5V source.
All Arduino UNO board output pins are 5V, connecting a 5V pin to the ILI9341 TFT display may damage its controller.
To connect the Arduino to the display 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.
So, the ILI9341 TFT display is connected to the Arduino board as follows
1. CS pin is connected to Arduino digital pin 8,
2. RST pin is connected to Arduino digital pin 9,
3. D/C pin is connected to Arduino digital pin 10,
4. MOSI pin is connected to Arduino digital pin 11,
5. SCK pin is connected to Arduino digital pin 13.
Other pins are connected as follows:
1. VCC pin is connected to Arduino 5V pin,
2. GND pin is connected to Arduino GND pin,
3. BL (LED) pin is connected to Arduino 5V pin,
4. MISO pin is not connected.
-------------------------
📌 Tags
-------------------------
#arduino #II9341 #TFT
-------------------------
📌 The Code
-------------------------
Source code given in comment section, The following Arduino code requires two libraries from Adafruit Industries:
The first library is a driver for the ILI9341 TFT display which can be installed from Arduino IDE library manager (Sketch/Include Library/Manage Libraries …, in the search box write “ili9341” and choose the one from Adafruit).
The second library is Adafruit graphics library which can be installed also from Arduino IDE library manager.
Go to Arduino IDE /Sketch/Include Library/Add .ZIP Library … and browse for the .zip file.
📌 Tune With us so you never miss any update
-------------------------------------------------------------------------------------------------------------------------------------------------------------
🏷️Telegram : t.me/electronicsdeveloper
🏷️Facebook : electronicsdeveloper/
🏷️Instagram : electronics_developer
🏷️Tweeter : Electronics_Dev?s=09
🏷️LinkedIn : www.linkedin.com/company/electronics-with-shreyash
🏷️Pinterest : in.pinterest.com/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 : UA-cam certified creative essentials and asset monetization
---------------------------------------------------------------------------------------------------------------------------------------------------------------
Переглядів: 815

Відео

PIC18F4550 PWM example using CCS C compiler | Electronics Developer
Переглядів 1 тис.2 роки тому
📌Introduction PIC18F4550 has one CCP module and one ECCP (Enhanced CCP) module, the CCP module which CCP2 can generate a PWM signal on pin RC1, and ECCP which is CCP1 has an enhanced PWM capabilities, but this ECCP can work as a simple CCP. In this topic we are going to see how to use CCP1 (not enhanced CCP) and CCP2 to generate PWM signals on RC2 and RC1 respectively. 📌 Designing and Working T...
Multiple RGB LED Interfacing With Arduino | Multiplexing Technique
Переглядів 1,3 тис.2 роки тому
📌Introduction In this project we are going to interface 5 RGB (Red Green Blue) LEDs to Arduino Uno. These LEDs are connected in parallel for reducing PIN usage of Uno. 📌 Designing and Working The RGB LED will have four pins as shown in figure. PIN1: Color 1 negative terminal or color 1 positive terminal PIN2: Common positive for all three colors or common negative for all three colors PIN3: Col...
Unipolar and Bipolar Stepper motor Interfacing With PIC18F4550 | Electronics Developer
Переглядів 5102 роки тому
📌Introduction Bipolar stepper motor Most of cd-rom or dvd-rom drives has a bipolar stepper motor, this motor has two windings and each winding has 2 inputs which means that this type of motor has 4 wires.This topic shows circuit schematic and C code for controlling the bipolar stepper motor speed and direction using PIC18F4550 microcontroller. The stepper motor can be controlled in full step mo...
DC motor Speed & Direction control Using L293D with PIC18F4550 | Electronics Developer
Переглядів 8272 роки тому
📌Introduction This topic shows how to control DC motor rotation direction and speed using PIC18F4550 microcontroller and L293D motor driver chip.A pot is used to control motor speed and two push buttons are used to control rotation direction. 📌 Designing and Working In the circuit there are 3 push buttons, 2 for selecting the direction and the other one for stopping the motor. The 2 LEDs are us...
Real time clock and calendar using DS3231 and PIC16F877A - CCS C | Electronics Developer
Переглядів 8912 роки тому
📌Introduction The DS3231 is a low cost , extremely accurate real time clock with a built-in crystal oscillator. The characteristics of the DS3231 make it one of the best choices for real time clock chips. This project shows how to build is simple real time clock and calendar (RTCC) using PIC16F877A microcontroller and DS3231. The DS3231 uses I2C protocol to interface with the master device whic...
ST7735 TFT with PIC18F46K22 and Arduino | Electronics Developer
Переглядів 2892 роки тому
📌Introduction 1. PIC MCU with ST7735 TFT This is another PIC project that shows how to interface PIC18F46K22 microcontroller with ST7735 TFT display. In this post I’m going to do a simple rotation test to the ST7735 TFT display. The ST7735 TFT display is a color display that uses SPI protocol, it’s low cost and easy to use. This module works with 3.3V only, connecting it directly to a 5V system...
Multiple Sensor Interfacing With Atmega32 In Digital IO Mode | Electronics Developer
Переглядів 6592 роки тому
📌Introduction Hello Developers, welcome to yet another Arduino project,This time, we will learn how to Interface Multiple Sensors PIC16F877A using Digital Logic. In that we added different sensor like Soil Moisture Sensor, Gas sensor, IR sensor, Vibration Sensor, Flex Sensor, Rain Sensor etc. 📌Modules used in project 1:55 SPST Switch A Single Pole Single Throw (SPST) switch is a switch that onl...
Interfacing DS3231/DS1307 with PIC12F1822 and I2C LCD | Electronics Developer
Переглядів 2712 роки тому
📌Introduction This post shows how to make a real time clock using PIC12F1822 microcontroller and DS3231 RTC chip (or DS1307 RTC) where time and date are displayed on 16×2 LCD. The DS3231 as well as the 16×2 LCD are connected to the same I2C bus with the PIC12F1822 microcontroller. The LCD is provided with PCF8574 I/O expander which makes it an I2C LCD. In this project the DS3231 (DS1307) and th...
Multiple Sensor Interfacing With PIC16F877A In Digital IO Mode | Electronics Developer
Переглядів 5772 роки тому
📌Introduction Hello Developers, welcome to yet another Arduino project,This time, we will learn how to Interface Multiple Sensors PIC16F877A using Digital Logic. In that we added different sensor like Soil Moisture Sensor, Gas sensor, IR sensor, Vibration Sensor, Flex Sensor, Rain Sensor etc. 📌Modules used in project 1:18 SPST Switch A Single Pole Single Throw (SPST) switch is a switch that onl...
Interfacing PIC18F4550 MCU with NOKIA 5110 LCD | Electronics Developer
Переглядів 3502 роки тому
📌Introduction This post shows how interface PIC18F4550 microcontroller with Nokia 5110 (Nokia 3310) graphical LCD screen. In this project I’m going to use CCS PIC C compiler. The name Nokia 5110 (3310) comes from Nokia 5110 (or Nokia 3310) mobile phone. The Nokia 5110 LCD has a controller named PCD8544, it is similar to the Nokia 5110 mobile phone LCD, it uses SPI interface protocol with maximu...
DS1307 Interface with PIC16F887 microcontroller - CCS C compiler | Electronics Developer
Переглядів 6202 роки тому
📌Introduction This article shows how to build a simple real time clock/calendar using PIC16F887 and DS1307 RTC chip. The DS1307 is an 8-pin integrated circuit uses I2C communication protocol to communicate with master device which is in our case the PIC16F887 microcontroller. The PIC16F887 microcontroller has an I2C (IIC) module with two pins are used for data transfer. These are the RC3/SCK/SC...
PIC18F4550 ADC example with CCS PIC C compiler | Electronics Developer
Переглядів 7312 роки тому
📌Introduction The microcontroller PIC18F4550 has 13 ADC (Analog to Digital Converter) channels. The resolution of the PIC18F4550 ADC is 10-bit, which means the analog value after conversion is stored as a 10-bit number that varies from 0 to 1023 (0x3FF). The analog reference voltage is software selectable to either the device’s positive and negative supply voltage (VDD and VSS) or the voltage l...
Draw Bitmap Images on ST7735 TFT with Arduino and SD Card | Electronics Developer
Переглядів 9142 роки тому
📌Introduction Drawing bitmap images (.BMP format) on ST7735 TFT display is quite easy because they are uncompressed images unlike JPEG images (.JPG format). This post shows how to draw bitmap images on the ST7735 TFT using Arduino UNO board where the Arduino loads the BMP images from SD card and print them on the display. The ST7735 TFT is a color display that uses SPI protocol, it has a resolu...
Interfacing LM335 temperature sensor with PIC16F887- CCS C compiler
Переглядів 4292 роки тому
📌Introduction This is an example showing how to connect LM335 temperature sensing device with PIC16F887 microcontroller. The LM335 is an analog device which requires an ADC module to convert the analog data which is the voltage output from the LM335 into digital data. The LM335 has the following features: Directly Calibrated to the Kelvin Temperature Scale 1. 1°C Initial Accuracy Available 2. O...
Arduino Bipolar Stepper Motor Control | Electronics Developer
Переглядів 2142 роки тому
Arduino Bipolar Stepper Motor Control | Electronics Developer
PIC18F4550 Standard & Enhanced PWM | Examples with CCS C Compiler
Переглядів 8702 роки тому
PIC18F4550 Standard & Enhanced PWM | Examples with CCS C Compiler
Interfacing DS1307 RTC With PIC18F46K22 Microcontroller | Electronics Developer
Переглядів 4462 роки тому
Interfacing DS1307 RTC With PIC18F46K22 Microcontroller | Electronics Developer
Interfacing PIC12F1822 microcontroller with I2C LCD | Electronics developer
Переглядів 5632 роки тому
Interfacing PIC12F1822 microcontroller with I2C LCD | Electronics developer
Interfacing LM35 temperature sensor with PIC18F4550 | Electronics Developer
Переглядів 1 тис.2 роки тому
Interfacing LM35 temperature sensor with PIC18F4550 | Electronics Developer
Interfacing PIC18F4550 with DHT11 humidity and temperature sensor | Simulation
Переглядів 9422 роки тому
Interfacing PIC18F4550 with DHT11 humidity and temperature sensor | Simulation
Real time clock & calendar with PIC18F4550 and DS3232
Переглядів 5782 роки тому
Real time clock & calendar with PIC18F4550 and DS3232
PIC18F4550 with DS18B20 sensor and LCD | Simulation Projects
Переглядів 9262 роки тому
PIC18F4550 with DS18B20 sensor and LCD | Simulation Projects
Bipolar stepper motor control with PIC16F877A | Simulation
Переглядів 1,3 тис.2 роки тому
Bipolar stepper motor control with PIC16F877A | Simulation
DC motor control with PIC16F877A and L293D | simulation
Переглядів 2 тис.2 роки тому
DC motor control with PIC16F877A and L293D | simulation
Digital Weather Station | Interfacing PIC18F4550 with DHT22 and SSD1306 display
Переглядів 3492 роки тому
Digital Weather Station | Interfacing PIC18F4550 with DHT22 and SSD1306 display
Bipolar stepper motor control with PIC16F877A microcontroller
Переглядів 5292 роки тому
Bipolar stepper motor control with PIC16F877A microcontroller
Interfacing Arduino with LM335 Temperature Sensor | Simulation
Переглядів 5293 роки тому
Interfacing Arduino with LM335 Temperature Sensor | Simulation
Temperature monitor with PIC16F877A, SSD1306 and DS18B20 sensor
Переглядів 3543 роки тому
Temperature monitor with PIC16F877A, SSD1306 and DS18B20 sensor
Interfacing PIC16F877A with SSD1306 OLED display | Simulation
Переглядів 1,2 тис.3 роки тому
Interfacing PIC16F877A with SSD1306 OLED display | Simulation

КОМЕНТАРІ

  • @abhi_sadale
    @abhi_sadale День тому

    source code

  • @victoralexandre4481
    @victoralexandre4481 3 дні тому

    Nice video! I didn't understand the fact of have the operational amplifier, and these resistors and diodes. Could you explain for what reason do you insert this on the project? and for which device did you use a 300v battery? I'm making a few projects like this, and i'd like to understand it thoroughly... Thnaks my friend!

  • @JaydeepTrivedii
    @JaydeepTrivedii 4 дні тому

    Can you provide the hex file please ?

  • @prvnrj04
    @prvnrj04 5 днів тому

    bro i am dying in need of help. i am also doing the same project as yours and i followed the steps of the code compilation in arduino and done same setup as yours but still not got as output like yours. it doesnt show time correctly and doesnt work properly. i am frustrated please help me bro i will send my design to your mail

  • @benjamingerula48
    @benjamingerula48 9 днів тому

    The leds dont show anything, just gray

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 9 днів тому

      Do you mean, seven segment display? Possible solutions - select SSD which will be simulate - Or Use the same SSD as shown in the video - when you run the simulation, is it showing warning ⚠️?

    • @benjamingerula48
      @benjamingerula48 9 днів тому

      Sorry, yes is the seven segment display, i did the circuit exactly as the video shows. I don't know why the SSD just don't show anything

    • @benjamingerula48
      @benjamingerula48 9 днів тому

      It doesnt show any warning

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 9 днів тому

      Can you share your project simulation file with us on email?

    • @benjamingerula48
      @benjamingerula48 9 днів тому

      What is your email?

  • @Vyshnavbpr007
    @Vyshnavbpr007 21 день тому

    Code giveme

  • @MANNPATEL-s1s
    @MANNPATEL-s1s 21 день тому

    Which software??

  • @carlos.galhano
    @carlos.galhano 24 дні тому

    Interessante mas era bom haver uma explicação detalhada.

  • @jose-x8h1o
    @jose-x8h1o 25 днів тому

    can you please share this whole code its urgent

  • @HarikaDevi-g1x
    @HarikaDevi-g1x 29 днів тому

    How to download proteaus for free😅as it's asking to pay

  • @RamyaK-i9e
    @RamyaK-i9e 29 днів тому

    Display is not working

  • @sejalpusadkar5652
    @sejalpusadkar5652 Місяць тому

    Can u plzz help me with programming of code

  • @sejalpusadkar5652
    @sejalpusadkar5652 Місяць тому

    Can u plzz help me with the programming code

  • @Thekaustubh7279
    @Thekaustubh7279 Місяць тому

    Could u please share the complete code

  • @sujaldhande9285
    @sujaldhande9285 Місяць тому

    Please give source code

  • @สุพงศ์เอง
    @สุพงศ์เอง Місяць тому

    This ic can read temp -55 c

  • @mpumelelozungu5372
    @mpumelelozungu5372 2 місяці тому

    is there a github link of all the files

  • @guadabroero7982
    @guadabroero7982 2 місяці тому

    can you give me the circuit in tinkercad? or someone knows how to do it?

  • @nitika__650
    @nitika__650 2 місяці тому

    Plz share the simulation file and code 🙏

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 2 місяці тому

      Unfortunately for this project, we don't have simulation files

  • @sadikmulla7
    @sadikmulla7 2 місяці тому

    Hardaware tutorial .. how to make ? Plz shere with meee

  • @sadikmulla7
    @sadikmulla7 2 місяці тому

    I need hardware

  • @prajalbhattarai077
    @prajalbhattarai077 2 місяці тому

    can you give me circuit diagram?

  • @hassansami5397
    @hassansami5397 3 місяці тому

    We don't need to use programming?

  • @gol.danime
    @gol.danime 3 місяці тому

    Hey, buddy I have a question can we control the rpm of the motor ???

  • @kenthdonasco2355
    @kenthdonasco2355 3 місяці тому

    what simulation app did you use

  • @nibrasahmad999
    @nibrasahmad999 4 місяці тому

    can i get source code sir?

  • @mohammadfakhraei5908
    @mohammadfakhraei5908 4 місяці тому

    Can you please share the code with me?

  • @Vietfrancetronics
    @Vietfrancetronics 4 місяці тому

    Hello, I would like to know about your automatic distributor program, once the program is entered, does it work once a day or does it continue all the time?

  • @SherifAbdelhay
    @SherifAbdelhay 5 місяців тому

    Hi, thank you so much for your tutorial, but when I run the flame sensor design on protues I get this error: Unable to open hex file: ..\..\..\..\Users\zain\AppData\Local\Temp\build2551671029259847980.tmp/PIRTest.cpp.hex is there and fix for it?

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 5 місяців тому

      It seems that you have selected the wrong hex file

    • @SherifAbdelhay
      @SherifAbdelhay 5 місяців тому

      @@ElectronicsDeveloper No, I didn't. This is not my line is written in the .lib file, I am sure I choosed my .hex file after I build my atmel project. This computer USER here is not mine.

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 5 місяців тому

      This error is due to.hex file only, you need to add correct hex files for sensor and microcontroller. Compile the code and export the hex file then use the same

  • @bernardzulu5295
    @bernardzulu5295 5 місяців тому

    Provide a code for this project

  • @hariskl5230
    @hariskl5230 5 місяців тому

    Where is LCD.C??

  • @hemabonda5994
    @hemabonda5994 5 місяців тому

    Could you send me design and code

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 5 місяців тому

      For source code, find out the pinned comment and for simulation file ping us on email

  • @hoanghung2807
    @hoanghung2807 5 місяців тому

    How do you make with oled ssd1306 i2c 4 pin??

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 5 місяців тому

      Here we used the bus connections, if you need a design to understand how we created a bus then ping us on email

  • @desimunda444
    @desimunda444 5 місяців тому

    Can you please send Arduino Uno library for proteus

  • @jamesverches2474
    @jamesverches2474 6 місяців тому

    Can i get the source code for this project pls?

  • @duonghuynh3141
    @duonghuynh3141 6 місяців тому

    This circuit can create a realistic circuit

  • @damasboniface1953
    @damasboniface1953 6 місяців тому

    How can I take the string that is received on the transmitter module be taken by another Arduino module to be displayed on a LCD Screen

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 5 місяців тому

      You need to select both the modules compatible with transreceiver feature

  • @kusumMane-kh5xv
    @kusumMane-kh5xv 6 місяців тому

    Can I get full code please?

  • @duonghuynh3141
    @duonghuynh3141 6 місяців тому

    Can you explain clearly to me pin 36 of ic7107. I don't know much about it

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 6 місяців тому

      Please go through the description of the video, The analog input required to generate full scale output (2000 counts) is: VlN = 2VREF. Thus, for the 200mV and 2V scale, VREF should equal 100mV and 1V, respectively.

  • @Flip-Flop-Rio
    @Flip-Flop-Rio 7 місяців тому

    How does the test pin work and what is this pin actually for? Does it test the display or the IC?

  • @chetansingh605
    @chetansingh605 7 місяців тому

    need a source code

  • @sfwn206
    @sfwn206 7 місяців тому

    How do you power this thing? Is it with a battery?

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 6 місяців тому

      This is simulator software so you don't need to apply external power to the Arduino excluding peripheral devices.

  • @hiddencat3785
    @hiddencat3785 7 місяців тому

    wow! positive to source??

  • @kienphan135
    @kienphan135 8 місяців тому

    why does my lcd just display 00:00:00

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 8 місяців тому

      If you work properly on source code and schematic diagram then check proteus software warnings

    • @kienphan135
      @kienphan135 8 місяців тому

      @@ElectronicsDeveloper I have already fixed that. I just add an I2C block to proteus and it work

    • @DavidEliasFloresEscalante
      @DavidEliasFloresEscalante 4 місяці тому

      may be, this code DOESN'T works at all

  • @rushstudio4278
    @rushstudio4278 8 місяців тому

    Can you send me the library please

  • @kraken8601
    @kraken8601 8 місяців тому

    can you help me with our project. we are using i2c lcd. we will explain our project details to you

  • @muhilas5660
    @muhilas5660 8 місяців тому

    I have some issues in coding sir

  • @SwaranjaliNirwane
    @SwaranjaliNirwane 8 місяців тому

    Please send a circuit diagram and code

  • @SwaranjaliNirwane
    @SwaranjaliNirwane 8 місяців тому

    Please send circuit diagram and code

  • @JohnLennonVentura-hm6ef
    @JohnLennonVentura-hm6ef 8 місяців тому

    Can you share the source code please

    • @ElectronicsDeveloper
      @ElectronicsDeveloper 8 місяців тому

      The source codes have been updated and pinned as a comment.