Voltage Divider Calculator

Software Defined Radios of all Types
User avatar
IB4TL
Member
Member
Reactions:
Posts: 5356
Joined: Mon Nov 05, 2018 6:02 pm

Voltage Divider Calculator

#1

Post by IB4TL »


This tool calculates the voltage drop across each resistor in a series network of two resistors.

Enter
  • Input Voltage Vin
  • R1 and R2 in milliOhm/Ohm/kiloOhm/megaOhm

function doValidate_5(form) { window['cff_enabling_form' ] = function(_form){ if(!(_form instanceof $dexQuery)) _form = $dexQuery(_form); _form.validate().settings.ignore = '.ignore,.ignorepb'; _form.removeData('being-submitted'); _form.find('.submitbtn-disabled').removeClass('submitbtn-disabled'); _form.find('.cff-processing-form').remove(); }; window['cff_disabling_form'] = function(_form){ if(!(_form instanceof $dexQuery)) _form = $dexQuery(_form); if(cff_form_disabled(_form)) return; _form.find('.pbSubmit').addClass('submitbtn-disabled'); _form.data('being-submitted',1); var d = document.createElement('div'); $dexQuery(d).addClass('cff-processing-form').appendTo(_form.find('#fbuilder')); }; window['cff_form_disabled' ] = function(_form){ if(!(_form instanceof $dexQuery)) _form = $dexQuery(_form); return ('undefined' != typeof _form.data('being-submitted')); }; var form_identifier = '_5'; if(typeof cpcff_validation_rules == 'undefined') cpcff_validation_rules = {}; if(typeof cpcff_validation_rules[form_identifier] == 'undefined') cpcff_validation_rules[form_identifier] = {}; var $dexQuery = (fbuilderjQuery) ? fbuilderjQuery : jQuery.noConflict(), _form = $dexQuery("#cp_calculatedfieldsf_pform"+form_identifier), form_disabled = function(){cff_form_disabled(_form);}, disabling_form = function(){cff_disabling_form(_form);}, enabling_form = function(){cff_enabling_form(_form);}; if(form_disabled()) return false; _form.validate().settings.ignore = '.ignore'; var cpefb_error = !_form.validate().checkForm(); var validation_rules = cpcff_validation_rules[form_identifier], processing_form = function() { for(var rule in validation_rules) { if(!validation_rules[rule]) return; } _form.find("[name$='_date'][type='hidden']").each(function(){ var v = $dexQuery(this).val(), name = $dexQuery(this).attr( 'name' ).replace('_date', ''), e = $dexQuery("[name='"+name+"']"); if( e.length ){ e.val( $dexQuery.trim( e.val().replace( v, '' ) ) ); } }); _form.find("select option[vt]").each(function(){ var e = $dexQuery(this); e.attr('cff-val-bk', e.val()).val(e.attr("vt")); }); _form.find("input[vt]").each(function(){ var e = $dexQuery(this); e.attr('cff-val-bk', e.val()).val(e.attr("vt")); }); _form.find('.cpcff-recordset,.cff-exclude :input,[id^="form_structure_"]') .add(_form.find( '.ignore' )).attr('cff-disabled', 1).prop('disabled', true); disabling_form(); _form[ 0 ].submit(); setTimeout(function(){ _form.find('[cff-val-bk]').each(function(){ var e = $dexQuery(this); e.val(e.attr('cff-val-bk')).removeAttr('cff-val-bk'); }); _form.find('[cff-disabled]').prop('disabled', false).removeAttr('cff-disabled'); if(!/^(\s*|_self|_top|_parent)$/i.test(_form.prop('target'))) { enabling_form(); } $dexQuery(document).trigger('cff-form-submitted', _form); }, 4000); }; _form.find('[name="cp_ref_page"]').val(document.location.href); validation_rules['fields_validation_error'] = (cpefb_error==0); /* 1: Do not submit if the equations are being evaluated */ validation_rules['no_pending'] = (!(form_identifier in $dexQuery.fbuilder.calculator.processing_queue) || !$dexQuery.fbuilder.calculator.processing_queue[form_identifier]) && !$dexQuery.fbuilder.calculator.thereIsPending(form_identifier); if(!validation_rules['no_pending']) { $dexQuery(document).on('equationsQueueEmpty', function(evt, formId){ if(formId == form_identifier) { $dexQuery(document).off('equationsQueueEmpty'); validation_rules['no_pending'] = true; processing_form(); } }); } /* End :1 */ if (validation_rules['fields_validation_error']) { processing_form(); } else { _form.valid(); var page = $dexQuery('.cpefb_error:not(.message):not(.ignore):eq(0)').closest('.pbreak').attr('page')*1; gotopage(page, _form); enabling_form(); } return false; } form_structure_5=[[{"form_identifier":"","name":"fieldname28","shortlabel":"","index":0,"ftype":"fnumber","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"","title":"Input Voltage Vin","predefined":"12","predefinedClick":false,"required":false,"exclude":false,"readonly":false,"numberpad":false,"spinner":false,"size":"large","thousandSeparator":"","decimalSymbol":".","min":"","max":"","formatDynamically":false,"dformat":"number","formats":["digits","number","percent"],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname18","shortlabel":"","index":1,"ftype":"fnumber","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"col-sm-6","title":"R1","predefined":"0","predefinedClick":false,"required":false,"exclude":false,"readonly":false,"numberpad":false,"spinner":false,"size":"large","thousandSeparator":"","decimalSymbol":".","min":"","max":"","formatDynamically":false,"dformat":"number","formats":["digits","number","percent"],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname16","shortlabel":"","index":2,"ftype":"fdropdown","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"col-sm-6","title":"Unit","size":"large","required":false,"exclude":false,"toSubmit":"text","merge":0,"choiceSelected":"Ohm - 1","select2":false,"multiple":false,"vChoices":1,"showDep":false,"choices":["mOhm","Ohm","kiloOhm","megaOhm"],"optgroup":[false,false,false,false],"choicesVal":["0.001","1","1000","1000000"],"choicesDep":[[],[],[],[]],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname21","shortlabel":"","index":3,"ftype":"fSectionBreak","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"","title":"","fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname24","shortlabel":"","index":4,"ftype":"fnumber","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"col-sm-6","title":"R2","predefined":"0","predefinedClick":false,"required":false,"exclude":false,"readonly":false,"numberpad":false,"spinner":false,"size":"large","thousandSeparator":"","decimalSymbol":".","min":"","max":"","formatDynamically":false,"dformat":"number","formats":["digits","number","percent"],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname27","shortlabel":"","index":5,"ftype":"fdropdown","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"col-sm-6","title":"Unit","size":"large","required":false,"exclude":false,"toSubmit":"text","merge":0,"choiceSelected":"Ohm - 1","select2":false,"multiple":false,"vChoices":1,"showDep":false,"choices":["mOhm","Ohm","kiloOhm","megaOhm"],"optgroup":[false,false,false,false],"choicesVal":["0.001","1","1000","1000000"],"choicesDep":[[],[],[],[]],"fBuild":{},"parent":""},{"form_identifier":"","name":"fieldname29","shortlabel":"","index":6,"ftype":"fSectionBreak","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"","title":"","fBuild":{},"parent":""},{"dependencies":[{"rule":"","complex":false,"fields":[""]}],"form_identifier":"","name":"fieldname13","shortlabel":"","index":7,"ftype":"fCalculated","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"","title":"V1","predefined":"","required":false,"exclude":false,"size":"large","eq":"fieldname28*((fieldname18*fieldname16)\/(fieldname18*fieldname16+fieldname24*fieldname27))","min":"","max":"","suffix":"","prefix":"","decimalsymbol":".","groupingsymbol":"","readonly":true,"currency":false,"noEvalIfManual":true,"formatDynamically":false,"hidefield":false,"fBuild":{},"parent":""},{"dependencies":[{"rule":"","complex":false,"fields":[""]}],"form_identifier":"","name":"fieldname19","shortlabel":"","index":8,"ftype":"fCalculated","userhelp":"","audiotutorial":"","userhelpTooltip":false,"tooltipIcon":false,"csslayout":"","title":"V2","predefined":"","required":false,"exclude":false,"size":"large","eq":"fieldname28*((fieldname24*fieldname27)\/(fieldname18*fieldname16+fieldname24*fieldname27))","min":"","max":"","suffix":"","prefix":"","decimalsymbol":".","groupingsymbol":"","readonly":true,"currency":false,"noEvalIfManual":true,"formatDynamically":false,"hidefield":false,"fBuild":{},"parent":""}],{"0":{"title":"","description":"","formlayout":"top_aligned","formtemplate":"cp_cff_clean","evalequations":1,"evalequationsevent":2,"loading_animation":0,"autocomplete":1,"persistence":0,"animate_form":0,"customstyles":"","request_cost":"fieldname18"},"formid":"cp_calculatedfieldsf_pform_5","setCache":false,"cache":false}]; Payment options Formula V1=Vin*R1/(R1+R2)

V2=Vin*R2/(R1+R2)

The largest voltage drop will be across the larger resistor value. Conversely, the smallest voltage drop will be across the smaller.

If you want to calculate the voltage drop across a single resistor set R2=0 and from the equations above, V1=Vin and V2=0 (which makes sense).
Example Calculation
With R1=1Ω, R2=3Ω, Vin=12V, the voltages
  • V1=3V
  • V2=9V

The sum of the two voltages = the input voltage. As a check you can see that 3+9= 12V
Related Calculators
Voltage Divider Calculator with 3 resistors

Voltage Divider Calculator with 5 resistors



The post Voltage Divider Calculator appeared first on OneSDR - A Wireless Technology Blog.


Source: https://www.onesdr.com/voltage-divider-calculator/
Chow
IB4TL

Return to “Software Defined Radios”

Who is online

Users browsing this forum: Ahrefs [Bot] and 0 guests