edge lab LIVE! starts Tuesday in Munich. Grab a workshop seat and take home the board you build on. Code FRIEND-HACKSTER saves 20%. () Learn more!
Rohan Barnwal
Published

How To Make Buzz Wire Game with Soldering Iron Very Easily

Hi everyone this is me Rohan welcome back with another project in this project I talk about How to make buzz wire game easily

BeginnerFull instructions provided552
How To Make Buzz Wire Game with Soldering Iron Very Easily

Things used in this project

Hardware components

solder wire
×1
Arduino Mega
×1
Jumper wires (generic)
Jumper wires (generic)
×1
LED (generic)
LED (generic)
×1
1N4007 – High Voltage, High Current Rated Diode
1N4007 – High Voltage, High Current Rated Diode
×1
Buzzer
Buzzer
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Connection

Code

Code

Arduino
int wire = 2;
int led = 4;
int buzzer = 3;

void setup() {

  Serial.begin(9600);
  pinMode(led,OUTPUT);
  pinMode(buzzer,OUTPUT);
  pinMode(wire, INPUT);
  digitalWrite(led,LOW);
  digitalWrite(buzzer,LOW);
}

void loop() {

  int buttonState = digitalRead(wire);
  if(buttonState==1)
  {
    digitalWrite(led,HIGH);
     digitalWrite(buzzer,HIGH);
  }
  else{
    digitalWrite(led,HIGH);
     digitalWrite(buzzer,LOW);
  }

  Serial.println(buttonState);
  delay(1000);
         
}

Credits

Rohan Barnwal
52 projects β€’ 41 followers
Rohan Barnwal - maker, hacker, tech enthusiast. I explore new tech & find innovative solutions. See my projects on hackster.io!

Comments