How redteamskier/optical-data-transmitter works
This is a classroom optical data-transfer demonstration: a browser sends text or files as flashing light, an Arduino streams sensor readings, and a host decodes and prints or saves the result. The graph follows that workflow and includes the decoder’s signal-processing stages, offline replay/recording, and the documented teaching guide. Decoder internals are sampled only partially; edges for the main processing sequence rely on the README’s explicit workflow where noted.
Main entry points: optical_rx.py Live capture · Optical_Tx.html Transmit page · optical_receiver_stream.ino Sample streamer
Components 16
Optical transmitter
- Transmit page
transmitter/Optical_Tx.html - Light link
Optical receiver
- Phototransistor
- Sample streamer
firmware/optical_receiver_stream/optical_receiver_stream.ino - USB serial
Host decoding
- Live capture
decoder/optical_rx.py - Sample alignment
decoder/optical_rx.py - Signal conditioning
decoder/optical_rx.py - Clock recovery
decoder/optical_rx.py - Manchester decode
decoder/optical_rx.py - Frame and CRC check
decoder/optical_rx.py - Text or file output
decoder/optical_rx.py - Raw recording
decoder/optical_rx.py - Offline replay
decoder/optical_rx.py
Teaching materials
- Teaching guide
Education/README.md
Other components
- User
Connections 15
- User → Transmit page: enters message
README.md - Transmit page → Light link: flashes encoded data
README.md - Light link → Phototransistor: transmits light
README.md - Phototransistor → Sample streamer: provides sensor signal
README.md - Sample streamer → USB serial: streams raw samples
README.md - USB serial → Live capture: supplies samples
decoder/optical_rx.py - Live capture → Sample alignment: reads and aligns
decoder/optical_rx.py - Sample alignment → Signal conditioning: prepares samples
README.md - Signal conditioning → Clock recovery: detects edges
decoder/optical_rx.py - Clock recovery → Manchester decode: recovers bit timing
decoder/optical_rx.py - Manchester decode → Frame and CRC check: parses decoded bits
README.md - Frame and CRC check → Text or file output: emits valid payload
README.md - Live capture → Raw recording: writes samples
README.md - Raw recording → Offline replay: replays waveform
README.md - Offline replay → Sample alignment: decodes samples
README.md