Arduino Chunithm Air Notes Sensor
by SL_0111 in Circuits > Arduino
488 Views, 0 Favorites, 0 Comments
Arduino Chunithm Air Notes Sensor
This project is specially designed for the people that couldn't play well when it comes to air notes in the music game called Chunithm. In this game, the players are supposed to press the screen whenever the colored arrows come toward them. However, I have noticed that many of the players couldn't successfully press the air notes, which are the ones that the players will need to raise their hand high to earn the points, to the reason that their hands are not raised high enough. Therefore, this project is designed for them to practice their hand height in order to get higher points in the real game.
Supplies
- 1 buzzer/speaker
- 7 wires
- 1 resistor
- 1 solderless breadboard
- 1 Arduino Leonardo board (the picture uses Arduino UNO as an example)
- 1 Photoresistance
- 1 USB line
Connect the Wires
According to the picture above, connect the wires.
Connect the Board With Computer
Using the USB line, connect the breadboard with a laptop or any kind of electricity storage supply.
Copy the Code Down Below
These are the codes needed to make this circuit works. You may just copy-paste these lines into the Arduino platform.
void setup(){
This step stands for running the setup code once
Serial.begin(9600);
This step means to open the serial port, and set the data rate to 9600 bps.
void loop(){
Below this code is the loop, where you put your main code to run repeatedly
Serial.print(analogRead( A1 ));
This step is to print the message
Serial.print(" ");
Then print the blank
Serial.println(); delay( 20 );
This is the code for delaying
if ( analogRead( A1 ) <= 600 ) {
tone(5, 550, 500);
This stands for the tone of the buzzer (speaker)
delay( 250 );
Delay code, and the unit for this step is milliseconds
tone(5, 440, 500);
delay( 750 ); } }
Stick Your Board
In order for this machine to work, you will need to stick it at a height of about 15~20cm away from your computer or where you are going to play. You may either cut another board and stick this breadboard and the Arduino board onto it to make sure this height is enough. Or, you can stick it temporarily onto the wall beside where you are gonna play.