How to identify the correct ESP platform and board

Hi,

How can I correctly identify the ESP board and platform?
for example, I’m re-using all the time this definition

substitutions:
  device_platform: ESP32
  device_board: esp32dev

is it correct also for and Esp like this one?


or i should go for

substitutions:
  device_platform: espressif32
  device_board: nodemcu-32s

You have to choose one from here

1 Like

What does selecting a specific board do? Like Bremby I have been using a generic board type since a couple of my boards aren’t in that list.

Sets the amount of ram and flash. And pin names.

That’s interesting… I’ve been using the “esp-wrover-kit” board type because my TTGO T-Camera wasn’t listed. Does it set anything with the PSRAM or just the flash and RAM (which I believe is always the same for the esp-wrover)?

I believe the parameters for each platform/board can be seen by clicking on the board name, which takes you to a page like this.

https://docs.platformio.org/en/latest/boards/espressif32/esp32cam.html

ESP32 don’t have the bizarre pin naming like D1, D2 etc that some esp8266 boards use, so just using GPIOxx works on ESP32, see ESP32 Platform — ESPHome

The platformio list is sort of programmed like the first online shops back in the 90th. Where you had no chance for filtering but simply an endless list of goods being availabe. But it was likely invented for selecting a board not for identifying one.

Google picture is your friend. upload a snappy taken with a mobile and you come close to 2-3 possible boards you aren’t 100% sure. Then the platformio list and it’s detail pages do make sense.

1 Like

You missed the filters on the page?

I have this same problem. I wish there was a bunch of pictures of the various boards with the proper definition for ESPHome next to them. I can’t tell if I’ve got the right board defined in my ESPHome yaml file. I have some of these dev boards with a big chip that says: ESP32-WROOM-32, but that’s not found anywhere on the Registry.plaformio.org site: PlatformIO Registry

The device looks like this:

I’ve been using board: nodemcu-32s and it seems to work but is that the proper one? I’m running into blue tooth problems with minimal definition and I suspect that the ESPHome code is getting crisscrossed causing the bootloop. Anyway, I’d love to have positive confirmation for which configuration to use for this board.

What did you write into your yaml to make it work in the end?

I use this:

substitutions:
  node_name: my_esp32_device
  friendly_name: My ESP32 Device
  board: nodemcu-32s
  framework: arduino
  log_level: DEBUG

packages:
  wifi: !include common/wifi.yaml
  device_base: !include common/device_base_esp32.yaml

... define all the custom stuff down here

the two included boilerplate’ files are used to simplify fanning out a few sensors and defining stuff I want on all my devices.

It is always worth to look precisely. My board is a 30 pin type. Now I got it working with a very short data cable and these parameters:

esp32:
  board: esp32dev
  framework:
    type: arduino 

HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
May it help others!