Commit c34907cb authored by Philippe Kalaf's avatar Philippe Kalaf

Fixed some frequencies

parent fdb61185
......@@ -19,8 +19,12 @@
// brew worker to run 10 times per second
#define BREW_WORKER_PERIOD 0.1
// PID worker to run 2 times per second
#define PID_WORKER_PERIOD 0.5
// PID worker to run 1 times per second
#define PID_WORKER_PERIOD 1
// PWM period
// 0.8333 for 60Hz, 1 for 50Hz for 1% resolution
#define BOILER_PWM_PERIOD 0.8333
// Manage different brew modes and timings
#include "brewcontrol.h"
......@@ -45,7 +49,7 @@ BrewControl::BrewControl( PinName brew_pin,
// at 60Hz, we got 120 zero-crosses per sec, we want to capture 100 of
// those within each PWM period
_boiler_pwm.period(0.8333);
_boiler_pwm.period(BOILER_PWM_PERIOD);
// let's start at 93 C
_target_shot_temperature = 93;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment