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

Bookmark the permalink.

One Comment

  1. Raspberry Pi Morse Code

Leave a Reply

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