Introduction: Sound Signal Generator

So this is a sound signal generator, it is capable of generating sounds with frequencies from 100hz all the way to 3000hz. There are 2 modes on the sound generator, the first mode(Mode1) plays a scale from 100hz to 3000hz continuously going up by 100hz each interval that is 1sec. The second mode is a mode where you can change the frequency to whatever frequency you want by turning the knob on a potentiometer. Another thing about this signal generator is that you can always see the frequency of the sound the generator plays at all times on the LCD display, no matter you are in mode 1 or mode 2. To see a simulation of this project you can go here:

Step 1: Gather the Materials

Picture of Gather the Materials

So the materials you will need are:

  • An Arduino UNO board or its equivalent
  • Jumper wires
  • 2 10K potentiometer
  • 1 16X2 LCD display
  • 1 slide switch
  • 1 piezo buzzer(5V or above) or a speaker (5V or above)
  • 1 breadboard

One of the potentiometers is used to adjust the brightness of your screen and the other is used to adjust your frequency in mode 2.

The slide switch is used to swap between modes.

Step 2: Wire Your Project

Picture of Wire Your Project

So now you are ready to wire everything together using your jumper wires.

To wire your project you can use the image above as a reference.

The pins on the Arduino board that you need to use are:

Digital Pins:

  • 13
  • 12
  • 11
  • 9
  • 5
  • 4
  • 3
  • 2

Analog Pins:

  • A1

And of course Ground and 5V.

Pins 11,12,5,4,3,2 is for the LCD display.

Pin 13 is for detecting which mode you are in.

Pin 9 is for controlling the piezo.

Pin A1 is for sensing the value of the pot so it can change the hertz you hear.

Step 3: Program the Arduino Board

After you have successfully wired everything, you can start to program your Arduino board.

The code of the program can be found in the simulation in the intro or you can download it from the .ino file here.

Step 4: The End

Thanks or reading this instructable, I hope you have enjoyed it. If you have any improvements that you think I should improve on, please don't hesitate to comment below. Thank you very much.

ansue1234

Comments

DIY Hacks and How Tos (author)2016-11-13

Great tutorial. You should enter this in the Amps and Speakers contest that is currently running.

About This Instructable

423views

12favorites

License:

More by ansue1234:Sound Signal Generator
Add instructable to: