element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Arduino Projects
  • Products
  • Arduino
  • Arduino Projects
  • More
  • Cancel
Arduino Projects
Blog Happy Birthday Arduino - 2020
  • Blog
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino Projects to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: jomoenginer
  • Date Created: 22 Mar 2020 1:57 AM Date Created
  • Views 2281 views
  • Likes 12 likes
  • Comments 4 comments
  • arduino day 2020
  • ili9341
  • nanoramach
  • Arduino Day
  • arduino nano project
  • arduino
Related
Recommended

Happy Birthday Arduino - 2020

jomoenginer
jomoenginer
22 Mar 2020
image

NanoRama

Enter Your Project for a chance to win a Nano Grand Prize bundle for the most innovative use of Arduino plus a $400 shopping cart!

Back to The Project14 homepage image

Project14 Home
Monthly Themes
Monthly Theme Poll

 

Here is my contribution to wishing Arduino a Happy Birthday on Arduino Day 2020.

 

This is a basic project using an Arduino Nano Classic, a Slide Potentiometer and a Adafruit ILI9341 TFT screen.

Using the Adafruit TFT and GFX libraries, I have the system start up with some images and text displaying on the screen.

Then using the Touch feature of the TFT screen, I use an on screen button to start the basic Pong-type game.

I included a Pizeo speaker just to have a sound when the ball hits the paddle.

 

The pic and vid I have are not the best but they at least show something.

 

Happy B-Day Arduino!

 

image

 

Video:

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

  • Sign in to reply

Top Comments

  • jomoenginer
    jomoenginer over 5 years ago in reply to dubbie +2
    Yeah, I was in a bit of a rush to get this posted for Arduino Day so it lacked much detail. I'll see about adding more to it if possible. Much of what I implemented followed the Adafruit ILI9341 TFT examples…
  • dubbie
    dubbie over 5 years ago +1
    A good little game. It would be good to see more details as I would be interested in possibly making something similar. I have some small OLED displays which might also work well. How did you get the graphics…
  • dubbie
    dubbie over 5 years ago in reply to jomoenginer +1
    Jon, Thanks for all the useful details. Dubbie
  • dubbie
    dubbie over 5 years ago in reply to jomoenginer

    Jon,

     

    Thanks for all the useful details.

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • jomoenginer
    jomoenginer over 5 years ago in reply to dubbie

    Yeah, I was in a bit of a rush to get this posted for Arduino Day so it lacked much detail.  I'll see about adding more to it if possible.

    Much of what I implemented followed the Adafruit ILI9341 TFT examples using the Adafruit_GFX, Adafruit_ILI9341, SdFat. Adafruit_SPIFlash, Adafruit_ImageReader and TouchScreen libraries.  The ILI9341 TFT Breakout Board has an onboard micro SD card that can be used to read in a BMP file and display it on the screen. 

     

    I image you could use a SD card breakout board that uses a SPI interface in place of what is used on the ILI9341.

     

    This looks like this after initialization:

      ImageReturnCode stat; // Status from image-reading functions
      Serial.begin(9600);
      tft.begin();
    
    
      // The Adafruit_ImageReader constructor call (above, before setup())
      // accepts an uninitialized SdFat or FatFileSystem object. This MUST
      // BE INITIALIZED before using any of the image reader functions!
      Serial.print(F("Initializing filesystem..."));
    #if defined(USE_SD_CARD)
      // SD card is pretty straightforward, a single call...
      if(!SD.begin(SD_CS, SD_SCK_MHZ(25))) { // ESP32 requires 25 MHz limit
        Serial.println(F("SD begin() failed"));
        for(;;); // Fatal error, do not continue
      }
    #else
      // SPI or QSPI flash requires two steps, one to access the bare flash
      // memory itself, then the second to access the filesystem within...
      if(!flash.begin()) {
        Serial.println(F("flash begin() failed"));
        for(;;);
      }
      if(!filesys.begin(&flash)) {
        Serial.println(F("filesys begin() failed"));
        for(;;);
      }
    #endif
      Serial.println(F("OK!"));
    
      // Fill screen blue. Not a required step, this just shows that we're
      // successfully communicating with the screen.
      tft.fillScreen(ILI9341_WHITE);
    
      tft.setRotation(3);
      Serial.print(F("Loading p14-logo.bmp to screen..."));
    
      stat = reader.drawBMP("/images/arduino-day-2020.bmp", tft, 30, 80);
      reader.printStatus(stat);   // How'd we do?
      stat = reader.drawBMP("/images/p14-logo-sm.bmp", tft, 60, 165);
      reader.printStatus(stat);   // How'd we do?
      //delay(200);

     

     

    The Pong-type game was created using the Adafruit_GFX, Adafruit_ILI9341libs to create a play field and then draw a circle for the ball and a rectangle for the paddle.  I clear the previous spot for the ball or the paddle when they move before drawing them in the new position. The colors are based on the Arduino log colors that I had to translate to RGB565 format for the display.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • dubbie
    dubbie over 5 years ago

    A good little game. It would be good to see more details as I would be interested in possibly making something similar. I have some small OLED displays which might also work well. How did you get the graphics into the system?

     

    Dubbie

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • genebren
    genebren over 5 years ago

    Fun little project!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube