HomeEcology & Conservation BiologyBat Doppler Shift: Wavefront-Timing Model

Bat Doppler Shift: Wavefront-Timing Model

Interactive 2D simulation of bat echolocation that measures the Doppler shift by literally timing expanding sound wavefronts, instead of evaluating the algebraic Doppler formula: watch call and echo ripples compress and stretch as a horseshoe bat and a moth close in, with live emitted/measured-echo frequencies and Doppler Shift Compensation.

Ecology & Conservation Biology2DModerate60 FPS📱 Mobile-adapted⇄ 3D version
2d-bat-echolocation-doppler-shift-processing ↗ Open standalone

The 3D version of this sim computes the Doppler-shifted echo frequency by plugging bat and target velocities straight into the classical two-leg Doppler formula. This 2D companion instead simulates the actual sound field: every call the bat emits spawns a circular wavefront that expands outward at the true speed of sound through still air, oblivious to how fast the bat itself is moving. Because the bat keeps moving after each call, successive wavefronts are emitted from different points in space, so they arrive at the moth compressed together (if the bat is closing in) or stretched apart (if it's falling behind) — the moth's own position becomes a moving reflector that sends a fresh echo wavefront racing back to the bat. The bat's live "measured echo" readout comes from timestamping when those echo wavefronts physically arrive, not from evaluating an equation, and it reproduces the same closed-form Doppler result the 3D sim assumes — this time earned from geometry.

⚙ Under the hood

Interactive 2D simulation of CF-FM bat echolocation that measures the Doppler shift by literally timing expanding circular sound wavefronts instead of evaluating the algebraic Doppler formula: watch call and echo ripples compress and stretch as a horseshoe bat and a moth close in, with live emitted/measured-echo frequencies derived from wave arrival timing and Doppler Shift Compensation.

echolocationdoppler-effectbatsbioacousticssound-wavessensory-biologywave-simulation

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)