• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Make Beep Sound in Arduino Project Upon Push Button Press

By Abhishek Ghosh June 2, 2018 12:01 pm Updated on June 2, 2018

Make Beep Sound in Arduino Project Upon Push Button Press

Advertisement

It is Practical For Many Projects Including LED Clocks. We actually expect some visual, auditory feel along with tactile feel. Normally, we create sound on Arduino in complex way as the sounds has lot of pitches. But here, we just need a simple sound, so the circuit and code is easy and ready to be adapted inside other projects. Here is How to Make Beep Sound in Arduino Project Upon Push Button Press.

 

How To Make Beep Sound in Arduino Project Upon Push Button Press

 

In this project, we will make a circuit which will play a sound using a buzzer and an LED which sound and as example of a complex project, it will light up LED when a button is pressed. For this project, we need :

Arduino UNO or similar board
Piezo Buzzer – One
LED – One
220 Ohm Resistor – One
10K Ohm Resistor – One
Pushbutton – One
Breadboard – One
Jumper Wires – Few

Advertisement

---

The circuit itself quite simple circuit to set up. Be careful with the positive and negative poles of piezo buzzer :

Make Beep Sound in Arduino Project Upon Push Button Press

Arduino has documentation on Tone :

Vim
1
https://www.arduino.cc/reference/en/language/functions/advanced-io/tone/

And slightly complex example of simple keyboard using the tone() function :

Vim
1
Simple keyboard using the tone() function

For our need, here is the code :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
int buzzerPin = 9;
int buttonPin = 7;
int ledPin = 6;
const int toneFreq = 523;
 
void setup()
{
  pinMode(buzzerPin, OUTPUT);
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
}
 
void loop()
{
  int buttonState = digitalRead(buttonPin);
  if (buttonState==LOW)
  {
    digitalWrite(ledPin, HIGH);
    tone(buzzerPin, toneFreq);
  }
  else
  {
    digitalWrite(ledPin, LOW);
    noTone(buzzerPin);
  }
}

Some years back, I kept the schematic and code (as text file) inside a directory for future in need of my project. I actually not thought of sharing it at that time. I am not sure who actually written the code. Although a small snippet is not huge matter, yet it is correct to give the reference of the person who gave some time behind it to find out. Which unfortunately I can not do now.

Tagged With Arduino beep , how to make a button make a sound on arduino , how to make buzzers go on once button is pressed in arduino , button pressed make sound arduino , How to make Arduino beep , how to make a buzzer beep when button is pushed arduino , arduino push button led buzzer , arduino button pushed make sound , arduino button Klick beep , something that make sound when press button

This Article Has Been Shared 672 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Make Beep Sound in Arduino Project Upon Push Button Press

  • DIY Basic Stand For TM1637 7 Segment LED Display Module

    Is Not It Risky To Use LED Display Unprotected? Here Is How To Build DIY Basic Stand For TM1637 7 Segment LED Display Module With Cardboard.

  • ATtiny Arduino Boards For Cost Saving Projects

    Ready to Use Cheap ATtiny Arduino Boards Available. Here is What to Know About ATtiny Arduino Boards For Cost Saving Projects Before Buying.

  • List of Electronics Prototyping & Project Materials

    Our Illustrated List of Electronics Prototyping & Project Materials is a Helpful Guide to Those Who Lacks Conventional Course on Electronics.

  • Cheap, Small Arduino Projects With ATtiny 13, ATtiny 10 (Basics)

    You Can Create Cheap, Small Arduino Projects With ATtiny 13, ATtiny 10. They cost $1 or lesser per unit and needs no external components.

  • Prototype Board : How To Use

    Prototype Board – How To Use is a Common Question. Answer Depends on Type of Prototype Board, the Need, Components and Of Course the Circuit.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (21K Followers)
  • Twitter (5.3k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Best Powerpoint Templates for Communicating IoT Concepts April 17, 2021
  • How to Build a DIY Water Level Indicator? April 16, 2021
  • How Startups Can Convince the Investors April 14, 2021
  • What to Know About the Cloud Storage Services for Smartphones April 13, 2021
  • WonderFox HD Video Converter Factory Pro Review April 10, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Make Beep Sound in Arduino Project Upon Push Button Press," in The Customize Windows, June 2, 2018, April 19, 2021, https://thecustomizewindows.com/2018/06/make-beep-sound-in-arduino-project-when-a-push-button-is-pressed/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2021 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy