Aim: The aim of project is to ask the user to enter a number and a buzzer should beep according to the number of times inputted by the user.

Hardware and software:

  • Raspberry Pi 3
  • Breadboard
  • Buzzer
  • 1 green male to female wire
  • 1 black male to female wire
  • 1 black male to male wire
  • Python 3

The buzzer(positive side) was connected to the breadboard to a GPIO port using the green wire. Then the negative wire(black male to female) was connected to a ground pin and the buzzer was connected to a negative rail using the black female to female wire.

GPIO Port used: 27

20170328_152737.jpg

diagram pic.JPG

 

code:code.JPG

 

Advertisements