Skip to content

Instantly share code, notes, and snippets.

@marcotchella
Last active March 27, 2016 12:59
Show Gist options
  • Save marcotchella/b669c1b32f29f2c2d1ba to your computer and use it in GitHub Desktop.
Save marcotchella/b669c1b32f29f2c2d1ba to your computer and use it in GitHub Desktop.
Fórmula para cálculo rede de resistores r2r
# formula calculo rede de resistor r2r
# mais informações: https://fazerlab.wordpress.com/2016/03/27/simulador-circuito-eletronico-multisim-rede-resistor-r2r/
Ventrada = float(12)
gnd = float(0)
Vd0 = Ventrada
Vd1 = Ventrada
Vd2 = gnd
Vd3 = Ventrada
Vsaida = float( Vd0/16 + Vd1/8 + Vd2/4 + Vd3/2)
print "Tensao Vsaida: ", Vsaida , "Volts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment