![]() ![]() When you're getting good consistent note messages, change the midiMode variable to "true" and re-upload to the board. You can change the threshold variable from 512 to something else if necessary. If you have any stuck notes, or other strange behaviour, check your lasers are aligned and that you're getting analogRead() values that go from 1024 to around 40 when the beam is broken. Open the serial window and check that you receive messages like "Note On message: note 64, velocity 100" when expected. Upload the attached sketch (Minimum_Laser_Harp.ino) to your Arduino. They have a fairly narrow angle of sensitivity, so you'll need to aim them at the light source you're detecting. I've settled on them after a number of projects. Photodiodes: I use these from RS.com, but they are available from other sites. Many people will find it more reliable, easier, and quicker to buy cheap laser pointers (approx £2/$3) and take out the laser modules. Mine are purchased direct from a Chinese company () and are cheap, but take an unnervingly long time to arrive. Laser diodes: A note on safety - For this instructable, you should not use any laser module with an output more powerful than 5mw, and certainly never look directly into any laser. There is free software available that can do this, such as MuLab or VSThost. Some form of MIDI-enabled synthesiser - for most this will be a music program on a PC.Blu-tack (I use this to quickly mount and adjust the laser modules).A selection of resistors (which you'll use depends on your lasers and photodiodes - I'm using 6 x 100ohm and 6 x 100Kohm).Single core wire or jumper cables for making connections.6 x SFH203 visible light photodiodes (more on these below).6 x Laser modules (more on these below).A reasonably sized piece of breadboard (or 2).If there are any errors, please point them out and I'll make corrections.Īs mentioned, this is intended to be as quick and cheap as possible, but sourcing materials (if you're not lucky enough to have a drawer full of lasers and photodiodes) can take a little while. Please be aware, this is my first instructable, and I do not code or do electronics in any professional capacity. ![]() If you already have some MIDI to USB equipment, you may wish to use the standard, less stressful method of sending MIDI messages described here. If you're familiar with this kind of thing, you may wish to use the MocoLUFA library instead. This means you'll need to re-flash the Arduino firmware if you wish to reprogram your Arduino. ![]() To save on costs, this instructable uses darran's MIDI firmware for the 16U2 WARNING! This involves reprogramming the 16U2 chip on the Arduino rev3 using Atmel's Flip software ( Linux and Windows only), so it will appear as a MIDI device to your computer. It should only take a couple of hours to build. This laser harp is safe, cheap and temporary, and only intended to be a basis for a more complex design. I'm putting this instructable together to give a basic introduction to making a framed laser harp with an Arduino. I've created a few Arduino (and more recently, Olimexino) framed MIDI laser harps (see one here), and I frequently get emails asking for more information on how to build one. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |