How can I change step-down my variable input voltage?
$begingroup$
Ok so here's the deal:
I have a variable DC Voltage source from 0-10V.
I need to step that down to a variable source of 0-3V.
This 0-3V DC will be fed to an Analog to Digital converter in a microcontroller.
I know I can potentially use a Voltage Divider (using resistors) but apparently, that's not a good solution.
Op-amps don't provide a gain < 1.
So I'm just struggling as to how I can accomplish this.
The microcontroller: https://www.microchip.com/wwwproducts/en/PIC18F47K42
microcontroller voltage power dc variable
New contributor
$endgroup$
add a comment |
$begingroup$
Ok so here's the deal:
I have a variable DC Voltage source from 0-10V.
I need to step that down to a variable source of 0-3V.
This 0-3V DC will be fed to an Analog to Digital converter in a microcontroller.
I know I can potentially use a Voltage Divider (using resistors) but apparently, that's not a good solution.
Op-amps don't provide a gain < 1.
So I'm just struggling as to how I can accomplish this.
The microcontroller: https://www.microchip.com/wwwproducts/en/PIC18F47K42
microcontroller voltage power dc variable
New contributor
$endgroup$
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
2
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
3
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday
add a comment |
$begingroup$
Ok so here's the deal:
I have a variable DC Voltage source from 0-10V.
I need to step that down to a variable source of 0-3V.
This 0-3V DC will be fed to an Analog to Digital converter in a microcontroller.
I know I can potentially use a Voltage Divider (using resistors) but apparently, that's not a good solution.
Op-amps don't provide a gain < 1.
So I'm just struggling as to how I can accomplish this.
The microcontroller: https://www.microchip.com/wwwproducts/en/PIC18F47K42
microcontroller voltage power dc variable
New contributor
$endgroup$
Ok so here's the deal:
I have a variable DC Voltage source from 0-10V.
I need to step that down to a variable source of 0-3V.
This 0-3V DC will be fed to an Analog to Digital converter in a microcontroller.
I know I can potentially use a Voltage Divider (using resistors) but apparently, that's not a good solution.
Op-amps don't provide a gain < 1.
So I'm just struggling as to how I can accomplish this.
The microcontroller: https://www.microchip.com/wwwproducts/en/PIC18F47K42
microcontroller voltage power dc variable
microcontroller voltage power dc variable
New contributor
New contributor
edited 15 hours ago
pipe
10.2k42657
10.2k42657
New contributor
asked yesterday
Alee321Alee321
112
112
New contributor
New contributor
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
2
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
3
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday
add a comment |
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
2
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
3
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
2
2
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
3
3
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday
add a comment |
3 Answers
3
active
oldest
votes
$begingroup$
R divider works fine as long as R is not too high.
If you know the conversion rate and Hold Cap acquisition time
EQUATION 36-1: ACQUISITION TIME EXAMPLE in the datasheet provides the formula and example of choosing R values < 10k.
Rs is the source equivalent // resistance of the R divider, R1//R2.
$endgroup$
add a comment |
$begingroup$
A resistor divider works fine as long as the source impedance is low and the ADC impedance is high (compared to the resistors used for the divider).
If your source impedance is high, use an opamp in voltage follower mode (gain = 1) before the divider. If your ADC impedance is low (unlikely) use a voltage follower after the divider.
$endgroup$
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
add a comment |
$begingroup$
In addition to @Toor suggestion (voltage follower and voltage divider) and in response to OP statement
Op-amps don't provide a gain < 1.
follows my alternative configuration using a single supply difference amplifier. The output is reversed - if you do not mind correct it in software applying $V_o=3 - 0.3V_i$.
$endgroup$
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
add a comment |
Your Answer
StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
});
});
}, "mathjax-editing");
StackExchange.ifUsing("editor", function () {
return StackExchange.using("schematics", function () {
StackExchange.schematics.init();
});
}, "cicuitlab");
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "135"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Alee321 is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f427305%2fhow-can-i-change-step-down-my-variable-input-voltage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
$begingroup$
R divider works fine as long as R is not too high.
If you know the conversion rate and Hold Cap acquisition time
EQUATION 36-1: ACQUISITION TIME EXAMPLE in the datasheet provides the formula and example of choosing R values < 10k.
Rs is the source equivalent // resistance of the R divider, R1//R2.
$endgroup$
add a comment |
$begingroup$
R divider works fine as long as R is not too high.
If you know the conversion rate and Hold Cap acquisition time
EQUATION 36-1: ACQUISITION TIME EXAMPLE in the datasheet provides the formula and example of choosing R values < 10k.
Rs is the source equivalent // resistance of the R divider, R1//R2.
$endgroup$
add a comment |
$begingroup$
R divider works fine as long as R is not too high.
If you know the conversion rate and Hold Cap acquisition time
EQUATION 36-1: ACQUISITION TIME EXAMPLE in the datasheet provides the formula and example of choosing R values < 10k.
Rs is the source equivalent // resistance of the R divider, R1//R2.
$endgroup$
R divider works fine as long as R is not too high.
If you know the conversion rate and Hold Cap acquisition time
EQUATION 36-1: ACQUISITION TIME EXAMPLE in the datasheet provides the formula and example of choosing R values < 10k.
Rs is the source equivalent // resistance of the R divider, R1//R2.
answered yesterday
Sunnyskyguy EE75Sunnyskyguy EE75
68.8k22598
68.8k22598
add a comment |
add a comment |
$begingroup$
A resistor divider works fine as long as the source impedance is low and the ADC impedance is high (compared to the resistors used for the divider).
If your source impedance is high, use an opamp in voltage follower mode (gain = 1) before the divider. If your ADC impedance is low (unlikely) use a voltage follower after the divider.
$endgroup$
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
add a comment |
$begingroup$
A resistor divider works fine as long as the source impedance is low and the ADC impedance is high (compared to the resistors used for the divider).
If your source impedance is high, use an opamp in voltage follower mode (gain = 1) before the divider. If your ADC impedance is low (unlikely) use a voltage follower after the divider.
$endgroup$
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
add a comment |
$begingroup$
A resistor divider works fine as long as the source impedance is low and the ADC impedance is high (compared to the resistors used for the divider).
If your source impedance is high, use an opamp in voltage follower mode (gain = 1) before the divider. If your ADC impedance is low (unlikely) use a voltage follower after the divider.
$endgroup$
A resistor divider works fine as long as the source impedance is low and the ADC impedance is high (compared to the resistors used for the divider).
If your source impedance is high, use an opamp in voltage follower mode (gain = 1) before the divider. If your ADC impedance is low (unlikely) use a voltage follower after the divider.
answered yesterday
evildemonicevildemonic
2,377721
2,377721
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
add a comment |
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
$begingroup$
ADCs can have low input impedances, because those sample-and-hold circuits have a capacitor that needs to be charged! A tiny one, but it's still there. Too high a resistance can mean you need to sample for longer, slowing your reads, which may or may not be acceptable.
$endgroup$
– Hearth
yesterday
add a comment |
$begingroup$
In addition to @Toor suggestion (voltage follower and voltage divider) and in response to OP statement
Op-amps don't provide a gain < 1.
follows my alternative configuration using a single supply difference amplifier. The output is reversed - if you do not mind correct it in software applying $V_o=3 - 0.3V_i$.
$endgroup$
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
add a comment |
$begingroup$
In addition to @Toor suggestion (voltage follower and voltage divider) and in response to OP statement
Op-amps don't provide a gain < 1.
follows my alternative configuration using a single supply difference amplifier. The output is reversed - if you do not mind correct it in software applying $V_o=3 - 0.3V_i$.
$endgroup$
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
add a comment |
$begingroup$
In addition to @Toor suggestion (voltage follower and voltage divider) and in response to OP statement
Op-amps don't provide a gain < 1.
follows my alternative configuration using a single supply difference amplifier. The output is reversed - if you do not mind correct it in software applying $V_o=3 - 0.3V_i$.
$endgroup$
In addition to @Toor suggestion (voltage follower and voltage divider) and in response to OP statement
Op-amps don't provide a gain < 1.
follows my alternative configuration using a single supply difference amplifier. The output is reversed - if you do not mind correct it in software applying $V_o=3 - 0.3V_i$.
answered yesterday
Dirceu Rodrigues JrDirceu Rodrigues Jr
1,838612
1,838612
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
add a comment |
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
1
1
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
As opposed to my voltage follower suggestion, this one has better common-mode rejection at the expense of inverting the signal.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
Are those resistor values correct? I think it's supposed to be more along the lines of 6.66K/3.33K, or 10K/5K or something like that.
$endgroup$
– Toor
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
$begingroup$
I think that it's correct. Try to apply superposition to inputs 10 V and Vi.
$endgroup$
– Dirceu Rodrigues Jr
yesterday
add a comment |
Alee321 is a new contributor. Be nice, and check out our Code of Conduct.
Alee321 is a new contributor. Be nice, and check out our Code of Conduct.
Alee321 is a new contributor. Be nice, and check out our Code of Conduct.
Alee321 is a new contributor. Be nice, and check out our Code of Conduct.
Thanks for contributing an answer to Electrical Engineering Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
Use MathJax to format equations. MathJax reference.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f427305%2fhow-can-i-change-step-down-my-variable-input-voltage%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
$begingroup$
How can you use a voltage of 0 to 3V as the supply voltage for a microcontroller? Your description of this doesn't make any sense. You should draw a schematic.
$endgroup$
– Elliot Alderson
yesterday
$begingroup$
@ElliotAlderson you're right I'm sorry. It's not to power the microcontroller. The application is to simulate dimming, based on the 0-10V from the DC Source the voltage must be stepped down from 0-3V. This is the voltage range readable by the uC which will determine the duty cycle of a PWM used to dim an LED.
$endgroup$
– Alee321
yesterday
2
$begingroup$
A resistive divider is fine then. You might want to put an op-amp voltage follower in between the divider and ADC input to buffer things but it's not always necessary. Search this site. There are many existing answers addressing your question.
$endgroup$
– Toor
yesterday
3
$begingroup$
A voltage divider may be a perfectly good solution provided (a) the source impedance isn't too high and (b) you can tolerate the small energy consumption. Your question doesn't include details of either.
$endgroup$
– Transistor
yesterday