This is what I would like to see happen in the code.
count pulse over time coming into the chip from track ball
Output pins to controller.
Output variable V depending on # of pulses per sec.
The output would also have to swing opposite directional pin the opposite V so if .01 is added .01 needs to be taken away from the other pin.
directional pins get there own pinout each starts with
v constant at 1.40
I would like to have 3 modes. Have the mode switchable by a tact.
Mode 1
3pulses per 0.5sec = 1.43v
2pulses per 0.5sec =1.42v
1pulse per 0.5sec =1.41v
Mode 2
6pulses per 0.5sec = 1.43v
3pulses per 0.5sec =1.42v
1pulse per 0.5sec =1.41v
mode 3
7pulses per 0.5sec = 1.43v
5pulses per 0.5sec =1.42v
1pulse per 0.5sec =1.41v
These different modes would give the user sensitivity and we could make it so the deadzone is adjustable . by warying the code for each directional output.
All outputs would have to pulse for a given amount of time say .25 sec.
edit from below...
Found this interesting 55 timer gif thought id share here. IF i can convert that pulse to a variable vcc like in the image that would be perfect. Use 2 556 timers to create 4 directional variable vcc outputs.
Something similar to this circuit
(anyone care to take this and modify it to work with in the tolerances needed?)
Car Tachometer
The timer receives pulses from the distributor points. Meter M receives a calibrated current thru R 6 when the timer output is high. After time-out, the meter receives no current for that part of the duty cycle. Integration of the variable duty cycle by the meter movement provides a visible indication of engine speed.here is the signal output on graph.