Jump to content

Recommended Posts

Posted (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 by MajorAlvega
Posted

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

  1. The minimum distance your hand has to be away from the sensor to make that particular note
  2. The maximun distance your hand can be away from the sensor to make that particular note
  3. The length of the 'standard' note (more about this later)
  4. 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!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...