Buy from US | Buy from UK | Buy from DE | Buy from IT | Buy from FR | Buy from ES | Buy from JP |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Content
1 Product Picture
2 Product Description
3 Product Parameters
4 Interface Definition
5 Connect to Arduino
6 How to use on Arduino
7 Program Download
Name | Parameter |
Display Color | RGB 65K color |
SKU | MAR3953 |
Screen Size | 3.95(inch) |
Type | TFT |
Driver IC | ST7796S |
Resolution | 480*320 (Pixel) |
Module Interface | 8Bit or 16Bit parallel interface |
Active Area | 83.52×55.68(mm) |
Module PCB Size | 61.54×105.69 (mm) |
back light | 6 chip HighLight white LEDs |
Operating Temperature | -20℃~60℃ |
Storage Temperature | -30℃~70℃ |
Operating Voltage | 5V/3.3V |
Power Consumption | TBD |
Product Weight(Package containing) | 68 (g) |
The blue box in the above figure is the 8-bit/16-bit data bus mode switch, which is described as follows:
Number | Module Pin | Pin Description | Number | Module Pin | Pin Description |
---|---|---|---|---|---|
1 | 5V | Positive power supply | 2 | 5V | Positive power supply |
3 | DB8 | 8th bit of data bus(No need to use when using 8-bit mode) | 4 | DB9 | 9th bit of data bus(No need to use when using 8-bit mode) |
5 | DB10 | 10th bit of data bus(No need to use when using 8-bit mode) | 6 | DB11 | 11th bit of data bus(No need to use when using 8-bit mode) |
7 | DB12 | 12th bit of data bus(No need to use when using 8-bit mode) | 8 | DB13 | 13th bit of data bus(No need to use when using 8-bit mode) |
9 | DB14 | 14th bit of data bus(No need to use when using 8-bit mode) | 10 | DB15 | 15th bit of data bus(No need to use when using 8-bit mode) |
11 | DB7 | 7th bit of data bus | 12 | DB6 | 6th bit of data bus |
13 | DB5 | 5th bit of data bus | 14 | DB4 | 4th bit of data bus |
15 | DB3 | third bit of data bus | 16 | DB2 | 2nd bit of data bus |
17 | DB1 | 1st bit of data bus | 18 | DB0 | 0 bit of data bus |
19 | LCD_RS | LCD register / data selection signalLow level: register, high level: command | 20 | LCD_WR | LCD write control signal |
21 | LCD_CS | LCD screen select control signal, low level enable | 22 | LCD_RST | LCD reset control signal, low reset |
23 | NC | Undefined, reserved | 24 | LCD_RD | LCD read control signal |
25 | TP_IRQ | Touch screen interrupt control signal, low level when touch is detected | 26 | NC | Undefined, reserved |
27 | NC | Undefined, reserved | 28 | NC | Undefined, reserved |
29 | SD_CS | SD card select control signal, low level enable | 30 | NC | Undefined, reserved |
31 | MISO | SPI bus input signal | 32 | MOSI | Touch screen chip select control signal, low level enable |
33 | EX_CLK | SPI bus clock signal | 34 | TP_CS | SD card select control signal, low level enable |
35 | GND | Power ground | 36 | GND | Power ground |
********************************************************************************
B.Example_02_clear_screen is a simple solid color brush test;
The real time traffic light controller is a complex piece of equipment which consists of power cabinet, main controller or processor, relays, control panel with switches or keys, communication ports etc.
In this lesson, we will go over how to build a traffic light circuit with an arduino microcontroller.
The use of personal vehicles is very common now a days and a result, the number of vehicles on the roads are exponentially increasing. Roads without any supervision or guidance can lead in to traffic congestions and accidents.
Traffic Lights or Traffic Signals are signalling devices that are used to control the flow of traffic. Generally, they are positioned at junctions, intersections, ‘X’ roads, pedestrian crossings etc. and alternate the priority of who has to wait and who has to go.
The traffic lights will provide instructions to the users (drivers and pedestrians) by displaying lights of standard color. The three colors used in traffic lights are Red, Yellow and Green.
In this project, an Arduino based Traffic Light Controller system is designed. It is a simple implementation of traffic lights system but can be extended to a real time system with programmable timings, pedestrian lighting etc. There is a green LED, which represents the green light. A yellow LED, which represents the yellow light. And a red LED, which represents the red light.
We will show all the hardware connections and the software needed to make this circuit work.
Build the circuit as below:
In this experiment, we use a 7-segment display to count down and set two groups of traffic lights to represent two directions, let’s say, north-south (TF1) and east-west (TF2), as shown in the above picture.
After above operations are completed, connect the Arduino board to your computer using the USB cable. The green power LED (labelled PWR) should go on.Open the Graphical Programming software Mixly and follow the next operations:
Setup baud rate and define datArray[] to store the to-be-display number.
Set a function State 1(), to light up a red LED(Pin 5).
Display the number from 9 to 1 on the 7-segment Display, and light up the Green2 LED (Pin 4), set T_CP( Pin 12) Low and hold low for transmitting, then pull it to save the data.
Turn off the Green LED (Pin 4), and display the number 3 to 1 on the display, then turn on Yellow 2 LED (Pin 3). Next, dim LED Yellow 2 and Red 1( Pin 5).
Next comes the State2() The blocks of State2() is just similar and you can study by yourself.
Execute function State 1() and State2().
A few seconds after the upload finishes, you can see what is similar to the traffic light now. First, the 7-segment display counts down from 9s, and the red light in the TF1 and the green one in the TF2 light up. Then it counts down from 3, and the green LED in the TF2 goes out when the yellow lights up, with the TF1 red light still on. 3s later, the 7-segment counts down from 9s again. Meanwhile, the red light in the TF2 and the green in the TF1 light up. After 9s, it counts down from 3s, when the yellow light in the TF1 lights up and the red in the TF2 keeps on. And this repeats over and over again, as a traffic light would.
Although it is not the ideal implementation for real life scenarios, it gives an idea of the process behind the traffic light control system.
Note: The project implemented here doesn’t include the pedestrian crossing and pedestrian signaling in to consideration.
Once you know how the software operates, you can change the values to make the LEDs be on or off for any period of time. For example, instead of being on for 9 seconds, you can easily change it to 15 seconds or 30 seconds. You could make the yellow LED be on just for 1 second or 2 seconds.