Increased voltage to 3.5V
This commit is contained in:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user