Scottychord - cmubuild18/Build18 GitHub Wiki

Scottychord

Battery-powered mini piano. Play a song on a virtual piano and see it performed on the Scottychord real-time.

Scottychord

The goal of our project was to build a physical piano-like instrument that could play a song inputted by a user. In order to play the piano, the user presses keys (on laptop) in order to play notes on a virtual piano UI. The Scottychord then plays the song back with the same melody and rhythm that was played. The instrument is built with lyre strings hit by small wooden hammers. These hammers are glued to motors which spin and hit the strings to make music. Each motor is connected to a relay, and each relay is connected to a single 9V battery source. The relay trigger is connected to an Arduino MEGA�s digital output pins. The piano interface is built using pygame and serial. It sends the song to the Arduino MEGA as a string. MEGA receives the string via USB and runs code that parses the string and plays the song.

We ended up changing much of our implementation. Previously, we designed and 3D-printed a mechanism to pluck the lyre strings, taking inspiration from guitar picking and a harpsichord (the precursor to the modern piano). However, we found out that the mechanism was too heavy and required too much precision for the motors. We pivoted to a wooden hammer mechanism to directly hit the strings to produce sound. The relays ended up being used to control which keys are played and when. The strings were strung across the top of the instrument similar to a lyre. We used hot glue to hold the wood together and a small breadboard to share the battery source.

Team Members

Team Member Photo
Andrew Gao Team Member Photo
Hannah Noh Team Member Photo

Photos

https://drive.google.com/drive/folders/1aGssRyFdwAR6Zdu2QjV-_sFyQu19YXKS?usp=sharing

Parts

Part Unit Price Quantity Cost Needs to be Ordered through Build18? (Y/N) Part Link
Lyre strings $8.99 2 $17.98 Y https://www.amazon.com/INKNOTE-Strings-Replacement-String-Hollow/dp/B09Y2CX6H5/ref=sr_1_1_sspa?crid=2TDH7J2MS3J2E&keywords=lyre%2Bstrings&qid=1693689619&sprefix=lyre%2Bstrings%2Caps%2C96&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1
Bridge pins $12.99 1 $12.99 Y https://www.amazon.com/Acoustic-Guitar-Bridge-Remover-Black-Jinlop/dp/B07Q61HNQ9/ref=sr_1_1_sspa?hvadid=616991202911&hvdev=c&hvlocphy=9005925&hvnetw=g&hvqmt=e&hvrand=6429784834537201892&hvtargid=kwd-308112051&hydadcr=24664_13611849&keywords=bridge+pins&qid=1693689546&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&psc=1#customerReviews
Tuning pins $9.99 1 $9.99 Y https://www.amazon.com/INKNOTE-Strings-Replacement-String-Hollow/dp/B09181ZGJ4/ref=sr_1_1_sspa?crid=2TDH7J2MS3J2E&keywords=lyre%2Bstrings&qid=1693689619&sprefix=lyre%2Bstrings%2Caps%2C96&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1
Motors $9.98 3 $29.94 Y https://www.amazon.com/Gikfun-1V-6V-Hobby-Arduino-EK1894/dp/B07BHHP2BT/ref=asc_df_B07BHHP2BT/?tag=hyprod-20&linkCode=df0&hvadid=241986552631&hvpos=&hvnetw=g&hvrand=14027104871738812619&hvpone=&hvptwo=&hvqmt=&hvdev=c&hvdvcmdl=&hvlocint=&hvlocphy=9005925&hvtargid=pla-470785319913&psc=1
Long arduino USB cable $9.80 1 $9.80 Y https://www.amazon.com/PWR-USB-Printer-Cable-OfficeJet-Expression-Silhouette/dp/B01BIE3OCC/ref=sr_1_3?crid=2Q8LDAGVLWWY7&keywords=arduino+usb+cable+long&qid=1693691971&sprefix=arduino+usb+cable+long%2Caps%2C112&sr=8-3
Batteries $12.99 2 $25.98 Y https://www.amazon.com/Amazon-Basics-Performance-All-Purpose-Batteries/dp/B00MH4QM1S/ref=zg_bs_389576011_sccl_1/131-9870907-1612825?th=1
Battery Connector $4.83 4 $19.32 Y https://www.amazon.com/Harapu-Battery-Connector-Cable-Connection/dp/B081KX344S
Nuts and bolts kit $11.47 1 $11.47 Y https://www.amazon.com/Metric-Screws-Suitable-Printer-Assortment/dp/B0B5153SLD/ref=sr_1_1_sspa?crid=3L11OGTPRXXGI&keywords=m3%2Bnuts%2Band%2Bbolts&qid=1693690479&sprefix=m3%2Bnuts%2Band%2Bbolts%2Caps%2C97&sr=8-1-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9hdGY&th=1
Relays $13.99 2 $27.98 Y https://www.amazon.com/Valefod-1-Channel-Optocoupler-Isolation-Trigger/dp/B07WQH63FB/ref=sr_1_8_sspa?crid=2BBW8ATHMZJ6&keywords=arduino%2Brelay&qid=1693690858&sprefix=arduino%2Brela%2Caps%2C109&sr=8-8-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9tdGY&th=1
Birch pywood $45.98 1 $45.98 Y https://www.homedepot.com/p/Columbia-Forest-Products-1-4-in-x-4-ft-x-8-ft-PureBond-Birch-Plywood-165891/100092485
PLA $20.99 1 $20.99 Y https://www.amazon.com/OVERTURE-Filament-Clog-Free-Consumables-Dimensional/dp/B07PGZNM34/ref=mp_s_a_1_2_sspa?crid=1C05XCIPKQPYV&keywords=bamboo%2Bfilament&qid=1702071056&sprefix=bamboo%2Bfilament%2B%2Caps%2C99&sr=8-2-spons&sp_csd=d2lkZ2V0TmFtZT1zcF9waG9uZV9zZWFyY2hfYXRm&psc=1&th=1
Plectra $11.00 1 $11.00 N https://harpsichord.com/products/plectrta-delrin
Techspark 3D printing $0.51 58 $29.58
Total Cost: $273.00
Remaining Budget:(out of $300) $27.00