NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

#include <Servo.h> // Include servo library

Servo servoLeft; // Declare left servo signal
Servo servoRight; // Declare right servo signal

int PIEZOPIN = 5; // Declare pin that the piezo is connected to.
// DECLARE LED PINS HERE

// One octave of notes between A4 and A5, for Piezo Greeting
int note_A4 = 440;
int note_As4 = 466; int note_Bb4 = note_As4;
int note_B4 = 494;
int note_C5 = 523;
int note_Cs5 = 554; int note_Db5 = note_Cs5;
int note_D5 = 587;
int note_Ds5 = 622; int note_Eb5 = note_Ds5;
int note_E5 = 659;
int note_F5 = 698;
int note_Fs5 = 740; int note_Gb5 = note_Fs5;
int note_G5 = 784;
int note_Gs5 = 830; int note_Ab5 = note_Gs5;

void setup()
{
pinMode(PIEZOPIN, OUTPUT); // Attach piezo to pin 5.
servoLeft.attach(13); // Attach left signal to pin 13
servoRight.attach(12); // Attach right signal to pin 12
servoLeft.writeMicroseconds(1500); // Calibrate left servo
servoRight.writeMicroseconds(1500); // Calibrate right servo
// Attach LED pins here.

}

void loop()
{
// Code for testing servos.
// Tinker with the numbers to see how they work!
// For help, visit https://learn.parallax.com/tutorials/robot/shield-bot/robotics-board-education-shield-arduino/chapter-2-shield-lights-servo-4.
//servoLeft.writeMicroseconds(1700);
//servoRight.writeMicroseconds(1300);
//delay(500);

for( int x = 0; x < 5; x++)
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_F5, 200);
delay(500);
tone(PIEZOPIN, note_G5, 200);
delay(500);
tone(PIEZOPIN, note_G5, 200);
delay(500);
tone(PIEZOPIN, note_F5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(600);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_F5, 200);
delay(500);
tone(PIEZOPIN, note_G5, 200);
delay(500);
tone(PIEZOPIN, note_G5, 200);
delay(500);
tone(PIEZOPIN, note_F5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_E5, 200);
delay(500);
tone(PIEZOPIN, note_D5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);
tone(PIEZOPIN, note_C5, 200);
delay(500);


}



     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.