GithubHelp home page GithubHelp logo

anpetrov / dacor_rsd30_iot Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 0.0 3.57 MB

MySensor module to control your cooker/stove with Home Assistant

License: The Unlicense

C++ 64.39% C 35.61%
iot home-assistant mysensors-nodes embedded arm diy-electronics embedded-devices firmware

dacor_rsd30_iot's Introduction

Intro

Dacor RSD30

The project aims to "smartify" a conventional "dump" home appliance cooking stove from Dacor.
Current version allows simple programmatic control over oven's logic controller. No sensing or state validation is performed.
This project perhaps can be a useful starting point for DIY automation enthusiasts. Similar approach can be used with any kind of appliance that uses matrix keyboard for input. Microwaves, fridges and probably many other household appliances that use membrane keyboard can be be "smartified" the same way.

Disclaimer: author is not affiliated by Dacor and just happened to be a stove owner.

Why?

  • it is fun
  • to pre-heat the oven when you not at home yet, and want to toss pizza into hot oven when you are back
  • to script recipes that operate at different temperature modes (i.e cook att 400F for 1 hour, then keep warm at 300F for 3 hours)

How?

  • A small DIY module

    • uses nRF52 MCU
    • wired to both membrane keyboard and stove control module
    • talks over the air to Home Assistant gateway
  • Home Assistant integration

    • lovelace card
    • cooking scripts!

Hardware

The oven's control panel comes with so-called "touchpad" (Dacor schematic refers to it as "oven membrane switch panel"):
Key pad
which is connected to the control board (Dacor 62692, referenced as "ERC 4800 controller") by blue 20-pin flex cable (for some reason schematics calls it "membrane pigtail"):
Control board
Reverse side of the control board, flex cable unplugged disconnected.\ Note: the lines are identified by numbers 1-14:
Control board reverse

I found schematics on Dacor website:

Control board reverse

Looks like ERC 4800 controller drives load switches that turn on/off various heating elements. We do not plan to take over the controller function, but we can inject key presses.

Mapping the membrane keyboard

Since flex cable has 14 lines and control panel has 14 keys I originally assumed it was shared bus ground and each button had its own wire. However, my attempts to test continuity with multimeter were futile. Turned out, it is a classic matrix keyboard and the controller is doing rows/columns scanning. In order to figure out what key connected to what line and create a map, I used a simple sketch on Arduino to scan the keyboard and figure out the map. Here is the output:

Oven button Lines
Convention bake 2-9
Convention broil 2-10
Pure convention 2-11
Broil 2-7
Bake 2-6
Clean 2-8
Cancel 5-12
Light not connected
Cook time 4-7
plus/up 1-14
minus/down 1-13
timer 1 3-6
clock 3-7
stop time 3-8
timer 2 4-5

One interesting aspect is that ERC 4800 seems to be using several voltage levels. Here are voltages I read with multimeter on individvual pins:

Line Voltage
1,5 0v
3,4,13,14 5v
2 14v
6,7,8,9,10,11 0.2v
12 30v

The relay module

The $5 EBYTE E73 module comes with nRF52832 MCU soldered on a small breakout board (1.27mm half-holes). It drives a bunch of optical insulators. These act as regular transistors but allow dealing with voltages higher than nRF module supports. The MCU acts as MySensors node and uses the available ESB radio to talk to MySensors Controller (for me it is Home Assistant with its MySensors Gateway).

Theory of operation

The module is mostly passive and does not interfere with normal oven operation. However it contains circuitry that allows it to "inject" key presses.

Power

I hooked up regular USB charger to mains (+110V) from the stove to get 5V from USB. MCP1700 or LE33A LDO can be used to get regulated 3.3V.

Schematics v1

Schematic

Relay module

Hand-soldered, dual-sided PCB hosts headers and the MCU.

Front:
Front

Back:
E73 comes with 1.27mm holes, so it can't be soldered on 2.54mm header.
I just used hot glue to affix E73 to the solderable PCB: Back

I used hot glue (yes, again!) to attach the module to back side of front panel:
installed

Software

Firmware

The module is built with MySensors and Arduino IDE can be used to flash it as well. Follow this guide to setup Arduino IDE for nRF52 and MySensors. Flash with IDE. I used Pitaya Link to flash (and develop) the module.

UI in Home Assistant

In order for the relay module to talk to Home Assistant (or any other controller of your choice), a gateway module needs to be made, so that Home Assistant can talk to MySensor-based devices.

Switches

Once the node connects to Home Assistant, MySensor integration will automatically create the following switches for you:

  • switch.cancel_reset
  • switch.down
  • switch.up
  • switch.bake
  • switch.broil

Switching them to "off" in HA will cause the module to inject respective button press.

Visualization

I used Custom Button Card and Horizontal Stack cards to visualize oven status and run some useful scripts. lovelace

dacor_rsd30_iot's People

Contributors

anpetrov avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.