Line Drawing

About: I am currently a senior in college

This project will draw a line across the 1.4" TFT screen. Using a potentiometer, the user will be able to draw a curve across the screen.

Step 1: Attaching the TFT LCD Screen

1. Connect one end of a jumper wire to the ground (-) rail of the breadboard and the other end to the GND pin on the Arduino

2. Connect one end of a jumper wire to the 5v (+) rail of the breadboard and the other end to the 5V pin on the Arduino

3. Attach a 1.4" TFT screen to the breadboard

4. Connect the GND pin on the screen to ground (-) on the breadboard

5. Connect the SCK pin on the TFT screen to pin 13 on the Arduino

6. Connect the MOSI pin on the TFT screen to pin 11 on the Arduino

7. Connect the TCS pin on the TFT screen to pin 10 on the Arduino

8. Connect the RST pin on the TFT screen to pin 9 on the Arduino

9. Connect the D/C pin on the TFT screen to pin 8 on the Arduino

Step 2: Attach a Potentiometer

1. Connect a potentiometer to the breadboard

2. Connect the right pin of the potentiometer to the 5v (+) rail on the breadboard

3. Connect the left pin of the potentiometer to the ground (-) rail on the breadboard

4. Connect the middle pin of the potentiometer to Analog pin 0 (A0) on the Arduino

Step 3: Attach a Button

1. Connect a button to the breadboard

2. Connect one end of a 10K Ω resistor to the bottom left pin of the button and the other end to the ground (-) rail on the breadboard

3. Connect on end of a jumper wire to the bottom right pin of the button and the other end to the 5V (+) rail on the breadboard

4. Connect one end of a jumper wire to the top left pin of the button and the other end to pin 2 on the Arduino

Step 4: Code for Line Drawing

Attached is the LineDrawing.ino which contains all of the code for running the Line Drawing project on an Arduino Uno

Share

    Recommendations

    • PCB Contest

      PCB Contest
    • First Time Author

      First Time Author
    • Big and Small Contest

      Big and Small Contest

    Discussions