Electronic organ made by Arduino+ photoresistor

Shunuo varistor / ESD varistor / product complete / Sunlord first-class agent
NCP15WB473F03RC MURATA Murata thermistor original spot
Photocoupler

Summary:

I saw the keyboard made by others. I also started to work on my own idea.

Arduino+光敏电阻制作的电子琴.jpg

This is based on the use of a photoresistor to control the tone function so that the speaker sounds.

First on the breadboard map:

Arduino+光敏电阻制作的电子琴.jpg

Note: The resistance of the string in the figure is 10kΩ.

Void setup(){

pinMode(3,OUTPUT);

pinMode(2,INPUT);

}

Void loop()

{

Int val1=analogRead(0);

Int val2=analogRead(1);

Int val3=analogRead(2);

Int val4=analogRead(3);

Int val5=analogRead(4);

Int val6=analogRead(5);

Int val7=digitalRead(2);

If(val1<100)

{

Tone (3,525,100);

}

If(val2<50)

{

Tone (3,589,100);

}

If(val3<100)

{

Tone (3,661,100);

}

If(val4<50)

{

Tone (3,700,100);

}

If(val5<250)

{

Tone (3,786,100);

}

If(val6<350)

{

Tone (3,882,100);

}

If(val7==HIGH)

{

Tone (3,990,100);

}

}

This code is based on the c tune, you can add it yourself, now based on this c tune, the first c tune "Little Star".

Arduino+光敏电阻制作的电子琴.jpg

Another refit map (*^__^*)...

Arduino+光敏电阻制作的电子琴.jpg

This is a self-welding 3.5mm interface that can be directly connected to speakers and other equipment.

Arduino+光敏电阻制作的电子琴.jpg

Harness Component

Blade Fuse is a kind of current fuse, when the circuit current exceeds the fuse rated current of 2 times in a few seconds when the fuse will play the role of circuit protection. Widely used in equipment circuit protection standard for foreign and domestic automobiles and trucks. Readily identifiable and easily replaced, this fuse can be specified for a variety of low voltage electronic Applications.

Harness Component

Dongguan YAC Electric Co,. LTD. , https://www.yacentercn.com

Posted on