From 15c32756c1fc463260790b6c2abc3ff31ed436a8 Mon Sep 17 00:00:00 2001 From: Jan Mrna Date: Sat, 16 May 2026 18:50:03 +0200 Subject: [PATCH] Increased voltage to 3.5V --- fw/Core/Src/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fw/Core/Src/main.c b/fw/Core/Src/main.c index aab91ee..9f093f4 100644 --- a/fw/Core/Src/main.c +++ b/fw/Core/Src/main.c @@ -151,8 +151,8 @@ int main(void) float voltage_ch0 = (val_ch0 * 3.3f) / 4095.0f * adc_voltage_divider; //float voltage_ch1 = (val_ch1 * 3.3f) / 4095.0f * adc_voltage_divider; - // simple regulation - const float target_voltage = 3.0f; + // simple bang-bang regulation + const float target_voltage = 3.5f; if (voltage_ch0 < target_voltage) { state = GPIO_PIN_SET;