onehorse
Well-known member
This is tangentially Teensy related since I am designing an add-on board for the Teensy which requires that a resistor from the sensor to GND be chosen to set the sensor integration time. I would like to be able to toggle the resistance value using digitalWrite(HIGH/LOW) to a pin. Can I just hook two resistors in parallel from the sensor and choose which one is grounded by using a HIGH/LOW signal to the gates of a dual N-type/P-type MosFet? If I hook up the resistor to the Source of an N-type mosfet and have the gate grounded, is the resistor "tri-stated" or High-Z? Likewise with 3V3 applied to a p-type mosfet? Does this make sense to anyone or am I smokin' it?