How do you make a mechatronic player piano with $350? In the course I described in my last post (about Olin College’s Principles of Engineering), college students were tasked with creating a rigorous mechatronic system, and my team of three chose to build a player piano.
If you view the video below, you’ll see that the design is nothing like a ‘normal’ player piano.
Going back to when it was simply an idea: the team decided to electronically control a system of solenoids to play the notes on a piano. We needed a real piano, and we found an upright piano offered for free on craigslist.com. A U-Haul rental later, the piano was successfully moved to the lab.Converting a normal piano to a modern player piano usually requires invasive woodworking to install a solenoid under each key. We didn’t have this option for many reasons:
1) A solenoid of sufficient strength for each key would greatly surpass our budget
2) We are not experienced piano technicians or woodworkers and an irreversible mistake could ruin our piano (we cared about our piano whether it was free or not)In order to slide the solenoid carriages along the aluminum track, we originally chose a steel gear rack and pinion attached to a stepper motor. The stepper motors we used have a step resolution of 200 steps per revolution, so a PIC microcontroller could send the proper pulses (amplified by transistors) to the stepper motor and the carriage would travel a precise linear distance.This proved problematic for numerous reasons.
1) Stepper motors inherently vibrate and cause noise
2) The steel gear even slightly vibrating against the gear rack created a horrible screeching noise
3) Our choice of stepper failed to perform with enough holding-torque
We had to change the rack and pinion material and nylon was an obvious choice because it’s relatively inexpensive, low friction and quiet. Stronger stepper motors would push us beyond our budget, so we chose DC gearmotors (from Merkle-Korff).
However, this provided its own set of problems, losing the stepping ability of stepper motors by switching to DC motors, how would a solenoid be positioned above a desired key?
Running out of money in our budget and time, various rotary encoders including Hall effect sensors were out of the question. A simple and inexpensive solution: a very large voltage divider. You can see in the photo above the two wires leading off either end of the top aluminum piece.
In case you’re not familiar with voltage dividers, a voltage divider is two or more resistors linked together in series after one another. This means that in-between each resistor the voltage is different, and using over 40 identical resistors in series yields 40 unique voltages.
We simply lined up each unique voltage over each key we cared to play. This would allow the firmware on the PIC to continually detect the voltage of a carriage that’s dragging a metal brush in contact the voltage divider wires. Each unique voltage determines the key location of a carriage.
Other components include a PTFE (better known as Teflon) slider on a reinforced aluminum guide track, manually machined aluminum mounting plates (fabricated in Olin’s metal shop) that hold the motor, solenoid and slider together, and various other machined aluminum mounting brackets.
Obvious limitations of this device are that it is currently only able to play white keys and that none of the carriages can cross paths. Ideally, a solenoid for each key would provide the ultimate playing ability, but that wouldn’t be seemingly as challenging.
Albeit the playing is slow and out of rhythm, comments on the design are appreciated (and the motors can actually run twice as fast as shown).
With major product releases coming from big names like Sony, Microsoft, and Samsung, and big investments by companies like Facebook, 2015 could be the year that virtual reality (VR) and augmented reality (AR) finally pop. Here's take a look back at some of the technologies that got us here (for better and worse).
Good engineering designs are those that work in the real world; bad designs are those that don’t. If we agree to set our egos aside and let the real world be our guide, we can resolve nearly any disagreement.
The Industrial Internet of Things is bringing a previously reluctant process industry into the wireless fold. The ability to connect smart sensors to the Internet has spiked the demand for wireless devices in process manufacturing, according to the new study from ARC Advisory Group.
Everyone has had the experience of trying to scrape the last of the peanut butter or mayonnaise from the bottom of a glass jar without getting your hand sticky. Inventor Ron Jidmar thinks he has a solution to all of that nonsense with a flexible jar design that can be squeezed with one hand to lift contents from the bottom to the top of a jar or container, leaving the other hand free to scoop the contents out cleanly.
Focus on Fundamentals consists of 45-minute on-line classes that cover a host of technologies. You learn without leaving the comfort of your desk. All classes are taught by subject-matter experts and all are archived. So if you can't attend live, attend at your convenience.