Increase number of devices
Moderators: grovkillen, Stuntteam, TD-er
Increase number of devices
Hi,
I'm using ESPeasy v2.0.0-dev12. Firmware has limit to 12 devices.
Is possible to increase this limit?
I would like to connect 5 relays (Switch input) and 10 DS18B20 sensors on one gpio pin.
For each relay I need "virtual mqtt device" (Output - (Domoticz MQTT helper)).
I would like to add devices for system states: uptime, wifi signal and freemem - it is next 3 devices.
Is there any reason for only 12 devices?
I'm using ESPeasy v2.0.0-dev12. Firmware has limit to 12 devices.
Is possible to increase this limit?
I would like to connect 5 relays (Switch input) and 10 DS18B20 sensors on one gpio pin.
For each relay I need "virtual mqtt device" (Output - (Domoticz MQTT helper)).
I would like to add devices for system states: uptime, wifi signal and freemem - it is next 3 devices.
Is there any reason for only 12 devices?
Re: Increase number of devices
How are you going to connect the 5 relais?
Finding 5 free GPIO's is already hard and then you also need one for the 1-wire.
Finding 5 free GPIO's is already hard and then you also need one for the 1-wire.
Re: Increase number of devices
I'm using Wemos D1 mini https://wiki.wemos.cc/products:d1:d1_mini
I found on wiki Why only 12 tasks?.
But there is no info how to compile firmware with more devices support.
I found on wiki Why only 12 tasks?.
But there is no info how to compile firmware with more devices support.
Re: Increase number of devices
I found limits in file ESPEasy.ino:
What is the reason for comments with exclamation mark?
Code: Select all
#define TASKS_MAX 12 // max 12!
#define CONTROLLER_MAX 3 // max 4!
#define NOTIFICATION_MAX 3 // max 4!
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: Increase number of devices
Look here
https://github.com/letscontrolit/ESPEasy/issues/590
Hexenmeister explains ....see:
This is possible (up to about 28 without enlargement of config.dat), but some addresses have to be recalculated ...
This recalculation is a clever way, that I didn't know a half year ago.
Without that recalculation I was able to run 24 tasks, but memory of the first controller position is overwritten,
so I used the second controller position.
https://github.com/letscontrolit/ESPEasy/issues/590
Hexenmeister explains ....see:
This is possible (up to about 28 without enlargement of config.dat), but some addresses have to be recalculated ...
Code: Select all
#define DAT_OFFSET_TASKS 4096 // each task = 2k, (1024 basic + 1024 bytes custom), 12 max
#define DAT_OFFSET_CONTROLLER DAT_OFFSET_TASKS + (DAT_TASKS_SIZE * TASKS_MAX) // each controller = 1k, 4 max
#define DAT_OFFSET_CUSTOM_CONTROLLER DAT_OFFSET_CONTROLLER + (DAT_CUSTOM_CONTROLLER_SIZE * CONTROLLER_MAX) // each custom controller config = 1k, 4 max.
Without that recalculation I was able to run 24 tasks, but memory of the first controller position is overwritten,
so I used the second controller position.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
Re: Increase number of devices
Thank you, it works!
Re: Increase number of devices
Why someone will waste a Task/Device for a system variable, can't be changed remotely anyway and you can publish from rules.
In any case use a $1IO Expansion Board I2C or $1.4 IO Expansion Board I2C that will save you IO on the main board.
You can trigger multiple/different GPIO using a single mqtt import/rules and %eventvalue% variable.
Regards,
In any case use a $1IO Expansion Board I2C or $1.4 IO Expansion Board I2C that will save you IO on the main board.
You can trigger multiple/different GPIO using a single mqtt import/rules and %eventvalue% variable.
Regards,
Re: Increase number of devices
Just as long as you use it as an output.
Use a 16port MCP21017 as an input and you will see...
Rgrds
Use a 16port MCP21017 as an input and you will see...
Rgrds
Regards
Shardan
Shardan
Re: Increase number of devices
I support this as I'm designing new PCBs MCP23017 based (same as the one I've already for 8 relays + 8 inputs) and one of them I thought to have it 16 inputs, stack-able to be able to connect up to 8 (as MCP23017 can be set up to 8 different addresses) and go up to 128 inputs which of course will make ESPEasy completely unusable and I'm really puzzled on how to overcome this limits (power-wise ESP8266 has the capability to handle that many logical inputs, simply not possible with current ESPEasy design)
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: Increase number of devices
I've a similiar circuit already running with PCF8574, stackable PCB......
That's why i suggested some changes on github already.
That's why i suggested some changes on github already.
Regards
Shardan
Shardan
Re: Increase number of devices
Don't leave adress inputs "floating".
The address inputs need Vcc or ground. I've a 10KOhm pull up resistor on all Ax-Inputs and jumpers to set them to ground as necessary.
The address inputs need Vcc or ground. I've a 10KOhm pull up resistor on all Ax-Inputs and jumpers to set them to ground as necessary.
Regards
Shardan
Shardan
Re: Increase number of devices
I use the expander for both input and output and works as expected, the only limitation is that you have to waste a Task for each input.
Anyway I never use built in GPIO for direct input or output as per say, only via expander and/or optoisolator.
Regards,
Re: Increase number of devices
You use a 23017 with 16 inputs on ESPEasy with 12 tasks?
As said i use a similiar solution with two PCF8574, one as input, one as output, that works flawlessly.
Anyways i need much more then 8 or 16 inputs so i've requested a solution on github already, just one task per
PCD8574 or MCP23017 just reading the byte (PCF8574) or word (MCP23017) and giving the binary value back to the home control.
Regards
Shardan
Shardan
Re: Increase number of devices
As soon as i'm homecan you explain with a schematic?
Thanks

Regards
Shardan
Shardan
Re: Increase number of devices
As a note, you can use one device for both input and output(on different pins).
Great idea.
Re: Increase number of devices
I know - it's a remote control that uses 8 buttons and 8 status LED's.
. .
I was wondering if i should use a 23017 but the PCF8574 were in the shelf and PCB layout is easier for this configuration

Regards
Shardan
Regards
Shardan
Shardan
Who is online
Users browsing this forum: No registered users and 22 guests