Git Product home page Git Product logo

micronova_controller's Introduction

micronova_controller ESP8266 ESP32

I sell on Tindie Donate with PayPal

Kits are available on Tindie!
In stock every month.
Here is an overview of the additions:

  • possibility to reset the settings with a flat screwdriver
  • IO footprints are now designed to accept screw terminals
  • D0 and RST are connected for deep sleep
  • a row of pins has been added to access unused pins

This Arduino program allows to control easily via MQTT a pellet stove equipped with a Micronova mainboard. Hardware details here.
Discord server: #63

License

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. All previous commits from this one (3 sept 2022) are CC-BY-NC-ND and not CC-BY-NC-SA.

Please check the Wiki

Thanks

Thanks to @pedrware for the photo of the mainboard and his explanations of some of the problems encountered.
Thanks to ridiculouslab for his analysis of the serial protocol.

Disclaimer

THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

micronova_controller's People

Contributors

eni23 avatar livioavalle avatar miguelcosta avatar philibertc avatar pmfernandes avatar virgilecheminot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar

micronova_controller's Issues

Wiring for La Nordica Extraflame Emma Plus

Hi,

First of all, thanks for putting this project together!

I'm trying to use this project to control/monitor the aforementioned pellet stove, but am struggling to find the right connections.
The control board I have is the one listed in this PDF on page 40, 'board code' (whatever that may mean) 00227575.
Here's a picture of the board (sorry for poor quality, I took it from a webshop since mine is in the stove and I don't want to spend time disassembling it):
image

As you can see the 'Seriale' connector is positioned otherwise than in the readme of this repository.
In my stove, there is also a cable connected to it (tested all 3 wires, it's just an extension cable), which has a panel mount connector (exactly the same type as on the board) on the rear of the stove:
image

I also noticed that the extension cable only has 3 wires, while the board connector has 4 pins.
I measured all 4 pins with my DMM, and got the following results (numbering following your drawing of the connector in the readme):

  1. GND, blue wire in extension cord (confirmed by measuring continuity between this pin and the negative CMOS battery pin
  2. Black wire in extension cord, measuring constant +5V
  3. Red wire in extension cord, measuring fluctuating +17-19V (approx every second)
  4. No wire in extnesion cord, measuing constant +5V

I also measured all pins with my oscilloscope, but no obvious digital signal is visible.

So I'm at a loss as to which pin is the serial data pin, can someone help me out?

Add compatibility for ESP-01 and Breakout board

Hello,
could you help me to add compatibility for this board?
https://it.aliexpress.com/item/1005001970616935.html?gatewayAdapt=glo2ita&aff_fcid=56c564640e8546c3b341b78030ca809e-1645366026748-07392-_AOI1W4&tt=CPS_NORMAL&aff_fsk=_AOI1W4&aff_platform=shareComponent-detail&sk=_AOI1W4&aff_trace_key=56c564640e8546c3b341b78030ca809e-1645366026748-07392-_AOI1W4&terminal_id=ca5e0087d8a249f4b348a3734cd59a20&afSmartRedirect=n

The breakout board can convert from 5V to 3.3V and also adapt the signal but need TX and RX pin, in this board we have only one serial PIN so i don't know how can i adapt this...

Best Regards
Stefano

Jolly Mec Foghet Hydro

Hi, i have a Jolly Mec Foghet Hydro, i would like to integrate in Home Assistant.
I have done this pictures of board and remote controller, but there aren t any micronova references... can you tell me if is compatible with this controller?
image
image
image
image
image
image

unable to read values from the stove

Hello @philibertc , a short while ago I received your pcb. Installing the Wemos and the firmware was no problem, so far so good. Only I have a problem getting values from the stove. I've tried the test scripts and I am able to turn the stove ON and OFF with the onoff test script, but when trying to read one value or all values I never get any response. I added some extra serial output to verify the script is running, it is. But not one value is received.

Your pcb is connected to the Micronova pcb and powered over usb from my laptop. The 3.3v power connection is not used. In the photo you can see the setup I am testing with. The stove is a Tim Sistem Aquas 15.

Do you have any suggestions what to do next to solve this problem? I am able to do any test you suggest. Do I need to check my pcb for a problem?

Hope to hear from you. Thanks!
Hans

20230808_002920

Arduino ide deepSleepInstant error

Hello, I'm having a "deepSleepInstant" error and I don't know how to solve it. Does anyone have any idea how or what I'm doing wrong?

image

Problems with power OFF / power demand

Hi there,

QA strikes again ;-)

Since the penultimate change to the source code, I have had the symptoms that I cannot switch off the oven if it has been running for a long time.
I can shift gears, but it continues to burn stubbornly.

The water temperature and room temperature are updated and are valid.
Only the switch on / off and the power requirement are frozen.

When I switch off the oven on the display, everything is updated and works again.

Regards
Gerald

infinity loop to connect MQTT

I have not good wifi in house.
And sometimes esp is looping
I see in serial console:
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
...

` int y=0;
while (!client.connected())
{
Serial.println(mqtt_user);
Serial.println(mqtt_pass);
Serial.print("Attempting MQTT connection...");
String clientId = "ESPClient-";
clientId += String(random(0xffff), HEX); //Random client ID
if (client.connect(clientId.c_str(), mqtt_user, mqtt_pass))
{
client.setBufferSize(1024);
Serial.println("connected");
}
else
{
Serial.print("failed, rc=");
Serial.print(client.state());
Serial.println(" try again in 5 seconds");
//Wait 5 seconds before retrying
delay(5000);
y++;
if (y==5) // after the 5th attempt we are disconnect and reconnect wifi
{
y=0;
Serial.println("Try disconnect");
client.disconnect();
wm.disconnect();
delay(5000);
wm.autoConnect(mqtt_topic);
delay(5000);
}
}
}

Successful logs:
`Attempting MQTT connection...failed, rc=-2 try again in 5 seconds

user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
user
pass
Attempting MQTT connection...failed, rc=-2 try again in 5 seconds
Try disconnect
*wm:AutoConnect
*wm:Connecting to SAVED AP: mikrotik
*wm:AutoConnect: SUCCESS
*wm:STA IP Address: 192.168.1.54
user
pass
Attempting MQTT connection...connected
Creating topics for HomeAssistant
HomeAssistant topics created.`

[Feature request] How to make it work with Alexa

Hello philibert.
All works so fine with my Extraflame Luisella. Thanks to you. But how I could make it works with Alexa. I try with fauxmo code but I’m a novice with all of this.
Could you help me?

Thanks by advance!

[Feature request] Parameter based on model/type? List of presets?

Hi,

Currently im using your tool to fill my Home Assistant. It seems there is not really a good database of addresses available. I have an Artel Hydro stove and would like to share my address list based on the board in it. Maybe it would be awesome to build up a database of addresses?

Im about to adding more stuff which is interesting like fan speed, settings like amount of added pallets per time slot etc so you can combined with water temperature see if your stove needs to be cleaned over time etc.

problem with micronova card of the year 2010

Thanks for your work, I tried to apply it to my Pellets Ecoteck stove with micronova board of the year 2010. With your code I didn't have any messages in the Serial Monitor, so I modified the code to understand what happens. I found that in my case, in the checkStoveReply function the rxCount variable is always zero. How has this ever happened to you? Perhaps the firmware of my board does not support communication, even if the serial connector is present.
I thank you in advance.

Extraflame luisella stove, only ON works

Hi everyone!

edit: pinout proved to be standard in the end; the serial pin also carries 5v. "Off" now also works after editing the INO to bypass conditions

I have a luisella (extraflame) stove with 4-pin connector on on the back, but i can't get it working with the esp...
Before i take the stove off the pipe to have a look at the card internally; i thought i'd ask here; maybe i'm missing something obvious, i'm rather new to arduino ;)

i got the PCB from tindie, and have an ESP8266 wemos D1 mini fitted. Soldering all components went smooth. don't think i made an error there. (pics attached)

Programming the ESP doesn't work when it is fitted tot the PCB board however... it has trouble connecting, and the led starts blinkin erratically.
Once I remove it from the pcb, uploading the code works just fine. Can anyone comfirm the same behaviour?
i use the micro usb port to power the ESP.

Wifi setup works fine, I have a broker set up (mosquitto in a docker container) and can see the "pong" appear nicely every 25s.

I checked the serial port on the stove before connecting (good thing i did ;)), and when measuring the voltages i noticed a difference in pinout, I found it to be: (gnd - 5v - 20v - ser) instead of the documented (gnd - ser - 20v - 5v)

I hooked up the board, but nothing comes up other than the pong

-I tried the 2sec on/off program, but no reaction from the stove
-Test read.ino with a serial monitor running doens't show anything messages.

anything else you can think of? anyone found serial messages to be turned off in some admin menu-thing on the stove itself?

thanks!

J

2022-09-26 10 46 40
2022-09-24 17 37 18
2022-09-24 17 04 36
2022-09-26 10 49 02
2022-09-26 10 47 03

MCZ Ego

Good morning,
I came across your amount when I was looking to make my pellet stove smart. Unfortunately, my oven (MCZ Ego Air 2017) does not have a CN 13 port installed. Is it still somehow possible to integrate this model into the iobroker via mqtt? There is an original Wifi module for this oven (unfortunately very expensive). Thanks

https://youtu.be/yPMMZ5ETMB8

image

image

Jolly Mec synthesis modular 80 + micronova wifi module

Hi there !

First of all, thank you for the work you provided on this integration !

I recently bought a jolly mec stove, and cannot say I'm convinced by the terrible micronova app I've got with the wifi module.

My first question would be, when you speak about the micronova board, are you speaking about the wifi module ?
Is there anything I can do to connect my stove and monitor/manage it remotely using your app and do I still need the custom made board to do so ?

In any circumstance, I'd like to be able to achieve the following

  1. simply change the temperature so I an keep running in stand-by mode, and go from 23 degrees during daytime to 20c° during night time.
  2. Enable geofencing, so my stove will automatically go back to 20c° qhen out of home
  3. get push notifications (the damn micronova app doesnt send any!!!) when pellet levels are low

If I could reach out to you on any discord chan to discuss this brielfy, this would help me alot I guess. ;)

Thanks !

Safer way to turn the stove off

Turning the stove on works fine over writing 0x01 to RAM 0x21, turning it off (sending 0x06 to RAM 0x21) seems to be problematic. My stove enters "turning off mode" but takes pretty long to do so (~50min), so this is not the procedure used by programs or the power button which takes around 10min. Searching around in the internet told me that i am not the only one which has this issue. The stove also has a infrared control, which seem to write commands to RAM 0x58. So sending 10 times 0x5a to RAM 0x58 with a delay of 100ms turns the stove off safely.

You should consider changing your code to this method as well, since it seems the better way and also should work for all stoves.

There are other "IR commands" that can be written to 0x58 with a delay of 100ms. To set power and temp, send it at least twice, for the power button (longpress) at least 10 times.

State Description
0x54 Power +
0x50 Power -,
0x52 Temperature +
0x58 Temperature -
0x5a Power ON/OFF

Flue gas temp (was on 0x5A for Micronova Mod0047 EVO) and waterpres incorrect

Hello everyone, today was the day. I used the controls in Homeassistant.

Basically it works - but:

  • The smoke temperature does not fit a maximum of 10 ° C
  • The water pressure is stated three times too high
  • Flame power remains at 0 (but you can only see it in the MQTT Explorer

Pellet stove used:
ITC Layma 18kW
Micronova Mod0047 EVO

Addendum to the interference suppression, as soon as I use the 18V from the motherboard, my WLAN quality drops, now I use an interference suppression board (filtering / smoothing the input voltage), the WLAN reception is good.

Why the use of the enable RX

I'm wondering why you choose to use a GPIO to enable the RX from the 1wire RS232?
I would be interested to know the reason behind this.

Why a 500 Ohm resistor

Hi there,

I'm developing my own PCB because and I'm using your project as a base, thanks for that !

I'm just wondering why you picked a 500 ohm resistor, let me try to explain:

  • 5V / 510 Ohm = 0,0098 A == 9,8 mA
  • 3,3V / 510 Ohm = 0,00064 == 6,4 mA

Since an optocoupler is just a LED it is designed to have 20mA over the IR LED

This means the ideal resistor should be:

  • 5V / 0,02 A = 250 Ohm
  • 3,3 V / 0,02 A = 165 Ohm

I'm guessing the led emits enough IR to activate the collector and thus work.
Or I'm I missing something?

Question about 5V Pin

Hey @philibertc

I have a pellet stove (L'Asolana Marina) which clearly has a Micronova controller board, but i'm unable to access the PCB for interfacing with it. But it has a SUB9 connector on the back with has 3 connected pins (GND,20V,Serial).

I would like your circuit, but the optocoupler that is connected to RX_ENABLE needs 5V which i do not have with the 3P-connection. Since its only driving a optocoupler, i was thinking about using a step-down board and use the 20V to drive this optocoupler. Do you think this will work or is it too dangerous to try it? Any ideas?

I would use a circuit like this:
image

The official micronova WIFI board pcb front pcb back also only connects 3 pins and seem to directly convert the 20V down as well.

Thanks in advance :)

Nordica Extraflame Theodora works only "ON" command

Hey all
I own a 2013 Nordica Extraflame Teodora stove (basically this one: https://www.lanordica-extraflame.com/en/products/pellet-stoves/teodora-evo).
I've just downloaded this wonderful code on a D1 mini and realized the connection with the help of the tindie board (thank you philipertc!)
The D1 is powered via usb.
I receive the "connected" ping, and I'm able to turn on the stove sending the ON command on micronova/onoff.
However I can't see any status and I'm not able to turn off the stove.
I'm using homeassistant as interface and MQTT analyzer on iphone to see the traffic.

This is my ha conf.yaml:

`switch:

  • platform: mqtt
    name: "Stufa" #E.g. "Living room"
    state_topic: "micronova/onoff" #You have to edit that
    command_topic: "micronova/intopic" #Also that
    payload_on: "ON"
    payload_off: "OFF"
    state_on: "ON"
    state_off: "OFF"
    retain: false
    optimistic: false
    qos: 0
    icon: mdi:fire
    sensor:
  • platform: mqtt
    name: "Stato interruttore stufa" #E.g. "Stove controller power state living room"
    state_topic: "micronova/pong"
    qos: 0
    icon: mdi:power
  • platform: mqtt
    name: "Temperatura stufa" #E.g. "Living room"
    state_topic: "micronova/ambtemp"
    qos: 0
    unit_of_measurement: "ºC"
    icon: mdi:thermometer
  • platform: mqtt
    name: "Temperatura fumi stufa" #E.g. "Fumes temp living room"
    state_topic: "micronova/fumetemp"
    qos: 0
    unit_of_measurement: "°C"
    icon: mdi:thermometer
  • platform: mqtt
    name: "Stato stufa" #E.g. "Stove state living room"
    state_topic: "micronova/state"
    qos: 0
    icon: mdi:fire-alert
  • platform: mqtt
    name: "Potenza fiamma stufa" #E.g. "Flame power living room"
    state_topic: "micronova/flamepower"
    qos: 0
    unit_of_measurement: "%"
    icon: mdi:fire`

How to do some debug and understand why I can't see parameters populated?

Thank you

Use the 5V from the new micro serial output.

Hello @philibertc, what is the inconvenience of using the 5V output of the micro nova board to power your pcb and the wemos d1 mini? So it would be possible to power everything without the need for external power. I look forward to feedback, thank you very much for your attention...

States missing micro nova n100

Hello @philibertc , I was here doing some tests and I noticed that there are missing states or possibly different states in your firmware. In the case I had a failure in the ignition and it continues to report loading pellets. Can you give me tips on how to solve this problem? My salamander is a crystal cadel with n100 board.

image

The machine shows a failure to ignition, alarm 5

Thank you very much for your attention

Only on status works

Hello everyone, I managed to configure everything but unfortunately the only working command is the ignition.
The shutdown does not work and I do not receive data on temperatures, flames, etc.
How can I check?
1
2
3
Immagine 2023-03-21 211811
Immagine 2023-03-21 211837

Help installation

Hi everyone!
Sorry but I just can't figure out how and which firmware I have to load on the ESP board, I have a weemos d1 mini and I've always configured everything with ESP HOME from the Home assistant.
Can you kindly give me a hand?
Of course I already have an mqtt server up and running.
I tried using the Arduino IDE but having never used it, I really have no idea how to do it.
A thousand thanks.

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.