Showing posts with label micro controllers. Show all posts
Showing posts with label micro controllers. Show all posts

Wednesday, October 29, 2014

Buzzer using Arduino

Buzzer using Arduino


In the Microcontrollers the one dealing with the 8051 microprocessor , collaborated with Ardiuno , did you know you could make a simple buzzer using that besides making various sound variations ( aka Tones ) ??

ARDUINO :

Arduino is a open source code and can be downloaded from here

Program :

  int i;
  void setup()
{
   pinMode(6,OUTPUT);
   Serial.begin(9600);

}

void loop()
{
   for(i=0;i<=990;i+10)
   {
     Serial.println(i);
   analogWrite(6,i);
   delay(100);
   }
}





Working :