rp2040-ch390-iot-home-assistant.ino

Olimex UEXT-CH390: SPI to Ethernet 10/100 Mbps Module for Microcontrollers · File : rp2040-ch390-iot-home-assistant.ino · Language : YAML · Use case : Configuration ESPHome pour intégrer le module CH390 comme interface réseau filaire avec découverte Home Assistant.

ESPHome configuration file defining the CH390 as a network gateway for an RP2040, enabling communication with Home Assistant.

This YAML automatically configures the CH390 driver on the RP2040. After compiling and flashing via esphome run, the node appears in Home Assistant via the API protocol. The SPI pins correspond to the standard UEXT connector.

rp2040-ch390-iot-home-assistant.ino

esphome:
  name: pico-ch390-eth
  platform: RP2040
  board: rpipico

ethernet:
  type: CH390
  spi_id: ch390_spi
  cs_pin: 
    number: 13
  reset_pin: 
    number: 18

spi:
  id: ch390_spi
  clk_pin: 10
  mosi_pin: 11
  miso_pin: 12

binary_sensor:
  - platform: gpio
    pin: 2
    name: "Door Sensor"
  
network:
  enable_ipv6: false

api:
  reboot_timeout: 0s

← Back to the board