Git Product home page Git Product logo

danimaciasperea / calduino Goto Github PK

View Code? Open in Web Editor NEW
16.0 9.0 4.0 952 KB

This library provides functions to communicate through the EMS Bus with Buderus/Nefit/Worcester (or any other EMS Bus compatible) boilers. Includes commands for both getting status information (UBA Monitor, DHW Monitor, etc.) and setting new configurations (Set Day/Night Temperature, Set Working Mode, etc.).

Home Page: https://domoticproject.com/calduino-connecting-arduino-ems-bus

License: MIT License

C++ 100.00%
wifly arduino ems-protocol-datagrams buderus-boiler nefit buderus-ems buderus rn-xv rn-171-xv

calduino's Introduction

Calduino

EMS Bus - Arduino library.

Calduino provides functions to communicate through the EMS Bus with Buderus / Nefit / Worcester (or any other EMS Bus compatible) boilers. It includes commands for both getting status information (UBA Monitor, DHW Monitor, etc.) and setting new configurations (Set Day/Night Temperature, Set Working Mode, etc.).

To know more about how the EMS Bus works have a look at this post. A full working Arduino sketch integrating Calduino and WiFly libraries to connect wirelessly with the EMS Bus can be found in this tutorial.

Doxygen documentation is available here.

Requirements

To use this library you need two hardware components:

  • An EMS Bus – UART interface circuit to convert the EMS Bus signals to UART TTL levels. Have a look at this section to build your own circuit.
  • An Arduino Board with Atmel ATmega microcontroller such as Arduino One or Mega. Development and debugging will be easier with more than one serial port, so I recommend Arduino Mega 2560.

And of course you will need an EMS compatible boiler, as well as access to the EMS Bus.

Instalation

Install as any other Arduino library: unzip the distribution zip file to the libraries sub-folder of your sketchbook.

Examples

Configure Calduino in the Serial Port 3 of Arduino Mega (pin TX 14 and RX 15) do:

#include <Calduino.h>
#define DEBUG_UART_RATE 9600
  
EMSSerial3.begin(EMS_BUS_UART_RATE);
calduino.begin(&EMSSerial3);

Redirect the exit to Serial Port 0 (pin TX 1 / RX 0):

#include <Calduino.h>
#define DEBUG_UART_RATE 9600
#define DEBUG_UART_RATE 9600

EMSSerial3.begin(EMS_BUS_UART_RATE);
EMSSerial0.begin(DEBUG_UART_RATE);

if (calduino.begin(&EMSSerial3, &EMSSerial0))
{
	EMSSerial0.println(F("Calduino correctly started."));
}
else
{
	EMSSerial0.println(F("Calduino error starting."));
}

Print EMS Datagram RC Datetime:

calduino.printEMSDatagram(EMSDatagramID::RC_Datetime);

Print configured DHW temperature:

calduino.printEMSDatagram(EMSDatagramID::UBA_Parameter_DHW, DatagramDataIndex::selTempDHWIdx);

Get current impulse temperature:

float curImpTemp = calduino.getCalduinoFloatValue(FloatRequest::curImpTemp_f);

Set working mode in heating circuit 2 to night:

calduino.setWorkModeHC(2, 0);

Set night temperature in heating circuit 1 to 21.5℃:

calduino.setTemperatureHC(1, 0, 43);

Set DHW temperature to 50℃:

calduino.setTemperatureDHW(50);

License

This project is licensed under the MIT License - see the license file for details

Legal Notice

Legal Notices Bosch Group, Buderus, Nefit and Worcester are brands of Bosch Thermotechnology. All other trademarks are the property of their respective owners.

Acknowledgments

  • EMS Wiki from thefisher.net. Without this source I would not have been able to decode the data packages sent through the EMS Bus.
  • The first attemps to communicate with the EMS Bus where done thanks to Bbqkees, the NEFITSerial library and his UART Interface Circuit schematic.

calduino's People

Contributors

danimaciasperea avatar per1234 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

calduino's Issues

Foto of schema possible?

A great project! Congratulation!

My aim
I am looking for a way to integrate my heating (BuderusGB 125 with MC10 and RC35) into openhab. I have already a SONOFF in the MC10, which enables me to read temperatures and to force the heating to fire up. The SONOFF POW also calculates how much oil is in the tank left. I understood, that your EMS interface is acting as a server with a web-interface. I would like now use NODE-RED to transform the requests to MQTT and have openhab to control the heating of my house.

Your solution
I found now your great project and would like to do the same. I found the schema/layout of the interface that you build, but as I am much less in electronics than you, I would ask you, if you could upload some clear photos of the actual soldered interface from both sides, which could help me (and others?) to understand the layout much better and to copy it 1:1.
=> I will then ask an electronic shop to provide me the parts you have listed
=> and with the help of the photo I would be much more secure to replicate your interface

Many thanks!

P.S.
Do you think it is possible to have a SONOFF device with ARENDST firmware to hook up directly to the EMS bus with a 266 chip?

Force Heating ON/OFF

I want to know if I can force starting/stop heating boiler via EMS bus without original thermostat, just by EMS bus data. My boiler is : Bosch Condens 2500W

Compile error

Hi

When I compile the sketch "CalduinoExample" i get the following compile error:
'class Calduino' has no member named 'setProgramTDDHW'

Do you know what I could do about that?

thank you
Dimitri

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.