Christian Moll
Published © CC BY-SA

Put'n'Play Cube

An RFID-based tangible MP3 player for kids driven by Arduino.

AdvancedFull instructions provided2.5 hours1,152
Put'n'Play Cube

Things used in this project

Hardware components

Arduino Nano
https://www.banggood.com/ATmega328P-Nano-V3-Controller-Board-Compatible-Arduino-p-940937.html?p=MR090611294926201706
×1
RFID Module
https://www.banggood.com/PN532-NFC-RFID-Module-V3-Reader-Writer-Breakout-Board-For-Arduino-Android-p-1017796.html?p=MR090611294926201706
×1
MP3 Module
https://www.banggood.com/DFPlayer-Mini-MP3-Player-Module-For-Arduino-p-969191.html?p=MR090611294926201706
×1
WeMos Battery Shield
https://www.banggood.com/WeMos-D1-Mini-Single-Lithium-Battery-Charging-And-Battery-Boost-Shield-p-1092773.html?p=MR090611294926201706
×1
18650 Lithium Cell
https://www.banggood.com/1PC-LG-Chem-INR-18650-MJ1-10A-3_6V-3500mAh-Battery-p-994340.html?p=MR090611294926201706
×1
8x8mm ON/OFF Self Locking Switch Button
https://www.banggood.com/20pcs-8x8mm-Double-row-6Pin-Self-locking-Switch-Button-p-1106601.html?p=MR090611294926201706
×1
12x12mm tactile Push Button
https://www.banggood.com/20Pcs-Tactile-Push-Button-Switch-Momentary-Tact-Caps-p-1064789.html?p=MR090611294926201706
×2
Mifare RFID stickers/tags
to be done
×1
40x60mm Prototyping Board
https://www.banggood.com/1pc-Double-Side-Prototype-Breadboard-PCB-Printed-Circuit-Board-Tinned-Universal-40mmx60mm-FR4-Fiber-p-1135381.html?p=MR090611294926201706
×1
24x LED Ring WS2812
https://www.banggood.com/CJMCU-24-Bit-WS2812-5050-RGB-LED-Driver-Development-Board-p-974188.html?p=MR090611294926201706
×1
50mm Speaker
http://www.dx.com/p/50mm-3w-speaker-driver-unit-black-silver-118192#.WYq2udOGPOQ
×1
10mmx2mm Round Neodymium Magnets
https://www.banggood.com/50PCS-N35-10mmx2mm-Round-Neodymium-Magnets-Rare-Earth-Magnet-p-931788.html?p=MR090611294926201706
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Custom parts and enclosures

Thingiverse

https://www.thingiverse.com/thing:2500747

Schematics

Schematic

Code

Code snippet #1

C/C++
// -- user settings -------------
#define INIT_VOL      3
#define MIN_VOL       2
#define MAX_VOL       20 // max=30
#define STORE_TRACK   true
#define SAY_FOLDER    true
#define REPEAT_FOLDER false
#define STARTUP_SOUND 200
#define CYCLE_DELAY   20
#define SECS_UNTIL_SLEEP 1200L // sleep after 20min
#define LONG_PRESS_CYCLES 5
#define EFFECT_BOOT   FX_MODE_RAINBOW_CYCLE
#define EFFECT_PLAY   FX_MODE_COMET
#define EFFECT_IDLE   FX_MODE_BREATH
#define COLOR_MAIN    0,0,255
#define COLOR_TRACK   255,0,255
#define BRIGHTNESS    100

Credits

Christian Moll
3 projects • 0 followers
Contact

Comments

Please log in or sign up to comment.