Portfolio homeFlagship 01 · Transducer array

40 kHz transducer array & 2D imager

The complete technical record: split-board mixed-signal hardware, true-time-delay steering, measured timing, real scans, reconstruction settings, limitations and bench findings.

Interactive orientation

See the scan loop before the measurements

This browser instrument is explicitly simulated. The detailed record below separates it from the real hardware, measured plots and captured images.

SECTOR SCAN · 40 kHz · 8 TX / 1 RXSIMULATED · IDEAL λ/2SCANNING
Steer θ+0.0°
Δτ / element0.00 µs
ApertureFULL8
Objects0
DETECTION LOG
    A browser simulation of the imager's scan loop, labelled SIMULATED. It sweeps ±45° in 0.5° steps (181 beams) on an ideal λ/2 array; the real imager sweeps ±15° (61 beams, dashed wedge), and Fig. 4 shows why. Each 8-cycle 40 kHz burst returns the echo trace underneath, and a threshold detector (noise floor plus margin, three consecutive samples) boxes each object. Targets appear and move at random.
    Research

    Low-cost ultrasonic phased-array imaging

    2025 – present · Undergraduate research supervised by M. M. Haque, Assistant Professor, Dept. of EEE, JSTU

    An air-coupled 40 kHz imager built from off-the-shelf parts. Eight transmitters at 17 mm pitch (a 119 mm aperture) steer a beam electronically, one TCT40-16R receiver listens, and a sweep of angles becomes a 2D image. The question behind it: how far can careful hardware and signal processing push very low-cost transducers?

    • Designed and built the transmit and receive electronics: MOSFET-driven transmit channels and TL072-based receive conditioning, on physically split boards with a star ground.
    • Implemented cycle-accurate true-time-delay (TTD) transmit beamforming under FreeRTOS with full-8, left-4 and right-4 sub-apertures. Measured firing delays follow the schedule with 30.1 ns RMSE (Fig. 3a).
    • Built Python workflows for raw-waveform capture, metadata, quality control and plotting.
    • Analysed multi-channel datasets for phase and amplitude consistency and characterised a systematic time-of-flight offset.
    • Studied target localisation, grating-lobe suppression and 2D image formation under severe spatial-sampling limits.
    Fig. 1

    Signal chain

    TX SECTIONRX SECTIONPCPython · ProcessingESP32FreeRTOStrue-time-delayTX schedulerUSB · CSV8 × MOSFET driversone per element8 × 40 kHz transmittersFULL8 · LEFT4 · RIGHT4GPIOdriveTargetreflector in air8-cycle burstechoMCP300810-bit ADCEnvelopedetectorDC-bias fault fixedTL072conditioningRX transducerTCT40-16RSPISplit TX and RX boards · star ground · 17 mm pitch, 119 mm aperture
    PCPython · ProcessingUSB · CSVESP32 · FreeRTOStrue-time-delay TX schedulerTX SECTIONGPIO8 × MOSFET driversone per elementdrive8 × 40 kHz transmittersFULL8 · LEFT4 · RIGHT4MCP300810-bit ADCSPIRX SECTIONEnvelope detectorDC-bias fault fixedTL072conditioningRX transducerTCT40-16RTargetreflector in air8-cycle burstechoSplit TX and RX boards · star ground · 17 mm pitch

    The ESP32 sets each channel's firing time, the burst reflects off the target, and the echo comes back through a receive chain on its own board. The highlighted stage is where the DC-bias fault in the bench notes was found and fixed.

    Fig. 2a. The hardware: transmit board with eight transducers and MOSFET drivers, and the separate receive board in front.
    Fig. 2b. A real image from my imaging tool: ±15° sweep in 0.5° steps, target at a known 150 cm, peak found at −13.5°, 156.5 cm.
    Fig. 2c. Cardboard target at 75 cm in front of a flat wall, low noise. 1° steps, 30 ms receive window (up to 5.2 m). The tool placed the peak at −9.0°, 88.9 cm.
    Fig. 2d. Cardboard target at 200 cm with the wall behind it, moderate noise. 1° steps, 25 ms receive window (up to 4.3 m). The tool placed the peak at 8.0°, 205.9 cm.
    Fig. 3

    Measured on the bench

    a. Transmit timing. Measured relative firing delays against the true-time-delay schedule. Fit: y = 1.000217x + 0.0121 µs, R² = 0.9999995, RMSE 30.1 ns.
    b. TX1 ranging. TX1 alone, after filtering: 26 bursts at a known 54 cm, mean 54.00 cm, SD 0.251 cm.
    c. Steering sweep. Median echo peak against electronic steering angle, recorded at yaw −10°, 0° and +10°. Dashed lines: ±30.7°, where the broadside grating lobes of the 17 mm array sit (Fig. 4).
    d. Four materials at 50 cm. Median band-passed echo and analytic-signal envelope for glass (n = 10), plastic (n = 20), wall (n = 20), wood (n = 20), for the material-classification study.

    All four plots are measurements from the real 8 TX / 1 RX array. A separate raw-waveform audit at 50.0 cm (4 sessions, 2,170 captures over 31 electronic angles from −15° to +15°, 10–20 repeats per angle) measured 24.7–38.4 dB mean echo SNR and a repeatable uncorrected range bias of +12.68 ± 0.54 cm.

    Fig. 4

    Beam-steering explorer: grating lobes limit the sweep to about ±15°

    +10.0°
    Element pitch
    Transmit aperture
    Wavelength λ
    8.67 mm
    Pitch d
    17.0 mm · 1.96 λ
    Beam, −3 dB width
    3.3° at +10.0°
    Worst grating lobe
    −3.3 dB at −19.5°
    Largest clean sweep
    ±14.8°
    Delay step Δτ
    8.51 µs
    0 dB−10−20−30−90°−60°−30°0°+30°+60°+90°−3.3 dB−16.7 dB−26.8 dB

    Firing delay per element, µs
    050100150200E1firstE2E3E4E5E6E7E859.6 µs
    Show the numbers
    ElementFires at
    E10.00 µs
    E28.51 µs
    E317.03 µs
    E425.54 µs
    E534.05 µs
    E642.57 µs
    E751.08 µs
    E859.59 µs
    LobeAngleLevel vs beam
    Beam+10.0°0.0 dB
    Grating−19.5°−3.3 dB
    Grating−58.0°−16.7 dB
    Grating+45.0°−26.8 dB

    Computed live from c = 346.75 m/s and f = 40 kHz, the values in my imaging tool. Each element fires τn = n·d·sin θ₀ / c after the first. Grating lobes sit at sin θ = sin θ₀ ± m·λ/d. With the real pitch d = 17 mm = 1.96 λ they exist even at broadside, at ±30.7° (the dashed lines in the measured sweep, Fig. 3c). Keeping them out of a symmetric sector needs sin θmax ≤ λ/2d, so θmax = 14.8°, and the imager's ±15° sweep sits right at that limit: steered to ±15°, the grating lobe falls near ∓14.5°, just inside the window, and is about as strong as the beam. Levels are relative to the steered beam. Element pattern: circular piston with an assumed 8 mm radius (16 mm cans), so lobe levels are model values.

    Table 1

    Acquisition settings and what they give

    ParameterSettingGives
    Array8 TX at 17 mm pitch, 1 RX119 mm aperture; broadside grating lobes at ±30.7°
    Carrier, sound speed40 kHz, 346.75 m/sλ = c/f = 8.67 mm
    Burst8 cycles = 200 µsaxial resolution ≈ 3.5 cm
    Sweep−15° to +15°, 0.5° steps61 angles × 3 apertures = 183 records
    RX blanking500 µsblind zone ≈ 8.7 cm
    RX window15 msmax range ≈ 2.6 m, 300 bins
    Range bin50 µs8.7 mm per bin
    Detectionnoise + 10 LSB, 3 consecutive samplesignores runs under 3 bins (2.6 cm)
    TX settle30 msround trip to 5.2 m
    ADCMCP3008, differential10-bit samples over SPI
    Display−30 dB floor30 dB image dynamic range

    Settings read from the imaging tool in Fig. 2b. Ranges use r = c·t/2 for the round trip.

    Pipeline

    How an image is formed

    1. Capture backgroundSweep the empty scene
    2. Capture targetSame sweep with the target in place
    3. NormaliseRemove the background response
    4. Combine aperturesFULL8, LEFT4 and RIGHT4 sweeps
    5. CompressLog scale with a −30 dB floor
    6. RenderSector image with depth and lateral axes
    Fig. 5

    Anatomy of one ping, from the tool settings

    A · FIRST 600 µs · STEERED TO −13.5°8 cycles = 200 µsE1E2E3E4E5E6E7E8E8 fires first;each next element11.4 µs later(Δτ, d = 17 mm)RXblanked 500 µs (first 8.7 cm)listening0100200300400500600time, µsB · ONE PING, 0 TO 15 ms0 m0.51.01.52.02.5 mTX burst, 200 µsRX window 15 ms150 cm → 8.65 ms156.5 cm → 9.03 ms051015 msZOOM 8.5 TO 9.2 ms · TICKS: 50 µs BINS375 µs = 6.5 cm = 7.5 bins3 bins8.58.78.99.1 ms

    Drawn from the settings in Table 1 and the Fig. 2b result; this is not a scope capture. A: steered to −13.5°, the elements fire 11.4 µs apart (d = 17 mm, as in Fig. 4), each for 8 cycles, and the receiver ignores the first 500 µs. B: an echo from the known 150 cm should arrive at 8.65 ms (t = 2r/c). The imager placed the target at 156.5 cm, which is 9.03 ms. The 375 µs difference is 7.5 range bins, so bin quantisation cannot explain it. The short bracket after the echo marks the 3 bins the detector needs above threshold.

    Bench notes

    Three findings from the bench

    Receive chain · fault fixed

    Lost receive dynamic range

    Problem
    Receive dynamic range was reduced.
    Cause
    A DC-bias fault in the envelope-detector chain.
    Fix
    Isolated the DC path with a series capacitor and re-selected the divider resistors.
    Result
    Receive dynamic range restored.
    Layout · design choice

    Keeping transmit switching out of the receiver

    Why
    Eight switched MOSFET channels sit next to a sensitive TL072 front end, and crosstalk can couple both acoustically and electrically.
    Design
    Transmit and receive on physically separate boards with a star ground.
    Calibration · offset characterised

    A repeatable range offset

    Problem
    A target at a known 150 cm imaged at 156.5 cm (Fig. 2b).
    Finding
    A systematic time-of-flight offset: 6.5 cm of range is 375 µs of round-trip time, or 7.5 range bins (Fig. 5). The raw-waveform audit at 50 cm measured +12.68 ± 0.54 cm, uncorrected.
    Next
    Define the timing origin and the bistatic TX–RX path, then apply the correction. Fig. 2b was captured with the tool's TOF offset at 0 µs, so it shows the uncorrected reading.
    Channels
    Per-channel analysis found TX1 the most accurate: after filtering it read a known 54 cm as 54.00 cm, SD 0.251 cm over 26 bursts (Fig. 3b).