Train Horn calculators

By Train Horn

View on Snapcraft.io
Version1.0.0
Revision3
Size0.4 MB
LicenseMIT
Confinementstrict
Basecore24
CategoriesUtilities

Train horn setup calculators - dB at distance, tank time, wire size


trainhorn is a small command-line tool for planning a train horn install
on a truck, car or boat. It works offline and needs no permissions.

Commands:

  • db - sound level at a distance (inverse-square law), with optional
atmospheric absorption by octave band
  • distance - how far away the level falls to a target dB
  • combine - total level of several horns sounding together
  • tank - horn time from one tank of air, and the number of full blasts
  • refill - compressor time to refill the tank (constant or linear flow)
  • wire - smallest copper AWG gauge for a voltage-drop budget
  • vdrop - voltage drop of a given AWG copper run

Examples:

 trainhorn db --source 150 --ref-ft 10 --at-ft 100
 trainhorn tank --gallons 5 --start 150 --cutoff 110 --horn-cfm 10 --blast 2
 trainhorn wire --amps 30 --length-ft 12 --volts 12


Results are free-field engineering estimates, not measurements and not
a legal noise assessment. Wire sizing checks voltage drop only.

The calculations come from the open-source trainhorn Rust crate
(MIT). Browser versions of these calculators and train horn guides are
on Train Horn, an independent reference: https://train-horn.com/

Update History

1.0.0 (3)
19 Nov 2026, 05:15 UTC

Published19 Nov 2026, 04:16 UTC

Last updated19 Nov 2026, 04:19 UTC

First seen19 Nov 2026, 05:15 UTC