104 Commits

Author SHA1 Message Date
7cf89e9e45 changed _k to _c to reflect reality, tip temperature approx 2026-04-28 19:34:43 +02:00
4ffb554d43 pwm generation and tip driving 2026-04-26 22:11:19 +02:00
adcf08f236 comment on adc conversion 2026-04-25 11:36:40 +02:00
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
48f1656540 const qualifier for sendBytes 2026-04-24 01:55:20 +02:00
f5dfa7960b removed allucinated functions 2026-04-24 01:45:12 +02:00
de32bd245c parallel compilation with redefined make rules 2026-04-23 20:13:06 +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
0023394615 correct use of #if defined check 2026-04-19 23:46:18 +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
4591e6e04a try to set higher contrast 2026-04-17 21:09:49 +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
821380d21c independent programmer 2026-04-05 20:08:18 +02:00
03bf92f505 refined implementation 2026-04-05 17:00:53 +02:00
5a6488535d Merge branch 'programmer' into external-handle 2026-04-05 01:34:53 +02:00
920d0a46c3 technical manuals of the mcu 2026-04-05 01:32:08 +02:00
a51793e529 better ignore 2026-04-05 01:31:47 +02:00
6cd3815d5a first (non working) programmer 2026-04-05 01:31:11 +02:00
887f05a8ec updated to kicad 10.0 2026-03-25 18:51:47 +01:00
4ad28fe1f5 some todos 2026-03-25 18:48:32 +01:00
686724770c test new outline 2026-03-25 18:47:57 +01:00
d79565b10d firmware setup 2026-03-25 18:47:44 +01:00
ab1063aa27 3D model of first enclosure 2026-03-21 23:13:42 +01:00
d8e14fb3a2 lcsc order bom v0.1 2026-03-11 15:51:04 +01:00
513d5e2f1f minor tweaks 2026-03-11 15:29:40 +01:00
868bf18b0b different current sensor 2026-03-10 21:59:10 +01:00
8d16bdf96e silkscreen 2026-03-10 19:48:33 +01:00
9fc3f98d84 switch-off simulations and in-stock capacitors 2026-03-09 21:33:50 +01:00
9605d1db0e finished pcb 2026-03-08 23:22:34 +01:00
6007b5d9e2 test pads 2026-03-07 17:13:10 +01:00
11e71d7539 boxed version 2026-03-06 21:33:07 +01:00
a970e9febb some component changes 2026-03-05 01:13:16 +01:00
59702d13bb new filter design, may work lmao 2026-03-02 23:30:28 +01:00