This was inside the bill of a baseball cap with the word โMARINESโ on the front. I tried changing the batteries, but it doesnโt seem to be doing anything. Does anyone know what this is?
It has a button on one side. But new batteries didnโt reveal itโs purpose. Iโm thinking itโs too corroded now to work. I know that round thing is a simple speaker or buzzer, but I donโt know (a) what sound itโs intended to make and (b) why it was sewn into the bill of a baseball cap.
Internals, image 1:

Internals, image 2:

External, backside:

Cap pictures:


Edit: added images of the internals.
Edit 2: added a small description of the button, and why I didnโt just test it with new batteries (I did, but it doesnโt work). So, basically, all I know.
Edit 3: added a picture of the backside of the casing.
Edit 4: Adding pictures of the cap itself.
Thank you, everyone, for all of your input. If Iโm ever able to get this thing working, Iโll add a video of the device and itโs audio.
Looks like one of those recorded message things you find inside greeting cards - the glob of stuff below the black epoxy blob (the ic), looks like a badly corroded button.
Can try cleaning the button up a bit, or removing it entirely, and bridge the connections beneath it.
It seems to run on some form of electricity!
Iโve designed similar devices.
The epoxy blob likely plays factory-set chiptunes out the piezo element.
Itโs unlikely to play voices, just tones. The ones that record arbitrary audio use specific ICs from China, none of which I see there. Also those work with small but standard speakers, not generally piezo elements.
As a small window into how these are designed, a lot of the engineering goes into reducing power consumption and parts count. The button might for example drop the pin of an MCU low to trigger an interrupt that wakes it from deep sleep. Then it plays a tune stored in eeprom (more common) or internal flash (less common). Usually the chips are one-time-programmable and cost under 0.10$!
That makes perfect sense. Thank you!!
There is no microchip which means it canโt be a listening/recording device. Seeing as the circuit is very simple, my bets would be on it being some kind of oscillator, as I canโt see what else you could build using only two components. An oscillator circuit produces a single unchanging, constant tone. I know that circuits making high pitched tones are used to repel moles (in gardens) and teenagers (in shopping centers). I guess they could be used to repel, like, moths as well?
Edit: didnโt notice the blank epoxy blob. Yeah thatโs a microchip
From the other comments, it could be a novelty hat that speaks or makes a sound effect when the button is pressed. Iโm curious to find out what the original sound would have been!
Quick question: Where does the battery go? Is it the corroded part in the first internals image, or was that the button?
It takes 2 button batteries (LR54) under the two metal straps on both sides of the button (center bubble).
Ah hah, I see it now
Batteries go in the two steel rectangular holders. The corroded thing is the button (itโs a flexible sheet of metal held in place by plastic) The golden disk is a piezoelectric buzzer (think musical greeting cards, which look just like this does inside)
โSemper fiโ maybe?
Makes sense
If I had to guess itโs a speaker of some kind.
Well yes but where would the signal come from?
Signal comes from the โchip-on-boardโ under the black epoxy blob. Looks like a circuit for simple sample or electronic tune playback. You press the (now damaged) button, and it plays a tune or sound sample(s) out of the speaker.
Can you post whatโs on the label of the cap? I think that will help tell us who made the item. I couldnโt find anything searching the number on the board with the company name on the plastic.
Since it says Marines, Iโm thinking this is some novelty item that might play Sousaโs Semper Fidelis.
There is no label on the cap. The adjustment strap, though, is plastic and says โMADE IN USAโ.
Is this one of those mosquito repellent noise makers?







