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 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
      •  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
Project Videos
  • Challenges & Projects
  • element14 presents
  • Project Videos
  • More
  • Cancel
Project Videos
Documents Raspberry Pi NFC Button-Free Music Player -- Episode 501
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Project Videos to participate - click to join for free!
Related
EMI-Reduction-Techniques
Recommended
Engagement
  • Author Author: tariq.ahmad
  • Date Created: 15 Sep 2020 7:46 PM Date Created
  • Last Updated Last Updated: 4 Jun 2021 7:24 AM
  • Views 3848 views
  • Likes 9 likes
  • Comments 8 comments

Raspberry Pi NFC Button-Free Music Player -- Episode 501

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

 

A quick button-free way to select and play your favorite Music, Playlists, and Internet Radio Stations, just grab the right tag and the player will start. Ideal for children or elderly who might get confused with a complicated interface, or just changing your music quickly and easily whilst your hands are full, like whilst cooking.

 

Supplemental Content:

 

  • Link to the Github:  https://github.com/hifromkatie/NFCAudio

 

Bill of Material:

Product Name Manufacturer Quantity Buy Kit
2.85mm BLACK PLA Filament FILAMENTIVE 1 Buy Now
RASPBERRY-PI Single Board Computer, Raspberry Pi 3 Model B+, BCM2837B0 SoC, IoT, PoE Enabled RASPBERRY-PI 1 Buy Now
RASPBERRY-PI Power Supply, White, Raspberry Pi, Micro USB, 5.1V, 2.5A RASPBERRY-PI 1 Buy Now
TRANSCEND MIRCO SD CARD PRELOADED W/NOOBS, 16GB TRANSCEND 1 Buy Now
NXP Single Board Computer Kit, PN7120 NFC Controller Board, Raspberry Pi & Beagle Interface Boards NXP 1 Buy Now
STMICROELECTRONICS ST25-TAG-BAG-E Development Kit Accessory, NFC Tag Set, SST25TA Series, 8 x Assorted Antenna Sizes STMICROELECTRONICS 1 Buy Now
STMICROELECTRONICS ST25-TAG-BAG-U NFC Tag Set, For Use with ST25 NFC/RFID Evaluation Boards STMICROELECTRONICS 1 Buy Now
STMICROELECTRONICS tda7266m Audio Power Amplifier, 7 W, AB, 1 Channel, 3V to 18V, Multiwatt, 15 Pins STMICROELECTRONICS 2 Buy Now
6398BG Aavid / Boyd, Heat Sink, Square Aavid/Boyd 2 Buy Now
FRWS 5 2210 VISATON 2" Full Range Speaker Driver, 8 Ohm, 4W RMS VISATON 2 Buy Now
1415NC APEM Pushbutton Switch, 1400N Series, SPDT, Momentary, Square, Black APEM 1 Buy Now
ECA2AM100 PANASONIC Electrolytic Capacitor, 10 µF, 100 V, M Series, ± 20%, Radial Leaded, 2000 hours @ 85°C PANASONIC 3 Buy Now
AUDL-73-1M MULTICOMP PRO Audio / Video Cable Assembly, Right Angle 3.5mm Stereo Phone Plug, Free End, 3.28 ft, 1 m, Black MULTICOMP PRO 1 Buy Now
K104K10X7RF53L2 VISHAY Multilayer Ceramic Capacitor, 0.1 µF, 50 V, K Series, ± 10%, Radial Leaded, X7R VISHAY 4 Buy Now
B32529C0224J000 EPCOS DC Film Capacitor, Metallised, 0.22 µF, 63 V, Metallized PET Stacked, ± 5%, B32529 Series EPCOS 2 Buy Now
25ZL470MEFC10X16 Electrolytic Capacitor, 470uF 25V, ZL Series RUBYCON 2 Buy Now
MCNP16V105M5X11 Electrolytic Capacitor, 1 µF, 16 V, MCNP Series, ± 20%, Radial Leaded, 2000 hours @ 85°C MULTICOMP PRO 1 Buy Now
diode 1 Buy Now
MCF 0.25W 100K Through Hole Resistor, 100 kohm, MCF Series, 250 mW, ± 5%, Axial Leaded, 250 V MULTICOMP PRO 12 Buy Now
TL074ACN Operational Amplifier, Quad, 4 Amplifier, 3 MHz, 13 V/µs, 7V to 36V, DIP, 14 Pins TEXAS INSTRUMENTS 1 Buy Now
 

Attachments:
ButtonlessMusicPlayer_Resources.zip
element14 presents
Raspberry Pi NFC Button-Free Music Player

element14 presents  |  About Katie |  Project Videos

  • vishay
  • e14p_KD
  • audio player
  • epcos
  • e14presents_kdumont
  • rfid
  • panasonic
  • e14presents_katiedumont
  • rubycon
  • apem
  • raspberry pi
  • element14 presents
  • nfc
  • katie
  • st micro
  • buttonless
  • nxp
  • music
  • transcend
  • friday_release
  • internet radio
  • Share
  • History
  • More
  • Cancel
Actions
  • Share
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • hifromkatie
    hifromkatie over 4 years ago in reply to beacon_dave +3
    It seemed to be because of the pthreads, I haven't done multithreading in years, so was a bit rusty. But it seemed that the reader would interrupt to say there was a new card, but then when it tried to…
  • kmikemoo
    kmikemoo over 4 years ago +2
    Nice build. I do like the hands-free idea. Maybe you could use a gesture sensor for the volume control. Swipe up for more volume. Swipe down for less.
  • Workshopshed
    Workshopshed over 4 years ago +2
    There are some nice case mounting USB socket you can use when your are designing cases for RPis.
  • beacon_dave
    beacon_dave over 4 years ago in reply to hifromkatie

    Could it be that your system(applicationRun) is sitting waiting for your cvlc command to exit before it returns  ?

     

    What happens if you append an & after your cvlc commands to allow system() to return immediately ?

    e.g. system(cvlc_command... &)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Good build Katie.

     

    You could probably just put a sheet of conductive foil between the NFC reader and the rest of the audio components to reduce the cross over signals. Just tie the sheet to ground and it should reduce the noise.

     

    I also agree with some of the other suggestions of using the NFC tag for volume control.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hifromkatie
    hifromkatie over 4 years ago in reply to beacon_dave

    It seemed to be because of the pthreads, I haven't done multithreading in years, so was a bit rusty. But it seemed that the reader would interrupt to say there was a new card, but then when it tried to go to read the card data it couldn't as the thread was stuck playing vlc and couldn't do anything else. But by killing vlc when the program was interrupted to say there was a new card then it could go back around and read the data on it. (I'm better at hardware than software, so at this point I went with the kill as that seemed to make it work, albeit not as I wanted it)

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hifromkatie
    hifromkatie over 4 years ago in reply to Workshopshed

    Yes, I would have gone with something like that, if I had thought about it. I thought, ah I can line it up, but then realised when assembling it that it couldn't line up because of the other connectors

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • hifromkatie
    hifromkatie over 4 years ago in reply to kmikemoo

    That would be a great idea, If only I hadn't used both in the build inside the box. Maybe I should get another set!

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • Workshopshed
    Workshopshed over 4 years ago

    There are some nice case mounting USB socket you can use when your are designing cases for RPis.

     

    image

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • beacon_dave
    beacon_dave over 4 years ago

    Not quite sure why you need to kill all running vlc process when a new tag arrives ?

     

    Couldn't you only kill the running vlc process before attempting to starting a new vlc process ? 

     

    Volume control tags could then set the level using the likes of an amixer command whilst vlc continues to play music.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • kmikemoo
    kmikemoo over 4 years ago

    Nice build.  I do like the hands-free idea.  Maybe you could use a gesture sensor for the volume control.  Swipe up for more volume.  Swipe down for less.

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