Laser Harp Build Instructions

Similar documents
Tiny Arduino Music Visualizer

PHYS 2P32 Project: MIDI for Arduino/ 8 Note Keyboard

Your Multimeter. The Arduino Uno 10/1/2012. Using Your Arduino, Breadboard and Multimeter. EAS 199A Fall Work in teams of two!

Arduino Lesson 0. Getting Started

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

C4DI Arduino tutorial 4 Things beginning with the letter i

Bluetooth + USB 16 Servo Controller [RKI-1005 & RKI-1205]

Arduino Lab 1 - The Voltage Divider

Tutorial for Installing Skype 5.0 on your Windows PC

FOLGER TECHNOLOGIES, LLC 2020 i3 3D Printer Kit

Waspmote. Quickstart Guide

Board also Supports MicroBridge

How to Install and Set up a Jabra Go 6400 and Pro9400 Series Headset with an Avaya 96x1 Series IP Phone

Building A Computer: A Beginners Guide

Alteryx Predictive Analytics for Oracle R

Lab 3 - DC Circuits and Ohm s Law

Work with Arduino Hardware

Arduino Lesson 1. Blink

Downloading a Sample Program over USB

Shearwater Research Dive Computer Software Manual

How to connect to a Class II router using a mobile-phone data cable specifically for Solwise & Safecom routers

Adafruit MCP9808 Precision I2C Temperature Sensor Guide

Capacitive Touch Lab. Renesas Capacitive Touch Lab R8C/36T-A Family

Arduino Lesson 13. DC Motors. Created by Simon Monk

Quick Start Guide Ski Doo Snowmobiles

Parts of a Computer. Preparation. Objectives. Standards. Materials Micron Technology Foundation, Inc. All Rights Reserved

Using the VEX Cortex with ROBOTC

#include <Gamer.h> Gamer gamer; void setup() { gamer.begin(); } void loop() {

The $25 Son of a cheap timer This is not suitable for a beginner. You must have soldering skills in order to build this kit.

DROFLY PRO V3 User Guide

User Manual GSM Alarm System. All rights reserved by Delta Security Co., Ltd

CAN-Bus Shield Hookup Guide

Getting started with the O Watch

Transmitter Interface Program

Welcome to life on. Get started with this easy Self-Installation Guide.

AUTOMATIC CALL RECORDER JAMECO PART NO

DS2438EVKIT+ Smart Battery Monitor Evaluation Kit

BEFORE YOU BEGIN CHARGE YOUR HEADSET

Caplio Utility for Windows

Gotcha! Catch every moment. Find thousands more great ideas online

MCP4725 Digital to Analog Converter Hookup Guide

LAB2 Resistors, Simple Resistive Circuits in Series and Parallel Objective:

If this PDF has opened in Full Screen mode, you can quit by pressing Alt and F4, or press escape to view in normal mode. Click here to start.

MASTER GUIDE (MAC) Gaming on the go is now possible.

IOIO for Android Beginners Guide Introduction

Quick Start Guide. Vonage Device Motorola VT2142

STEREO BLUETOOTH WIRELESS HEADPHONES

Quick Start Guide. Installing. Setting up the equipment

Objectives: Part 1: Build a simple power supply. CS99S Laboratory 1

Arduino Lesson 14. Servo Motors

1 managing your photos

FileMover 1.2. Copyright Notice. Trademarks. Patents

USB VoIP Phone Adapter. User s Manual

If you need additional assistance please contact our Technical Support Center at 24 hours a day, 7 days a week.

Massachusetts Institute of Technology Department of Electrical Engineering and Computer Science Electronic Circuits Spring 2007

Workshop Intel Galileo Board

INDEX. Trademarks All name and product s trademarks mentioned below are the property of their respective companies.

DSL Self-Install Kit Instructions

FreeAgent DockStar Network Adapter User Guide

Installation Guide (No Router)

PowerShield SNMP Adaptor

Example Connection between USB Host and Android

Blackwire C710 /C720 Corded USB headset with Bluetooth. User guide

Welcome to the tutorial for the MPLAB Starter Kit for dspic DSCs

Table of Contents. Use. Troubleshooting. Setup. Welcome. 11 How to arm/disarm system/camera(s) 19 Sync Module setup issues. 3 Installing the Blink app

Quick Start Guide. Vonage VWR Device

Connecting Arduino to Processing a

Basic Setup Guide. browndoggadgets.com. 12V Solar Charge Controller with Dual USB. Dull Introduction

FREQUENCY RESPONSE OF AN AUDIO AMPLIFIER

Weather Direct Displays show Lost Forecast (blank boxes in the picture icons)

Instructions for the installation of drivers and data reading software (TOOLBOX 4) The simple and reliable way to measure radioactivity.

ECEN 1400, Introduction to Analog and Digital Electronics

Massachusetts Institute of Technology

cs281: Introduction to Computer Systems Lab08 Interrupt Handling and Stepper Motor Controller

Trimble R8 Base and Rover Quick Setup Guide. Inland GPS Inc.

Six-servo Robot Arm. DAGU Hi-Tech Electronic Co., LTD Six-servo Robot Arm

Trinket Bluetooth Alarm System

QUICK START GUIDE FOR DEMONSTRATION CIRCUIT BIT DIFFERENTIAL ADC WITH I2C LTC2485 DESCRIPTION

Surveillance System Using Wireless Sensor Networks

INSTRUCTION MANUAL Sherlock Covert USB Voice Recorder SB-VX0166

Animated Lighting Software Overview

Electronics 5: Arduino, PWM, Mosfetts and Motors

DEPARTMENT OF ELECTRONICS ENGINEERING

a. For Windows: Download the Audacity installer; click on it to install the application.

User Guide Reflow Toaster Oven Controller

Xbox LIVE Vision. english

Frequently Asked Questions

4 Wire / 5 Wire Resistive Touchscreen

Testo FlashUpdate. Instument Software Update and Download Instructions How to Download Instrument Software and Updates from the Internet

Slave Computer 1 Slave Computer 2

PRODUCTIVITY THROUGH INNOVATION 600 CONTROL DIRECT DRIVE TECHNICAL/OPERATION MANUAL

mdm-mp3 minidirector with MP3 Player

Real Time Clock USB Evaluation Board V3.0

Programming the VEX Robot

Troubleshooting And Support

This Document Contains:

By: John W. Raffensperger, Jr. Revision: 0.1 Date: March 14, 2008

SL1100 Installation Instructions. This Installation Packet is Organized into Five Chapters:

Transcription:

Laser Harp Build Instructions This is a simplified version of the Laser Harp project built by the Artisan s Asylum hackerspace in Somerville, Massachusetts, and winners of the RadioShack East Vs. West Hackerspace Challenge. The Artisan s Asylum version of the harp is quite large and involved a considerable amount of construction. It has 12 strings, uses an Arduino Mega and communicates with a PC, which plays the audio samples. Plucking the strings also triggers cool lighting effects. This version has been scaled down a bit to make it a great beginner project, but the basic functionality is the same: a set of laser pointers are aimed at a series of photoresistors, which are hooked up to the input pins on an Arduino. The Arduino is running a program that detects any interruptions in the beams and plays the note corresponding to that sensor. The harp is played by plucking the laser strings; i.e., blocking the path of the laser. For this version, the Arduino itself produces the audio, and a small piezo speaker is connected directly to the Arduino. These instructions describe how to build a three-string harp, which allows us to use the smaller Arduino Uno. Adding more strings is easy: the Uno can handle up to five sensors; more than that will require an Arduino with more input pins, such as the Mega. Parts Note: the parts for this simplified version of the project are different than what appears in print in the magazine, which lists the parts used in the full-size version. Arduino Uno: http://www.radioshack.com/product/index.jsp?productid=12268262 Laser pointer device, e.g.: http://www.radioshack.com/product/index.jsp?productid=4344500 or: http://www.radioshack.com/product/index.jsp?productid=2103037 3 photoresistors: http://www.radioshack.com/product/index.jsp?productid=2062590 3 10k resistors http://www.radioshack.com/product/index.jsp?productid=2062347

Piezo speaker: http://www.radioshack.com/product/index.jsp?productid=2062402 Potentiometer: http://www.radioshack.com/product/index.jsp?productid=2062354&filtername=type&filterv alue=potentiometers Solid-core hookup wire: http://www.radioshack.com/product/index.jsp?productid=2049743 Solderless breadboard: http://www.radioshack.com/product/index.jsp?productid=2882885 Jumper wire kit: http://www.radioshack.com/product/index.jsp?productid=2103801 Getting Started Install Arduino Software Download Arduino software from the Arduino website: http://arduino.cc If you ve not used an Arduino before, you ll want to spend some time familiarizing yourself with the basics. Check out the Arduino website (above) for some great beginner tutorials. Install the Tone Library For this project, you ll need to install the Tone library, which can be downloaded here: http://code.google.com/p/rogue-code/wiki/tonelibrarydocumentation When you unzip the downloaded file, it will create a Tone folder. This folder should be moved to the Libraries folder, which is in your Arduino sketchbook folder. If you re not sure of your sketchbook folder location, it can be found in your Arduino preferences. If the libraries folder doesn t exist, create it, then copy the Tone folder to that location. Restart your Arduino application. You should now see Tone when you select from the menu bar: Sketch > Import Library... (look under Contributed ) For more information, see Contributed Libraries on the page: http://arduino.cc/it/reference/libraries

How it Works Photo Sensors The laser-detecting circuits use a photoresistor paired with a resistor to create a voltage divider. A change in resistance in one of the resistors creates a change in voltage. The photoresistor s resistance changes according to the intensity of the light hitting it; the brighter the light, the lower the resistance. Each sensor circuit is hooked up to an analog input pin. The pin reads variations in voltage and translates them to a value from 0 to 1023, which can be read by the Arduino program (or sketch) running on the device. Depending on the value, the sketch will determine if the laser is hitting the sensor. Calibration Because the photoresistors will behave differently depending on various ambient lighting conditions, we need a way to calibrate the sensors. We ll calibrate manually using a potentiometer as an input. The potentiometer also acts as a voltage divider and will be hooked up to one of the analog input pins. Turning the potentiometer sends a value from 0 to 1023 to your Arduino sketch. This will be used to dial in the calibration (more on this later). The Sketch Download the LaserHarpJr sketch from here: http://www.radioshack.com/graphics/uc/rsk/support/productmanuals/rs_diy_laserharpjr.ino.zip Unzip it and open the LaserHarpJr.ino file with your Arduino software. You don t need to understand everything about the sketch to build this project, but familiarizing yourself with it is a great way to learn about programming an Arduino. It s also a good starting point for customization. For example, if you want to add more sensors or change the notes played by the harp, find the following chunk of code, which defines the analog input pin and the musical note for each sensor: sensor[0].pin = A0; sensor[0].note = NOTE_G3; sensor[1].pin = A1; sensor[1].note = NOTE_D4; sensor[2].pin = A2; sensor[2].note = NOTE_A4; If you want to change the sequence of notes from this arpeggio to the first three notes of the C-major scale, simply change NOTE_G3 to NOTE_C4 and NOTE_A4 to NOTE_E4. Note that if you want to add strings, you ll need to change the following line as well, towards the top of the sketch: const int SENSOR_COUNT = 3;

More information about the tone library can be found here: http://code.google.com/p/rogue-code/wiki/tonelibrarydocumentation Building the Circuit This is an easy circuit to assemble using a solderless breadboard. Hook up the resistors, photoresistors and piezo speaker as shown in the illustration below, using jumper wires to connect each sensor circuit to the analog inputs on your Arduino. You ll need to solder hookup wire to the solder tabs on the potentiometer in order to make the connections. While stranded wire is more flexible, it s easier to connect solid-core wire to the solderless breadboard.

When assembled, it should look something like this. No need to worry about setting up the lasers just yet! Program ming the Arduino Next we ll upload the Arduino sketch to the device. Connect your Arduino to your computer using a USB A/B cable, and make sure the right board and serial port are selected (see the appropriate Getting Started section for your operating system: http://arduino.cc/en/guide/homepage). Open the LaserHarpJr.ino file with your Arduino software and click the right-arrow button (next to the check button). Some LEDs should blink on the Arduino board, and after a few moments, you should see Done Uploading in the console area of the Arduino software. Your sketch should now be running! Testing Without a Laser Using only the ambient light in the room, we can test the harp's sensors before setting up the lasers. However, the sensors will need to be calibrated first. Calibration You may or may not hear a tone coming from the speaker; slowly turning the potentiometer should cause the tone to turn on (or off) at some point. The trick is to turn

it just past the point where the tone turns off; at this point, any reduction in light falling on the sensor should trigger it, causing the tone for that sensor to sound. Test When you re done calibrating, test each sensor (one at a time) by putting a finger over it: When a sensor is blocked, you should hear a tone. When you remove your finger, the tone should stop. Move your finger from sensor to sensor. You should hear a series of notes (a different note for each sensor). Troubleshooting If it s not working... Check all connections. Make sure all components and jumper wires are in the appropriate rows in the solderless breadboard. Make sure you ve connected to the correct pins on the Arduino. Use a multimeter to test your circuit. Hook it up in voltage testing mode to test the voltage coming from each photoresistor (In the illustration and photo above, you would test the blue, green and yellow wires coming from each sensor. Unplug each wire in turn from the Arduino and test the voltage across the wire and ground. The voltage should vary as you block and unblock the sensor). Use a multimeter to test the resistance of the photoresistors. A fully blocked photoresistor should be in the same ballpark as the fixed (non-photo) resistor in the

voltage divider circuit. If the resistance is significantly different (e.g., 10K vs. 100K), try to find a photoresistor in the correct range. Otherwise, replace the fixed resistor with one of a similar value as the blocked photoresistor. If you want to see what s going on in the Arduino program, turn on debug input in the sketch by changing this line: const boolean DEBUG = false; To this: const boolean DEBUG = true; Turn on the Serial Monitor in Arduino while the program is running, keeping the USB cable connected. This will print some interesting information to the screen as you play your harp, but it will negatively affect its performance; there will be a lag as you block and unblock the beams. Laser Time! Once you have everything working, it s time to set up the lasers. (You might want to power down the Arduino for now by unplugging its USB cable.) There is any number of ways to position the lasers, as long as each beam points at one of the sensors. I happened to have a microphone boom stand kicking around, so I used that as a horizontal bar onto which I clamped the three laser pointers, using three small spring clamps and some gaffer s tape:

However, the endless! For example, position the pointers staircase so that melodies play when and down the stairs! require some additional course). possibilities are you could along a different people walk up (This will wiring, of

In any case, the lasers must be aimed carefully so that they hit each photoresistor, and you will need to re-calibrate. Power on the Arduino by plugging in the USB cable (you can also use a 9V battery, plugged in using a barrel connector). With all three lasers hitting the sensors, turn the potentiometer just past the point where you stop hearing a tone. Play Your Harp Place your hand in the path of one of the three lasers. You should hear a note play. When you move it out of the path, the note should stop. As you move your hand from beam to beam, you should hear a series of notes, with each laser string playing a different note.