Introduction: Easy and Cheap Laser Harp
Hello maker friends!
In this instructable we will tell you how to make an inexpensive laser harp using Arduino.
This project was for 'Creative Electronics', a Beng Electronics Engineering 4th year module at the University of Málaga, School of Telecommunication.
IMPORTANT: this project was based on Frameless Laser Harp, an instructable by the user Pushan Panda. Credits to him! We saw it and could not resist to make our own version. You can see that instructable here: https://www.instructables.com/id/Frameless-Laser-Ha..
Step 1: Materials
- Laser pointer. The more powerful, the better the harp will work. We used an inexpensive 1 mW model and it works alright.
- Stepper motor. We used the model PM356-048, salvaged from an old printer. It is interesting that the steps are big enough so each step covers one of the strings. In our case, the steps were of 7.5 degrees (48 steps/rotation).
- DC supply. For the motor. 12 V is usually what you need, but it depends on the motor.
- ULN2003a. Motor driver. It is basically a set of Darlington transistors which will give the motor the current it needs.
- LDR (Light Detecting Resistor).
- A small mirror. 3x3 cm should be OK.
- Transistor. Any BJT is alright. We used the model 2N3904.
- Resistors. 1kΩ and 20kΩ
- Fimo. To attach the mirror to the motor.
- Arduino UNO
- Some kind of support for the system. This part is up to you. We used mecano pieces to assemble all together and keep the motor in its place. Any structure that you come up with would do the thing.
Step 2: Assembling It All Together
First, place the ULN2003a, the transistor and the resistors in the breadboard. Connect the motor and the Arduino ports as it is indicated in the fritzing image.
You will have to attach the mirror to the motor. We used fimo to make a piece that would fit into the motor's gearing, and hot-melt adhesive to stick the mirror to said piece.
The next step is an important one. You will have to make a structure able to hold the system, particularly the laser and the motor, as they have to be perfectly aligned. As it was said before, we used mecano to make the structure. The tires reduce the effect of the motor vibrations, and gives the harp a car-looking style. Cool, right?
You will need a power supply for the motor. We used an old one that we had at home.
Step 3: Arduino Code
This is the part where we spent most of the time. The program basically makes the motor go forwards 4 times and backwards another 4 times, lighting up the laser each time it stops, and turning it off when it is moving. This way it makes the effect of the 5 laser strings. Arduino sends messages through the serial port which should be received by a MIDI interface in the computer.
It also does some cool things, such as automatically positioning the mirror. You can download it and look through it if you like. It is commented at some points but it can be confusing (sorry!), so feel free to ask why we did one thing or another.
Step 4: Making It Sound
So we have our Arduino sending MIDI commands through the serial port to our computer. The next step is processing those commands. For that you will need:
- Hairless midiserial. To convert serial to MIDI. You will have to configure it to 9600 baud (that is the speed we used in the Arduino code). Download it for free: http://projectgus.github.io/hairless-midiserial/
- loopMIDI. To make other applications aware of your new virtual MIDI port. Download it for free: http://www.tobias-erichsen.de/software/loopmidi.ht...
- Ableton Live 9 Suite. Or any program that processes MIDI signals. There should be free alternatives out there. Google is your friend!
Another option could be using a MIDI-enabled device, such a keyboard. But for that you will need a different hardware setup. It is very well explained in the project Pushan Panda's instructable, so check it out!
We have a be nice policy.
Please be positive and constructive.