A Programmable Speaker can play a sound or show an on-screen alert when a circuit signal meets a condition. Use chest contents to warn that Iron plates are running low, and accumulator charge to warn before a power outage. If no warning appears, check the signal, condition, and speaker power in that order.
This guide covers PC 2.0.77, the base game, normal quality, and no mods. The quantities and thresholds below are examples for testing behavior; they do not guarantee the stock or power your factory needs.
Set up sound and on-screen notifications first
- Place a Programmable Speaker and connect it to power with an electric pole.
- Open the speaker and set a Circuit condition.
- Choose the sound to play when the condition is true, and enable Play sound.
- To make the warning visible too, enable Show alert and choose an icon and a short message.
- Leave Circuit value is pitch off for an ordinary warning, and start with Allow polyphony off.
A speaker will not play a sound just because it receives a circuit signal. Without power, it cannot make a sound either, so it is an early warning while power remains—not a device that reports a power outage after it happens. In version 2.0.77, the speaker uses 2 kW.
Play an alert when chest stock falls below 100
This example monitors spare Iron plates in a wooden, Iron, or Steel chest. The red wire is a circuit connection, separate from the copper wire used to supply power.
- Connect the monitored chest and speaker with a red wire. If the wire runs farther, connect the intermediate poles with circuit wire too.
- Put Iron plates in the chest and check that the connected circuit network shows the Iron plate signal and its count.
- Set the speaker's Circuit condition to “Iron plate < 100.”
- Enable Play sound. If useful, enable Show alert and add a message such as “Iron plate stock is low.”
- Check that the speaker has power. A regular chest does not need power, and circuit wire does not carry electricity.
The condition is true with 99 Iron plates in the chest and false at 100 or more. One hundred is an example; adjust it to your needs. If you connect other chests to the same red-wire network, their stock is added together. To monitor only one chest, keep its circuit network separate.
Warn before an accumulator runs low
Accumulators charge when power production exceeds demand and discharge when demand exceeds production. When connected to a circuit, an accumulator can output its charge as an integer signal from 0 to 100. This simple warning uses signal A from one representative accumulator.
- Place an accumulator on the power network you want to monitor and power the speaker.
- In the accumulator's information panel, configure its circuit network and set its output signal to A.
- Connect the accumulator and speaker with a red wire. Circuit wire does not replace the copper power wire.
- Set the speaker condition to “A < 20.” Twenty is an example for noticing that charge is getting low; it does not guarantee a specific amount of remaining time.
- Choose sound and an on-screen alert while the speaker remains within a powered area.
The condition is true when the accumulator's charge is below 20. This is not a definitive “power will fail soon” notification. Remaining time depends on generators, consumption, the number of accumulators, and their discharge output. After the warning, keep an eye on power satisfaction and accumulator charge. If multiple accumulators send signal A to the same speaker, their values add together, so the result cannot be read as a charge percentage.
Check behavior on both sides of the threshold
These are examples for checking the comparison. Turn on sound and Show alert, and make sure the speaker has power. These are expected results from the specified comparison operators, not in-game test measurements.
| Test signal | Condition | Expected result |
|---|---|---|
| Iron plate 99 | Iron plate < 100 | True |
| Iron plate 100 | Iron plate < 100 | False |
| A = 19 | A < 20 | True |
| A = 20 | A < 20 | False |
For the stock example, change the chest count between 99 and 100 Iron plates. To test only the A boundary, disconnect the accumulator and use an independent test circuit with a Constant Combinator that sends 19 and 20. Remove the test wire afterward and reconnect the original accumulator. Do not add the test A signal to the real accumulator charge.
If it does not play or keeps playing
| Symptom | Check |
|---|---|
| Condition is true but no sound plays | Speaker power, circuit wire, connected signal, comparison condition, and Play sound |
| On-screen alert is missing | Show alert, icon, and message settings |
| It reports low stock when there is stock | Whether you are checking the right chest, item signal, and circuit wire. Check the received signal value, not just the chest contents. |
| Warning stops even though the chest is low | Whether another chest, Constant Combinator, or green wire adds a positive value for the same item |
| Accumulator value is higher than expected | Whether several accumulators sending the same signal are connected |
| The same warning sound keeps playing | Whether the condition remains true; review volume and Allow polyphony |
| No warning after the power outage | The speaker is powered from the same grid; do not rely on it to work after power is lost |
To test the speaker condition, you can create a temporary signal with sending a signal from a Constant Combinator and remove it after testing. Do not mix it into the production chest or accumulator circuit.
Sources and references
Questions and contributions
Share questions, corrections or play reports. Only approved posts for this article and language appear here.
Submit for review
Do not include personal details, passwords or private information about others. Text only. Publication and replies are not guaranteed.