Hi @Joe-AB1DO , just an addressing problem I think.
I am using the CQRobot MCP23017 IO Expansion Board for the first time and although NR reports:
MCP23017 chip initialization OK. BusNumber=1 Address=0X20 id:2f4058f458e944de startAllHigh = false
address 0x20 this hardware defaults to 0x27 (all other boards I have used have been 0x20), anyway if the config node is set to the correct address of 0x27 then all is OK.
SOLVED by setting the correct address for the hardware and ignoring that reported during NR startup.
Hi @ozpos ,
not quite sure I understand exactly what is going on. I have not taken a look at the CQRobot MCP23017 IO Expansion Board. From what you have told me it seems like this board defaults to all address ports on the board being high? Setting the node's chip address port accordingly should solve your problem, as you stated.
P.S. I am in the process of tracking down a noise source that causes corruption/reset of MCP23017 configuration settings (nothing to do with your driver at all).
I was using the kernel overlay driver but a chip init/reset meant an entire system reset, with your driver I can restart node-red to re-initialise 20317 registers.
With this in mind, have you ever considered adding a 'msg.reset' parameter that would re-initialise the chip ?
I think the noise source I have is caused by cheap opto-relays that do not isolate GND and VCC of mcu with that of your relays or 12v systems!
Thank you again for this node I will use it in place of the Bookworm kernel overlay driver for sure.
With this in mind, have you ever considered adding a 'msg.reset' parameter that would re-initialise the chip ?
No I have not, never had a need for it and there could be a possible risk of unintended consequences with multiple chips. Just haven't thought it through. Maybe when I have more time on my hands...
I am in the process of tracking down a noise source that causes corruption/reset of MCP23017 configuration settings (nothing to do with your driver at all).
Good luck with that. I know first hand how difficult tracking down noise sources can be!