loading
Picture of Frameless Laser Harp
laser harp instructable2.jpg
laser 5.tif
vlcsnap-2013-11-10-14h56m02s23.png
vlcsnap-2013-11-10-15h03m15s148.png
We are a generation that love sound and light – can’t do without them really. Our most preferred time of day is night, or what we would call evening. We are particularly well acquainted with technology; doesn’t hurt these days. Our prerequisite for everything is that it be ‘cool’. Put it all together and in a stroke of brilliance, and a little help from our friend the internet, we have the ideal solution – a laser harp.

A laser harp, what on earth is that? Sounds kind of fancy doesn’t it? Well, it is basically what it says it is. The laser harp is an electronic instrument where a motor, a light sensor, a microprocessor Arduino, and, I’m sure you’ve guessed, a laser collaborate to produce beams, each representing a note (we will elaborate for those who care to read on). This harp though doesn’t have a frame: its strings stretch out infinitely into space – we know no boundaries.

Our inspiration was a video we had watched online and found rather fascinating. Apart from the fact that the prospect of creating it without too much expenditure, mental or monetary, was exciting, it seemed a project providing scope for learning in different areas, especially since we wanted to present it as a complete product. Part research, part reverse engineering led us to figure out its functioning. Admittedly, we have not contributed any addition to the original creation, but to achieve it was in itself gratifying. And there’s always room for originality and improvement in the future. 

If you like our instructable please vote for it at the top  right corner of the page!

For making this laser harp you will require basic soldering skills, and some experience working with the arduino.

Word of caution: Lasers are very harmful for the eyes, make sure you wear appropriate eye protection.

Our Video will be ready in another 12 hours! Do come back and check it out!


Here's the link to the video that inspired us :
 
Remove these adsRemove these ads by Signing Up

Step 1: Overview of the harp

Picture of Overview of the harp
vlcsnap-2013-11-10-14h57m13s35.png
The basic outline of the harp:
A laser beam is shone. A stepper motor with a mirror divides it into nine beams. When one or more of the beams are cut, the light sensor (Light Detecting Resistor, LDR) detects it. According to the corresponding motor positions, it sends signals to the Arduino, which in turn produces the respective notes through a computer or keyboard.

How the beam is created:
A mirror is attached to the motor. The laser beam is directed to the mirror. The motor rotates in steps, hence stepper motor. With every step the motor takes, the position of the mirror changes, deflecting the beam in a different direction every time. The steps take place fast enough for the beams to appear as if they are simultaneously present.

How the harp knows which beam has been cut:
Every beam has a corresponding motor position. When a beam is cut, it reflects onto the sensor, which detects an increase in light intensity. The light sensor then looks for the position of the motor at the instant the beam was cut, and thus identifies the beam in question.

Step 2: Parts..

Picture of Parts..
5275c1fcdbf3ec21e60000ee.jpg
 
Here you will find the complete parts list you need and some info to create the project yourself:

  Main parts
        Stepper motor:
            A stepper motor is an electromagnetic device which converts electrical pulses into extremely 
            small mechanical movements (steps). Its shaft rotates by taking these steps when the 
            electrical command pulses are applied in the required order, and its speed and direction 
            depend on their frequency and sequence.
            A stepper motor has the following attributes:
                 •Number of steps per rotation
                 •Torque (the weight it can bear)
                 •Step angle accuracy
            By manipulating the control pulses, you can make the stepper motor carry out different 
            function such as taking half steps (e.g. 400/rotation instead of 200).
            For our project we will be operating in full step mode.

        Arduino:
            Arduino is basically a small computer which reads an input, interprets it, and sends an output, where the                            input,output, and interpretation can be practically anything (in the electronic field!).
            
It is a magical board which makes your electronic dreams come alive.
        
        Bread board:
Because the solderless breadboard for electronics does not require soldering, it is reusable. This makes it easy to use for creating temporary prototypes and experimenting with circuit design.
 
        Laser:
        The more powerful your laser, the more effective your harp will be, ours was rated at:  <50 mW
        And as for color, we've chosen green, since it was completely safe for the skin at that power rating.
 
 
        
Rest of the parts and tools that you will need:
    Resistor 220 ohms 1/4W
    ULN2003  
    2N2222 TRANSISTOR
    LDR Light Sensor
    MIDI jack
    MIDI to usb adapter.               (This parts is optional, it has been explained in the MIDI section)
    5k TRIMPOT
    Small Mirror
    Green Laser Safety Goggles
    White Gloves
    Power Supply, 12V DC  2A   (This parts depends completely on your stepper motor, go by its rated power)
    Soldering iron
    Materials for the enclosure


Total estimated cost:  90 - 100 $
 

Step 3: Wiring guide for steppers

Picture of wiring guide for steppers
It is essential to send the command pulses in the right order. A step motor will 
typically have six wires. Here is a quick guide to identify which is which.
With the help of a multimeter, we first isolate two groups of three wires, forming 
two coils, by checking the continuity function, ensuring that the circuit 
is complete. 

Next we identify the middle wire of each coil. Using the resistivity function, check
 the resistance between all combinations of pairs of wires. The resistance between
 two ends will be twice that between the middle wire and either end.

If your stepper motor does not have 6 wires, here is a wonderful resource to help you out:
 

Step 4: Wiring it all together:

In the first image you will see the fritzing diagram for the harp. And in the following images you will see the step by step process for building the circuit on your breadboard.


We begin by placing the ULN2003, keeping in mind the direction of the little notch on the chip.
We then wire the stepper motor's signal pins into the chips OUT pins and the common wire into the chip COM pin.
In this step we connect to the arduino via the chips IN pins and we connect our power supply to the chip.
For the next steps we add the transistor, the laser, the LDR and the MIDI jack.
Refer to the fritzing diagram (first image)  if anything is unclear.

Your circuit is now ready!





 

Step 5: Arduino code:

Picture of Arduino code:
arduino.png
 
Copy and paste the Arduino code below into a new sketch,If you don't know how to create/upload a sketch, check out the official Arduino - Getting Started page. If you want to learn more about a specific command, just Google it.

We were having trouble embedding the Arduino code, so please click here for the code.
Or download the arduino files directly from this step.
We have put comments all along the way to make it easier for you to understand the code.
This is not the most efficient code, but it works. 




 

Step 6: MIDI interface

Picture of MIDI interface
Untitled.jpg
Untitled.png
Ok! So we are finally ready to make some music!

There are two options that you can take:
Option 1:
  Plug your harp directly into a MIDI keyboard and you are good to go.
  But if you want more control then go for Option 2.

Option 2: 
For this option you need a MIDI to USB converter, like in the first picture.
This works with any software that deals with MIDI, Here we show you how to go about it using FL Studio:

3rd Picture: First open FL Studio up, then click the OPTIONS button on the upper left corner and navigate to the MIDI settings. then select your MIDI device.

4th picture: The next step reveals the magic of MIDI, Right click on one of the tabs, in the Insert tab you will see a whole bunch of different sounds available to you, ranging from the classic sounds to the most modern sounding synths. Feel free to experiment with these sounds until you find your favourite one.  

Step 7: Layout and enclosure

After some sketching we were quite satisfied with this diamond form for our harp.
For this step we encourage you all to come up with your own personalised enclosures.
We will simply walk you through our design process:
     We began with some simple brainstorming, and then we sketched out a few forms.
     Once we were satisfied with a form, we modeled it on Cinema4d to scale, 
     By modeling everything to scale we could do accurate dimensioning so that all our parts fit snugly into the enclosure.
     Since time was not on our side we could not make the enclosure out of wood, and so we decided to make a paper model        of it. 
The layout for the components we chose is depicted in the second picture, the motor and the laser are seperated from the arduino and the bread board by a small wooden platform.
 

Step 8: Conclusion

Picture of Conclusion
laser 8.tif
vlcsnap-2013-11-10-15h00m35s123.png
What we learned:

 Persistence of vision – this is what enables us to see the beams all at once,
 since the refreshment rate of the human eye is smaller than the rotation rate of
 the motor. 

How a stepper motor and Arduino work – we have elaborated on these in the
dedicated sections.

Physical programming – people are often under the impression that
programming is contained within the computer, but here we looked at a 
practical aspect of it where it controls physical actions.

The design process – steps from ideation to creation for a 
complete product.
 
Concluding thoughts:
 
Of course we made mistakes. Research is of paramount importance, especially when purchasing your parts – Google is your friend. But other than learning from our mistakes, we also learned to work as a team, by using each one’s plus points, and guiding those in unfamiliar territory when in one’s own comfort zone. We definitely could have 
done a better job with time management and organisation (which seem to be persisting problems with us), and in keeping up levels of energy and enthusiasm (which went through more downs than ups). Owing to our age and temperament, we underestimated the project and overestimated our capacity. We could not therefore accomplish the project as we had intended to. We would have very much liked to customise the harp by turning 
it into a complete package, giving it a name and logo. We also wanted to add elements to further enhance it -- controlling the volume and pitch according to the height at which you cut the beam, having the facility to sustain a note without holding your hand on it (pedal),  using a RGB laser to have changing colours
 according to the mood of the music, having the beams converge and diverge, and other visual effects. They remain prospects for our next edition.
 
1-40 of 160Next »
Stormrage1 year ago
One of my dreams was to have a laser harp. The only thing I need now is to go buy some 2n222 ULN2003 and, uhm my question was: What kind of/ speed/ steps, steper motor can I use? Hacking some old printer or something, any idea will be appreciated :)
Thx, and btw, one of the greatest and really simplest instructable for a complicated stuff that everyone could be amazed with :) Keep it up !
Pushan Panda (author)  Stormrage1 year ago
:)
The motor ive used is actually salvaged from some old electronics, any kind of stepper will do the job, you might need to modify the code a bit. I would be happy to help, just send me a message.

To be honest, I would LOVE to see you making a Youtube video creating one Laser Harp...it's just 'cause my mind really will have no chance if it is reduced to writing explanation. We are talking about a Laser Harp, it is a complex thing to do, and not everyone has the same talent to make a Laser Harp the easy way like you do. :)

I was actually going to rewrite the code to work directly via usb, not through MIDI... Any ideas about that?
Well, the problem isn't in the code really, now the problem is that I can't find ULN2003 here... Do you know anything compatible to that maybe? :)

also it would be cool if there is a way to get 3 lasers and make em switch colors hahaha just sayin :)
and, perhaps a positioning picture (where the circuit is, LDR and stuff would be good, cos I'm really planing to do a "Laser Harp Shield" for this one :)
This is awesome, great instructable!!! If you plan on only using it with the computer, and don't need the midi out jack, couldn't you theoretically use only the arduino, and scrap the usb/midi converter cable? There are loads of arduino projects out there that output midi via the arduino's usb cable (and maybe some software on the computer side too).
You could even make it wireless :) http://www.ladyada.net/make/xbee/midibee.html
Pushan Panda (author)  jonnyboy3231 year ago
Yes, i just checked it out, and it isnt too hard too send MIDI signals over USB!
That's a wonderful idea! Thank you!
Great 'ible! I have most of these parts laying around, and have been looking for something to do with some spare laser diodes and steppers. I saw this (or one just like it) on Hack a Day recently, and though 'How cool would it be to make one of these.' Awesome, thanks!
Pushan Panda (author)  origamimavin1 year ago
Thank you! Do put up some pics after you are done!
starphire1 year ago
I love how you've managed to simplify the hardware necessary for a laser harp. Well done! Since I already have most of these materials lying about, it looks like a fun project for an idle weekend.
I'm also curious how you would go about detecting the height at which a player was cutting the beam in an enhanced version of this instrument-care to share your thoughts? I would love to add that function.
Pushan Panda (author)  starphire1 year ago
Thank you! I would use an ultrasonic sensor to read the distance of the players hand, which in turn would control the pitch or volume of the midi notes.
nanaverm1 year ago
Wow! This is like a visible version of a theremin, and it sounds better, too.
Pushan Panda (author)  nanaverm1 year ago
:) That's exactly what i thought i when first saw it!

Hello Pushan, could you give me specification of the motor stepper ?????

Many thanks

Aurélien

Hi Aurelien, I don't think this instructable is being supported any more. I completed it recently after many months of trying to get it to work!

Do an ebay search for item 121684006535 - Unipolar Nema 17 1.8deg Stepper Motor. It works perfectly for this application. I have seen lots of other people trying to use geared steppers - these will not work.

Hope that helps,

DP.

LeelaKrishna made it!1 year ago

I made my own code for this (Using stepper motor library and its much more efficient) and it runs fine. It also includes a start sequence where the laser goes back and forth slowly getting faster and faster until its a line and then it splits apart into the 13 different beams which include all the notes of the middle octave:

#include <Stepper.h>

const int stepsPerRevolution = 400; // change this to fit the number of steps per revolution

// for your motor

// initialize the stepper library on pins 8 through 11:

Stepper beamsplitter(stepsPerRevolution, 8, 9, 10, 11);

int LaserState = LOW; // The variable that stores the state of the laser beam.

int sensor = 8 ; // Change this value to calibrate your harp's sensor

int delaylaser = 2000; // If you increase this, the laser will be brighter, but the harp will be less fluid

int motorspeed = 100; // This variable affects the speed, and fluidity of the harp.

int stepsize = 2; //size between beams

int LaserPin = 7; // Tell the arduino that the laser is on pin 7

int startupspeed = 3;

int pos = 0; // position of the laser

int beams = 12; // number of beams

int pitch;

void setup() {

pinMode(LaserPin, OUTPUT); // Setup for laser.

pinMode(6, OUTPUT); // Setup for status led.

digitalWrite(LaserPin, HIGH);

delay(1500);

//start sequence

beamsplitter.setSpeed(startupspeed);

beamsplitter.step((-beams * stepsize / 2)-1);

for (int x = 1; x < 60; x++) {

if (x<30) {

startupspeed = 103 - (100/pow(x, 1.0/4.5));

}

if (x>=30) {

startupspeed = 103 - (100/pow(x, 1.0/1.0));

}

beamsplitter.setSpeed(startupspeed);

for (int pos = beams; pos > 0; pos--) { // turn in other direction

beamsplitter.step(stepsize); // direction

}

for (int pos = 0; pos < beams; pos++) { // turn in other direction

beamsplitter.step(-stepsize); // direction

}

}

beamsplitter.setSpeed(motorspeed);

Serial.begin(31250);

}

void loop() {

for (pos = 1; pos < beams; pos++) { // turn in first direction

beamsplitter.step(stepsize); // switch position

//delayMicroseconds(delaymotor);

digitalWrite(LaserPin, HIGH); // turn on laser

delayMicroseconds(delaylaser / 2);

if ( (analogRead(0) > sensor ))\ // If the sensor gets a signalx

{

digitalWrite(6, HIGH); // Switch on status led.

noteOn(); // Play note 3

}

else if (analogRead(0) < sensor ) // If the sensor does not get a signal:

{

digitalWrite(6, LOW); // Switch off the status led.

noteOff(); // Stop playing note 2.

}

delayMicroseconds(delaylaser / 2);

digitalWrite(LaserPin, LOW); // Turn off the Laser.

}

for (pos = beams; pos > 1; pos--) { // turn in other direction

beamsplitter.step(-stepsize); // direction

//delayMicroseconds(delaymotor);

digitalWrite(LaserPin, HIGH); // turn on laser

delayMicroseconds(delaylaser / 2);

if ( (analogRead(0) > sensor )) // If the sensor gets a signal

{

digitalWrite(6, HIGH); // Switch on status led.

noteOn(); // Play note 3

}

else if (analogRead(0) < sensor ) // If the sensor does not get a signal:

{

digitalWrite(6, LOW); // Switch off the status led.

noteOff(); // Stop playing note 2.

}

delayMicroseconds(delaylaser / 2);

digitalWrite(LaserPin, LOW); // Turn off the Laser.

}

}

void noteOn() // Function to play the notes

{

pitch = 60 - (beams + 1) / 2 + pos;

Serial.write(0x90);

Serial.write("0x" + pitch);

Serial.write(0x7f);

}

void noteOff() // Function to play the notes

{

pitch = 59 + pos;

Serial.write(0x90);

Serial.write("0x" + pitch);

Serial.write(0x00);

}

IMAG1440.jpgIMAG1441.jpgIMAG1442.jpgVIDEO0196_01_0000019432.jpg

Hi there, many thanks for your version of this. I had no joy at all with the original code despite many efforts. There are also several errors in the Fritzing diagram too unfortunately. I have got your code running, am using 50mw green module and get lovely sharp beams.

Am now adding sound and am getting the following error when compiling. This line...

Serial.write(0x00);

Causes compile to fail with....

In Function Void noteOff();

error: call of overloaded 'write(int)' is ambiguous

If I take the above line out, the sketch compiles perfectly - but doesn't of course perform as it should. All input gratefully received.

Hi........ First of all congrats on making this successfully.

Is your system working...??? May i request you for a video...????

If you can send me video, please mail me on dixitad88@gmail.com

I used a 100mw laser and took the picture in the bathroom after filling it with steam from the shower.

I compiled the code and found this stray "\" on this line:

if ( (analogRead(0) > sensor ))\ // If the sensor gets a signalx

you're right but i don't think it really affected the code.

Yep! It doesn't make any difference at all.

I am considering using the L298N H-Bridge IC to drive the stepper mounted on a heatsink. Do you think that an EasyDriver Board could be used instead? I have a couple of them laying around.

Also, if you look at my picture, you see that my "strings" are infact pretty wide and rather thick vs being like a single line. This might be because i'm using a crappy transistor for the laser. Also the beam is ever so slightly off from the position its at when it turns on while it goes in one direction vs the other. for example: beam 3 when the motor is going from right to left could be about .5 cm away from where it is when its going from left to right, these beams do overlap mostly but you can still notice the flickering pretty well. I may just need to replace the transistor. Something else i might try soon is not have the the laser turn on going the other direction. ex: replace the current void loop w/

void loop() {

for (pos = 1; pos < beams; pos++) { // turn in first direction

beamsplitter.step(stepsize); // switch position

//delayMicroseconds(delaymotor);

digitalWrite(LaserPin, HIGH); // turn on laser

delayMicroseconds(delaylaser / 2);

if ( (analogRead(0) > sensor ))\ // If the sensor gets a signalx

{

digitalWrite(6, HIGH); // Switch on status led.

noteOn(); // Play note 3

}

else if (analogRead(0) < sensor ) // If the sensor does not get a signal:

{

digitalWrite(6, LOW); // Switch off the status led.

noteOff(); // Stop playing note 2.

}

delayMicroseconds(delaylaser / 2);

digitalWrite(LaserPin, LOW); // Turn off the Laser.

}

beamsplitter.step(beams*stepsize);

}

Hi Pushan, excellent instructable. Finally getting around to building this. Quick question, in your fritzing diagram you show 6 wire stepper, but in photos you show 5 wire. Also in the photo the wire is taped so colours change to 4 red and one green. This makes it difficult to see which stepper wire goes to which pin on the uln2003 - can you help identify which is which please? Many thanks! :)
AlexisF21 month ago
Is there any chance to make a Laser Harp from this kind of stuff? And how?

Thanks.
20150609_120648.jpg
Toggle2521 month ago

Nice Job!!

I was hoping you, or someone could help me out here with a stepper motor question? Is there anyway a 4 wire stepper will work? or is this not possible without a ground wire?

Thanks in advance

LeumasM12 months ago

I've had an issue with this code. The software will say that it needs an "," or a ";" after I've typed "int sensor = 8 ;"

LeumasM12 months ago

I have an issue withe the code:

int sensor = 8 ;

The software gives me an error (expected ',' or ';' before 'int')

LeumasM12 months ago

What do I do if the code is having an issue with LaserPin?

Mike Alarcon3 months ago
Think there's no need for transistor and the stepper motor, could be easier, good instructable

Can it be made with other type of motor, like a servo or a DC motor?

ajinkyadixit made it!4 months ago

Yipppppiii.................. I made it............ Its 100% Working...... Awesome experience to play with it. My setup has 5mW high bright green laser & stepper motor salvaged from printer. I am also generating music from FL Studio...... :) :) Very soon i will post an instructable on it. I am very very thankful of @Pushan Panda & issac_engel for inspiration behind this.

IMG_20150214_223835.jpgIMG_20150220_163920.jpgIMG_20150220_212956.jpgIMG_20150220_212959.jpg
kiscool4 months ago
Hi to all. Since my first read of this instructable, my laser harp was realised. I use 20k galvos and 500mW RGB laser with analog modulation. In few month, it Will be configurable using Bluetooth. here is the video : http://youtu.be/BC_JwJ2gc0g
bowser115 months ago
Question: which website did you get the uln2003 from?
isaac_engel made it!5 months ago

Hey there! We loved your instructable and made it as a project for our school. We used a less powerful laser so it is not as good-looking as yours but it is awesome anyway! We also made our own instructable. Check it out if you like! Instructable: http://www.instructables.com/id/Easy-and-cheap-Laser-Harp/ Video: https://www.youtube.com/watch?v=_lUJ7XdP1Ic

FADHXQNI66CVONX.MEDIUM.jpgFGMQ1QUI66CVKPU.LARGE.jpg
lthomas9876 months ago

Are there any special requirements for the stepper? Will any old 6 wire stepper do?

ncp6196 months ago

give me a full details with all type of codes and circuit diagram.. please i wanna make for my college project... ncp619@gmail.com

Good day Pushan Panda i was bit confuse were is the position of the LDR in the project,,i am very interesting about this laser harp and im planning to build it,,,hope you can help me about this,,,thank you very much

1-40 of 160Next »