Train Horn calculators (trainhorn) Package name

Install latest/stable of Train Horn calculators

Ubuntu 16.04 or later?

Make sure snap support is enabled in your Desktop store.


Install using the command line

sudo snap install trainhorn

Don't have snapd? Get set up for snaps.

Channel Version Published

Details for Train Horn calculators

Package name

  • trainhorn

License

  • MIT

Last updated

  • Today - latest/stable
  • Today - latest/edge

Source code


Report a Snap Store violation

Share this snap

Generate an embeddable card to be shared on external websites.

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/

Revision Channel Version Published Build Commit Download SBOM

The build and commit information is derived from build infrastructure records.


Install Train Horn calculators on your Linux distribution

Choose your Linux distribution to get detailed installation instructions. If yours is not shown, get more details on the installing snapd documentation.