PM8000 Goal achieved in a memory constraint way

This commit is contained in:
2024-09-23 21:29:02 +02:00
parent 42554a57da
commit 03e46e0582
6 changed files with 1110 additions and 75 deletions

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@@ -29,9 +29,9 @@ for d in range(1, len(data)):
continue
# if data[d][9] == "NONE":
# continue
if data[d][4] == "---" or data[d][4] == "seconds" or data[d][4] == "degrees":
if data[d][4] == "seconds" or data[d][4] == "degrees":
continue
if data[d][3] == "UTF8" or data[d][3] == "DATETIME" or data[d][3] == "BITMAP" or data[d][3] == "N/A":
if data[d][3] == "DATETIME" or data[d][3] == "BITMAP" or data[d][3] == "N/A":
continue
if data[d][0].find("Magnitude") >= 0:
continue
@@ -44,6 +44,8 @@ for d in range(1, len(data)):
typeint = 3
elif data[d][3] == "INT32U":
typeint = 4
elif data[d][3] == "UTF8":
typeint = 5
#print("{} @ {}:{} ({}) Tag: {}".format(data[d][0], data[d][1] ,data[d][2] ,data[d][3],data[d][7]))

22
docs/formulas.md Normal file
View File

@@ -0,0 +1,22 @@
# Calculations
## LED Formula
### LED Spec:
2.8v (forward voltage)
20ma (current)
Vsupply = 5v (Pi Power)
Vf = 2.8v (Led Volts)
R = resistor value
If = desired current
Vr = Vsupply - Vf
R = Vr / If
Vr = 5V - 2.8V = 2.2V
R = 2.2V / 20mA = 110 ohms
Make sure to add some play room, we use a 120 omhs resistor