Increased voltage to 3.5V

This commit is contained in:
Jan Mrna
2026-05-16 18:50:03 +02:00
parent f8f9df82f3
commit 15c32756c1
+2 -2
View File
@@ -151,8 +151,8 @@ int main(void)
float voltage_ch0 = (val_ch0 * 3.3f) / 4095.0f * adc_voltage_divider; float voltage_ch0 = (val_ch0 * 3.3f) / 4095.0f * adc_voltage_divider;
//float voltage_ch1 = (val_ch1 * 3.3f) / 4095.0f * adc_voltage_divider; //float voltage_ch1 = (val_ch1 * 3.3f) / 4095.0f * adc_voltage_divider;
// simple regulation // simple bang-bang regulation
const float target_voltage = 3.0f; const float target_voltage = 3.5f;
if (voltage_ch0 < target_voltage) if (voltage_ch0 < target_voltage)
{ {
state = GPIO_PIN_SET; state = GPIO_PIN_SET;