2019-05-05 (Su) Little Drummer Bot LittleDB

Syncing a beat to music is vital, something I learned later than most. It was easy to find a drum beat on YouTube, and that worked all right for a couple of minutes until my notes drifted. Now, the soundtrack sounded like two separate tracks playing at the same time. A few minutes later, they drifted back into sync, and it was harmonious. At least, as much as a simple drum loop and prandom notes can be.

Allowing the notes to diverge was not going to work if the "music" would play without constant supervision. A drum machine might work so long as it used MIDI that was not USB, but they would have a learning curve and provide a lot of features not necessary for this project. The more thought that went into this, the more it seemed clear that building a rudimentary drum machine was the right thing to do. Learning about loops by making, rather than buying, would be more valuable. The project would not be feature-rich, compared to commercial versions, but it would also operate precisely the way I thought it should, which could diverge from the professional versions.

Enough background
----------
One goal of this project was to build it quickly since only one was needed and there were much better versions already available. Stocked parts were selected. One new component was a screw-terminal breakout board for the Arduino NANO. Instead of soldering to the controller board itself, this would allow wires to connect with just a screwdriver, and they could be moved later if necessary. The controller could also be swapped out in a few seconds.
BOM:
Collected parts

The pressure-sensing instruments I have seen before place a piezo element below the button or pad being pressed or struck. For this project, a single element went under all the buttons which will make simultaneous presses occur at the same pressure. If it even works.
Capacitive sensing board and piezo element on the back

Two pieces of double-sided tape held the piezo element to the capacitive sensing board, and those were going to adhere to the enclosure. The padding from the tape may hinder the readings, but it could also dampen unwanted readings.
Piezo sandwiched between tape layers

Wires between the capacitive button board and NANO were stiffer than desirable. Solid cores and oversized power conductors were not smart planning.
Controller and buttons

A chassis mount headphone socket was going to be the MIDI output for this project, but it was dissimilar from the ones used before, so the terminals had to be figured out. A continuity meter and a headphone cable on the old project showed which terminals needed to be connected on this. Strangely, the signal goes to the sleeve of the headphone which would cause a short if the socket was mounted in a grounded metal enclosure.
Headphone socket diagram

The switch was connected, and shrink tube was added to the terminals. The controller ran out of digital inputs, so one of the spare analog inputs was used.
Controller, buttons, switch, and headphone socket

A miniature lunchbox-style case came from stocked parts. Sheet metal is a reliable material for mounting electronics because it is thin, easy to drill, and blocks RF, but in this case, it also means that all the connections, even ground, must be isolated or could cause a short to the MIDI signal.
Novelty mini lunch box

The rest of the posts for this project have been arranged by date.

First time here?

Completed projects from year 1
Completed projects from year 2
Completed projects from year 3
Completed projects from year 4
Completed projects from year 5
Completed projects from year 6

Disclaimer for http://24hourengineer.blogspot.com and 24HourEngineer.com

This disclaimer must be intact and whole. This disclaimer must be included if a project is distributed.

All information in this blog, or linked by this blog, is not to be taken as advice or solicitation. Anyone attempting to replicate, in whole or in part, is responsible for the outcome and procedure. Any loss of functionality, money, property or similar, is the responsibility of those involved in the replication.

All digital communication regarding the email address 24hourengineer@gmail.com becomes the intellectual property of Brian McEvoy. Any information contained within these messages may be distributed or retained at the discretion of Brian McEvoy. Any email sent to this address, or any email account owned by  Brian McEvoy, cannot be used to claim property or assets.

Comments to the blog may be utilized or erased at the discretion of the owner. No one posting may claim property or assets based on their post.

This blog, including pictures and text, is copyright to Brian McEvoy.

2019-04-17

Comments