MajorAlvega Posted August 31, 2016 Posted August 31, 2016 (edited) Hi all! About an year ago, while tinkering with lasers and fog, I had this crazy idea of building a laser harp. It finally reached a level where one can actually play it, so I'm showing it here: It's not a great LEGO MOC - just a framework to hold 7 EV3 color sensors and 7 Power Function Lights (to be replaced with 7 red 1 mW lasers in the future). I use 2 Mindsensors multiplexers to connect 6 of the color sensors to 2 of the EV3 inputs. The 7h sensor is connected directly to a third input. The fourth input is reserved for an ultrasonic sensor, I hope to read hands distance to control notes amplitude. The 7 PF Lights are connected to one output port so I can control brightness. A second output port will be used to control a fog machine. I'm running ev3dev (Debian linux for the EV3). It has some support for music but not [yet] for MIDI. I decided to use MIDI because it allows polyphonic sounds and also choosing different instruments so I'm sending the notes to my linux laptop to be played by a software MIDI synthesizer there. Software is very basic, just two python scripts (one at the EV3, the other at my laptop). For those who might be interested, I'm publishing some more details (and the code) at my blog. Edited August 31, 2016 by MajorAlvega Quote
syclone Posted August 31, 2016 Posted August 31, 2016 Wow, this something very unique! Amazing! Quote
Technic Jim Posted August 31, 2016 Posted August 31, 2016 That is a very original MOC and similar to one I made quite recently. Mine was operated by one ultrasonic sensor and depending how far away your hand was from it, it would play a note. It was a reasonably simple program and is up on my Bricksafe (http://bricksafe.com/pages/Technic_Jim/lego-calculator). There are four parameters for the MyBlock and they are as follows The minimum distance your hand has to be away from the sensor to make that particular note The maximun distance your hand can be away from the sensor to make that particular note The length of the 'standard' note (more about this later) The note eg. A4, C6, F#3 The note that is played will be at volume 1, unless you push the touch sensor in which case it will be at volume 10. To play different length notes, you have to use the brick buttons: The top button plays a note of length 1 The right button plays a note of length 1/2 The bottom button olays a note of length 1/4 The left button plays a note of length 1/8 The centre button plays a note of length 1/16 That is all there is to it! Quote
TheMindGarage Posted August 31, 2016 Posted August 31, 2016 Nice! I made a piano some time ago (well before I started posting on here) using an IR sensor. But this is a really cool idea! Quote
JJ2 Posted September 1, 2016 Posted September 1, 2016 Great idea I have seen in idea like this but in piano form using a RCX and a light sensor. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.