Pinouts
In some applications, the PC speaker is affixed directly to the computer's motherboard; in others, including the first IBM Personal Computer, the speaker is attached by wire to a connector on the motherboard. A wired PC speaker connector may have a two-, three-, or four-pin configuration, and either two or three wires. The female connector of the speaker connects to pin headers on the motherboard, which are sometimes labeled SPEAKER or SPKR.
| Pin Number | Pin Name | Pin Function |
|---|---|---|
| 1 | -SP | Speaker negative |
| 2 | None (unwired) | |
| 3 | GND | Ground |
| 4 | +SP5V | Speaker positive |
Read more about this topic: PC Speaker