Hi
I am new here, but I tried the search and didn't find what I am looking for.
My goal is to make circuit which will calculate my golf club swing speed. Maybe more features later.
Idea was to make a circuit with 2 sensors 5cm apart connected to comparators which are connected to pic microcontroller ports. And pic is counting time between those 2 pulses. I think sensors could be phototransistors or diodes. I want that circuit(pic) to be able to count 1-10uS time between pulses.
I have tested this comparator circuit found in attachment. But how do I add some hysteresis and gain control for different light situations.
For gain control I tested this circuit by replacing voltage divider with samekind of phototransistor and resistors. It worked, but when I added 100k hysteresis it gave me noise on output. Comparator input voltages were 0.2-0.3volts
Any comments about whole idea are welcome, also different ideas how this could be implemented.
Masa
I am new here, but I tried the search and didn't find what I am looking for.
My goal is to make circuit which will calculate my golf club swing speed. Maybe more features later.
Idea was to make a circuit with 2 sensors 5cm apart connected to comparators which are connected to pic microcontroller ports. And pic is counting time between those 2 pulses. I think sensors could be phototransistors or diodes. I want that circuit(pic) to be able to count 1-10uS time between pulses.
I have tested this comparator circuit found in attachment. But how do I add some hysteresis and gain control for different light situations.
For gain control I tested this circuit by replacing voltage divider with samekind of phototransistor and resistors. It worked, but when I added 100k hysteresis it gave me noise on output. Comparator input voltages were 0.2-0.3volts
Any comments about whole idea are welcome, also different ideas how this could be implemented.
Masa
Attachments
-
5.4 KB Views: 17