Hello!
I have to modify an already existing circuit so that it can switch between two resistance values (more details below).
Because I do not have a lot of experience, I would be grateful if you gave me some feedback about the validity and soundness of the design.
Assuming the validity of the design, how do I achieve the requirement 7?
In the current design, the R5 resistor is used to tune the value of the output current of a fixed current source IC. I need to switch (by firmware) between two values of the output current. By firmware, I mean using a PIC microcontroller. The U1 IC is already fixed by design and cannot change. Hence the need to switch between two values of the R5 resistor.
Below are the circuit requirements and goals.
Goal:

I have to modify an already existing circuit so that it can switch between two resistance values (more details below).
Because I do not have a lot of experience, I would be grateful if you gave me some feedback about the validity and soundness of the design.
Assuming the validity of the design, how do I achieve the requirement 7?
In the current design, the R5 resistor is used to tune the value of the output current of a fixed current source IC. I need to switch (by firmware) between two values of the output current. By firmware, I mean using a PIC microcontroller. The U1 IC is already fixed by design and cannot change. Hence the need to switch between two values of the R5 resistor.
Below are the circuit requirements and goals.
Goal:
- Using a GPIO pin of a PIC microcontroller, switch between two values of the equivalent resistance of R5 and RA.
- 1) The equivalent resistance should be X = 4.3 kOhm or Y = 1 kOhm
- 2) The value of X = 4.3 kOhm is finalized. The value of Y = 1 kOhm is not finalized yet (it might be as low as 500 Ohm).
- 3) Cannot change V1 and U1
- 4) The space on PCB is very limited so the least area and least number of components should be used
- 5) The switch does not need to be fast (the switch will likely operate only once or twice)
- 6) The switch has to be controlled by a GPIO pin of a PIC
- 7) A digital low on the PIC pin should correspond to Y = 1k (I am failing here, for the time being)

Last edited: