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

  1. Place a Programmable Speaker and connect it to power with an electric pole.
  2. Open the speaker and set a Circuit condition.
  3. Choose the sound to play when the condition is true, and enable Play sound.
  4. To make the warning visible too, enable Show alert and choose an icon and a short message.
  5. 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.

  1. Connect the monitored chest and speaker with a red wire. If the wire runs farther, connect the intermediate poles with circuit wire too.
  2. Put Iron plates in the chest and check that the connected circuit network shows the Iron plate signal and its count.
  3. Set the speaker's Circuit condition to “Iron plate < 100.”
  4. Enable Play sound. If useful, enable Show alert and add a message such as “Iron plate stock is low.”
  5. 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.

  1. Place an accumulator on the power network you want to monitor and power the speaker.
  2. In the accumulator's information panel, configure its circuit network and set its output signal to A.
  3. Connect the accumulator and speaker with a red wire. Circuit wire does not replace the copper power wire.
  4. 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.
  5. 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 signalConditionExpected result
Iron plate 99Iron plate < 100True
Iron plate 100Iron plate < 100False
A = 19A < 20True
A = 20A < 20False

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

SymptomCheck
Condition is true but no sound playsSpeaker power, circuit wire, connected signal, comparison condition, and Play sound
On-screen alert is missingShow alert, icon, and message settings
It reports low stock when there is stockWhether 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 lowWhether another chest, Constant Combinator, or green wire adds a positive value for the same item
Accumulator value is higher than expectedWhether several accumulators sending the same signal are connected
The same warning sound keeps playingWhether the condition remains true; review volume and Allow polyphony
No warning after the power outageThe 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.