Hello I am a college student working on photon counting circuit using Silicon Photomultiplier(SiPM).
Stage 0: Signal from SiPM
Description: This is an image captured from oscilloscope with the time resolution between the data points being 25 ns. If the SiPM is exposed to ambient light, the voltage goes up to -3V, which I want to be safe about.
Stage 1: Amplifier
Description: I want to invert the voltage so that the comparator will receive only positive voltage range.
Question 1: At this "relatively" high speed, is an opamp circuit a good option? Or will voltage regulator integrated circuit (ic) do the job?
Stage 2: Comparator
Description: I am trying to output 0 or 5V by comparing the input from the amplifier to a threshold voltage of 4 mV.
Attempt 1: I purchased a MAX997 and tried to compare a sinewave of 100mV amplitude, 1kHz frequency, on a breadboard with bypass capacitor of 0.1 microF, but did not show any kind of square wave I expected.
Question 2: Will comparator ic MAX997 or AD8611 be an overkill for this application (i.e too short of a propagation delay, therefore too much sampling)? if not, what kind of circuit should go around the ic to make sure I get the desired output at this relatively high frequency (bypass capacitor, resistors...etc, specific type of capacitor I need to purchase)?
Stage 3: Counter
Description: I am trying to use a 12 bit counter ic such as SN74LV4040A to count the number of pulses generated by the comparator and within an adjustable amount of time window (1 ms), I want to capture that number and send it via bluetooth to different devices.
Question 3: Can I just put the output from the comparator straight into the clock input of the aforementioned asynchronous counter? Is asynchronous counter a good choice for this application?
Question 4: Is Arduino mega a good choice for a microcontroller that will be able to transfer the count data via bluetooth (will speed be an obstacle)?
Thank you for reading thus far and I appreciate any kind of response to this question. If I have a horribly wrong understanding of this topic, please let me know. I have a lot to learn. A LOT.
Edit01
I believe this was too big of a question, so I want to start off with comparator. I currently have MAX997, but I fried one by connecting the shutdown pin to the ground. I thought I was following the correct procedure according to the datasheet, but something went wrong.
Can Anyone point out my mistake, if all I had was a pull up resistor of 1k at the output of the comparator, and rest was just connected to function generator and power supply?
Also I found a paper quite similar to what I am trying to do: link
Edit02
Below is the schematic I could draw to the best of my ability: