An open-source compendium

Nature’s physics, explained.

How does a bat see in the dark? Why does a shrimp’s snap flash with light? WildBionics explains physics, mathematics and computer science through animals, plants and the living planet – and shows how engineers borrow nature’s solutions.

Diagram of bat echolocation A bat emits sound waves towards a moth. Echo waves travel back. The echo delay of 17.5 milliseconds corresponds to a distance of about 3 metres. An inset spectrogram shows the call sweeping down from 80 to 40 kilohertz. d = c·Δt / 2 ≈ 3.0 m Call · FM 80→40 kHz Echo · Δt = 17.5 ms Moth Spectrogram · kHz 80 40 0 3 ms
Fig. 1 Echolocation. A bat sends out a frequency-modulated call; the delay of the echo reveals how far away the moth is.

Explained through

  • Physics
  • Mathematics
  • Computer science
  • Chemistry

The lens

One phenomenon. Three ways of seeing it.

Every WildBionics article can be read through different lenses. Switch between them to follow the same bat hunt as a physicist, a mathematician and a programmer would.

Acoustics · Doppler effect

Hearing speed

A bat flying towards a moth hears the echo at a higher pitch than the call it sent. The size of this Doppler shift tells it how fast it is closing in. Horseshoe bats even lower their call in flight, so that the echo always lands in their most sensitive band of hearing.

Δf ≈ 2 v f0c

At v = 5 m/s and f0 = 50 kHz, the echo returns about 1.5 kHz higher.

Doppler effect of a flying bat Wavefronts bunch up ahead of the moving bat and spread out behind it. v Behind: stretched · lower f Ahead: compressed · higher f

Geometry · Trigonometry

Measuring distance with time

Sound travels at about 343 m/s in air. Halve the round-trip time of the echo and you have the distance. The tiny difference in arrival time between the left and the right ear adds the direction – two measurements, one position.

d = c · Δt2 θ = arcsin (c · Δτb)

An echo after 17.5 ms puts the moth 3.0 m away. Δτ: time difference between the ears, b: distance between the ears.

Geometry of echo ranging A right triangle from the bat to the moth with distance d and angle theta, above a timeline showing the call and the echo 17.5 milliseconds later. θ d = c·Δt / 2 t Δt = 17.5 ms Call Echo

Signal processing · Sonar

From chirp to code

Autonomous drones and parking sensors use the same trick. A matched filter slides the known chirp along the recording; the peak of the cross-correlation marks the echo – robust even in noise.

sonar.pyPython · NumPy
import numpy as np

SPEED_OF_SOUND = 343.0  # m/s, air at 20 °C

def echo_distance(chirp, recording, sample_rate):
    """Find the echo with a matched filter; return metres."""
    corr = np.correlate(recording, chirp, mode="valid")
    delay = np.argmax(np.abs(corr)) / sample_rate  # round trip, s
    return SPEED_OF_SOUND * delay / 2

The ontology

Four dimensions to map the living world

Every article is a node in a knowledge graph. Follow a phenomenon through time, across habitats, down to the physical rules behind it – and out into the sciences it inspires.

  1. Time

    Evolution & geology

    From the Big Bang to humanoid robots: when did a solution appear, and how long did nature refine it?

    • Cambrian
    • Cenozoic
    • Modern era
  2. Space

    Habitats & scales

    From the microcosm to the stratosphere: where does a phenomenon happen, and at what scale?

    • Deep sea
    • Desert
    • Microcosm
  3. Rules

    The laws of physics

    Mechanics, thermodynamics, optics, acoustics, electromagnetism: the rules every organism has to play by.

    • Acoustics
    • Fluid dynamics
    • Optics
  4. Adjacent sciences

    Maths, CS & engineering

    Where the insight leads: mathematics, computer science, medical technology, materials science and bionics.

    • Bionics
    • Materials
    • AI
Radius of a cavitation bubble over time The bubble radius rises after the snap, then drops steeply to zero at the collapse, where a flash and a shock wave occur, followed by two small rebounds. Radius R Time t Snap Collapse Vapour bubble grows Flash & shock wave
Fig. 2 Life of a cavitation bubble: rapid growth, violent collapse, weak rebounds. The whole cycle takes less than a millisecond.

Flagship article · in preparation

The pistol shrimp and the physics of cavitation

With a single snap of its oversized claw, a shrimp just a few centimetres long shoots out a jet of water so fast that the pressure behind it drops below the vapour pressure. A bubble forms and collapses – and for a split second its core reaches thousands of kelvin and emits a flash of light.

speed of the water jet
25 m/s
inside the collapsing bubble
≥ 5,000 K
body length of the shrimp
3–5 cm
  • Cenozoic
  • Coasts & reefs
  • Thermodynamics
  • Fluid dynamics
  • Medical technology

Sources

  1. Versluis, M., Schmitz, B., von der Heydt, A. & Lohse, D. (2000). How snapping shrimp snap: through cavitating bubbles. Science 289, 2114–2117. doi:10.1126/science.289.5487.2114
  2. Lohse, D., Schmitz, B. & Versluis, M. (2001). Snapping shrimp make flashing bubbles. Nature 413, 477–478. doi:10.1038/35097152
Follow the progress on GitHub

Open source

Built in the open. Written by curious minds.

WildBionics lives on GitHub. Everything – articles, translations, code – is open for you to read, reuse and improve.

  • Write an article

    Know a phenomenon that deserves the lens treatment? Propose it, or draft it in Markdown.

  • Translate

    Help bring WildBionics to more languages. English and German are just the beginning.

  • Improve the site

    Accessibility, the knowledge graph, visualisations: the code is MIT-licensed.