As a christmas present, I want to build (from scratch) a custom music box.
It should have multiple track and the possibility to choose between two version of a song, classic and music box version.
a nice screen on the front to display the song name or a cute heart while playing.
I want to select the song with a "roulet" button and a cute switch to change the mod.
I also want an usb charging system and autonomus, so a power batterie.
I asked an A.I for which component I should buy, but it lacking precision.
here it's answer
Components Required
Microcontroller:
ESP32 Development Board: Offers ample processing power and built-in Bluetooth and Wi-Fi capabilities.
Audio Playback:
DFPlayer Mini MP3 Player Module: Handles MP3 playback from a microSD card.
MicroSD Card: Stores the audio files.
Speaker: A small, high-quality speaker (e.g., 3W, 4Ω) for sound output.
PAM8403 Amplifier Module: Amplifies the audio signal for the speaker.
Display:
1.3-inch OLED Display (SSD1306, 128x64 pixels): Displays song names and animations.
Controls:
Rotary Encoder with Push Button: Allows song selection and navigation.
Toggle Switch: Switches between normal and music box modes.
What is your experience with coding and building ?
This is a very difficult task , packaging , power supply …..especially when you consider the cost of an MP3 player - $20? which solves all your problems !
Did you consult AI for guidance on how to assemble this and for the code you’ll need? If not, it might be a good starting point to ensure you have clear instructions and working code tailored to your project.
Thank you for your answer.
By cute, I mean not the classic long flat switch button, but more one like we can see on some kids toys to turn them on / off.
For the roulette things, sorry, may be it was unclear, but I mean more the kind of button used to increase / decrease the volume, more some thing like that.
For coding, I already have experience in coding, and I already have a sample code. Assembling should also be ok.
I know it's an hard task, and I'll certainly not have enough time to make it done for christmas, however, I still want to do it that way,
I think effort put in a present give it more value.
Also, the button them self are I think less important than the audio player, arduino board, speaker etc, etc,
I'm more lost on how to choose those component.
I did something very similar to what you want to do. It used a Raspberry Pi, and a Trill circular sensor. Unfortunately it is the last example on this video so keep watching to the end, or scroll through the early stuff. You can get a free pdf for the issue of MagPi it was in, see the notes on the video for what number of the magazine it was in.
It would be easy to change the graphics to make it more cute.
Remember that AI in the form of Chat GPT knows absoloutly nothing and is apt to make up stuff, like the comments you got from it.
For example a EDP32 development is the last thing you want controlling the project, and the OLED display is just monochrome so no colour shading is possible.