Forearm Audio Player for Teachers
by Markus Opitz in Circuits > Audio
1248 Views, 19 Favorites, 0 Comments
Forearm Audio Player for Teachers
Sound bar to play audio snippets.
I enjoy being a teacher. I like teaching children. But what I don't like is having to repeat certain things over and over again. Did you also have teachers whose sayings and phrases you kept track of? I don't want to become one of those weird teachers myself, so I make sure to vary my language. Nevertheless, some expressions do become repetitive. Can't this be automated? Yes, it can!
What at first glance seems like a nonsense gadget can be put to good use in the classroom and in sports.
A colleague suggested an audio device with a speaker that can be worn around the neck or on the forearm. The housing is 3D printed, and the heart of the audio device is a DFRobot MP3 player with an SD card slot, controlled by a XIAO ESP32-C3. It has the advantage of already having a LiPo charging device on board and can be charged via the USB port. Buttons can be used to select different mp3 tracks on the SD card. An audio amplifier and a potentiometer ensure that the messages are played at the right volume.
There are ways to operate the audio player with buttons and without a microcontroller. However, the ESP32 offers convenient programming and an integrated battery charger. In addition, a connection to an external speaker could be established via WiFi or Bluetooth (not included in this project).
Supplies
- XIAO ESp32-C3
- DFRobot mp3 player
- 6 (or more) buttons
- resistor 220 Ohm
- potentiometer
- 3W speaker
- audio amplifier: transistor BC547, capacitor 22uF, resistor 2kOhm
- LiPo battery (150mAh)
- switch
- 3D printed housing
- Velcro band
Basic Arduino knowledge required!
The Circuit
Heart of the Gadget are the DFRobot mp3-player and a XIAO ESP32-C3 microcontroller. The ESP32 gives commands to the mp3-player which gets the mp3 files from the SD card.
The files on the card are just named as „0001.mp3“, „0002.mp3“ and so on.
A small, homemade amplifier circuit between the output and the speaker amplifies the audio.
Circuit, Soldering
Connect and solder everything as shown in the circuit diagram. Do not make the wires too short to prevent them from breaking. There is enough space for the wires in the housing.
Programming Arduino
The program is quite simple in structure, consisting of one part for the player and one part for the buttons.
The library ‘DFRobotDFPlayerMini.h’ plays the mp3 comfortably, while the library ‘ezButton.h’ provides clear signals when a button is pressed.
Both libraries can be found in the Library Manager of the Arduino IDE.
To upload the sketch please follow my project Getting Started With ESP32-C3 XIAO or one of the many other XIAO ESP guides on the net.
You could play more sound soundfiles by using e.g. this commands an press two buttons at a time:
Sound Files
Using the mp3 files is very easy. Search for suitable mp3 files, jingles, ringtones and similar items on free download sites, or record your own voice using the dictation function on your mobile phone. The files must be named as follows: ‘0001.mp3’, ‘0002.mp3’ and so on.
The command myDFPlayer.play(2) means „play the 2nd file on the SD card“
Copy them all to an SD micro card, insert it into the MP3 player, and that's it!
The 3D Printed Case
3D print this case or just put the circiut into a cardboard box for your desktop. Make sure everything inside is fixed with hot glue to avoid breaking solderings. Plug in the USB, switch on and go!
Downloads
Felt and Velcro Tape
To make the device portable, we need some felt and double-sided Velcro tape.
The tape is threaded through the eyelets. The felt is cut to size and fixed in place with hot glue.
Demo