heater

Modulate Kettle heating element to control the power. Every time the state changes an event is emitted to all listeners.
Author:
  • Dave Leitch

Requires

  • module:brewdefs.js
  • module:brewlog.js
  • module:pwm.js
  • module:i2c.js*

Members

HEATER_OFF: number inner constant

I2C value used to switch OFF the pump.

HEATER_ON: number inner constant

I2C value used to switch ON the pump.

Methods

powerOff() inner

Turn off the heater.
Fires:
  • event:heatEvent

powerOn() inner

Turn on the heater.
Fires:
  • event:heatEvent

setPower(watts) inner

Alternative PWM approach to switching on and off Ensure power is not toggled too quickly
Arguments:
  1. watts (Number)