Commit d8737882 authored by Béuren F. Bechlin's avatar Béuren F. Bechlin

Realizado relações com divisor de tensão.

parent 8ba13bf5
......@@ -34,15 +34,32 @@ tempIni = 5.0
tempFim = 45.0
Rref = 10000
Vin = 5
Rfixo = 10000
R = []
V = []
Vard = []
k = [-14.6337, 4791.842, -115334, -3.730535*(10**6)]
c = [3.354016*(10**-3), 2.569850*(10**-4), 2.620131*(10**-6), 6.383091*(10**-8)]
tK = np.arange(tempIni + 273.15, tempFim + 273.15, (tempFim - tempIni)/5000)
tC = np.arange(tempIni, tempFim, (tempFim - tempIni)/5000)
f = []
for i in tK:
f.append(Rref*mt.exp(k[0] + k[1]/i + k[2]/i**2 + k[3]/i**3))
Rinst = Rref*mt.exp(k[0] + k[1]/i + k[2]/i**2 + k[3]/i**3)
Vinst = Vin/(1 + Rfixo/Rinst)
R.append(Rinst)
V.append(Vinst)
Vard.append(1023*Vinst/5)
#plt.plot(tK, f)
plt.plot(tC, f)
plt.subplot(3, 1, 1)
plt.plot(tC, R)
plt.subplot(3, 1, 2)
plt.plot(tC, V)
plt.subplot(3, 1, 3)
plt.plot(tC, Vard)
plt.show()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment