Ardumotive Arduino Greek Playground
  • Home
    • About us
    • License
  • Arduino
    • Tutorials
    • Workshop
  • Raspberry Pi
  • DIY 3D Printer
  • News
    • Events >
      • Unboxing & Review
    • Blog
The 1st Arduino Playground in Greece - Open Source Hardware

Μονοτονικός ήχος

Available Languages
Picture
Picture

Εισαγωγή

Picture
Με το Grove θα μάθετε να χρησιμοποιείτε ένα μικρό μονοτονικό ηχείο, κοινώς buzzer, με το Arduino. Τέτοια ηχεία συναντάμε σε υπολογιστές, ξυπνητήρια, σε συστήματα συναγερμού ακόμα και στα πληκτρολόγια των ATMs.

Τα υλικά που θα χρειαστούμε και η σύνδεση

Για το tutorial αυτό θα χρειαστούμε:
  • Arduino UNO
  • Grove Base Shield
  • Buzzer
Picture

Ο κώδικας

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
void setup()
{
  pinMode(6, OUTPUT);
}

void loop()
{
  digitalWrite(6, HIGH);
  delay(1000);
  digitalWrite(6, LOW);
  delay(1000);
}
Κατεβάστε τον κώδικα απ' εδώ και ανοίξτε το αρχείο με το Arduino IDE.
grove-_buzzer.zip
File Size: 0 kb
File Type: zip
Download File

Συγχαρητήρια !

Picture
Μόλις ολοκληρώσατε άλλο ένα Grove tutorial και μάθατε να χρησιμοποιείτε ένα buzzer.

Αν το έκανες και εσύ και σου φάνηκε εύκολο μπορείς να μας πεις την άποψη σου εδώ κάτω στα σχόλια ! ;)

Donate us
About us
License
Cookies policy

Visit the biggest Arduino Shop in Greece!

Picture
find us on dwrean.net
find us on Codebender
find us on Instructables
Developed and designed by Vasilakis Michalis Copyright © 2013 Ardumotive All Rights Reserved
All trademarks referenced herein are properties of their
Powered by Create your own unique website with customizable templates.
Design by DivTag Templates