ESP32 CAM avec un autre I2C type bme280 ou ssd1306_i2c

Mon problème

Bonjour,
ma config ESP32 CAM fonctionne
ma config ssd1306_i2c fonctionne
ma config ESP32 CAM+ ssd1306_i2c seule ssd1306_i2c écran fonctionne!!!

Je n’arrive pas, j’ai essayé plein de technique différente .

toujours le même résultat [16:20:15][E][esp32_camera:123]: Setup Failed: ESP_FAIL
[16:20:16][E][esp32_camera_web_server:097]: Setup Failed

Ma configuration


esp32_camera:
  name: $friendly_name
  id: cam
  external_clock:
    pin: GPIO0
    frequency: 20MHz
  i2c_pins:
    sda: GPIO26
    scl: GPIO27
  data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
  vsync_pin: GPIO25
  href_pin: GPIO23
  pixel_clock_pin: GPIO22
  power_down_pin: GPIO32

# Image/Video settings, https://esphome.io/components/esp32_camera.html

  max_framerate: 25 fps    # default: 10 fps, max 60
  idle_framerate: 0.2 fps # default: 0.1 fps - framerate for 'picture' in HA dashboard
  resolution: 1024x768
  jpeg_quality: 10
  vertical_flip: False
  contrast: 0 # default: 0, variable -2 to 2
  brightness: 0 # default: 0, variable -2 to 2
  saturation: 0 # default: 0, variable -2 to 2
  
# Server video/pictures, https://esphome.io/components/esp32_camera_web_server.html
esp32_camera_web_server:
  - port: 8080
    mode: stream
  - port: 8081
    mode: snapshot

i2c:
  - id: bus_b
    sda: GPIO1
    scl: GPIO16
    scan: true
      

font:
  - file: "gfonts://Roboto"
    id: my_font
    size: 14

  # gfonts://family[@weight]
  - file: "gfonts://Roboto"
    id: roboto
    size: 20

  - file:
      type: gfonts
      family: Roboto
      weight: 900
    id: font2
    size: 16

# mini ecran 
display:
  - platform: ssd1306_i2c
    i2c_id: bus_b
    model: "SSD1306 128x64"
    address: 0x3C
    id: mydisplay
    update_interval: 15s
    lambda: |-
      const char * text = "billou";
      const char * textprod = "billou";
      const char * textlixee = "billou";     
      const char * textdimmer = "billou";
      it.printf(0, 0, id(my_font), "uptime: %.1f", id(uptime_seconds).state);
      it.printf(0, 16, id(my_font), "wifi: %.1f", id(wifi_niveau).state);
      it.printf(0, 32, id(my_font), "gaspar: %f", id(wifi_niveau).state);
      it.printf(0, 48, id(my_font), "Dim: %.2f", id(wifi_niveau).state);    


log

16:20:15][I][app:102]: ESPHome version 2023.4.4 compiled on May 15 2023, 16:19:14
[16:20:15][C][wifi:505]: WiFi:
[16:20:15][C][wifi:363]:   Local MAC: 7C:87:CE:32:21:B0
[16:20:15][C][wifi:364]:   SSID: [redacted]
[16:20:15][C][wifi:365]:   IP Address: 192.168.18.116
[16:20:15][C][wifi:367]:   BSSID: [redacted]
[16:20:15][C][wifi:368]:   Hostname: 'esphome-cam1'
[16:20:15][C][wifi:370]:   Signal strength: -74 dB ▂▄▆█
[16:20:15][C][wifi:374]:   Channel: 4
[16:20:15][C][wifi:375]:   Subnet: 255.255.255.0
[16:20:15][C][wifi:376]:   Gateway: 192.168.18.1
[16:20:15][C][wifi:377]:   DNS1: 192.168.18.1
[16:20:15][C][wifi:378]:   DNS2: 0.0.0.0
[16:20:15][C][logger:294]: Logger:
[16:20:15][C][logger:295]:   Level: DEBUG
[16:20:15][C][logger:296]:   Log Baud Rate: 115200
[16:20:15][C][logger:297]:   Hardware UART: UART0
[16:20:15][C][i2c.arduino:053]: I2C Bus:
[16:20:15][C][i2c.arduino:054]:   SDA Pin: GPIO1
[16:20:15][C][i2c.arduino:055]:   SCL Pin: GPIO16
[16:20:15][C][i2c.arduino:056]:   Frequency: 50000 Hz
[16:20:15][C][i2c.arduino:059]:   Recovery: bus successfully recovered
[16:20:15][I][i2c.arduino:069]: Results from i2c bus scan:
[16:20:15][I][i2c.arduino:075]: Found i2c device at address 0x3C
[16:20:15][C][uptime.sensor:031]: Uptime Sensor 'esphome-cam1 Uptime'
[16:20:15][C][uptime.sensor:031]:   Device Class: 'duration'
[16:20:15][C][uptime.sensor:031]:   State Class: 'total_increasing'
[16:20:15][C][uptime.sensor:031]:   Unit of Measurement: 's'
[16:20:15][C][uptime.sensor:031]:   Accuracy Decimals: 0
[16:20:15][C][uptime.sensor:031]:   Icon: 'mdi:timer'
[16:20:15][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'esphome-cam1 Doorbell'
[16:20:15][C][gpio.binary_sensor:016]:   Pin: GPIO12
[16:20:15][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'esphome-cam1 lettre'
[16:20:15][C][gpio.binary_sensor:016]:   Pin: GPIO13
[16:20:15][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'esphome-cam1 colis'
[16:20:15][C][gpio.binary_sensor:016]:   Pin: GPIO15
[16:20:15][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'esphome-cam1 PIR'
[16:20:15][C][gpio.binary_sensor:015]:   Device Class: 'motion'
[16:20:15][C][gpio.binary_sensor:016]:   Pin: GPIO2
[16:20:15][C][template.text_sensor:021]: Template Sensor 'esphome-cam1 Uptime H'
[16:20:15][C][template.text_sensor:021]:   Icon: 'mdi:clock-start'
[16:20:15][C][gpio.output:010]: GPIO Binary Output:
[16:20:15][C][gpio.output:011]:   Pin: GPIO4
[16:20:15][C][gpio.output:010]: GPIO Binary Output:
[16:20:15][C][gpio.output:011]:   Pin: GPIO33
[16:20:15][C][light:103]: Light 'esphome-cam1 light'
[16:20:15][C][light:103]: Light 'esphome-cam1 wifi light state'
[16:20:15][C][homeassistant.time:010]: Home Assistant Time:
[16:20:15][C][homeassistant.time:011]:   Timezone: 'CET-1CEST,M3.5.0,M10.5.0/3'
[16:20:15][C][status:034]: Status Binary Sensor 'esphome-cam1 status'
[16:20:15][C][status:034]:   Device Class: 'connectivity'
[16:20:15][C][restart.button:017]: Restart Button 'esphome-cam1 restart'
[16:20:15][C][version.text_sensor:021]: Version Text Sensor 'esphome-cam1 ESPHome Version'
[16:20:15][C][version.text_sensor:021]:   Icon: 'mdi:new-box'
[16:20:15][C][esp32_camera:048]: ESP32 Camera:
[16:20:15][C][esp32_camera:049]:   Name: esphome-cam1
[16:20:15][C][esp32_camera:050]:   Internal: NO
[16:20:15][C][esp32_camera:052]:   Data Pins: D0:5 D1:18 D2:19 D3:21 D4:36 D5:39 D6:34 D7:35
[16:20:15][C][esp32_camera:053]:   VSYNC Pin: 25
[16:20:15][C][esp32_camera:054]:   HREF Pin: 23
[16:20:15][C][esp32_camera:055]:   Pixel Clock Pin: 22
[16:20:15][C][esp32_camera:056]:   External Clock: Pin:0 Frequency:20000000
[16:20:15][C][esp32_camera:060]:   I2C Pins: SDA:26 SCL:27
[16:20:15][C][esp32_camera:062]:   Reset Pin: -1
[16:20:15][C][esp32_camera:086]:   Resolution: 1024x768 (XGA)
[16:20:15][E][esp32_camera:123]:   Setup Failed: ESP_FAIL
[16:20:15][C][psram:020]: PSRAM:
[16:20:15][C][psram:021]:   Available: NO
[16:20:15][C][ssd1306_i2c:023]: I2C SSD1306
[16:20:16][C][ssd1306_i2c:023]:   Rotations: 0 °
[16:20:16][C][ssd1306_i2c:023]:   Dimensions: 128px x 64px
[16:20:16][C][ssd1306_i2c:024]:   Address: 0x3C
[16:20:16][C][ssd1306_i2c:025]:   Model: SSD1306 128x64
[16:20:16][C][ssd1306_i2c:027]:   External VCC: NO
[16:20:16][C][ssd1306_i2c:028]:   Flip X: YES
[16:20:16][C][ssd1306_i2c:029]:   Flip Y: YES
[16:20:16][C][ssd1306_i2c:030]:   Offset X: 0
[16:20:16][C][ssd1306_i2c:031]:   Offset Y: 0
[16:20:16][C][ssd1306_i2c:032]:   Inverted Color: NO
[16:20:16][C][ssd1306_i2c:033]:   Update Interval: 15.0s
[16:20:16][C][captive_portal:088]: Captive Portal:
[16:20:16][C][web_server:151]: Web Server:
[16:20:16][C][web_server:152]:   Address: esphome-cam1.local:80
[16:20:16][C][mdns:108]: mDNS:
[16:20:16][C][mdns:109]:   Hostname: esphome-cam1
[16:20:16][C][ota:093]: Over-The-Air Updates:
[16:20:16][C][ota:094]:   Address: esphome-cam1.local:3232
[16:20:16][C][ota:097]:   Using Password.
[16:20:16][C][api:138]: API Server:
[16:20:16][C][api:139]:   Address: esphome-cam1.local:6053
[16:20:16][C][api:141]:   Using noise encryption: YES
[16:20:16][C][wifi_signal.sensor:009]: WiFi Signal 'esphome-cam1 Wifi signal'
[16:20:16][C][wifi_signal.sensor:009]:   Device Class: 'signal_strength'
[16:20:16][C][wifi_signal.sensor:009]:   State Class: 'measurement'
[16:20:16][C][wifi_signal.sensor:009]:   Unit of Measurement: 'dB'
[16:20:16][C][wifi_signal.sensor:009]:   Accuracy Decimals: 0
[16:20:16][C][wifi_signal.sensor:009]:   Icon: 'mdi:wifi'
[16:20:16][C][wifi_info:009]: WifiInfo IPAddress 'esphome-cam1 IP Address'
[16:20:16][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[16:20:16][C][esp32_camera_web_server:089]:   Port: 8080
[16:20:16][C][esp32_camera_web_server:091]:   Mode: stream
[16:20:16][E][esp32_camera_web_server:097]:   Setup Failed
[16:20:16][C][esp32_camera_web_server:088]: ESP32 Camera Web Server:
[16:20:16][C][esp32_camera_web_server:089]:   Port: 8081
[16:20:16][C][esp32_camera_web_server:093]:   Mode: snapshot
[16:20:16][E][esp32_camera_web_server:097]:   Setup Failed
[16:20:18][D][text_sensor:064]: 'esphome-cam1 Uptime H': Sending state '1s

[center]

System Information

version core-2023.5.3
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.11
os_name Linux
os_version 6.1.25
arch x86_64
timezone Europe/Paris
config_dir /config
Home Assistant Community Store
GitHub API ok
GitHub Content ok
GitHub Web ok
GitHub API Calls Remaining 5000
Installed Version 1.31.0
Stage running
Available Repositories 1283
Downloaded Repositories 7
Home Assistant Cloud
logged_in false
can_reach_cert_server ok
can_reach_cloud_auth ok
can_reach_cloud ok
Home Assistant Supervisor
host_os Home Assistant OS 10.1
update_channel stable
supervisor_version supervisor-2023.04.1
agent_version 1.5.1
docker_version 23.0.3
disk_total 30.8 GB
disk_used 12.2 GB
healthy true
supported true
board ova
supervisor_api ok
version_api ok
installed_addons File editor (5.6.0), Samba share (10.0.1), Terminal & SSH (9.7.0), ESPHome (2023.5.0), Mosquitto broker (6.2.1)
Dashboards
dashboards 2
resources 1
views 1
mode storage
Recorder
oldest_recorder_run 8 mai 2023 à 01:18
current_recorder_run 17 mai 2023 à 03:17
estimated_db_size 475.52 MiB
database_engine sqlite
database_version 3.40.1
[/center] ___

Bonsoir @ciscolyon,

Que souhaites tu faire exactement, utiliser l’ESP32-CAM pour une caméra plus un écran ?
Je dédie les ESP32-CAM juste pour une caméra, jamais essayer d’y mettre autre chose.

Bob

l’idée est de mettre a cote de boite au lettre pour détecter son ouverture