How to Generate Tones With Arduino
by ahmedebeed555 in Circuits > Arduino
3009 Views, 10 Favorites, 0 Comments
How to Generate Tones With Arduino
![2222.jpg](/proxy/?url=https://content.instructables.com/FKY/NU1A/JFMTCCKY/FKYNU1AJFMTCCKY.jpg&filename=2222.jpg)
In this instructable I made a circuit that generates tone with Arduino. I really like simple and fast to build projects. Here is a simple project of this kind.
This is a show and tell project that I made exactly using documentation from Arduino website.
https://www.arduino.cc/en/Tutorial/ToneMelody?from=Tutorial.Tone
In this post, I’ve tried to generate tones with Arduino board.
Using Arduino Uno and an 8 ohm speaker, you can easily generate tones and sounds.
This Arduino sketch uses Tone function to generate sounds.
Here is my Channel on Youtube:
AeroArduino
Components and Circuit
![3333.png](/proxy/?url=https://content.instructables.com/F9T/ML84/JFMTCCKW/F9TML84JFMTCCKW.png&filename=3333.png)
![44444.png](/proxy/?url=https://content.instructables.com/FA0/QVBA/JFMTCCKV/FA0QVBAJFMTCCKV.png&filename=44444.png)
Components:
Arduino Uno or any other Arduino board will do.
eBay , Banggood , Aliexpress , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR
8 Ohm Speaker
eBay , Banggood , Aliexpress , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR
, Amazon IT , Amazon ES
Prototyping Breadboard
eBay , Banggood , Aliexpress , Amazon US , Amazon UK , Amazon CA , Amazon DE , Amazon FR
, Amazon IT , Amazon ES
Connection circuit:
The circuit is very simple.
Connect the speaker to Arduino board on PIN 8 and GND.
Simulation and Code
![55555.jpg](/proxy/?url=https://content.instructables.com/FDC/21DG/JFMTCCKL/FDC21DGJFMTCCKL.jpg&filename=55555.jpg)
![tinkercad.png](/proxy/?url=https://content.instructables.com/FOB/2Z0Y/JFMTCDB2/FOB2Z0YJFMTCDB2.png&filename=tinkercad.png)
Simulation is a great tool to test your design before actually building anything. You can also use simulation when you don't have the hardware and you need to get started.
In this simple circuit, simulation is only used for clarifying the concept and showing how it works.
There are many Arduino simulation software. In this instructable, I used Autodesk online platform Tinkercad.
You can see the circuit and start simulation. You can edit it and change the code to your needs.
https://www.tinkercad.com/things/fWelGEvtEDT-start-simulating
You can build any circuit you like and you can also browse all projects to find what you are looking for.
Here is the post on my website
http://www.ahmedebeed.com/2018/04/how-to-learn-arduino-when-you-dont-have.html
Build Real Circuit
![1111111.jpg](/proxy/?url=https://content.instructables.com/FOB/OIAW/JFMTCCL2/FOBOIAWJFMTCCL2.jpg&filename=1111111.jpg)
![Arduino Tone - Simple Audio generation](/proxy/?url=https://content.instructables.com/FWL/8H8C/JFMTCDLJ/FWL8H8CJFMTCDLJ.jpg&filename=Arduino Tone - Simple Audio generation)
Now you can build the real circuit and upload Arduino sketch to the board.
Here is the video of the circuit in action.
Here is the circuit on my website
http://www.ahmedebeed.com/2018/04/arduino-tones-how-to-easily-generate.html
You can visit my author page on Amazon. There you can find all my books and blog posts.
Thank you for reading.