Stephan I. Böttcher
7bd1a95232
linear_regression: reset when x is nonmonotonous with decay
2024-10-13 13:58:09 +02:00
Stephan I. Böttcher
2fd6ba81f5
linear_regression.py: -l, fixes
2024-10-13 13:53:59 +02:00
Stephan I. Böttcher
14fd92c545
turbo.py: checkmark, less noise
2024-10-07 09:42:39 +02:00
Stephan I. Böttcher
1e8ea97f27
turbo.py: resp(), clear checksum
2024-10-06 17:42:12 +02:00
Stephan I. Böttcher
8467e79852
bate.c: clear uart_cks after line_preamble
2024-10-06 17:41:33 +02:00
Stephan I. Böttcher
7270c83dfc
cmd.py: fix -R
2024-10-06 17:07:15 +02:00
Stephan I. Böttcher
4453851d1d
turbo.py: emit_adc_pretty()
2024-10-06 15:38:42 +02:00
Stephan I. Böttcher
ea5ddb16b9
turbo.py: add config parsers
2024-10-06 10:20:00 +02:00
Stephan I. Böttcher
7c302b74ed
cmd.py: fix ADC_MODE
2024-10-06 10:19:13 +02:00
Stephan I. Böttcher
6f80ed5d64
uart_cks: clear after send_cks()
2024-10-05 20:40:42 +02:00
Stephan I. Böttcher
6d49e5b420
uart_tx: s/call/rcall/
2024-10-05 20:39:52 +02:00
Stephan I. Böttcher
c5ae9b885c
cmdsocket: fix cmder.open()
2024-10-05 20:38:31 +02:00
Stephan I. Böttcher
50669bd76d
cmd.py: help docu typo
2024-10-05 20:37:42 +02:00
Stephan I. Böttcher
79ebe18db0
cmd.py: ttycmd, …
2024-10-05 17:53:24 +02:00
Stephan I. Böttcher
0f424efdaa
new script cmd.py
...
use cmdcocket to send commands to turbo.py
2024-10-05 12:47:52 +02:00
Stephan I. Böttcher
42fb68de4d
cmdsocket: fix option -s
2024-09-23 22:10:47 +02:00
Stephan I. Böttcher
ae1e606c36
turbo.py: --socket
...
open a cmd socket. Forward messages from the socket to the tty.
2024-09-23 21:47:17 +02:00
Stephan I. Böttcher
58bf5dc704
cmdsocket: allow .poll() when closed
2024-09-23 21:45:03 +02:00
Stephan I. Böttcher
75440f90c3
New module cmdsocket.py
...
Use AF_UNIX sockets to send messages between/to python scripts.
2024-09-23 21:17:22 +02:00
Stephan I. Böttcher
4cdcbf59b6
ntc: fix β
2024-09-23 21:17:01 +02:00
Stephan I. Böttcher
fc87dd7ead
turbo.py: fix, flush
...
fix baudrate= parameter
flush out when tty
2024-09-22 22:52:28 +02:00
Stephan I. Böttcher
5953504546
add script turbo.py
...
The scripts reads from stdin, files or a tty.
Verifies the chhecksums.
Computes natual values.
TODO: more parsers
TODO: add socket to send commands to the tty.
2024-09-22 22:42:27 +02:00
Stephan I. Böttcher
3ef27fe078
new module linear_regression.py
2024-09-22 22:41:26 +02:00
Stephan I. Böttcher
358a52ee9b
new module ntc.py
2024-09-22 22:39:40 +02:00
Stephan I. Böttcher
c78ee1c5fc
message V was ambiguous
2024-09-22 22:38:58 +02:00
Stephan I. Böttcher
c2823eded9
Add send_cks()
...
The ADC readings were not covered by the checksum. Send a second 'Q'
line for those.
2024-09-21 12:43:39 +02:00
Stephan I. Böttcher
71f57d2f06
Add 'Q' uart_cks
...
When POWER_LINE is set, send a one byte checksum of the characters
from after the preamble up to including the Q.
2024-09-21 12:20:51 +02:00
Stephan I. Böttcher
b50205b62b
Fix rfen(0)
...
Do not turn off rfen() when there is a trigger, waiting for mclk_delay.
2024-09-20 22:12:30 +02:00
Stephan I. Böttcher
98cc6148f3
Add rfen_status()
...
The preamble was repeated mclk_delay times, unnecessarily.
Test the rfen status to enable/send only once.
2024-09-20 21:58:13 +02:00
Stephan I. Böttcher
174a78aef9
POWER_LINE: configurable preamble
...
The hardwired strig was not long enough and not 'high' enough.
User the last eight bytes of the userrow as preable string.
Send 0xff 0xff 0xff 0xff 0xff 0x55 0x0a.
The last byte must be zero, string terminator.
2024-09-19 19:34:44 +02:00
Stephan I. Böttcher
c7a8dc4724
add POWER_LINE
...
The RF receiver's output is AC-coupled to the discriminator. At
`rfen(1)` the threshold is not well centered. This patch send a few
characters before the real messages, when POWER_LINE is set.
The string is not (yet?) configurable. 0xaa 0xaa 0xff 0x0a. The first
two characters are quick single bit switches. The third character is
basically a high level, to add some delay with an idle line. Finally, a
line feed, to separate the noise from the message.
2024-09-18 23:33:44 +02:00
Stephan I. Böttcher
ac1afa56e0
mirror bakside png
2024-07-31 10:00:08 +02:00
Stephan I. Böttcher
4daeb9442a
add pressure.py
2024-07-31 09:58:35 +02:00
Stephan I. Böttcher
74b364553c
revert commit of non-mirrored assembly drawing
2024-04-21 13:04:00 +02:00
Stephan I. Böttcher
8114f37ce8
resistor value changes, title
2024-04-21 13:00:04 +02:00
Stephan I. Böttcher
920938165e
src doc: minor typos and fixes
2024-04-20 18:43:11 +02:00
Stephan I. Böttcher
38776671b1
sch: change U2 output voltage, not to run the sensor beyond specs
2024-04-20 18:42:32 +02:00
Stephan I. Böttcher
0ac2f54bbe
calib.py: remove bogus output char
2024-04-20 18:40:48 +02:00
Stephan I. Böttcher
1d3fb10e8d
Merge branch 'master' of codeberg.org:SiB64/turbo_weather
2024-04-20 18:28:46 +02:00
Stephan I. Böttcher
df8cdf897c
documentation fixes after seeing it rendered
2024-04-18 18:16:01 +02:00
Stephan I. Böttcher
c7510b3d8c
documantation, v08 config
2024-04-18 17:43:56 +02:00
Stephan I. Böttcher
095d857e18
remove a copy from blinkenlights
2024-04-18 16:08:51 +02:00
Stephan I. Böttcher
b73d564c61
All TODOs √
2024-04-16 05:33:15 +00:00
Stephan I. Böttcher
20d4e45356
bate: reduce standby current into pins
...
MCLK and DOUT randomly stick at high or low when the µC enters standby
mode.
MCLK TCA0 WO0 is properly disabled to keep the pin at low level. A high
level pushes current into the pressure sensor.
DOUT input pullup is not enabled. A low level on DOUT (LSB of the
temperature) pulls current from the pullup.
2024-04-15 19:53:21 +02:00
Stephan I. Böttcher
2a6254c24a
minor style fixes, review with Björn
2024-04-15 19:52:33 +02:00
Stephan I. Böttcher
5d7679fbb4
make: explicit spi clk speed cpu_clk/64
2024-04-15 19:51:19 +02:00
Stephan I. Böttcher
28d492bdaf
make: build bate.eeprom with bate.hex
2024-04-15 15:56:36 +02:00
Stephan I. Böttcher
2d860e7dee
bate: simplify config_period
2024-04-15 08:58:10 +02:00
Stephan I. Böttcher
ee11d72f6d
bate: fix send_config
2024-04-15 08:47:57 +02:00
Stephan I. Böttcher
10b0e22595
oops …
2024-04-14 23:31:03 +02:00