PDM microphone/The jumper and the port/06. Where the sound gets in
The jumper and the port · 06 of 9

Where the sound gets in

Every sound reaches the microphone through one hole 0.5 mm across, in the lid of the small metal can on the front of the board. Keep it open, keep it dry, and keep compressed air away from it. And keep a speaker away too: a speaker near the port sends the sound straight back in and the loop howls.

One small hole

The microphone is the small metal can in the middle of the board, 2.75 × 1.85 mm. Its sound port is the hole in the can's lid, 0.5 mm across, on the front. Everything the microphone hears comes in through it, from any direction: the part is omnidirectional.

Anything over that hole muffles the lot: tape, glue, a finger, a closed case. A board mounted in a box needs a hole in the box over the can.

What the datasheet forbids

Behind the port is the microphone's membrane, and the datasheet's handling rules protect it:

  • Do not wash the board, and no ultrasonic cleaning.
  • No compressed air into the port from closer than 5 cm.
  • Never pull a vacuum on the port, such as a solder sucker held over it.

The loop a speaker makes

The loop a speaker makes
ready
Listen with
Trips round the loop
0
Level, times the first
none
Port
0.5 mm hole
Every sound goes in through one small hole. Make a sound and follow it: in at the port, multiplied in the sketch, out to whatever is listening.

The live build in this book plays the microphone back through the TK103 as you speak. With a speaker a few centimetres away, the sound it plays reaches the port again, gets multiplied again, and comes out louder than it went in. Each trip is bigger than the last until the sketch clips and the loop feeds itself: a howl.

Headphones break the loop, which is why the live build uses them. The TK100 amplifier and its speaker suit a recording played back after you stop talking, not sound played while you talk.

When it does not work

Does it matter which way the board faces?

Less than you might think. The microphone is omnidirectional: it hears about equally from every direction. What matters is that the hole in the can's lid is not covered, and that the board is not tucked behind something solid.

Can I clean the board after soldering?

Not by washing it. The datasheet rules out washing the board, ultrasonic cleaning, and blowing compressed air into the port from closer than 5 cm. Liquid or a blast of air can reach the membrane through the hole. Brush dust off the rest of the board and leave the can alone.

It howls as soon as I start the live sketch.

Something that plays sound is close to the port: a speaker, or headphones turned up and lying on the desk beside it. The microphone hears it, the sketch multiplies it and plays it again. Put the headphones on, move the speaker away, or lower GAIN.

Can I put the board in a case?

Yes, with a hole in the case over the microphone's port. A closed case, or tape or glue over the can, muffles everything the microphone hears.

Alongside this page
Where this goes next

The first sketch: a level meter in the Serial Plotter.

How loud is the room

Edit this page — content/books/pdm-microphone/where-the-sound-gets-in.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

PDM Microphone

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum