PianoFruity

PianoFruity © GPL3+

My project is a piano of four sounds that uses things that we find at home, bananas.

  • 4,383 views
  • 1 comment
  • 11 respects

Components and supplies

Apps and online services

About this project

My project is a piano that works with fruits that we find at home, you can use other types of fruits for the piano, it is a question of trying. It has four sounds one for each fruit and with one hand you must touch the aluminum foil, which is used as a conductor.

It uses four resistors 220Ohm a buzzer, jumper cables, an Arduino board and fruits.

I thought to do it because I was bored and I started to imagine, find out on the internet and I saw that a person had to light a led with a banana and inspire me.

I am a 13 year boy who lives in Argentina in a town called san genaro, I hope you like it :) If you like to comment and share it, and if you do not comment on how I can improve.

Code

Untitled fileArduino
//Esteproyecto fue hecho y diseñado por valentino gentiletti.
//Se agradece la colaboracion de ciro gentiletti.


int melodia1 = 261;
int melodia2 = 523;                        
int melodia3 = 1046;
int melodia4 = 880;

int zumbador = 9;
int numeroTonos = 1;

void setup(){
 Serial.begin(9600);
// Declaro el zumbador
  pinMode(zumbador, OUTPUT); 
}

void loop(){
 Serial.print("Analog 1: ");
 Serial.println(analogRead(0));
 Serial.print("Analog 2: ");
 Serial.println(analogRead(1));
 Serial.print("Analog 3: ");
 Serial.println(analogRead(2));
 Serial.print("Analog 4: ");
 Serial.println(analogRead(3));
 
 if(analogRead(0)<=1020){
  tone(zumbador, melodia1);
  delay(500);
  noTone(zumbador);
 }
 if(analogRead(1)<=1020){
  tone(zumbador, melodia2);
  delay(500);
  noTone(zumbador);
 }
 if(analogRead(2)<=1020){
  tone(zumbador, melodia3);
  delay(500);
  noTone(zumbador);
 }
 if(analogRead(3)<=1020){
  tone(zumbador, melodia4);
  delay(500);
  noTone(zumbador);
 }
}

Schematics

piano_banana_6mLWEQ4zTW.fzz
piano_banana_6mLWEQ4zTW.fzz

Comments

Similar projects you might like

Unravel Preset Piano Easy Arduino (Even a Ghoul Can Make It)

Project in progress by ExeCuteLi

  • 5,488 views
  • 8 comments
  • 20 respects

Newbie Music Player

Project in progress by Michael Marinis

  • 3,504 views
  • 2 comments
  • 12 respects

Keyboard Melodies

Project tutorial by Ava Baker -21 and Natalie Clark -20

  • 1,843 views
  • 2 comments
  • 8 respects

Smoke Detection using MQ-2 Gas Sensor

by Aritro Mukherjee

  • 213,110 views
  • 36 comments
  • 133 respects

Smartphone Controlled Arduino 4WD Robot Car

Project in progress by Andriy Baranov

  • 53,419 views
  • 43 comments
  • 99 respects

RFID Based Automatic Door System

Project showcase by Robodia Technology

  • 35,762 views
  • 20 comments
  • 97 respects
Add projectSign up / Login