SPADsim
SPAD Simulation
Install / Use
/learn @danchitnis/SPADsimREADME
SPADsim
An online simulation tool for Single Photon Avalanche Diode (SPAD)
See the online demo here 🚀
What are these pulses on the screen
The pulses replicate the pulses when connect a SPAD circuit to an oscilloscope. There are various type of SPADs and biasing schemes, this is representing a single SPAD with passive quenching. CH1 is for the SPAD node, and CH2 is after the digital buffer.
What is a SPAD?
a SPAD is light detector which is sensitive to a single photon, and upon detection of a single photon, it gives a digital-like output pulse, hence significantly simplifying the readout mechanism in comparison to a photodiode (PD) and avalanche photodiode (APD). Of course, the SPAD has an detection efficiency, and it is in fact sensitive to every few photons.
Where can I get a SPAD?
Unfortunately you cannot. Currently, there is no market for single SPADs. However, you can find these as wildly expensive scientific components, and in form of SiPM or MPPC arrays. There are various range detectors and smartphone cameras which use SPADs, however you cannot access the SPAD itself for propriety reasons.
Can I make a SPAD myself?
If you are familiar with the world of integrated circuits, then it is very easy to make a SPAD. Simply follow academic publications in the past decade. You may be able to convert APDs into SPAD at higher voltages.
Why and when to use this simulator
This simulator helps in understating of SPAD operations and how it can be used in a specific application.
Which SPAD parameters are represented
The recovery time (for passive quenching), photon rate, and threshold voltage (of the digital inverter) are represented. All the units are arbitery. Notice that the dark count is not included, hence the photon rate is more accurately represented as an "event" rate.
Build instruction
install Git and NodeJS which also includes NPM. Then in your workspace:
git clone https://github.com/danchitnis/SPADsim.git
cd SPADsim
npm i
npm run build
How to contribute
you can create Github issue to report a bug or mention a feature request
License
Please see the license notice.
Related Skills
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
