# Arduino USB \> Firmata \> I2C \> \[GPIO PCF8574 + MCP23017 + temp BMP280\]

**URL:** <https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281>\
**Category:** Hardware\
**Created:** [5 April 2020 18:47 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281 "2020-04-05T18:47:51Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [23 December 2020 07:24 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/21 "2020-12-23T07:24:47Z")

</div>

> [@woodlandsolitude](#):
>
> That's interesting, maybe there is a "hidden way" to invert it. I was playing around with Jonny5 a bit

I mean to do it on the .INO file directly at Firmata.  
But I gave up to search for it, because other problems would still remain.

> [@woodlandsolitude](#):
>
> If I may ask, is there another approach you have in mind?

Yes, I've investigating 4 other possibilities, but wanted to post only, if I know more to compare those.  
Opened a new topic for that:

> [@MQTT with Arduino Nano + NodeRed](https://discourse.nodered.org/t/mqtt-with-arduino-nano-nodered/37351/3):
>
> YES, this is exactly the thing I'm looking for! with minimal C, only "forwarding" RAW data from/to all ports and reconnecting if connection lost. doing whatever possible at NodeRed side. My question is: HOW to do that? Currently I'm investigating this: And This:

---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [23 December 2020 07:48 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/22 "2020-12-23T07:48:55Z")

</div>

# About MCP23017:

I've realised there is no "all-in-one" solution to do everything combined.  
So I've decided to break into parts:

1. MCP23017 boards will be used with [I2C through a AtTiny85](https://github.com/harbaum/I2C-Tiny-USB/tree/master/digispark) adapter and [one of these nodes](https://flows.nodered.org/search?term=MCP23017).  
Sadly I'll loose the INTERRUPT possibility.

2. I'll drop PCF8574 modules. Use Arduino boards directly only.  
_(Same price\PIN ratio + shielded USB included. A 7 port USB HUB costs \< $5. So it's not worth the trouble.)_

3. Temperature reading will be a completely other thing. Maybe with AtTiny85 boards using a [safe 1wire PJON system and protocol](https://www.pjon.org/).

4. As I've said before: I'll drop Firmata. More trouble than reward.

Closing this topic.

# Follow possible solutions at the new topic:

> [@MQTT with Arduino Nano + NodeRed](https://discourse.nodered.org/t/mqtt-with-arduino-nano-nodered/37351/3):
>
> YES, this is exactly the thing I'm looking for! with minimal C, only "forwarding" RAW data from/to all ports and reconnecting if connection lost. doing whatever possible at NodeRed side. My question is: HOW to do that? Currently I'm investigating this: And This:

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 January 2021 18:00 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/25 "2021-01-07T18:00:12Z")

</div>

Closed on 7 January 2021 18:00 UTC

This topic was automatically closed after 14 days. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 June 2022 08:35 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/26 "2022-06-08T08:35:23Z")

</div>

Opened on 8 June 2022 08:35 UTC



---

<div class="post-metadata">

**Author:** ![PizzaProgram](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pizzaprogram/32/19431_2.png) [@PizzaProgram](https://discourse.nodered.org/u/PizzaProgram)\
**Post date:** [8 June 2022 08:51 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/27 "2022-06-08T08:51:39Z")

</div>

I've created a new ALL-IN-ONE solution for both IO chips to handle everything without i2c bus conflicts:

> [@New MCP23017 PCF8574 All-In-One node](https://discourse.nodered.org/t/new-mcp23017-pcf8574-all-in-one-node/60087/1):
>
> After 14 month of work in my free (and work) time here I present my first AIO solution to handle 3 similar kind of Input-Output I2C chips with Node-Red: I'm still searching a way to publish it to NPM. (Do not know yet, how to "log in" to my NPM account on Rpi terminal to publish...) Please tell your opinion, and report any errors you may find. The main differences to the original 0.1 version: It supports INTERRUPTS read can be triggered -\> you get a full JSON of all pins and read success N…

... although it can not handle temp sensors + Arduino USB boards.  
For that other methods are needed.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [22 June 2022 08:52 UTC](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281/28 "2022-06-22T08:52:09Z")

</div>

Closed on 22 June 2022 08:52 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/arduino-usb-firmata-i2c-gpio-pcf8574-mcp23017-temp-bmp280/24281.md?page=1)
