Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Raspberry Pi Zero W Wireless Projects

You're reading from   Raspberry Pi Zero W Wireless Projects Go mobile with the world's most popular microprocessor

Arrow left icon
Product type Paperback
Published in Aug 2017
Publisher Packt
ISBN-13 9781788290524
Length 240 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Vasilis Tzivaras Vasilis Tzivaras
Author Profile Icon Vasilis Tzivaras
Vasilis Tzivaras
Arrow right icon
View More author details
Toc

Mood selection

By now, you should have a complete system that plays music and is connected to your Raspberry Pi Zero W board. Now, to make it more smart, let's add a mood selection system that plays the appropriate music playlist according to your mood. To do that, we first need to create a few playlists that will correspond to our mood. For example, let's define the first playlist as Acoustic Playlist and the second one as Rock Playlist. We can do that in many ways, one of which is to create two folders with the appropriate names and place some songs in each of them. Using cvlc that we mentioned earlier, we will be able to connect our music player with any script. So what is left is the trigger system.

The trigger system will be implemented according to the equipment that you have. The most easy mood selection system that we can create will consist of two buttons each...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at £16.99/month. Cancel anytime