I have two 18 teeth gears on two separate motors (left motor and right motor) with a hall effect sensor on each gear. I want to know the time between pulses left to right. I rigged up a D type flip flop and have the left turn on the output and the right turn off the output. Thinking the ratio between high and low from the output of the flipflop is the dutycycleThe problem I think I am running into is the duty-cycle for each gear is 50%. If the left is still high when the right sensor goes high, the output of the flip-flop is still low.
So is there a way to set up a flip flip so the output is turned on with a rising edge of input1 and the output is turned off with the rising edge of input2? So just the rising edge triggers the flipflop.
I eventually need to time the motors so not only same speed but the 'dutycycle' between gear pulse left to right is 50%
I am on a different computer than normal otherwise I would post a schematic of what I have currently
So is there a way to set up a flip flip so the output is turned on with a rising edge of input1 and the output is turned off with the rising edge of input2? So just the rising edge triggers the flipflop.
I eventually need to time the motors so not only same speed but the 'dutycycle' between gear pulse left to right is 50%
I am on a different computer than normal otherwise I would post a schematic of what I have currently