Question about MCP32017 only 8 pins found #23755
Unanswered
Helmut1965
asked this question in
Q&A
Replies: 1 comment 3 replies
-
While I'm not using the chips, I'd compile to only have the mode 2 driver, instead of having both in the same build. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear Guys,
maybe somebody of you can help here. I've connected MCP23017, running with driver22 shows the following:
STATUS8 = {"StatusSNS":{"Time":"2025-08-03T10:17:24","MCP230XX":{"D0":0,"D1":0,"D2":0,"D3":0,"D4":0,"D5":0,"D6":0,"D7":1,"D8":0,"D9":0,"D10":0,"D11":0,"D12":0,"D13":0,"D14":0,"D15":1}}}
Which is good so far, also all the states worked. Now I want to switch to mode 2
Driver Status is:
{"I2CDriver":"2,7,8,9,10,11,12,13,14,15,17,18,20,!22,24,29,31,36,41,42,44,46,48,58,62,65,69,76,77,82,89"}. I think Mode1 driver is disabled and Mode2 driver is enabled now.
I create a file: mcp23x.dat with the content:
{"NAME":"MCP23017 A=B1-8, B=B9-16","GPIO":[191,192,193,194,195,196,197,0,198,199,200,201,202,203,204,205,0]}
File upload is done by Mqtt cmnd URL Fetch. Now I do a restart 1.
The Serial LOG (4) shows the following
00:00:00.001 HDW: ESP32-D0WD v1.0
00:00:00.043 UFS: FlashFS mounted with 296 kB free
00:00:00.063 CFG: Loaded from File, Count 24
00:00:00.072 QPC: Count 1
00:00:00.076 I2C: Bus1 using GPIO04(SCL) and GPIO05(SDA)
00:00:00.100 I2C: MCP23017 found at 0x20
00:00:00.135 MCP: Pins 8 (S8/B0/R0)
00:00:00.185 BRY: Berry initialized, RAM used 3493 bytes
00:00:00.202 Project home - Tasmota Version 15.0.1(tasmota32)-3_1_3(2025-08-02T17:13:35)
00:00:01.110 WIF: Connecting to AP1 iot Channel 6 BSSId 1E:E8:29:ED:4B:E1 in mode HT40 as 943CC639D100-4352...
As you can see here, there are only 8 Pins detected, I try also to use rule1 for the JSON mcp23x.dat. Nothing works, always only 8 Pins found.
Is there somebody out there with an idea? I searched the net already, wasn't able to find any additional ideas to solve. For sure, I can live with mode1, nevertheless it would be interesting to learn, what's the problem.
Thanks
Helmut
Beta Was this translation helpful? Give feedback.
All reactions