NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

trafik lambası kodları
int KIRMIZI=8;
int SARI=9;
int YESIL=10;
void setup() {
pinMode (YESIL, OUTPUT);
pinMode (SARI, OUTPUT);
pinMode (KIRMIZI, OUTPUT);
}

void loop() {
digitalWrite (KIRMIZI,HIGH);
digitalWrite (SARI,LOW);
digitalWrite (YESIL,LOW);
delay (10000);
digitalWrite (KIRMIZI, LOW);
digitalWrite (SARI, HIGH);
digitalWrite (YESIL, LOW);
delay (3000);
digitalWrite (KIRMIZI, LOW);
digitalWrite (SARI, LOW);
digitalWrite (YESIL, HIGH);
delay (10000);

SES KONTROLLU EKOLAYZER
//ProjeHocam - Ekolayzer Led

const byte totalLeds=11;
int incomingAudio[30]={};
int averageAudio=0;
int ticker=1;
byte peak=1;

void setup(){
for(byte i=0;i<=totalLeds;i++)
pinMode(2+i, OUTPUT); // Ledler
}

void loop(){
incomingAudio[ticker%60]=analogRead(A0); // Sensör Bağlantısı
digitalWrite(2+peak,LOW);
if(ticker%30==0){
for(byte i=0;i<30;i++)averageAudio+=incomingAudio[i];
averageAudio/=30;
for(byte i=0;i<=totalLeds;i++){
digitalWrite(2+i,LOW);
}
for(float i=0;i<=totalLeds;i++){ if(i>averageAudio/90-2)break;

if(peak<i)peak=i; digitalWrite(2+i,HIGH); } averageAudio=0; if(ticker>90*5){ticker=1;if(peak>0)peak--;}
digitalWrite(2+peak,HIGH);
}
ticker++;
}

MARİO MÜZİĞİ

/* This example uses a piezo speaker to play melodies. It sends
* a square wave of the appropriate frequency to the piezo, generating
* the corresponding tone.
*
* The calculation of the tones is made following the mathematical
* operation:
*
* timeHigh = period / 2 = 1 / (2 * toneFrequency)
*
* where the different tones are described as in the table:
*
* note frequency period timeHigh
* c 261 Hz 3830 1915
* d 294 Hz 3400 1700
* e 329 Hz 3038 1519
* f 349 Hz 2864 1432
* g 392 Hz 2550 1275
* a 440 Hz 2272 1136
* b 493 Hz 2028 1014
* C 523 Hz 1912 956
*
* http://www.arduino.cc/en/Tutorial/Melody
*/
int speakerPin = 12;
int length = 295; // the number of notes
char notes[] = "EE E CE G g C g e a b ia gEGA FG E CDb C g e a b ia gEGA FG E CDb GNFR E uaC aCD GNFR E 1 11 GNFR E uaC aCD L D C CC C CD EC ag CC C CDE CC C CD EC ag EE E CE G g C g e a b ia gEGA FG E CDb C g e a b ia gEGA FG E CDb EC g u aF Fa bAAAGFEC ag EC g u aF Fa bF FFEDCe ec "; // a space represents a rest
float beats[] = { 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, //Page 1
2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 2, 4, //Page 2
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 4, 4, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 2, //Page4
1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, //Page 5
1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1.3, 1.3, 1.3, 1.3, 1.3, 1.3, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1, 1, 1.3, 1.3, 1.3, 1, 1, 1, 1, 1, 1, 2 }; //Page 6
int tempo = 95;
void playTone(int ton1, int duration) {
for (long i = 0; i < duration * 1000L; i += ton1) {
tone(speakerPin, ton1);
delayMicroseconds(ton1);
}
noTone(speakerPin);
}
void playNote(char note, int duration) {
// c c# d d# e f f# g g# a a# b
char names[] = { ' ', '!', '2', '3', '4', '5', '6', '7', '8', '9', '0', '-', '=', 'c', 'd', 'e', 'f', 'g', 'a', 'b', 'C', 'D', 'E', 'F', 'G', 'A', 'B', 'i', 'N', 'R', 'u', '1', 'L', 'k'}; // [i = b flat] [N = G flat] [R = D#] [u = g#] [1 = C oct. 5] [L = E flat]
int tones[] = { 0, 1046, 138, 146, 155, 164, 174, 184, 195, 207, 220, 233, 246, 261, 293, 329, 349, 391, 440, 493, 523, 587, 659, 698, 783, 880, 987, 466, 740, 622, 415, 1046, 622u, 227};
// play the tone corresponding to the note name
for (int i = 0; i < 34; i++) {
if (names[i] == note) {
playTone(tones[i], duration);
}
}
}
void setup() {
pinMode(speakerPin, OUTPUT);
}
void loop() {
for (int i = 0; i < length; i++)
{
if (notes[i] == ' ')
{
delay(beats[i] * tempo); // rest
}
else
{
playNote(notes[i], beats[i] * tempo);
}
// pause between notes
delay(tempo / 2);
}
}
İSTİKLAL MARŞI
//Türkiye Cumhuriyeti İstiklal Marşı

const int buzzer = 7; // buzzer pin7 ve GND'ye bağlı

//kullanılacak notalar
int a, ad, b, c, cd, d, dd, e, f, fd, g, gd, a2, ad2, b2, c2, cd2, d2, dd2, e2, f2, fd2, g2, gd2, a3;

void setup()
{
Serial.begin(9600);
pinMode(buzzer, OUTPUT);

//////////////////////
// c = do
// cd = do diyez
// d = re
// dd = re diyez
// e = mi
// f = fa
// fd = fa diyez
// g = sol
// gd = sol diyez
// a = la
// ad = la diyez
// b = si
///////////////////////

//notalara karşılık gelen frekans değerleri
a=440;
ad=466;
b=494;

c=523;
cd=554;
d=587;
dd=622;
e=659;
f = 698;
fd = 740;
g = 784;
gd = 830;

a2 = 880;
ad2 = 932;
b2 = 988;
c2 = 1046;
cd2 = 1108;
d2 = 1174;
dd2 = 1244;
e2 = 1318;
f2 = 1396;
fd2 = 1480;
g2 = 1568;
gd2 = 1660;
a3 = 1760;


}

void loop()
{
//Korkma Sönmez Bu Şafak
tone(buzzer, c);
delay(800);
tone(buzzer, f);
delay(800);
tone(buzzer, g);
delay(800);
tone(buzzer, gd);
delay(800);
tone(buzzer, e);
delay(400);
tone(buzzer, g);
delay(200);
tone(buzzer, f);
delay(1600);
noTone(buzzer);
delay(300);
//Larda Yüzden Al Sancak
tone(buzzer, f);
delay(800);
tone(buzzer, ad2);
delay(800);
tone(buzzer, c2);
delay(800);
tone(buzzer, cd2);
delay(800);
tone(buzzer, a2);
delay(400);
tone(buzzer, c2);
delay(200);
tone(buzzer, ad2);
delay(1600);
//Sönmeden Yurdumun Üstünde Tüten En Son Ocak O Be
tone(buzzer, c2);
delay(200);
tone(buzzer, ad2);
delay(200);
tone(buzzer, c2);
delay(200);
tone(buzzer, g);
delay(400);
noTone(buzzer);
delay(100);
tone(buzzer, g);
delay(400);
tone(buzzer, ad);
delay(200);
tone(buzzer, gd);
delay(400);
tone(buzzer, e);
delay(200);
tone(buzzer, f);
delay(400);
tone(buzzer, g);
delay(200);
tone(buzzer, gd);
delay(400);
tone(buzzer, ad);
delay(200);
tone(buzzer, c2);
delay(400);
tone(buzzer, cd2);
delay(200);
tone(buzzer, dd2);
delay(400);
tone(buzzer, f2);
delay(200);
tone(buzzer, dd2);
delay(400);
//Nim Milletimin
tone(buzzer, dd);
delay(200);
tone(buzzer, d);
delay(200);
tone(buzzer, dd);
delay(200);
tone(buzzer, c2);
delay(800);
tone(buzzer, ad);
delay(800);
tone(buzzer, gd);
delay(1600);
// Yıldızıdır Parlayacak O benim
tone(buzzer, c);
delay(200);
tone(buzzer, b);
delay(200);
tone(buzzer, c);
delay(200);
tone(buzzer, g);
delay(800);
tone(buzzer, c);
delay(800);
tone(buzzer, c2);
delay(800);
tone(buzzer, ad);
delay(200);
tone(buzzer, gd);
delay(200);
tone(buzzer, g);
delay(400);
tone(buzzer, gd);
delay(200);
tone(buzzer, f);
delay(800);
//Dir O Benim Milletimindir Ancak
tone(buzzer, f2);
delay(800);
tone(buzzer, dd2);
delay(200);
tone(buzzer, cd2);
delay(400);
tone(buzzer, c2);
delay(200);
tone(buzzer, ad);
delay(400);
tone(buzzer, gd);
delay(200);
tone(buzzer, g);
delay(400);
tone(buzzer, f);
delay(200);
tone(buzzer, c2);
delay(400);
tone(buzzer, c);
delay(800);
tone(buzzer, f);
delay(1600);

/////////////ikinci kıt'a

//Çatma Kurban Olayım
tone(buzzer, c);
delay(800);
tone(buzzer, f);
delay(800);
tone(buzzer, g);
delay(800);
tone(buzzer, gd);
delay(800);
tone(buzzer, e);
delay(400);
tone(buzzer, g);
delay(200);
tone(buzzer, f);
delay(1600);
noTone(buzzer);
delay(300);
//Çehreni Ey Nazlı Hilal
tone(buzzer, f);
delay(800);
tone(buzzer, ad2);
delay(800);
tone(buzzer, c2);
delay(800);
tone(buzzer, cd2);
delay(400);
tone(buzzer, ad2);
delay(400);
tone(buzzer, a2);
delay(400);
tone(buzzer, c2);
delay(400);
tone(buzzer, ad2);
delay(800);
//Kahraman Irkıma Bir Gül Ne Bu Şiddet Bu Celal Sana
tone(buzzer, c2);
delay(200);
tone(buzzer, ad2);
delay(200);
tone(buzzer, c2);
delay(200);
tone(buzzer, g);
delay(400);
noTone(buzzer);
delay(100);
tone(buzzer, g);
delay(400);
tone(buzzer, ad);
delay(200);
tone(buzzer, gd);
delay(400);
tone(buzzer, e);
delay(200);
tone(buzzer, f);
delay(400);
tone(buzzer, g);
delay(200);
tone(buzzer, gd);
delay(400);
tone(buzzer, ad);
delay(200);
tone(buzzer, c2);
delay(400);
tone(buzzer, cd2);
delay(200);
tone(buzzer, dd2);
delay(400);
tone(buzzer, f2);
delay(200);
tone(buzzer, dd2);
delay(400);
//Olmaz Dökülen
tone(buzzer, dd);
delay(200);
tone(buzzer, d);
delay(200);
tone(buzzer, dd);
delay(200);
tone(buzzer, c2);
delay(800);
tone(buzzer, ad);
delay(800);
tone(buzzer, gd);
delay(1600);
//Kanlarımız Sonra Helal Hakkıdır
tone(buzzer, c);
delay(200);
tone(buzzer, b);
delay(200);
tone(buzzer, c);
delay(200);
tone(buzzer, g);
delay(800);
tone(buzzer, c);
delay(800);
tone(buzzer, c2);
delay(800);
tone(buzzer, ad);
delay(200);
tone(buzzer, gd);
delay(200);
tone(buzzer, g);
delay(400);
tone(buzzer, gd);
delay(200);
tone(buzzer, f);
delay(800);
//Hakk'a Tapan Milletimin İstiklal
tone(buzzer, f2);
delay(800);
tone(buzzer, dd2);
delay(200);
tone(buzzer, cd2);
delay(400);
tone(buzzer, c2);
delay(200);
tone(buzzer, ad);
delay(400);
tone(buzzer, gd);
delay(200);
tone(buzzer, g);
delay(400);
tone(buzzer, f);
delay(200);
tone(buzzer, c2);
delay(400);
tone(buzzer, c);
delay(800);
tone(buzzer, f);
delay(1600);

//Söz : Mehmet Akif Ersoy
//Beste : Osman Zeki Üngör


noTone(buzzer);
delay(300);

for(;;){} //tekrar yok
}
     
 
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.