Noshirt
ITALY • + Follow
Edit Project
Components
![]() |
ARDUINO UNO REV3 |
x 1 | |
|
SparkFun Pushbutton switch 12mmSparkFun
|
x 7 | |
|
Passive BuzzerGikfun
|
x 1 | |
![]() |
FMP200JT-52-220RYAGEO
|
x 1 | |
![]() |
40 Pin Jumper Wires Male to Male 20cm |
x 17 |
Tools, APP Software Used etc.
![]() |
arduino IDEArduino
|
Description
Arduino Keyboard
Didn't know what to do as my first Arduino Project, so i thought of starting out with something little and temporary, like this Arduino Keyboard which you can edit as you like.
P.S. be sure to download the "pitches.h" file from this link to make your project run correctly.
Code
Arduino Keyboard code
C/C++
#include "pitches.h" //Notes are stored into this library int C = 7; //First button on pin 7 int D = 8; //Second button on pin 8 int E = 9; //Third button on pin 9 int F = 10; //Fourth button on pin 10 int G = 11; //Fifth button on pin 11 int A = 12; //Sixth button on pin 12 int B = 13; //Seventh button on pin 13 int c[] = {N_C5}; //Plays C Note int d[] = {N_D5}; //Plays D Note int e[] = {N_E5}; //Plays E Note int f[] = {N_F5}; //Plays F Note int g[] = {N_G5}; //Plays G Note int a[] = {N_A5}; //Plays A Note int b[] = {N_B5}; //Plays B Note int duration(500); //Every note lasts 500 milliseconds. You can change it as you like void setup() { //Set every button as an INPUT_PULLUP pinMode(C, INPUT_PULLUP); pinMode(D, INPUT_PULLUP); pinMode(E, INPUT_PULLUP); pinMode(F, INPUT_PULLUP); pinMode(G, INPUT_PULLUP); pinMode(A, INPUT_PULLUP); pinMode(B, INPUT_PULLUP); } void loop() { if (digitalRead(C) == LOW) { //Reads button state when pressed for (int Note = 0; Note < 1; Note++) { tone(6, c[Note], duration); //Plays note on pin 6, where the Buzzer is connected (change it if you connected it on another pin) } } if (digitalRead(D) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, d[Note], duration); } } if (digitalRead(E) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, e[Note], duration); } } if (digitalRead(F) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, f[Note], duration); } } if (digitalRead(G) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, g[Note], duration); } } if (digitalRead(A) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, a[Note], duration); } } if (digitalRead(B) == LOW) { for (int Note = 0; Note < 1; Note++) { tone(6, b[Note], duration); } } }
Schematic and Layout

Jun 17,2022
862 views
end-flag
Arduino Keyboard
As a musician and music passionate, this little Keyboard is my first (but not last) Arduino project. Hope you have fun with it :)
862
0
0
Published: Jun 17,2022
Purchase
Donation Received ($)
PCBWay Donate 10% cost To Author
Copy this HTML into your page to embed a link to order this shared project
Copy
Under the
Attribution-ShareAlike (CC BY-SA)
License.

Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW
ESP32-S3 4.3inch Capacitive Touch Display Development Board, 800×480, 5-point Touch, 32-bit LX7 Dual-core Processor
BUY NOW
Raspberry Pi 5 7 Inch Touch Screen IPS 1024x600 HD LCD HDMI-compatible Display for RPI 4B 3B+ OPI 5 AIDA64 PC Secondary Screen(Without Speaker)
BUY NOW- Comments(0)
- Likes(0)

Upload photo
0 / 10000
It looks like you have not written anything. Please add a comment and try again.
You can upload up to 5 images!
Image size should not exceed 2MB!
File format not supported!
View More
VOTING
0 votes
- 0 USER VOTES
0.00
- YOUR VOTE 0.00 0.00
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Design
1/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Usability
2/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Creativity
3/4
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Content
4/4
More by Noshirt
-
IR Remote for Fan So, I found this little Fan (it should be at least 10 years old), which was powered by some buttons ...
-
Arduino Weather Station v1.0 (BMP280) First version of a very simple weather station made with an Arduino UNO, a BMP280 sensor and a LCD.I...
-
Wi-Fi Controlled Relay One day I woke up. I thought, why can't my windows be opened from my pc?! Why I have to get up from ...
-
Start/Stop Chronometer Me and my friend are always in competition for something, in every sports, from ski to run, to MTB. ...
-
Arduino Keyboard V2.0 That's an update for the older version of the project!Now you can play the keyboard on the keys from...
-
Arduino Keyboard Didn't know what to do as my first Arduino Project, so i thought of starting out with something litt...
You may also like
-
-
-
Modifying a Hotplate to a Reflow Solder Station
933 1 5 -
MPL3115A2 Barometric Pressure, Altitude, and Temperature Sensor
474 0 1 -
-
Nintendo 64DD Replacement Shell
406 0 2 -
V2 Commodore AMIGA USB-C Power Sink Delivery High Efficiency Supply Triple Output 5V ±12V OLED display ATARI compatible shark 100W
1178 4 2 -
How to measure weight with Load Cell and HX711
725 0 3