Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit 1.9in 320x170 TFT: Examples, Pinouts, and Specs

Image of Adafruit 1.9in 320x170 TFT
Cirkit Designer LogoDesign with Adafruit 1.9in 320x170 TFT in Cirkit Designer

Introduction

The Adafruit 1.9in 320x170 TFT (Manufacturer Part ID: 5394) is a compact, vibrant display module designed for embedded systems and DIY electronics projects. With a resolution of 320x170 pixels, this thin-film transistor (TFT) display offers crisp and colorful visuals, making it ideal for applications requiring graphical output in a small form factor. It is particularly well-suited for projects such as user interfaces, data visualization, and portable devices.

Explore Projects Built with Adafruit 1.9in 320x170 TFT

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Arduino Mega 2560 Controlled TFT Touchscreen Interface
Image of Tablero Moto: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
This circuit connects an Arduino Mega 2560 microcontroller to a 3.5-inch 480x320 TFT LCD display. The Arduino provides power, ground, and digital signals to control the display, including data lines for pixel information and control lines for reset, write, and command/data selection. The embedded code initializes the display and configures the Arduino's pins for communication, likely to create a user interface or visual output for a project.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Powered 1.3 inch TFT Display Module for Visual Data Output
Image of ESP32+ST7789: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
This circuit connects an ESP32 microcontroller to a 1.3 inch TFT display module (ST7789). The ESP32 provides power and control signals to the display, enabling it to show graphical data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano Controlled TFT Display with Multiple Pushbuttons
Image of rey: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
This circuit features an Arduino Nano microcontroller connected to a ST7735 128x128 1.44 TFT I2C Color display and multiple pushbuttons. The display is interfaced with the Arduino via digital pins for control signals and SPI pins for data transfer. The pushbuttons are connected to various digital and analog input pins on the Arduino, likely intended for user input to control the display or other functions within the code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and ILI9341 TFT Display Interactive Graphics Demo
Image of CE Test ili9341: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
This circuit interfaces an Arduino UNO with an ILI9341 TFT display using two bi-directional logic level converters to manage voltage differences. The Arduino runs a program to test various graphical functions on the TFT display, demonstrating its capabilities through a series of visual benchmarks.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit 1.9in 320x170 TFT

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of Tablero Moto: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
Arduino Mega 2560 Controlled TFT Touchscreen Interface
This circuit connects an Arduino Mega 2560 microcontroller to a 3.5-inch 480x320 TFT LCD display. The Arduino provides power, ground, and digital signals to control the display, including data lines for pixel information and control lines for reset, write, and command/data selection. The embedded code initializes the display and configures the Arduino's pins for communication, likely to create a user interface or visual output for a project.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ESP32+ST7789: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
ESP32-Powered 1.3 inch TFT Display Module for Visual Data Output
This circuit connects an ESP32 microcontroller to a 1.3 inch TFT display module (ST7789). The ESP32 provides power and control signals to the display, enabling it to show graphical data.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of rey: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
Arduino Nano Controlled TFT Display with Multiple Pushbuttons
This circuit features an Arduino Nano microcontroller connected to a ST7735 128x128 1.44 TFT I2C Color display and multiple pushbuttons. The display is interfaced with the Arduino via digital pins for control signals and SPI pins for data transfer. The pushbuttons are connected to various digital and analog input pins on the Arduino, likely intended for user input to control the display or other functions within the code.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of CE Test ili9341: A project utilizing Adafruit 1.9in 320x170 TFT in a practical application
Arduino UNO and ILI9341 TFT Display Interactive Graphics Demo
This circuit interfaces an Arduino UNO with an ILI9341 TFT display using two bi-directional logic level converters to manage voltage differences. The Arduino runs a program to test various graphical functions on the TFT display, demonstrating its capabilities through a series of visual benchmarks.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications

  • Embedded systems requiring graphical displays
  • Portable devices and handheld gadgets
  • User interfaces for IoT devices
  • Data visualization for sensors and microcontrollers
  • Gaming or multimedia projects

Technical Specifications

The Adafruit 1.9in 320x170 TFT is built for versatility and ease of use. Below are its key technical details:

Key Specifications

Parameter Value
Display Type TFT (Thin-Film Transistor)
Resolution 320x170 pixels
Screen Size 1.9 inches (diagonal)
Interface SPI (Serial Peripheral Interface)
Operating Voltage 3.3V (logic level)
Backlight LED, adjustable brightness
Dimensions 42.5mm x 24.5mm x 4.5mm
Weight ~5g

Pin Configuration

The display module features a straightforward pinout for easy integration with microcontrollers. Below is the pin configuration:

Pin Name Description Notes
VIN Power Input (3.3V or 5V) Powers the display and backlight
GND Ground Common ground for the circuit
SCK Serial Clock (SPI) Connect to microcontroller's SPI clock pin
MOSI Master Out Slave In (SPI) Data input to the display
CS Chip Select Active-low signal to enable the display
DC Data/Command Select Selects between data and command modes
RST Reset Resets the display module
BL Backlight Control PWM-capable pin for brightness adjustment

Usage Instructions

The Adafruit 1.9in 320x170 TFT is designed for seamless integration with microcontrollers such as the Arduino UNO. Below are the steps to use the display in your project:

Connecting the Display

  1. Power Supply: Connect the VIN pin to a 3.3V or 5V power source and the GND pin to ground.
  2. SPI Interface: Connect the SCK and MOSI pins to the corresponding SPI pins on your microcontroller.
  3. Control Pins:
    • Connect the CS pin to a digital pin on your microcontroller.
    • Connect the DC pin to another digital pin for data/command selection.
    • Optionally, connect the RST pin to a digital pin for resetting the display.
  4. Backlight: Connect the BL pin to a PWM-capable pin for brightness control, or tie it to VIN for full brightness.

Arduino Example Code

Below is an example of how to use the Adafruit 1.9in 320x170 TFT with an Arduino UNO. This example uses the Adafruit GFX and Adafruit ST7735 libraries, which can be installed via the Arduino Library Manager.

#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_ST7735.h> // Hardware-specific library for ST7735

// Define pins for the TFT display
#define TFT_CS     10  // Chip Select pin
#define TFT_RST    9   // Reset pin
#define TFT_DC     8   // Data/Command pin

// Initialize the display object
Adafruit_ST7735 tft = Adafruit_ST7735(TFT_CS, TFT_DC, TFT_RST);

void setup() {
  // Initialize serial communication for debugging
  Serial.begin(9600);
  Serial.println("Initializing TFT...");

  // Initialize the display
  tft.initR(INITR_MINI160x80); // Use INITR_MINI160x80 for 320x170 displays
  tft.setRotation(1);         // Set display orientation (1 = landscape)

  // Clear the screen with a black background
  tft.fillScreen(ST77XX_BLACK);

  // Display a test message
  tft.setTextColor(ST77XX_WHITE);
  tft.setTextSize(1);
  tft.setCursor(10, 10);
  tft.println("Hello, TFT!");
}

void loop() {
  // Add your code here to update the display
}

Best Practices

  • Voltage Levels: Ensure the logic level of your microcontroller matches the display's operating voltage (3.3V). Use a level shifter if necessary.
  • Backlight Control: Use a PWM signal to adjust the backlight brightness for power efficiency.
  • Library Compatibility: Always use the latest versions of the Adafruit GFX and ST7735 libraries for optimal performance.

Troubleshooting and FAQs

Common Issues

  1. No Display Output:

    • Verify all connections, especially the SPI pins (SCK, MOSI, CS, DC).
    • Ensure the VIN pin is receiving the correct voltage (3.3V or 5V).
    • Check that the RST pin is properly connected or tied high.
  2. Flickering or Dim Display:

    • Ensure the backlight pin (BL) is connected to a stable voltage or PWM signal.
    • Check for loose connections or insufficient power supply.
  3. Incorrect Colors or Orientation:

    • Verify the setRotation() parameter in your code.
    • Ensure the correct initialization command (INITR_MINI160x80) is used.

FAQs

Q: Can I use this display with a 5V microcontroller?
A: Yes, the display supports 5V logic levels on the VIN pin, but the SPI pins operate at 3.3V. Use a level shifter for reliable communication.

Q: What is the maximum frame rate for this display?
A: The frame rate depends on the SPI clock speed. For optimal performance, use an SPI clock of up to 15 MHz.

Q: Can I use this display with platforms other than Arduino?
A: Yes, the display is compatible with other platforms like Raspberry Pi, ESP32, and STM32. Ensure you configure the SPI interface and use compatible libraries.

By following this documentation, you can effectively integrate the Adafruit 1.9in 320x170 TFT into your projects and troubleshoot common issues with ease.