element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • 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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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
  • Products
  • More
Arduino
Arduino Forum RA8875 + 7'' TFT + ARDUINO UNO = WORKING having issues with images loading slow
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Arduino to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 18 replies
  • Subscribers 402 subscribers
  • Views 1278 views
  • Users 0 members are here
Related

RA8875 + 7'' TFT + ARDUINO UNO = WORKING having issues with images loading slow

Former Member
Former Member over 10 years ago

hello I managed to run audio and imaging into my Arduino Uno project.

the project consist off:

 

- RA8875

- Arduino Uno

- MP3 with SD Card

- 7'' TFT Screen

 

Pixels are 800 X 480

the only issue that i am encountering is that the images are taking 1 minute and 30 seconds to fully load up.

images are in bmp format. i was wondering if there is any solution to this problem. 

any feedbacks will be grateful. if images can be done in any other format that can potentially be faster i would gladly take it into consideration as well considering its an arduino.

  • Sign in to reply
  • Cancel
  • clem57
    0 clem57 over 10 years ago

    Are the images slow when running the MP3? Or without? also what is the clock speed for the SPI interface? It may be the Arduino is 8 Mhz trying to drive the SPI fast and MP3... A video could help here...

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    ok i will do so within a few hours i am not currently at my working station.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    no the image was not slow when running the mp3. I did not set any clock speed, its in its standard clock speed. thank you.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    Can you drop the sketch here? It may need some optimization.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    i mean it always been slow. I haven't been able to make it run any faster. i will give you the sketch to have a look at. is it possible to email it to you ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago

    I took a look at the video a few times. A few things puzzle me:

    1. What is the board below the Arduino next to the speaker?

    2. You say you are playing the MP3, but all I hear is static? That suggests the processor is busy with the SPI.

    3. The data to the screen is painting slowly like the processor is feeding the data slowwlly. Did you say it is fast without the MP3?

    4.Even though the Arduino is real time, you can overwhelm it when trying to do multiple things at once. The speed is 8 Mhz meaning instructions run at 125 Nanoseconds. 800x480x3 bytes per pixel=1.152 million bytes/ 100 seconds= 115.2K/second which sounds like the speed of serial interface. Are you running SPI for the video and at what speed?

    5. I did not even factor the MP3 transfer. Is that running from the SDcard to Arduino and back out to the speaker.

    6. Where is the data coming from to paint the screen?

     

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    adafruit mp3 break out board (https://www.adafruit.com/products/1381)

    RA8875 (https://www.adafruit.com/product/1590)

    7'' TFT (https://www.adafruit.com/products/2354)

    Arduino UNO

     

    -all the components are working with SPI interface (mosi,miso,sck)

    -images were converted to BMP files with photoshop

    -sound was also converted from m4a file to MP3 file

     

    i conducted this experiment also with an SD Card a lone but it was still operating very slow (without the mp3 with sd card)

    i email you the file. hopefully you can give me extremely good feed back to why this is the issue to correct. ive put quite of time trying to figure out what was the problem

    i also hope that with your expertise you can help me. if it can be done it would be a really good achievement. i will also appreciate it a lot!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    What class is SD card?

     

    Edited: After looking through the code I can see a lot of things to try to improve the code. But realize it will take me a while to test them. Luckily I have an Arduino to use, but not your lcd. I plan on looking into the low level at times abd how much resources are left. Can you give me a few days?

    What level of the Arduino IDE are you using and level of Windows?

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to clem57

    yes for sure, i have windows 8, and the ide 1.6.1

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 10 years ago in reply to Former Member

    I need a quick test:

    Find this line:

    #define BUFFPIXEL 20

    and change to

    #define BUFFPIXEL 120

     

    Please try it and let me know if you see any speed up?

    Thanks,
    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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