Raspberry pi Buzzer

raspberry_pi_buzzer

Raspberry pi Buzzer

Welcome To Raspberry pi Hack series. In this video I will show you how to control Buzzer with Raspberry pi.

 

    Things you will need for this Project:

  • Raspberry pi B or B+
  • A Buzzer (5V)
  • Two jumper wire

Python Source code buzzer.py:

import time
import RPi.GPIO as gpio

gpio.setwarnings(False)
gpio.setmode(gpio.BOARD)
gpio.setup(7,gpio.OUT)

try:
    while True:
        gpio.output(7,0)
        time.sleep(.3)
        gpio.output(7,1)
        time.sleep(.3)
except KeyboardInterrupt:
    gpio.cleanup()
    exit

Watch the Full video for detail Explanation

Plz Share Share on FacebookShare on Google+Share on LinkedInTweet about this on TwitterEmail this to someoneShare on RedditShare on TumblrDigg thisBuffer this pagePrint this pagePin on PinterestShare on StumbleUponFlattr the author
Bookmark the permalink.

One Comment

  1. Raspberry Pi Morse Code

Leave a Reply

Your email address will not be published. Required fields are marked *