Skip to content
International Shipping
Wish Lists Cart
0 items

#13 Buzz Wire Game Project With PicoBricks

16 Nov 2023
#13 Buzz Wire Game Project With PicoBricks
How about making a game with your Raspberry Pi or Arduino? In this article you can find out how to make a buzz wire game, the necessary materials, diagram and step by step instructions.
Projects don’t always have to be about solving problems and making things easier. You can also prepare projects to have fun and develop yourself. Attention and concentration are traits that many people want to develop. The applications that we can do around these are quite interesting. How about making Buzz Wire Game with PicoBricks?


You must have heard the expression that computers work with 0s and 1s. 0 represents the absence of electricity and 1 represents its presence. 0 and 1’s combine to form meaningful data. In electronic systems, 0s and 1s can be used to directly control the system. Is the door closed or not? Is the light on or off? Is the irrigation system on or not? In order to obtain such information, a status check is carried out. 

In this project, we will electronically make an attention and concentration developer Buzz Wire Game. It will use a conductor wire, the buzzer,  and the LED module with PicoBricks. While preparing this project, you will learn an input technique that is not a button but will be used like a button.

Details and Algorithm

The objective of the game is to move a cable looped around another one, without touching it.

Due to the conductivity of the cables, when they touch each other, they will close the circuit and cause a sound to be emitted.

The player will be asked to press the button to start the game. We reset the timer after the user presses the button.

Then we will set the conductor wire connected to the GPIO1 pin to HIGH status. One end of the cable held by the player will be connected to the GND pin on the PicoBricks. If the player touches the jumper cable in his hand to the conductive wire, the GPIO1 pin will ground and drop to LOW status. PicoBricks will detect this and give an audible and written warning.

Then, it will announce that the game is over, and there will be feedback with light, text, and audio. The elapsed time will be shown on the OLED screen in milliseconds. After 5 seconds, the player will be prompted to press the button to restart.


1X PicoBricks
1X 15-20 cm conductive wire with a thickness of 0.8 mm
2X Male-Male Jumper Cables

Wiring Diagram

You can code and run Picobricks’ modules without wiring. If you are going to use the modules by separating them from the board, you should make the module connections with grove cables.

Construction Stages of the Project

Along with the PicoBricks base kit,

1: 2 20 cm male-male jumper cables. One end of the cable to be attached to the GND will be stripped 4-5 cm and made into a ring.

2: 15-20 cm conductive wire with a thickness of 0.8 mm. Prepare your materials.

Bend the conductor wire on the protoboard as you wish and pass it through the holes, before passing one end, you must pass the male end, which is connected to the GND pin on the PicoBoard, the other end of the cable you have made into a ring.

3: Conductor Wire

4: Jumper cable with one end connected to the GND pin with a looped end.

5: One end of the jumper cable, which has both male ends, into the hole right next to the end of the conductive wire you placed on the protoboard

6: Twist the end of the jumper wire and the end of the conductor wire together under the protoboard.

7: Bend the other end of the conductor wire placed on the protoboard so that it does not come out.



8: Connect the other male end of the jumper cable that you wrapped around the end of the conductor wire in step 6 to the pin no. GPIO1 on the Picoboard

If you have completed the installation, you can start the game after installing the code. Have fun. 

MicroBlocks Codes of the PicoBricks

You can access the Microblocks codes of the project by dragging the image to the Microblocks Run tab or click the button.


Microblocks Run Tab

MicroPython Codes of the PicoBricks


from machine import Pin,I2C, Timer #to access the hardware on the pico
from picobricks importSSD1306_I2C #OLED Screen Library
from utime import sleep # time library

#OLED Screen Settings

sda=machine.Pin(4)#initialize digital pin 4 and 5as an OUTPUTforOLED Communication
i2c=machine.I2C(0,sda=sda, scl=scl, freq=1000000)
oled =SSD1306_I2C(WIDTH,HEIGHT, i2c)

wire=Pin(1,Pin.OUT)#initialize digital pin 1as an OUTPUT
led =Pin(7,Pin.OUT)#initialize digital pin 7 and 5as an OUTPUTforLED
buzzer=Pin(20, Pin.OUT)#initialize digital pin 20as an OUTPUTfor Buzzer
button=Pin(10,Pin.IN,Pin.PULL_DOWN)#initialize digital pin 10as an INPUTfor button
endtime=0while True:
    oled.text("Press the button",0,17)
    oled.text("TO START!",25,35)
    #When button is '0',OLED says 'GAME STARTED'while button.value()==0:print("press the button")
     #When wire is '1',OLED says 'GAME OVER'while wire.value()==1:print("Started")
    endtime=utime.ticks_diff(utime.ticks_ms(), timer_start)print(endtime)
    oled.text("GAME OVER!",25,35)
    oled.text(endtime +"ms",25,45)
    led.high()#LED On
    buzzer.high()#Buzzer On

Arduino C Codes of the PicoBricks


#include "ACROBOTIC_SSD1306.h"

int Time=0;
unsigned long Old_Time=0;voidsetup(){// put your setup code here, to run once:pinMode(20,OUTPUT);pinMode(7,OUTPUT);pinMode(1,OUTPUT);pinMode(10,INPUT);



}voidloop(){// put your main code here, to run repeatedly:digitalWrite(7,LOW);

  oled.putString("BUZZ WIRE GAME");
  oled.putString("Press Button");
  oled.putString("TO START!");while(!(digitalRead(10)==1)){}



  oled.putString("GAME OVER");


GitHub Project Page

Prev Post
Next Post

Thanks for subscribing!

This email has been registered!

Shop the look
Choose Options

Edit Option

Have Questions?

Back In Stock Notification


Product SKUDescription Collection Availability Product Type Other Details

Terms & Conditions

What is Lorem Ipsum? Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum. Why do we use it? It is a long established fact that a reader will be distracted by the readable content of a page when looking at its layout. The point of using Lorem Ipsum is that it has a more-or-less normal distribution of letters, as opposed to using 'Content here, content here', making it look like readable English. Many desktop publishing packages and web page editors now use Lorem Ipsum as their default model text, and a search for 'lorem ipsum' will uncover many web sites still in their infancy. Various versions have evolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).
this is just a warning
Shopping Cart
0 items