# RetroTune — Week 2 revision

RetroTune is a proposed handheld music player and simple game controller. An ESP32-C3 drives the OLED and reads a joystick. A DFPlayer Mini reads MP3s from its own microSD slot and outputs stereo audio. The modules use point-to-point wiring; no custom PCB is needed.

![Original enclosure concept](fullimg.png)

![Revised assembly layout showing electronics and fasteners](images/assembly-layout.svg)

The first image is the original concept. The second is a layout illustration of the revised enclosure and parts, not a photo of a tested build.

## Editable design and assembly

The [original Onshape Part Studio](https://cad.onshape.com/documents/d1a514f44f96d5b3d719ff1a/w/6982f091de8af3f468861b8c/e/4724dd0f95e83694881829cb) is editable. The [revised OpenSCAD source](cad/retrotune_revision.scad) is a separate proposed revision; it includes a bottom, lid, four screw bosses and M2 fasteners, a locating rim, two underside retainers that trap the colored heart and round insert, and approximate envelopes for the OLED, joystick, ESP32-C3, DFPlayer, microSD, battery, charger, boost module, switch and jack. Set view to assembly, exploded or print. The electronics are clearance mockups, so measure purchased modules before printing. The older STEP and STL files remain the original concept and do not include the revision.

The [wiring table](wiring.csv) lists every connection. The DFPlayer contains the microSD reader and audio DAC. Sample manufacturer references: [Espressif C3 guide](https://docs.espressif.com/projects/esp-dev-kits/en/latest/esp32c3/esp32-c3-devkitm-1/user_guide.html), [DFRobot wiring and example code](https://wiki.dfrobot.com/dfr0299), and [DFPlayer datasheet](https://dfimg.dfrobot.com/wiki/20532/DFR0299_mp3-player-module_datasheet_V1.0.pdf). These are reference examples, not a project PCB.

## Bill of materials

| Part or material (purpose) | Qty | Unit price (INR) | Buying link |
| --- | ---: | ---: | --- |
| ESP32-C3 Super Mini, controller | 1 | 254 | [Robocraze](https://robocraze.com/products/esp32-c3-super-mini-development-board-unsoldered) |
| SH1106 OLED, display | 1 | 399 | [Robu](https://robu.in/product/128x64-i2c-communication-interface-oled-display/) |
| Analog thumb joystick, input | 1 | 80 | [Vishaworld](https://vishaworld.com/products/analog-thumb-joystick-module) |
| DFPlayer Mini, MP3 decoder | 1 | 95 | [Robocraze](https://robocraze.com/products/dfplayer-mini-mp3-module) |
| 16 GB microSD, audio storage | 1 | 412 | [Robocraze](https://robocraze.com/products/san-disk-16gb-micro-sd-sdhc-memory-card) |
| 3.5 mm jack breakout, headphones | 1 | 29 | [Robu](https://robu.in/product/cjmcu-trrs-3-5mm-audio-mp3-stereo-headphones-video-microphone-interface-module/) |
| Protected 1000 mAh cell, power | 1 | 205 | [Robocraze](https://robocraze.com/products/3-7v-1000mah-li-ion-battery) |
| TP4056 charger, battery charging | 1 | 26 | [Robocraze](https://robocraze.com/products/tp4056-lithium-battery-charging-board) |
| MT3608 boost, 5 V supply | 1 | 40 | [Robocraze](https://robocraze.com/products/mt3608-dc-dc-boost-module-2v-24v) |
| Slide switch, power control | 1 | 41 | [Robu](https://robu.in/product/__trashed-237/) |
| M2 inserts, 10 pack, case threads | 1 | 45 | [Robu](https://robu.in/product/m2-x-4-mm-brass-insert/) |
| M2 screws, 10 pack, case and retainers | 1 | 74 | [Robu](https://robu.in/product/m2-x-8mm-socket-button-head-cap-allen-ss-304-screw-dia-2mm-length-8mm-10-pcs/) |
| Jumper wires, 40 pack, connections | 1 | 49 | [Robu](https://robu.in/product-category/dupont-cable/) |
| 1 kohm resistor, UART series protection | 1 | 0.35 | [Robu](https://robu.in/product/1k-ohm-1-8w-through-hole-resistor-pack-of-5000/) |
| PLA+, 150 g allocation, enclosure | 1 | 105 | [Robu](https://robu.in/product-category/numakers-pla-filaments/) |

Estimated parts total: **INR 1,854.35**, excluding shipping. See [BOM.csv](BOM.csv) for descriptions and sourcing notes. Prices are snapshots; check stock and the exact variant before ordering. Some links are category or unavailable listings and need a current equivalent.

## Power and build status

Protected cell to TP4056 B+/B-; protected OUT+/OUT- through switch to the 5 V boost; boost to ESP32-C3 5 V input and DFPlayer VCC. C3 3.3 V powers OLED and joystick. DFPlayer DAC_L/R/GND go to the jack contacts; do not connect speaker outputs to headphones. Keep the device off while charging until the power path is validated. Do not solder to a cell. This is a design revision only: no fit, electrical, firmware, audio or battery test has been completed. Verify board pinouts, dimensions, charger current and jack contacts with a supervisor before assembly.
