Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller and an ILI9341 display. The Arduino UNO serves as the main control unit, while the ILI9341 display is used to render graphics. The two components are interconnected through various pins to facilitate communication and power supply.
Component List
Arduino UNO
- Description: A popular microcontroller board based on the ATmega328P. It is widely used for various electronic projects due to its ease of use and extensive community support.
- Purpose: Acts as the main control unit for the circuit, executing the code to manage the display and handle user interactions.
ILI9341
- Description: A TFT LCD display controller that supports a resolution of 240x320 pixels. It is commonly used in embedded systems for graphical output.
- Purpose: Displays graphics and information as directed by the Arduino UNO.
Wiring Details
Arduino UNO
Vin: Connected to VCC of ILI9341 for power supply.
GND: Connected to GND of ILI9341 for common ground.
D13: Connected to SCK of ILI9341 for clock signal.
D12: Connected to MISO of ILI9341 for Master In Slave Out communication.
D11: Connected to MOSI of ILI9341 for Master Out Slave In communication.
D10: Connected to CS of ILI9341 for chip select.
D9: Connected to D/C of ILI9341 for data/command selection.
Documented Code
/*
Fingerprint - generating a complex graphics pattern with little code.
Try changing line 27 and experimenting with the patterns, e.g.:
tft.drawPixel(x, y, (x + y) * sin(x * y));
https://wokwi.com/arduino/projects/307567963154678338
*/
#include <Adafruit_ILI9341.h>
#define TFT_CS 10
#define TFT_DC 9
Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC);
#define WIDTH 320
#define HEIGHT 240
void setup(void) {
tft.begin();
tft.setRotation(1);
}
void loop() {
for (int y = 0; y < HEIGHT; y++) {
for (int x = 0; x < WIDTH; x++) {
tft.drawPixel(x, y, x * y);
}
}
}
Additional Documentation
- File Name: documentation.txt
- Content: The documentation file is empty and can be used for additional notes or comments regarding the project.
