Increased voltage to 4.5V
This commit is contained in:
+1
-1
@@ -152,7 +152,7 @@ int main(void)
|
||||
//float voltage_ch1 = (val_ch1 * 3.3f) / 4095.0f * adc_voltage_divider;
|
||||
|
||||
// simple bang-bang regulation
|
||||
const float target_voltage = 3.5f;
|
||||
const float target_voltage = 4.5f;
|
||||
if (voltage_ch0 < target_voltage)
|
||||
{
|
||||
state = GPIO_PIN_SET;
|
||||
|
||||
Reference in New Issue
Block a user