Hello everyone, I have the following problem:
When I measure the IRF520 output I get 12V but as soon, as the fan is connected the voltage drops to 2V and doesn’t work.
It is a 12V fan with 1,9W.
What am I doing wrong?
esphome:
name: fan
friendly_name: fan
esp8266:
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "SMyhtms8gs0YfLDF/Zq4jId2Dt8SUC77Cpc78H88MR0="
ota:
- platform: esphome
password: "3c31edbc642678e7facd7e6e5666ce2f"
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
- ssid: !secret wifi_ssid_cellar
password: !secret wifi_password_cellar
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "fan"
password: "5xxolZaDMmHM"
# Enable Web server
web_server:
port: 80
# IRF520 Mosfet
output:
- platform: esp8266_pwm
pin: D6
frequency: 25000 Hz
id: pwm_fan
# Lüfter
fan:
- platform: speed
output: pwm_fan
name: Lüfter
id: fan
sensor:
# Temperature Sensor
- platform: dht
model: DHT22
pin: D0
update_interval: 5s
temperature:
name: Temperatur
humidity:
name: Luftfeuchtigkeit