About this screen

OSOYOO 3.5 inch touch screen was designed to work with Arduino UNO/Mega2560 board.

1.Product introduction

1.1 Features

1.2 Module Specifications:

Name Parameter
Display Color RGB 65K color
Screen Size 3.5(inch)
Type TFT
Driver IC ILI9486
Resolution 480*320 (Pixel)
Module Interface 8-bit parallel interface
Active Area 73.44*48.96(mm)
Module PCB Size 85.49*55.63(mm)
Operating Temperature -20℃~70℃
Storage Temperature -40℃~70℃
Operating Voltage 5V/3.3V
Power Consumption TBD
Dimensions (HxWxD) about  3.7 X 2.1 X 0.3 inch

2.Preparation

2.1 Hardware preparation

(1) A PC

(2) A Arduino UNO R3 board or Arduino Mega2560 board.

         

(3) a mini USB cable for UNO or Mega 2560 board:

(5)A 3.5 inch OSOYOO arduino touch screen :

(5)A mini SD card:

2.2 Software Preparation

Install latest Arduino IDE (If you have Arduino IDE version after 1.1.16

Download Arduino IDE from https://www.arduino.cc/en/Main/Software?setlang=en , then install the software.

3.Instruction

step1 :we need download library from following link firstly: https://raw.githubusercontent.com/osoyoo/driver/master/KeDeiTFT.zip
step2:Open Arduino IDE>Sketch ->Include Library ->Add ,Zip library to load above zip files into Arduino IDE

3.2 Working with UNO:

Step1: Red Jumper Cap on  UNO:

step2:Insert 3.5 inch screen into Arduino UNO board, then connect the UNO board to the PC with USB cable.

3.2.1 Example 1

Step1: Open Arduino IDE—-click “Tool”—“board”–“Arduino/Genuino Uno”

Step2: Click “Tool”—-“Port”—“Com**(Arduino /Genuino Uno”

step 3:Copy a picture to SD card, then insert the SD card to SD Socket.

(notice: the format of picture is .bmp , and it’s resolution is 320*480)

step4:open the file  Kedei TFT —-3.5inch——draw_bmp , then return to  Arduino IDE: Click file -> click Open -> choose code “draw_bmp”, load up the  sketch onto your Arduino.

Note: In the  sketch, find   following lines:

please replace the “pic1” with name of your picture.

step5:Click the “upload” button , and wait for the completion of the programming:

Example 1 shows a program of digital photo frame , realizing the function of decoding and displaying BMP photo from the SD card.

3.2.1 Example 2

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——draw_circle, then return to  Arduino IDE: Click file -> click Open -> choose code “draw_circle”, load up the  sketch onto your Arduino.

step4:Click the “upload” button , and wait for the completion of the programming:

This example realize the function of  draw circle.You can change the code to realize your own design!

3.2.1 Example 3

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——draw_eye, then return to  Arduino IDE: Click file -> click Open -> choose code “draw_eye”, load up the  sketch onto your Arduino.

step4:Click the “upload” button , and wait for the completion of the programming:

This example realize the function of  draw eye.You can change the code to realize your own design!

3.2.1 Example 4

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——draw_line, then return to  Arduino IDE: Click file -> click Open -> choose code “draw_line”, load up the  sketch onto your Arduino.

step4: Click the “upload” button , and wait for the completion of the programming:

3.2.1 Example 5

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——draw_pixel, then return to  Arduino IDE: Click file -> click Open -> choose code “draw_pixel”, load up the  sketch onto your Arduino.

step4:Click the “upload” button , and wait for the completion of the programming:

This example output a touch screen drawing board.

3.2.1 Example 6

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——int_number_add_reduce,  then return to  Arduino IDE: Click file -> click Open -> choose code “int_number_add_reduce”, load up the  sketch onto your Arduino.

step4:Click the “upload” button , and wait for the completion of the programming:

This example realize the function of  adding/reducing the number by clicking the touch pen.

3.2.1 Example 7

Step1 –Step2 as same as Example 1.

Step3 open the file  Kedei TFT —-3.5inch——RGB_TO_565,  then return to  Arduino IDE: Click file -> click Open -> choose code “RGB_TO_565”, load up the  sketch onto your Arduino.

step4:Click the “upload” button , and wait for the completion of the programming:

This example aims to show 16 colors basic on RGB565 data format.

3.3 Working with Mega2560

Step1: Red Jumper Cap on Mega2560:

step2:Insert 3.5 inch screen into Arduino UNO board, then connect the UNO board to the PC with USB cable.

3.3.1 Example 1

Step1: Open Arduino IDE—-click “Tool”—“board:”Arduino/Genuino Mega or Mega 2560”;

Step2: Click “Tool”—-“Port”—“Com**(Arduino/Genuino Mega or Mega 2560)”

step 3:Copy a picture to SD card, then insert the SD card to SD Socket.

(notice: the format of picture is .bmp , and the resolution is 320*480)

step4:open the file  Kedei TFT —-3.5inch——draw_bmp , then return to  Arduino IDE: Click file -> click Open -> choose code “draw_bmp”, load up the  sketch onto your Arduino.

Note: In the  sketch, find   following lines:

please replace the “pic1” with name of your picture.

step5:Click the “upload” button , and wait for the completion of the programming:

3.3.2 Other example

please try other examples by referring to steps in example UNO, the result of the examples are same as that on UNO.