oddson
Well-known member
I'd like to make an expression pedal with a hall-effect sensor that can mimic a voltage divider where the voltage to be divided is not necessarily the same as Teensy's signal voltage.
The two methods that occur to me are:
1) a digital potentiometer controlled directly by the Teensy as an actual voltage divider
2) some sort of control circuit that applies a fixed gain to a filtered PWM output signal from the Teensy -- where the gain is the ratio of the external rail voltage and Teensy's operating voltage
I just can't figure how to set the gain to the ratio of the two reference voltages.
Any comments on how to realize the second approach (or anything better)?
The two methods that occur to me are:
1) a digital potentiometer controlled directly by the Teensy as an actual voltage divider
2) some sort of control circuit that applies a fixed gain to a filtered PWM output signal from the Teensy -- where the gain is the ratio of the external rail voltage and Teensy's operating voltage
I just can't figure how to set the gain to the ratio of the two reference voltages.
Any comments on how to realize the second approach (or anything better)?