Hello, da ich kein passendes Gerät hab um sowas zu messen, wollte ich
fragen ob das prinzipiell so richtig ist, oder ob ich einen Denkfehler
hab.
Aufbau:
Akku an Leistungswiderstand, Oszi an Akku, und per Script im Intervall
die Spannung mitloggen.
1 | print "Time\tVolt\tAmp\tAh"
|
2 | while 1:
|
3 | curV = scope.get_channel_measurement(1, "vavg", type='CURRent')
|
4 | elapsed_time = time.time() - start_time
|
5 | curAmp = curV / resistanceOhm
|
6 | Ah = Ah + curAmp * delaySec/3600
|
7 | print("%.2f\t%.2f\t%.2f\t%.2f\t" % (elapsed_time, curV, curAmp, Ah))
|
8 | with open("out.csv", "a") as myfile:
|
9 | myfile.write(("%.4f;%.4f;%.4f;%.4f\n" % (elapsed_time, curV, curAmp, Ah)).replace('.', ','))
|
10 | plt.scatter(elapsed_time,curV)
|
11 | plt.pause(delaySec)
|
Kann ich die Ah so berechnen?
(das ich mir was für einen low voltage cutoff bauen muss, is schon klar)
Danke im Voraus!