Wifi Connection issues with esp32

I can successfully flash these esp32s and they work completely when connected to a computer, but when i try and power them via a usb adapter (tried many different models) the wifi wont connect and it just keeps disconnecting and is never recognized by esphome dashboard or HA.

Amazon.com Any ideas? can we not use an AC usb adapter to power these as standalone units or do i have to use one of the pins for power (via battery or something else)? I tried all 3 in that amazon link and none work when not connected to my computer.

Tested out numerous yaml configurations and looked through a ton of posts online. Any help would be great.

A couple configurations i have recently tried:

substitutions:
  name: esp32-bluetooth-proxy-150f94
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false

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

Tried a bunch of different things hoping to make it work but none works.

substitutions:
  name: esp32-bluetooth-proxy-150f94
packages:
  esphome.bluetooth-proxy: github://esphome/bluetooth-proxies/esp32-generic.yaml@main
esphome:
  name: ${name}
  name_add_mac_suffix: false
  on_boot:
    priority: 200  
    then:
      - wait_until:  
          condition:
            wifi.connected: 
          timeout: 5s

# # Display
# i2c:
#   sda: GPIO3
#   scl: GPIO1
#   frequency: 800kHz
logger:
  level: INFO

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  output_power: "20.5db"
  fast_connect: True
  manual_ip:
    # Set this to the IP of the ESP
    static_ip: 192.168.1.179
    # Set this to the IP address of the router. Often ends with .1
    gateway: 192.168.1.1
    # The subnet of the network. 255.255.255.0 works for most home networks.
    subnet: 255.255.255.0
  domain: .tonftp.com

Try a different usb power supply, you may not be supplying enough power.

Yes you can power via usb. You proved it when it was plugged into a computer.

Thanks @nickrout. I’ve tried a lot of different adapters. The light comes on so its getting power, but then it just sits there and doesnt connect. If i connect it to my computer after that and look at the logs, it just keeps cycling through trying to connect to wifi. “Auth Expired” I read somewhere that it might be due to power supplies, it might be due to configuration, it might be due to to a weak wifi signal (not the case for me). I set up a 2.4ghz specific ssid and the config doesnt change after being unplugged so its not incorrect credentials. Super weird stuff. Could these just be bad boards? I read somewhere that the WROOM-32 boards are troublesome.

Well i’ll be d@mned. Found an adapter. Working with default settings. lol. Very irritating.

2 Likes