Audio amplifier for low amplitude sound featuring custom PCB, bass and volume control
Loading README and project media…
2 years ago I developed a nasty infection in my sinus. It took 3 rounds of anti-biotics to finally rid myself of it. However, the damage it did left me with a peculiar situation. I can now hear my heartbeat in my left year. It comes and goes, more often when I have worked out a bit. Initially I found it annoying, especially when falling asleep but overtime I found it quite soothing especially when anxious. So I figured I could make a simple digital stethoscope for others to use as well. Something that you could carry with you easily. I've never worked with a purely analog circuit before so this would be a good way to learn about it.
Board Layout

Schematic Layout


A piezoelectric sensor uses the piezoelectric effect to generate current at its terminals. Basically, when exposed to even the slightest mechanical stress, it generates a signal in proportion to the force on it. This makes it well suited as a surface placed microphone. I found that when I placed my device on a table, it could sometimes pickup conversations being had in the same room. The fact that it is incredibly thin and comes in various sizes makes it easy to build a simple case for as well.
I placed a 10k ohm potentiometer to attenuate the signal for volume control.
An audio amplifier is an opamp however the key difference being that it can drive far more current into low resistance loads like headphones. Basically it's output power is
a lot highter.
I used the LM386 low voltage audio amplifier. In fact, the reasons I used it was that it is very simple to interface and that there are countless hobbyist projects based on it. Another advantage is that it was built for low power battery operated devices.
By adjusting external resistors at certain pins, you can change the gain as well as introduce a kind of base boost. The circuit example my design is based on is given in the typical application section of the datasheet [Section 9.2.5]. I used a 5k and 10k ohm potentiometers for amplifier and base boost control.

A voltage follower is an opamp circuit that is used to act as a buffer between 2 sections of a circuit to isolate them from one another. It is also known as a unity gain amplifier because its gain is 1. Thus the voltage signal at the input is replecated at the output.
My reasoning for using this was that I didn't want changes in impedance or capacitance at the Piezeoelectric sensors end to affect that audio amplifier.
I chose theLM158 mostly because it was lying around. At the time I figured it might not work so just in case I placed a pad for a 0 ohm resistor between the output of sensor and input of the audio amplifier, thus avoiding the voltage follower completely. I deliberately chose to make a voltage follower instead of using a buffer IC out of curiosity.

With any circuit, decoupling and by-pass capacitors are essential to smoothen out noisy signals are shunt away the noise. My biggest concern was noise from the power supply, espeically as the battery got more discharged. So I placed 3 capacitors near the power supply. 100uf filters low frequency noise, 0.1uf filters high frequency noise and 0.47 uf for good measure.
At every power pin on each IC, I placed 0.1uf capacitor. The closer the capacitor to the pin, the better.
The output jack is a standard 3.5mm female header for your every day headphones. The circuit only serves mono so I shorted the L and R pins.
Soldering SMD components

Working Protoype [Front]
Note: I made a dome shaped handle for the piezoelectric sensor out of hot glue. Eventually I chose not to 3D print the handle as I abandoned this version of the project

Working Protoype [Side]

The problem with analog circuits is that testing on a breadboard is very difficult. Noise, loose connections etc make getting any reasonable performance difficult. I did build this circuit on a zero board but even that was susceptible to Noise. I placed some insulation on the soldered joints but the performance was still mediocre. I made the decision to go ahead and test the design on an actual PCB. Here is what I encountered:
I have plans for a version 2.0 of this project. Thats the reason I decided not to spend time and money on 3D printing a case.
Thats the plan so far. Look out for a version 2.0 soon!
Also for those interested, I found an excellent resource for a circuit similar to this here.