Skip to content

Measuring the timing of light pulses

Kravitz Lab edited this page Jul 28, 2026 · 4 revisions

This page describes a cheap and simple device that can be attached to an oscilloscope (or patch rig, etc) to record the timing of light pulses. It won't measure quantitative mW accurately, but it can measure the timing of pulses really accurately.

It uses a BPW34 photodiode (~$2 each, widely available) connected directly to a BNC plug, with a 1KOhm resistor across the pins.
image

Soldering photos here:
image
image

You can also enclose it in a tasty case :) (TinkerCAD designs here)
image

To use, attach the device to an oscilloscope with a BNC cable, and shine your patch cord at the BPW34 photodiode.
image

Configure the ossciloscope range and scale to show your pulse. Here, we are capturing 1ms pulses from an Arduino in the blue channel, and recording light power from the BPW34 on the yellow channel. Don't worry about the amplitude - that's not accurate, but the timing of the shape is!
image

From this, we learned that ThorLabs LEDs can produce 1ms pulses with high fidelity, but they have ~50us delay. They also can't produce 0.1ms pulses accurately (or we can't measure them but either way use caution and validate if trying to make trains with sub-ms pulse widths!).


1. Getting Started and Lab Administration

Onboarding and Lab Policies

Computing, Printing, and Travel

Ordering and External Services

EHS, DCM, and Shipping


2. Animal Care and Colony Management

Animal Policies and Procedures

Weighing

Diet Nutritional Information


3. Surgical and Injection Procedures

Intracranial Surgery

Other Surgical Procedures

Intracranial and Systemic Injections

Viral Vectors


4. Physiological and Behavioral Procedures

Blood Collection

Metabolic Testing

Sensory and Pain Testing

Pharmacology and Self-Administration

Behavior Chambers


5. Molecular Biology and Histology

Molecular Biology

Histology and Immunostaining

Single-Cell Data Analysis


6. Neural Recording and Imaging

Fiber Photometry

Acquisition

Analysis

In Vivo Electrophysiology

Hardware and Preparation

Analysis

Ex Vivo Electrophysiology

Microscopy

Miniscopes

1P Imaging with Mightex OASIS


7. Behavioral Tracking and Bonsai

Bonsai Setup and Workflows

Video Tools


8. Lab-Built Devices

Arduino

FED3

Sippers

Tumble Feeder

Social Door

BEAM


9. Statistics


10. Fabrication, Maintenance, and Miscellaneous Tools

Stereotaxic Equipment

Electronics and Timing

3D Printing

Clone this wiki locally