The team is Dev Patel, Nikita Bolotnov, and me

Inspiration

We got inspiration from the lesson about the flex sensor. Also when you bend the sensor, you bend the pitch. Another feature is that it will tell you on the serial monitor at what angle the flex sensor is at.

What it does

When you bend the flex sensor you bend the pitch. Alsoit changes the color of the RGB LED light

How I built it

I built it using Arduino. IN the arduino I used the flex sensor, wires, buzzers, resistors,and the RGB led light.

Challenges I ran into

I ran into the challenge of there being no space remaining on the breadboard. So we used 2 bredboards and connected them with a lot of wires.

Accomplishments that I'm proud of

I am proud of the amount of code we put into this project.

What I learned

I learned how to use the flex sensor and write the code for it.

What's next for Buzzer Tones with Light using Arduino.

We want to add motors too. So when you bend it a lot, the motor moves fast, whereas if you bend it a little, it moves slowly.

This is the following code.

const int buzzer = 3; const int flexPin = A0; double value; const int blue = 8; const int green = 9; const int red = 10; void setup(){ pinMode(buzzer, OUTPUT); pinMode(blue, OUTPUT); pinMode(red, OUTPUT); pinMode(green, OUTPUT); Serial.begin(9600); } void loop(){ //digitalWrite(10, HIGH); value = analogRead(flexPin); Serial.println(value); tone(buzzer,value + 100); //delay(1000);

if(value < 840 && value > 750){ digitalWrite(red, LOW); digitalWrite(green,LOW); digitalWrite(blue, HIGH);

}else if(value >= 840){ digitalWrite(blue, LOW); digitalWrite(green, LOW); digitalWrite(red, HIGH); } else { digitalWrite(red, LOW); digitalWrite(blue, LOW); digitalWrite(green, HIGH); } }

Built With

Share this project:

Updates