I’ve been having some trouble getting reliable results with an IR photodiode. Essentially I’m trying to use it as a beam-break detector, so it needs to be fast, which rules out analogRead.
At the moment I’m trying DATAPIN → PHOTODIODE → GND, then setting INPUT_PULLUP on the pin.
I have a feeling this isn’t the best way. My next thought is to use a transistor but with no experience with them, I wouldn’t know where to start.
Online searches show a confusing amount of options which go way over my head as I’m quite new to electronics.
Any thoughts or ideas?
I’ve had a suggestion of a Schmitt Trigger, but I’m unsure how to use one of them? I found this: 74HC1G14GW - Inverting Schmitt trigger | Nexperia but I can’t find how to wire them up properly. I’m very new to this.
TLDR: I need a reliable way of detection a photodiode change for use within a Nerf Ammo Counter.