21 Commits

Author SHA1 Message Date
2ccf069e15 Add SC7A20 accelerometer support
!!! AI GENERATED MESSAGE !!!
This commit introduces support for the SC7A20 accelerometer.
The accelerometer readings can now be displayed on the screen,
and the display mode can be toggled using the encoder.
Additionally, the EMA filter constants for voltage and current
readings have been updated from K2 to K4 for potentially smoother
readings.
2026-04-24 22:42:18 +02:00
5828ecfb48 print highest voltage and select 9v with button 2026-04-22 21:02:21 +02:00
8adfe875cd started work on PD negotiation 2026-04-22 00:39:46 +02:00
a38c71674b removed unused command 2026-04-21 21:59:30 +02:00
1fdf6d2cca i2c at 400kHz 2026-04-21 21:56:23 +02:00
7b1be30a6c ADC conversion and DMA
Setup ADC conversions to happen automatically, transferring results to a buffer
using DMA, also set up channel injection, where instead the tip temperature is
read sinchronously
2026-04-21 21:51:24 +02:00
2a38ba36b0 indentation to tabs 2026-04-19 23:07:36 +02:00
4820010ef1 use ssd1312 display (soldered) 2026-04-19 21:26:22 +02:00
a1590577d2 added fixed point exponential average filters 2026-04-19 18:54:44 +02:00
2c82d8d42e draw useful info on screen 2026-04-19 16:46:54 +02:00
1ba352af4e Refactor ADC reading and conversion
Introduce `VCC_MV` to `funconfig.h` for consistent voltage readings.
Add `get_current_ma` function to `main.c` for clearer current
calculations.
Remove unused `PIN_LED` and `Delay_Ms(5000)` from `main.c`.
Update VBUS voltage calculation to use `VCC_MV`.
Print TIP sensor voltage in millivolts instead of raw ADC values.
2026-04-19 14:05:06 +02:00
ab5e54a9dd scan correct I2C bus 2026-04-19 00:26:36 +02:00
77701636b5 moved i2c setup to it's own function 2026-04-18 22:40:26 +02:00
55bee1a5d8 push script to generate NTC lut 2026-04-17 22:21:42 +02:00
dae0fbcbda i2c test and display 2026-04-16 13:10:52 +02:00
9e254e0fb1 interrupt-based encoder 2026-04-11 21:40:33 +02:00
90a94a533b more work on basic functions 2026-04-10 17:10:39 +02:00
e1528385c2 read some adcs 2026-04-10 00:58:53 +02:00
a75570e67b it talks 2026-04-09 20:51:51 +02:00
043fbba67e firmware not working 2026-04-09 17:16:19 +02:00
6bc4087474 project start 2026-04-06 00:06:45 +02:00