ESP32 external components

Is it possible to add in to one esp board 2 different devices with 2 different external components?
thanks

What do you mean by “ 2 devices with2 different external components”? You’ll have to explain a bit more… do you mean different sensors, say, connected via I2C? If so, sure, as long they have each it’s own unique address.
But, on the other hand esp32 has a lot of pins, yoi can use them for various things

It is as it sounds - 2 devices with 2 different external components.
I have one device connected thru uart. In that esp device reach is another that uses Bluetooth. I actually use that esp also as Bluetooth proxy right now but I would like to move from that to specific bl device. So - 2 devices with 2 different external components.

So you have two separate ESP32 devices, and on each of them you want to put one thing using an external component? Or two ESP32 devices on which you want to put two things each? Or one ESP32 with, honestly, I don’t know. Unfortunately your clarification made things less clear.

Yep, i still don’t understand the setup, too…
Perhaps post some picture, some code… anything that would make things clearer.
for start:

  • what’s “esp board” for you?
  • what means “2 different devices” → what’s “device” for you? esp? sensor? xyz…? since you mentioned “esp board” above i guess “device” it’s not another esp, or is it?
  • what’s “external component” ? (components marking, type…)

Is there different meaning for esp board for different people?
According to google ESP board is a series of low cost, low power system on a chip microcontrollers with integrated Wi-Fi and dual-mode Bluetooth .

Device in my mind should be heater, light, fan, TV, computer. As dictionary defines it - piece of mechanical or electronic equipment.

Pls look at esphome documentation External Components — ESPHome

As I mentioned in first post:
One esp board
Two devices

Both devices would need different external component

Why are you asking here instead of simply trying if it’s possible or not?

Looks no limits to use 1 or as many You have external components.

  • components (Optional, list): The list of components to use from the external source. By default, all available components are used.

No, but the way you asked noone knew what exactly you wanted…

There you go! I don’t see any reason why you couldn’t connect 2, 20, 200… devices to one esp. You have plenty of GPIO’s, (almost) each can hold one or more (if you use I2C for example…) device, if you go out of pins there are always extenders like MCP23017 etc…

Example on this link shows multiple eternal components used, so, the answer would be yes. Compiler will decide which device uses certain external component. You just have to state them all.

But, as robertklep suggested: why not just try and see? The worst it can happen is that you’ll get a bunch of compile errors…

1 Like