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
Design for a Cause - Design Challenge
  • Challenges & Projects
  • Design Challenges
  • Design for a Cause - Design Challenge
  • More
  • Cancel
Design for a Cause - Design Challenge
Blog Final Week...
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Events
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: roborob1266
  • Date Created: 27 Aug 2018 3:25 AM Date Created
  • Views 2081 views
  • Likes 3 likes
  • Comments 4 comments
  • adxl335eb
  • adafruit vs1053 mp3 player
  • 5" touch screen
  • design for a cause - design challenge
  • uno
  • mkr1000
  • adafruit ra8875
  • ultrasonic proximity sensor
Related
Recommended

Final Week...

roborob1266
roborob1266
27 Aug 2018

Hello all

I was able to get the RA8875 and the VS1053 to work with the Arduino UNO.

I also connected the HC-SR04 Ultrasonic Sensor and the ADXL335EB board to the MKR1000 to account for movement as well as distance from the MKR1000 itself.

I will be connecting both of these devices via the SDA/SCL connections for communications.

 

I took a photo just now of what is going on so far!

As you can see there are the touch screen buttons and I am scratching my head on how to get the image file off the SD card from the VS1053 to the TFT touch screen via the RA8875.

I have looked at code to do this but it doesn't work with my RA8875.

Also I need to just have the background be only one image file (a BMP file I already have) on the SD card ready to go.

Then when the "button" is pressed, it will play the audio file associated to that button. I tested the audio and it works and the blue buttons register X/Y touch coordinates.

 

I then need to get code to have the touch area to be over each part of the image that shows below on the display (it will replace the blue buttons at this time).

The border will be around each image (5 of them) that is on the BMP file similar to the buttons below.

Any assistance is appreciated.

image

  • Sign in to reply

Top Comments

  • aspork42
    aspork42 over 7 years ago +3
    Glad you were able to get them all going off the Uno. I've never used either of the other two modules, so not really sure where to start. Perhaps you could start by just using text instead of trying to…
  • roborob1266
    roborob1266 over 7 years ago in reply to shabaz +2
    Hello Shabaz I just need one image to go to the display, that's all. The rest of it is having a place holder over each of the images on the display so when someone touches in that area, it will trigger…
  • shabaz
    shabaz over 7 years ago +1
    Hi Rob, Unless there's an API that will accept the BMP file format (i.e. check the Adafruit library for the RA8875 board - but I'm fairly sure there isn't, I briefly checked the API but I may have missed…
  • roborob1266
    roborob1266 over 7 years ago in reply to shabaz

    Hi Shabaz,

    I was reading over your question about the issue I needed to resolve to get both boards working.

     

    It was a CS issue with both devices.I had to find pins that were not being used with the VS1053 so the RA8875 could use it.

    Since the VS1053 uses 8 pins (including the SPI pins) I had to select a specific pin for the Interrupt on the UNO board.

    Since pins 2 and 3 are the interrupt pins on the UNO, I made sure to use one for the RA8875 and one for the VS1053.

    I also had to make sure that the interrupt pins were different.

    I really had to move pins around to get them to work with the UNO by trying the RA8875 first to make sure that it worked.

    Since the VS1053 will sit on the UNO, I didn't have to pick pins at first.

    I then put the shield on a breadboard and used wires to select pins that worked with the UNO that were not the same wires for the RA8875.

    A lot of trial and error and once I got them both to work at the same time, I wrote down the pin configurations so I wouldn't forget them.

     

    I took your advice and went with a simple line vector with text to show the placeholders.

    I will work on the images to see what I can do to get them to load and not crash the system/reboot it.

    There are no error messages, the software just reboots.

    I know it isn't a hardware issue because the serial monitor doesn't reset like if I uploaded the code or pressed the reset button.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • roborob1266
    roborob1266 over 7 years ago in reply to shabaz

    Hello Shabaz

    I just need one image to go to the display, that's all.

    The rest of it is having a place holder over each of the images on the display so when someone touches in that area, it will trigger the audio function from the SD card on the VS1053.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • shabaz
    shabaz over 7 years ago

    Hi Rob,

     

    Unless there's an API that will accept the BMP file format (i.e. check the Adafruit library for the RA8875 board - but I'm fairly sure there isn't, I briefly checked the API but I may have missed it, so please double-check yourself, I don't want to mislead - https://github.com/adafruit/Adafruit_RA8875/blob/master/Adafruit_RA8875.h  ), you will need to read bytes from within the file and send individual pixel instructions to the RA8875 board. It could take a few seconds to transfer (if you're lucky. It could take longer), depending on the speed of all the elements in the solution and the code. Anyway, maybe that's fine, if this just needs to occur once and the images remain static for a long time.

     

    I don't know what images you wish to show, but if you're in the final week, I also feel the same, that text may be easier.

    By the way, what was the issue that needed to be resolved to get both boards working? It could be helpful to know, to help others who try to use these boards.

     

    Personally, if I had to do it with this hardware combination, and had reduced time, then I'd use simple line art (vectors). For instance, to draw a house, could take just a few dozen co-ordinates stored in Flash on the microcontroller, no need to use the SD card. You've already figured out how to draw blue shapes with curves, so line art is much easier.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • aspork42
    aspork42 over 7 years ago

    Glad you were able to get them all going off the Uno. I've never used either of the other two modules, so not really sure where to start. Perhaps you could start by just using text instead of trying to get bitmaps to load. Try to get the most basic functionality working first before making it pretty image

    • Cancel
    • Vote Up +3 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