loading
Listen, sing & Listen again, S&S will Tune itself.

Details at http://atari.uniandes.edu.co/medios/cursos/dise-3117-061/persona.php?p_id=404

Step 1: Code

//CAMBIO EN MOVIMIENTO EN LA ORDEN PRESIONE +
int antesx= 0;
int x = 0;
int val;

void setup () {
antesx = analogRead (0);
pinMode(0, OUTPUT);
Serial.begin(9600);
}

void loop () {
if( Serial.available() ) // if data is available to read
{
val = Serial.read(); // read it and store it in 'val'
if( val == 'H' ) {
digitalWrite(1, HIGH); // turn ON the LED
delay(2000);
digitalWrite(1, LOW); // otherwise turn it OFF
}
}

x = analogRead(0);
if((x <= antesx-10)||(x>= antesx+10)) {
digitalWrite (0, HIGH);
delay (500);
digitalWrite (0, LOW);
antesx = x;
}
/*Serial.print(" x es ");
Serial.print(x, DEC);
Serial.print(" antes x es ");
Serial.println(antesx, DEC);
*/

//sonia

//delay(50);
}

Step 2: Dare to Use It!

The new way of enjoying your favorite music is here! ... Have fun with S & S.
It doesn t mater how old you are S&S; is so easy to use, you will be able to enjoy your favorite music

Step 3: Sing & Set Radio

As in antique radios, S&S; rescues the manipulation of radio stations, by tunning with the movement of the antenna and you will also get to save the station you like when you sing!

Step 4: How the S & S Works

In order to make the object functional, I use Wiring and Processing programs to achieve the radio programming.
Processing with a special program (Sonia) is the one in charge of opening a microphone and detecting the user s voice. This sends a signal to the Wiring I/O board and this will activate the radio s switch to save the station into the memory. When you sing, the station is saved.

Step 5: The Radio

There is a potentiometer that has been programmed, which is in charged of tuning the stations as the antenna handled by the user.
The potentiometer is programmed so that every time there???s movement, it will send a signal to the digital switch, responsible for the dial change. The digital switch is weld to the radio card and this way there is a change in the station.
I got a digital radio (with digital tuning and memory settings) and took out the electronic card in order to make the model. I weld on it to activate the on/off switch and one of the switches that work to memorize the station when the user sings. (This is achieved due to Processing sending a signal to Wiring)

I used two opt couplers, one for the dial memory switch and the other for the digital tuning switch.

Step 6: Model Construction

I made a model in wood to create de structure with a piece plastic of low density. Having the model ready I opened the spaces to locate the on/off switches and dial memory switches. There is also a space to locate the potentiometer and the regular radio antenna that was installed, in order to move it in a circular way. This is how the change occurs.

Before closing the object, a wire comes out of the card which connects directly to the computer. This way we achieve the programming and the object work.
From the radio, the microphone comes out which connects directly to the computer also.
more details on the i/o board please, and post up the code. Thank you
Check out the hardware<br/><a rel="nofollow" href="http://wiring.org.co/ioboard/index.html">http://wiring.org.co/ioboard/index.html</a><br/>software<br/><a rel="nofollow" href="http://processing.org/download/">http://processing.org/download/</a><br/>

About This Instructable

1,692views

1favorite

License:

Bio: student
More by Ivonne:Sing & Set Radio 
Add instructable to: