Esp8266 wemos D1 mini v4 - zasilanie

Przeprowadziłem kilka testów na płytce D1-mini.
Moduł nowy odpakowany z folii podpięty bezpośrednio do portu USB raspberry (zasilanie 5V) nie wykazuje żadnej reakcji, brak możliwości zaprogramowania, port USB się nie wykrywa, brak na liście, jako urządzenie do odczytu moduł LD2410B odpięty na czas programowania. Płytkę programuje takim skryptem (kojarzę że nazywa się to inaczej, ale nie pamiętam jak)

esphome:
  name: pierwszy-d1
  friendly_name: Pierwszy D1

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "VO7/dIDBfZLa2ReqWJNcFSEGy6Eoy4q8s81qML0OCcg="

ota:
  password: "e22666ac1ca3ee6e5707cb06a2a7a1d7"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Pierwszy-D1 Fallback Hotspot"
    password: "p1YQ4d2hjmIe"


uart:
  tx_pin: TX
  rx_pin: RX
  baud_rate: 256000
  parity: NONE
  stop_bits: 1

# Example configuration entry


ld2410:
  timeout: 30s
  max_move_distance : 3m
  max_still_distance: 0.75m
  g0_move_threshold: 50
  g0_still_threshold: 20
  g1_move_threshold: 50
  g1_still_threshold: 20
  g2_move_threshold: 40
  g2_still_threshold: 40
  g3_move_threshold: 40
  g3_still_threshold: 40
  g4_move_threshold: 40
  g4_still_threshold: 40
  g5_move_threshold: 40
  g5_still_threshold: 40
  g6_move_threshold: 30
  g6_still_threshold: 15
  g7_move_threshold: 30
  g7_still_threshold: 15
  g8_move_threshold: 30
  g8_still_threshold: 15

captive_portal:

sensor:
  - platform: ld2410
    moving_distance:
      name : Moving Distance
    still_distance:
      name: Still Distance
    moving_energy:
      name: Move Energy
    still_energy:
      name: Still Energy
    detection_distance:
      name: Detection Distance
binary_sensor:
  - platform: ld2410
    has_target:
      name: Presence
    has_moving_target:
      name: Moving Target
    has_still_target:
      name: Still Target

Moduł nie pozwala się zaprogramować, zmiana portu lub kabla też nic nie daje, kabel sprawny.

Zmiana sposobu zasilania

Zasilanie bezpośrednio z raspberry z goldpinów 3,3V plus kabel podpięty do raspberry (dowolny port USB).
Podczas programowania port wykryty układ zaprogramowany, odczyty z LD poprawne, brak błędów.

Zmiana sposobu zasilania.

D1-mini zasilany bezpośrednio z ładowarki telefonu (5V 2A)
Brak możliwości zaprogramowania modułu. LD odpięty na czas programowania.

INFO ESPHome 2023.5.5
INFO Reading configuration /config/esphome/kamerka-test.yaml...
WARNING GPIO0 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
WARNING GPIO4 is a Strapping PIN and should be avoided.
Attaching external pullup/down resistors to strapping pins can cause unexpected failures.
See https://esphome.io/guides/faq.html#why-am-i-getting-a-warning-about-strapping-pins
INFO Generating C++ source...
INFO Compiling app...
Processing kamerka-test (board: esp32cam; framework: arduino; platform: platformio/espressif32@5.3.0)
--------------------------------------------------------------------------------
HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash
 - toolchain-xtensa-esp32 @ 8.4.0+2021r2-patch5
Dependency Graph
|-- AsyncTCP-esphome @ 1.2.2
|-- WiFi @ 2.0.0
|-- FS @ 2.0.0
|-- Update @ 2.0.0
|-- ESPAsyncWebServer-esphome @ 2.1.0
|   |-- AsyncTCP-esphome @ 1.2.2
|-- DNSServer @ 2.0.0
|-- ESPmDNS @ 2.0.0
|-- noise-c @ 0.1.4
|   |-- libsodium @ 1.10018.1
Compiling /data/kamerka-test/.pioenvs/kamerka-test/src/main.cpp.o
Linking /data/kamerka-test/.pioenvs/kamerka-test/firmware.elf
RAM:   [=         ]  13.9% (used 45436 bytes from 327680 bytes)
Flash: [======    ]  57.5% (used 1054501 bytes from 1835008 bytes)
Building /data/kamerka-test/.pioenvs/kamerka-test/firmware.bin
Creating esp32 image...
Successfully created esp32 image.
esp32_create_combined_bin(["/data/kamerka-test/.pioenvs/kamerka-test/firmware.bin"], ["/data/kamerka-test/.pioenvs/kamerka-test/firmware.elf"])
Wrote 0x112db0 bytes to file /data/kamerka-test/.pioenvs/kamerka-test/firmware-factory.bin, ready to flash to offset 0x0
========================= [SUCCESS] Took 45.91 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of kamerka-test.local
ERROR Error resolving IP address of kamerka-test.local. Is it connected to WiFi?
ERROR (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
ERROR Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname

Wifi brak połączenia
Zmiana sposobu zasilania

Zasilanie D1 mini bezpośrednio z goldpinów raspberry (3.3V)
Układ zaprogramowany, odczyty z LD obecne bez błędów.

INFO ESPHome 2023.5.5
INFO Reading configuration /config/esphome/pierwszy-d1.yaml...
INFO Starting log output from pierwszy-d1.local using esphome API
INFO Successfully connected to pierwszy-d1.local
[15:06:41][I][app:102]: ESPHome version 2023.5.5 compiled on Jun 14 2023, 15:01:18
[15:06:41][C][wifi:505]: WiFi:
[15:06:41][C][wifi:363]:   Local MAC: CC:50:E3:E9:0E:2E
[15:06:41][C][wifi:364]:   SSID: [redacted]
[15:06:41][C][wifi:365]:   IP Address: 192.168.1.44
[15:06:41][C][wifi:366]:   BSSID: [redacted]
[15:06:41][C][wifi:368]:   Hostname: 'pierwszy-d1'
[15:06:41][C][wifi:370]:   Signal strength: -66 dB ▂▄▆█
[15:06:41][C][wifi:374]:   Channel: 1
[15:06:41][C][wifi:375]:   Subnet: 255.255.255.0
[15:06:41][C][wifi:376]:   Gateway: 192.168.1.1
[15:06:41][C][wifi:377]:   DNS1: 62.179.1.62
[15:06:41][C][wifi:378]:   DNS2: 62.179.1.63
[15:06:41][C][logger:301]: Logger:
[15:06:41][C][logger:302]:   Level: DEBUG
[15:06:41][C][logger:303]:   Log Baud Rate: 115200
[15:06:41][C][logger:305]:   Hardware UART: UART0
[15:06:41][C][uart.arduino_esp8266:102]: UART Bus:
[15:06:41][C][uart.arduino_esp8266:103]:   TX Pin: GPIO1
[15:06:41][C][uart.arduino_esp8266:104]:   RX Pin: GPIO3
[15:06:41][C][uart.arduino_esp8266:106]:   RX Buffer Size: 256
[15:06:41][C][uart.arduino_esp8266:108]:   Baud Rate: 256000 baud
[15:06:41][C][uart.arduino_esp8266:109]:   Data Bits: 8
[15:06:41][C][uart.arduino_esp8266:110]:   Parity: NONE
[15:06:41][C][uart.arduino_esp8266:111]:   Stop bits: 1
[15:06:41][C][uart.arduino_esp8266:113]:   Using hardware serial interface.
[15:06:41][W][uart.arduino_esp8266:127]:   You're using the same serial port for logging and the UART component. Please disable logging over the serial port by setting logger->baud_rate to 0.
[15:06:41][C][ld2410:012]: LD2410:
[15:06:41][C][ld2410:014]:   HasTargetSensor 'Presence'
[15:06:41][C][ld2410:014]:     Device Class: 'occupancy'
[15:06:41][C][ld2410:015]:   MovingSensor 'Moving Target'
[15:06:41][C][ld2410:015]:     Device Class: 'motion'
[15:06:41][C][ld2410:016]:   StillSensor 'Still Target'
[15:06:41][C][ld2410:016]:     Device Class: 'occupancy'
[15:06:41][C][ld2410:019]:   Moving Distance 'Moving Distance'
[15:06:41][C][ld2410:019]:     Device Class: 'distance'
[15:06:41][C][ld2410:019]:     State Class: ''
[15:06:41][C][ld2410:019]:     Unit of Measurement: 'cm'
[15:06:41][C][ld2410:019]:     Accuracy Decimals: 0
[15:06:41][C][ld2410:020]:   Still Distance 'Still Distance'
[15:06:41][C][ld2410:020]:     Device Class: 'distance'
[15:06:41][C][ld2410:020]:     State Class: ''
[15:06:41][C][ld2410:020]:     Unit of Measurement: 'cm'
[15:06:41][C][ld2410:020]:     Accuracy Decimals: 0
[15:06:41][C][ld2410:021]:   Moving Energy 'Move Energy'
[15:06:41][C][ld2410:021]:     Device Class: 'energy'
[15:06:41][C][ld2410:021]:     State Class: ''
[15:06:41][C][ld2410:021]:     Unit of Measurement: '%'
[15:06:41][C][ld2410:021]:     Accuracy Decimals: 0
[15:06:41][C][ld2410:022]:   Still Energy 'Still Energy'
[15:06:41][C][ld2410:022]:     Device Class: 'energy'
[15:06:41][C][ld2410:022]:     State Class: ''
[15:06:41][C][ld2410:022]:     Unit of Measurement: '%'
[15:06:41][C][ld2410:022]:     Accuracy Decimals: 0
[15:06:41][C][ld2410:023]:   Detection Distance 'Detection Distance'
[15:06:41][C][ld2410:023]:     Device Class: 'distance'
[15:06:41][C][ld2410:023]:     State Class: ''
[15:06:41][C][ld2410:023]:     Unit of Measurement: 'cm'
[15:06:41][C][ld2410:023]:     Accuracy Decimals: 0
[15:06:41][C][ld2410:028]:   Firmware Version : 1.7.3492122
[15:06:41][C][captive_portal:088]: Captive Portal:
[15:06:41][C][mdns:108]: mDNS:
[15:06:41][C][mdns:109]:   Hostname: pierwszy-d1
[15:06:41][C][ota:093]: Over-The-Air Updates:
[15:06:41][C][ota:094]:   Address: pierwszy-d1.local:8266
[15:06:41][C][ota:097]:   Using Password.
[15:06:41][C][api:138]: API Server:
[15:06:41][C][api:139]:   Address: pierwszy-d1.local:6053
[15:06:41][C][api:141]:   Using noise encryption: YES
[15:06:43][D][binary_sensor:036]: 'Moving Target': Sending state ON
[15:06:43][D][binary_sensor:036]: 'Still Target': Sending state OFF
[15:06:43][D][sensor:093]: 'Moving Distance': Sending state 30.00000 cm with 0 decimals of accuracy
[15:06:43][D][sensor:093]: 'Move Energy': Sending state 100.00000 % with 0 decimals of accuracy
[15:06:43][D][sensor:093]: 'Still Energy': Sending state 1.00000 % with 0 decimals of accuracy
[15:06:44][D][sensor:093]: 'Moving Distance': Sending state 58.00000 cm with 0 decimals of accuracy
[15:06:45][D][binary_sensor:036]: 'Moving Target': Sending state OFF
[15:06:45][D][binary_sensor:036]: 'Still Target': Sending state ON
[15:06:45][D][sensor:093]: 'Moving Distance': Sending state 30.00000 cm with 0 decimals of accuracy
[15:06:45][D][sensor:093]: 'Move Energy': Sending state 0.00000 % with 0 decimals of accuracy
[15:06:45][D][sensor:093]: 'Still Energy': Sending state 0.00000 % with 0 decimals of accuracy

Czyli jaki z tego wniosek, że zasilanie 5V jest nieodpowiednie, czy coś namieszałem.