Loading... Please wait...

Fish Dish Raspberry Pi LED Buzzer Board

  • Image 1
  • Image 2
  • Image 3
  • Image 4
Price:
$13.75
SKU:
PIS-FISHDISH
Brand:
Current Stock:
15


Product Description

Fish Dish Raspberry Pi LED Buzzer Board

 

Fish Dish Raspberry Pi LED Buzzer Board

 

Fish Dish Raspberry Pi LED Buzzer Board

 

Manufacturer website: http://www.pi-supply.com/product/fish-dish-raspberry-pi-led-buzzer-board/

 

Here is a short test program.
If you press the button the traffic light changes to green ans sounds the buzzer.

#!/usr/bin/python
import RPi.GPIO as GPIO
import time

LEDGPIOPin_Gruen = 4
LEDGPIOPin_Rot = 9
LEDGPIOPin_Gelb = 22
LEDGPIOPin_BUZZ = 8
LEDGPIOPin_BUTTON = 7

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)

GPIO.setup(LEDGPIOPin_Gruen, GPIO.OUT)
GPIO.setup(LEDGPIOPin_Gelb, GPIO.OUT)
GPIO.setup(LEDGPIOPin_Rot, GPIO.OUT)

GPIO.setup(LEDGPIOPin_BUZZ, GPIO.OUT)

GPIO.setup(LEDGPIOPin_BUTTON, GPIO.IN)

DELAYON = 1.0
DELAYBUZZ = 0.1
i = 0

GPIO.output(LEDGPIOPin_Rot, GPIO.HIGH)

while True:
if (GPIO.input(LEDGPIOPin_BUTTON) == True):
GPIO.output(LEDGPIOPin_Rot, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gelb, GPIO.HIGH)
time.sleep(DELAYON)
GPIO.output(LEDGPIOPin_Gelb, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gruen, GPIO.HIGH)
while i < 25:
GPIO.output(LEDGPIOPin_BUZZ, GPIO.HIGH)
time.sleep(DELAYBUZZ)
GPIO.output(LEDGPIOPin_BUZZ, GPIO.LOW)
time.sleep(DELAYBUZZ)
i += 1
i = 0
GPIO.output(LEDGPIOPin_Gruen, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gelb, GPIO.HIGH)
time.sleep(DELAYON)
GPIO.output(LEDGPIOPin_Gelb, GPIO.LOW)

GPIO.output(LEDGPIOPin_Rot, GPIO.HIGH)

- See more at: http://www.pi-supply.com/product/fish-dish-raspberry-pi-led-buzzer-board/#sthash.PVgcuNQ4.dpuf

 

Here my short test program.
If you press the button the traffic light changes to green ans sounds the buzzer.

#!/usr/bin/python
import RPi.GPIO as GPIO
import time

LEDGPIOPin_Gruen = 4
LEDGPIOPin_Rot = 9
LEDGPIOPin_Gelb = 22
LEDGPIOPin_BUZZ = 8
LEDGPIOPin_BUTTON = 7

GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)

GPIO.setup(LEDGPIOPin_Gruen, GPIO.OUT)
GPIO.setup(LEDGPIOPin_Gelb, GPIO.OUT)
GPIO.setup(LEDGPIOPin_Rot, GPIO.OUT)

GPIO.setup(LEDGPIOPin_BUZZ, GPIO.OUT)

GPIO.setup(LEDGPIOPin_BUTTON, GPIO.IN)

DELAYON = 1.0
DELAYBUZZ = 0.1
i = 0

GPIO.output(LEDGPIOPin_Rot, GPIO.HIGH)

while True:
if (GPIO.input(LEDGPIOPin_BUTTON) == True):
GPIO.output(LEDGPIOPin_Rot, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gelb, GPIO.HIGH)
time.sleep(DELAYON)
GPIO.output(LEDGPIOPin_Gelb, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gruen, GPIO.HIGH)
while i < 25:
GPIO.output(LEDGPIOPin_BUZZ, GPIO.HIGH)
time.sleep(DELAYBUZZ)
GPIO.output(LEDGPIOPin_BUZZ, GPIO.LOW)
time.sleep(DELAYBUZZ)
i += 1
i = 0
GPIO.output(LEDGPIOPin_Gruen, GPIO.LOW)

GPIO.output(LEDGPIOPin_Gelb, GPIO.HIGH)
time.sleep(DELAYON)
GPIO.output(LEDGPIOPin_Gelb, GPIO.LOW)

GPIO.output(LEDGPIOPin_Rot, GPIO.HIGH)

- See more at: http://www.pi-supply.com/product/fish-dish-raspberry-pi-led-buzzer-board/#sthash.PVgcuNQ4.dpuf
(http://kck.st/15L0dMq)

reakout board for the Raspberry Pi. I make it easy to connect electronics.

  • I’m compact. Really compact. I add less than 2mm to the height of your Raspberry Pi and 1mm to to width.
  • I have well labelled pins, grouped together logically, including GPIO, I2C, SPI, UART and power.
  • I have female headers – you can poke jumpers right in.
  • I have lots of GND and 5V pins – you need those a lot.
  • I’m easy to make. A good project to learn to solder with.
  • I’m low cost.
  • I’m fully open source hardware. Fork me, tweak me, share me.

View more info on Kickstarter here:

- See more at: http://www.pi-supply.com/product/pi-crust-easily-connect-electronics-to-your-raspberry-pi/#!prettyPhoto

reakout board for the Raspberry Pi. I make it easy to connect electronics.

  • I’m compact. Really compact. I add less than 2mm to the height of your Raspberry Pi and 1mm to to width.
  • I have well labelled pins, grouped together logically, including GPIO, I2C, SPI, UART and power.
  • I have female headers – you can poke jumpers right in.
  • I have lots of GND and 5V pins – you need those a lot.
  • I’m easy to make. A good project to learn to solder with.
  • I’m low cost.
  • I’m fully open source hardware. Fork me, tweak me, share me.

View more info on Kickstarter here:

- See more at: http://www.pi-supply.com/product/pi-crust-easily-connect-electronics-to-your-raspberry-pi/#!prettyPhoto

reakout board for the Raspberry Pi. I make it easy to connect electronics.

  • I’m compact. Really compact. I add less than 2mm to the height of your Raspberry Pi and 1mm to to width.
  • I have well labelled pins, grouped together logically, including GPIO, I2C, SPI, UART and power.
  • I have female headers – you can poke jumpers right in.
  • I have lots of GND and 5V pins – you need those a lot.
  • I’m easy to make. A good project to learn to solder with.
  • I’m low cost.
  • I’m fully open source hardware. Fork me, tweak me, share me.

View more info on Kickstarter here:

- See more at: http://www.pi-supply.com/product/pi-crust-easily-connect-electronics-to-your-raspberry-pi/#!prettyPhoto

reakout board for the Raspberry Pi. I make it easy to connect electronics.

  • I’m compact. Really compact. I add less than 2mm to the height of your Raspberry Pi and 1mm to to width.
  • I have well labelled pins, grouped together logically, including GPIO, I2C, SPI, UART and power.
  • I have female headers – you can poke jumpers right in.
  • I have lots of GND and 5V pins – you need those a lot.
  • I’m easy to make. A good project to learn to solder with.
  • I’m low cost.
  • I’m fully open source hardware. Fork me, tweak me, share me.

View more info on Kickstarter here:

- See more at: http://www.pi-supply.com/product/pi-crust-easily-connect-electronics-to-your-raspberry-pi/#!prettyPhoto

Find Similar Products by Category

Write your own product review

Product Reviews

This product hasn't received any reviews yet. Be the first to review this product!

You Recently Viewed...