Empous, the Empire Simulation Game SoyBot, a Ground Vehicle for Soybean Phenotyping Westhampton Library Maker Club |
This is a project I worked on for Build18 at CMU with my friend Matt and couple other graduate students. It is a machine that plays songs on a xylophone by dropping marbles on it. It was inspired by the famous machine built by Wintergatan. Related info: DesignI wasn’t involved in the original design of the project, but this is what the (still unassembled) hardware looked like: It is built from a sandwich of acrylic plates and has a large hole in the top where you can pour marbles in. The middle plate (the clear piece on the ground in the picture) has space for the marbles to fall down into slots. Each slot has a hole at the bottom, covered by a servo horn that is attached to a mini servo. When the servos move, the hole will be uncovered and marbles will fall out, landing on the xylophone which is placed below. Each hole corresponds to a single key on the xylophone. The servos are operated by the Adafruit 16-Channel Servo Hat. Conceptually speaking, the software has two components:
Build LogI joined the project after the initial design phase to help with some of the coding aspects, specifically the code to operate the servo hat. The hat has a lot of example code available, but it was a tad difficult getting the correct version. Although the Adafruit website points to this repo, the most up-to-date code can be found here. After perusing the example code, we created some functions to operate the servos using a 16-bit mask with each bit representing a servo state. You can see the code on my github. While I was working on the servo code with Matt, our other teammate was working on MATLAB code to process the audio into individual notes. The result of that can also be found on the github repo. January 19, 2018Today was demo day. By design, this build-a-thon is quite rushed, and we were cutting and assembling pieces right up to the deadline. Unfortunately, this meant we didn’t have a chance to test the entire system before the demo. We ran into the following problems during the demo:
In the end, we could show that the concept worked by playing a few notes, but we couldn’t actually play a full song. Mar 16, 2018We’ve made the following upgrades:
The newly reassembled machine:
After applying these upgrades, we ran a simple test, which you can see here. The upgrades are definitely an improvement, but we are now able to see some other issues in the design which we can tweak. Specifically, the wiring needs some organization, the servos need to be realigned, and the balls are still catching at the bottom of the chute. We also are planning on making it easier to add the balls and catch them while the machine is running. |