DuckyDK MTR-1

Created by [@DuckyBoi_XD] • Started on June 07, 2025

A metronome for any type of music practice which you can adjust BPM with knob and preset buttons, and OLED screen for information, a battery for a portable mode and more

June 7

I started noting down and researching what components my project will need before designing anything, so I will understand my budget constraint and models to use.

I decided that my metronome is going to have the following features:

  • Rotary Encoder + switch 1 - to adjust the BPM + Time signature adjuster
  • Potentiometer - to adjust volume
  • Switch 1 - Power Button
  • Switch 2 - Start/Stop
  • Switch 3 - LED control
  • Switch 4 - BPM preset switch
  • OLED screen
  • LEDs
  • Battery charging
  • 3000mAh battery
  • Headphone jack
  • USB C

Screenshot 2025-06-10 at 6 11 41 PM

MCU (Micro-controller Unit)

I looked for an MCU to use, and it was clear to me to use an ESP32 due to its audio capabilities. I originally looked into the TinyPICO due to having a charging capability, a small form factor, and a DAC output. Sadly, my friend said it was way too expensive as an MCU coming in at $35 USD (including shipping). The TinyPICO also requires me to add an external DAC output due to the DAC on the TinyPICO originally being for speakers. I asked for help in the awesome community of the Slack Hackclub, and a guy named @Ryan Green helped me find a better and cheaper option than the TinyPICO, and they suggested the ESP32 C series, and suggested the Seeed Studio XIAO ESP32-S3 Plus. This MCU was not only cheaper, but now looking at it, it seems better than the TinyPico.

https://www.seeedstudio.com/Seeed-Studio-XIAO-ESP32S3-Plus-p-6361.html?srsltid=AfmBOooKQnAGTpSrEHZqcqBNI1Rd_LhihN7JWmB5JLmD3Lf3hoWj0AXO

PS. When signing up for the Seeed Studio, I got a $5 coupon for my first purchase, so it's even less :D

Screenshot 2025-06-10 at 5 21 27 PM Screenshot 2025-06-10 at 5 34 51 PM

Time spent: 12 hours

June 8

Headphone Jack

This was a very simple decision due to @Ryan Green on Slack providing me information on how to search for a headphone jack (Samesky). I found the SJ1-3514N, which was a great headphone jack with an internal switch for power efficiency. The jack has, 3.5mm audio standard, it uses a through-hole mounting style (for stability) and is horizontal, which creates a low profile for it. Due to later information, I'm planning to buy it on Mouser, but I'll get into it later.

https://nz.mouser.com/ProductDetail/Same-Sky/SJ1-3514N?qs=WyjlAZoYn53nY7Y2NKZXvw%3D%3D&utm_source=OEMSecrets&utm_medium=aggregator&utm_campaign=SJ1-3514N&utm_term=SJ1-3514N&utm_content=Same+Sky

DAC (DIgital to Analog Converter) + AMP (Amplifier)

For my metronome, I'm planning to mainly use a headphone, meaning I should use an AMP for the output sound, and I need a DAC to make it sound better and louder. Again, this was a simple decision because of the help of @Ryan Green, who gave me advice on which ones to use.

https://nz.mouser.com/ProductDetail/Texas-Instruments/PCM5102APWR?qs=E2%2FxqS9xjzrfECkwEYoiyg%3D%3D https://nz.mouser.com/ProductDetail/Texas-Instruments/TPA6139A2PWR?qs=TeC8nwD7mVr7iydXyN4ieA%3D%3D\

Screenshot 2025-06-10 at 8 15 01 PM

(PRICES ARE IN NZD)

Time spent: 3 hours

June 9

OLED Screen

I wanted a decently sized screen due to the amount of information I wanted on it (BPM, battery indicator, preset indicator, volume indicator), so I chose a 1.54-inch display and a resolution of 126x64 due to its space and detail. I also made sure that the screen connector was an I2C, so it will be compatible with the MCU I chose. I was originally going to use the Waveshare 1.54 OLED screen, but after talking to my friend and @Ryan Green, they both said that they were too expensive and that there were cheaper ones on Aliexpress. I discovered many OLED screens that looked the same, so I just chose the cheapest one that met the minimum requirements. This took a lot of time due to the amount of back and forth, going between Waveshare and Aliexpress.

Screenshot 2025-06-10 at 7 06 51 PM

Screenshot 2025-06-10 at 7 11 07 PM

Time spent: 6 hours

June 10

GitHub + Shop

I fixed the formatting of the Journal for the project so it is easier to read and understand. I also changed some of the websites to source the parts. This is because Mouser shipping is expensive to my country (New Zealand), but they allow free shipping if you spend over $50, so I tried to source as many items as possible from Mouser. I was able to source the DAC, AMP, Headphone Jack, MCU, Potentiometer, and Rotary Encoder from Mouser and maybe more in the future. I've tried to source the buttons, switches, and OLED screens from Mouser, but there weren't any good options that I liked and they were too expensive.

https://nz.mouser.com/ProductDetail/Alps-Alpine/EC11E18244A5?qs=seHrhfPpLDydI9KuruJHhA%3D%3D https://nz.mouser.com/ProductDetail/Same-Sky/PTN091-H50115K1A?qs=IKkN%2F947nfAyOT2cVMxFFA%3D%3D

Screenshot 2025-06-11 at 8 13 15 PM Screenshot 2025-06-11 at 8 24 27 PM

Time spent: 6 hours

June 11

Buttons + Switches

I searched for the buttons for my project. I wanted buttons that were sleek and smooth while still being high quality. I searched for a long time on Aliexpress for the right switches that met my expectations, and I found a nice option. These buttons were exactly what I was looking for, but it is quite expensive compared to others, and due to the amount I needed (3). I need a separate 'button' as a power button, so I wanted to use a switch for my power button. I looked for a large switch, but most of the switches on Aliexpress were too small. Luckily, I found a large switch that was perfect for my power switch.

Screenshot 2025-06-12 at 8 27 15 PM Screenshot 2025-06-12 at 8 27 22 PM

Battery

This was hard for me because I didn't know where to buy it. I ended up having to source the battery from Aliexpress, which, even tho I didn't trust it, I didn't have any other choice. I ended up choosing a 3000 mAh LiPo 3.7V battery from a random Aliexpress store (which I still don't trust). Hopefully, I can change it later on, but at this moment, I'll keep it for now.

Screenshot 2025-06-12 at 8 27 30 PM

Time spent: 6 hours

June 12

OLED Screen Revamp

I was fed up with the difficulty of searching for the correct connectors of a non-descriptive, sketchy OLED display, so I decided to change the OLED to a more expensive but way easier and descriptive OLED screen, which even includes a connector, so I don't need TO WASTE TIME FIGURING IT OUT AGAIN. I decided to go with the Waveshare 1.54-inch OLED Display Module. This has an extensive description, while having a wiki to answer and help with any problems I encounter.

PS. @Ryan Green hasn't been online since around June 10. I haven't gotten much help.

https://www.waveshare.com/1.54inch-oled-module.htm?sku=25512

Screenshot 2025-06-12 at 7 43 12 PM

BOM Sheet

I started and filled out a BOM (Bill of Materials) for all the parts I was going to buy, mainly to see and understand my budget and to organise my parts. This helped me understand where the money was going and let me look through where I found the products.

Screenshot 2025-06-12 at 8 55 00 PM

Time spent: 6 hours

June 13

Resistors + Capacitors

I started the search for my resistors and capacitors for my PCB and project. Resistors and capacitors are confusing for me because of all the specifications and terminology that are connected to them. After all my research and help from @Ryan Green, I chose resistors and capacitors for my project, which was the most difficult part to source due to the large range of different types of them, and also not really knowing what type to use.

https://nz.mouser.com/ProductDetail/YAGEO/CFR-12JT-52-10K?qs=uYSUDLr2H%2FLcN1orUM1YfA%3D%3D

https://nz.mouser.com/ProductDetail/Vishay-BC-Components/K104K15X7RF5WH5?qs=sGAEpiMZZMvsSlwiRhF8qnONkpDJ9RVUxkyDki3dR58%3D

https://nz.mouser.com/ProductDetail/Nichicon/UFW2A330MPD?qs=kArNe9LFxXnyndxqtATAYA%3D%3D

Screenshot 2025-06-14 at 12 51 58 AM Screenshot 2025-06-14 at 12 52 01 AM

DigiKey

Before, I used Mouser as my source for most of my parts, but after talking with my friend, I chose to use DigiKey as my part sourcing. This is because of the cheaper prices and quicker shipping. I searched for all of the parts on DigiKey that were previously on Mouser, and surprisingly, all of them were on there, so I can easily transition from one to the other.

https://www.digikey.co.nz/en/products/detail/texas-instruments/PCM5102APWR/3727211?s=N4IgTCBcDaIAoGECyBWAjABjAQTgdQCUQBdAXyA https://www.digikey.co.nz/en/products/detail/texas-instruments/tpa6139a2pwr/2552043 https://www.digikey.co.nz/en/products/detail/same-sky-formerly-cui-devices/sj1-3514n/738685 https://www.digikey.co.nz/en/products/detail/seeed-technology-co-ltd/102010671/26553873 https://www.digikey.co.nz/en/products/detail/same-sky-formerly-cui-devices/ptn091-h50115k1a/24767334 https://www.digikey.co.nz/en/products/detail/alps-alpine/ec11e18244a5/21721665

Screenshot 2025-06-14 at 12 41 28 AM

LED

For the LED's I wasn't sure exactly what I wanted, but I chose to use the LEDs used on the HackPad (SK6812 NanoPixel). I knew I wanted an RGB LED, but I wasn't sure if I wanted an RGB W LED or an RGB LED. But when looking at the options, there weren't many, so I just stuck with the RGB LED. Since I wanted to use at least 12+ LED, I decided to get 20 of them (2 in increments of 10).

https://www.digikey.co.nz/en/products/detail/adafruit-industries-llc/4691/13170955

Screenshot 2025-06-14 at 12 50 50 AM

Time spent: 8 hours

June 14

Capacitors

I went through the capacitors I chose and I realised that I didn't have enough types of capacitors for my parts. I looked through and I found a bunch of different types of capacitors that I could use, and with the right application of said capacitors. I also made sure that the capacitors were alright with my parts, but through this, I also rethought my decision on my battery from Aliexpress, and I found another option, but I wasn't sure about the laws in shipping to my country (NZ).

https://www.digikey.co.nz/en/products/detail/kemet/C320C104K5R5TA7305/12701231 https://www.digikey.co.nz/en/products/detail/cornell-dubilier-knowles/336CKE050M/6141081

Screenshot 2025-06-14 at 6 54 36 PM Screenshot 2025-06-14 at 6 54 43 PM

BOM Sheet Revamp

I updated my BOM sheet to have the updated location of DigiKey and the OLED screen that I previously changed. I also fixed the mix-up with the different Aliexpress links from when I accidentally mixed them up. At this point, looking at the price, I wonder if the reviews would accept this, given how expensive it is.

Screenshot 2025-06-14 at 7 17 53 PM

Thoughts

Today I decided I should have a thoughts section where I give my thoughts about what I've done, and just curious things I'm thinking of. Today's one is 'WHY DOES IT TAKE SO LONG TO SOURCE PARTS'. I also thought about how I was going to show how the parts are going to be connected, since some parts would be on the case and not the PCB.

Time spent: 7 hours

June 15

Models - Schematics + Footprints

I looked for the schematics and the footprints for all my parts for my project. Most of the parts I used Digikey's feature, where they provided a link forwarding to a website containing the schematics and footprints, even CAD models in some cases. Most of the footprints and schematics are from SnapMagic, but a few are from Ultra Library and the official seller. There are how however, a few I couldn't get due to being from STUPID ALIEXPRESS WITHOUT DATA SHEET. For this, because I'm not using any major parts from Aliexpress, I'm just using random unofficial schematics and footprints that match up with my parts. The parts I'm getting from Aliexpress and Waveshare are parts that are going to be implemented on the case, so an exact footprint match wouldn't be necessary.

https://www.snapeda.com/home/ https://www.ultralibrarian.com/

Screenshot 2025-06-16 at 5 49 11 PM

Schematics

Files

For the schematics, I imported all the files from the parts and set up the library. This process took a bit due to my forgetting how to do it and using trial and error to figure it out. Once I finished importing all the schematic and footprint files, I started work on the schematics part of Kicad, where I wired almost every component to its designated spot.

OLED Screen

The OLED screen was really simple to wire due to it only including 4 pins, 2 of them just being ground and power pins. The DAC and AMP are where it got tricky. I started by connecting all the power and simple pins, like ground and power pins.

LED

Another easy wiring job was the LEDs. The LEDs were simple due to my understanding of how the LEDs work and how they should be labelled from previous projects. I placed the LED pin on a random GPIO (which I later found out was a bad idea) and moved on to the next component.

DAC + AMP

I focused on one part at a time, this being the DAC. I looked into the data sheet of the DAC and found the description of each pin and connected some of the obvious ones. I did the same to the AMP, but when looking at the pins, I realised that there wasn't a positive input for the audio. This really stumped me, so I wanted to look into the data sheet of the AMP and found that the 14-pin (the one I was using) didn't even include any positive audio inputs. I asked @Ryan Green about it since he helped me pick out the AMP, and he was surprised about the AMP not including the positive inputs. At this point, I decided to find a different AMP, this time being a 16-pin header.

https://www.ti.com/lit/ds/symlink/pcm5102a.pdf?HQS=dis-dk-null-digikeymode-dsf-pf-null-wwe&ts=1750061065007&ref_url=https%253A%252F%252Fwww.ti.com%252Fgeneral%252Fdocs%252Fsuppproductinfo.tsp%253FdistId%253D10%2526gotoUrl%253Dhttps%253A%252F%252Fwww.ti.com%252Flit%252Fgpn%252Fpcm5102a

https://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Ftpa6139a2

Screenshot 2025-06-16 at 8 18 07 PM Screenshot 2025-06-16 at 5 49 53 PM Screenshot 2025-06-16 at 7 58 48 PM

Thought

I have to find a new AMP that has 16 pins or at least has a positive input pin, unlike the one I was using. I figured out how to connect the components to the PCB that are in the case, yay. Still trying to figure out what all the pins mean.

Time spent: 8 hours

June 16

Schematics

DAC

I worked on the DAC pin by researching and making sure it its place on the right place. This process was very surprising due to the amount of power going to the ground and power. There was a lot of confusion about the capacitors needed for the ground pin, but I decided to leave it out for another day to figure out. Despite the quick explanation, this process took a long time due to the research of each pin and figuring out where each pin goes.

Screenshot 2025-06-17 at 5 10 31 PM

LED

I didn't really do much with the LED; the only thing I did was to change where the pin was located since I wasn't bothered to use a SPI pin.

Screenshot 2025-06-17 at 5 14 29 PM

Thought

I still have to find an AMP that works with the DAC.

Time spent: 6

June 17

AMP

I did my research on the new AMP, and I found a great choice after quickly adding the specs I wanted. I chose the MAX9722AEUE+ due to it being a 16 pin (actually with a +input left and right), pin extruding outwards for easy soldering access and compatibility with the potentiometer I chose. With this, I got the files of the schematic and footprint and imported it into the Kicad.

https://www.digikey.co.nz/en/products/detail/analog-devices-inc-maxim-integrated/MAX9722AEUE/1495288

Screenshot 2025-06-18 at 4 19 16 PM

Schematics

Today, I did a little bit of research on the DAC and AMP pins, and I connected only a few of them after getting tired.

Screenshot 2025-06-18 at 4 18 37 PM

Thoughts

Technically, at around 11 pm I sent out a message on Slack asking for help with the wiring (because I knew it was terrible) and I did get a response, but it was at midnight, so I'm going to refer it as tomorrows work.

Time spent: 3 hours

June 20

Schematics

DAC

I found out from a person on Slack that the data sheet I had with the description of the part I was using had a part where it showed the schematics of the wiring of most components. This increased my productivity by 7-fold. The DAC was way easier to wire due to the design on the data sheet. There were a few things I had to change with the potentiometer being included as an analog device, but later on, I configured it with the potentiometer.

Screenshot 2025-06-21 at 12 13 24 AM Screenshot 2025-06-21 at 12 13 42 AM

AMP

With the newfound knowledge of the schematic diagram on the data sheet, I was able to quickly finish the AMP wiring. The AMP diagram also included the schematics with a headphone jack, which helped a lot since I was using a headphone jack. There was also a lot of confusion with earth and ground pins, but after researching, I just used ground pins as ever pin.

Screenshot 2025-06-21 at 12 18 14 AM Screenshot 2025-06-21 at 12 25 20 AM

Rotary Encoder + OLED screen + Headphone Jack

This is just a combination of a bunch of parts because they were really simple to do. The Rotary encoder was simple, I just copied what I did for my Hackpad. The OLED screen was a bit different when I think I needed a resistor and the data pins to connect them to the power pin, but I'm not really sure. The Headphone jack was also self-explanatory, with the AMP having clear directions on how to use it. The only difficulty with the headphone jack was making sure the pins were the correct ones, but this was simple to figure out by double-checking the data sheet of the headphone jack.

Screenshot 2025-06-21 at 12 36 11 AM

Thoughts

This was the first day I did work outside my house/city. At the moment, I am on a short holiday, relaxing with my family, but I was still able to get some awesome work done.

Time spent: 10 hours

June 21

Schematics

Potentiometer

As said with the DAC, I was going to add the potentiometer directly to the DAC. This would make the connection better as well as more responsive and stable. Sadly, if there is a problem with it, there are minimal solutions for this. I connected the potentiometer between both the outputs for the DAC and the Input of the AMP. Note, I changed the potentiometer to be a stereo potentiometer, so when the output of the DAC reaches it, the potentiometer won't change it to be a mono input for the AMP.

Screenshot 2025-06-22 at 3 54 01 PM

Switches

I use 3 buttons and 1 switch for my metronome. For the 3 buttons, I used SW_PUSH since the buttons were momentary. I use a SPST for the switch since the switch is a SPST or toggle switch. This was very simple due to me doing the Hackpad before this, and I understood how to use switches and buttons.

Screenshot 2025-06-22 at 4 04 21 PM

Footprints

For each component, I had to assign them a footprint. This was again very simple due to the schematics including a file of the footprints, which made it very easy. The hardest part was to figure out the footprints of the connectors for the components on the case. This was solved by finding out the variables of the labels for the footprints.

Screenshot 2025-06-22 at 4 04 50 PM

MCU (Micro-Controller Unit)

For the MCU I slowly updated the schematics for it as I wired each component. This ended up building the MCU wiring looking like this. Screenshot 2025-06-22 at 4 05 29 PM

Thoughts

I've now down the schematics parts of the project and I am now moving on to the PCB editor. I sent the schematics to the others, and to be honest wasn't much help by they said it looked good.

Time spent: 9 hours

June 22

BOM

I had to update the BOM because I added a bunch of different capacitors and resistors, as well as change the potentiometer. This is to track the amount everything is costing and because to track what component I'm using for my project. Note, shipping and aliexpress prices might be wrong due to it changing a lot, and shipping is confusing at the moment.

Screenshot 2025-06-23 at 4 15 10 PM

BOM Updates

Capacitors

For the project, I'm using ceramic capacitors with 0.1 uF, 1 uF, 2.2 uF, 10 uF and electrolytic capacitors with 100 uF. I found all these capacitors on Digikey and chose them due to the schematic diagram from each component.

Resistors

I use only one type of resistor, that being a 470-ohm capacitor. This is due to the data sheet recommending it for the component.

Screenshot 2025-06-23 at 6 37 07 PM

AMP

I found out midway from doing my schematics that the recommended AMP from @Ryan Green didn't have a +INPUT pin for both left and right channel. This was solved by finding another AMP, which I updated in the BOM

Screenshot 2025-06-23 at 6 37 31 PM

PCB Editor

After I finished the schematics for the metronome, I moved on to the PCB layout. This is how each component would connect in real life and what the PCB would actually look like. This process made me rethink what the metronome device would actually look like. Before I had an image of what it would look like, but after seeing the size of my components, I realised that it wouldn't actually fit in my tiny form factor that I was thinking of having for my project. This caused me to sit down and rethink how I was going to position my components to make sure it looks nice.

Screenshot 2025-06-23 at 6 41 29 PM

OLED Screen

Through my time rethinking about the looks of the PCB and project I realised that my OLED screen was way too big (well not way too big but just a bit to big). This made me go back into researching OLED screens and thats where I found on on Aliexpress which was 1.3 inches and looked very nice in my opinion.

Screenshot 2025-06-23 at 6 42 22 PM

Thoughts

For today and a bit of yesterday's journal I used a code server for the journeying due to the SOM (summer of making) and me requiring to log hours which is why I'm doing it in a code server so it can track the hours. I'm unsure if it works on the Github site but better safe than sorry (or whatever the saying is ). It is also going to be a struggle with importing screenshots of my project but I'm still figuring it out.

I am also wondering how I am able to install the battery. Installing the battery requires connecting it to the +BAT and -BAT pin on the MCU. The problem is that the MCU will be on the pcb it would be cover the pins since the said pins are on the back side.

Time spent: 12 hours