ch habe selbst noch nicht viel mit PWMs gemacht. Aber wie sieht denn die elektrische Schaltung dahinter aus und wie misst du die Spannung, mit oder ohne Last?
		
		
	 
Hi
ich messe ohne jegliche Last und später hängt da nur ein für geringe Spannungen geeigneter N-Fet dran oder eine kleinen Konstantstromwuelle wie ein LDD was direkt via PWM dimmbar ist
ich brauche also nur eine stabile Spannung um den Fet zu regeln.
wahrscheinlich ist aber wieder mal mein Problem nicht richtig erklärt worden...
Der ESP32-S2 hat wohl frei konfigurierbare GPIO-Pins... dannhat man frei konfigurierbare 8 kanäle für die PWM-Frequenz
Damit der ESP keinen automatische Aufteiliung der Frequenzen und zuwesung derv Kanäle macht muss man diese wohl mit angeben
Ich habe das so gelöst
	
	
	
		YAML:
	
	
		esphome:
    name: box
    comment: lightcontroller
esp32:
  board: esp32-s2-saola-1
  framework:
    type: arduino
    #type: esp-idf
    #version: recommended
    #sdkconfig_options:
    #  CONFIG_COMPILER_OPTIMIZATION_SIZE: y
logger:
  level: VERY_VERBOSE
api:
  encryption:
    key: !secret ESPHOME_API_KEY
ota:
  safe_mode: true
  password: !secret HA_OTA_PASSWORD
wifi:
  power_save_mode: none # none (default for esp8266), light (default for esp32), high
  ssid: !secret WLAN_ASUS_SSID
  password: !secret WLAN_ASUS_PASSWORD
  manual_ip:
    static_ip: !secret ESP32_S2_BIGBOX_LIGHT_IP
    gateway: !secret WLAN_ASUS_GATEWAY_IP
    subnet: !secret WLAN_ASUS_SUBNET
    dns1: !secret WLAN_ASUS_DNS1
  ap:
    ssid: "Bigbox-Lightcontrol"
    password: !secret WIFI_AP_PASSWORD
 
web_server:
  port: 80
  auth:
    username: admin
    password: admin
light:
  - platform: monochromatic
    name: "testGPIO10_1000Hz"
    output: test_GPIO10
  - platform: monochromatic
    name: "testGPIO11_1000Hz"
    output: test_GPIO11
  - platform: monochromatic
    name: "testGPIO12_1000Hz"
    output: test_GPIO12
  - platform: monochromatic
    name: " testGPIO14_1000Hz"
    output: pwm_panel_1_GPIO14
  - platform: monochromatic
    name: " testGPIO154_1000Hz"
    output: pwm_panel_2_GPIO15
  - platform: monochromatic
    name: "testportGPIO16_1000Hz"
    output: test_GPIO16
  - platform: monochromatic
    name: " testGPIO17_33600Hz"
    output: pwm_panel_1_GPIO17
  - platform: monochromatic
    name: " testGPIO33_33600Hz"
    output: pwm_panel_1_GPIO33
output:
  - platform: ledc
    pin: GPIO10
    channel: 0
    frequency: "1000Hz" # default 490Hz
    id: test_GPIO10
  - platform: ledc
    pin: GPIO11
    channel: 1
    frequency: "1000Hz"
    id: test_GPIO11
  - platform: ledc
    pin: GPIO12
    channel: 2
    frequency: "1000Hz"
    id: test_GPIO12
  - platform: ledc
    pin: GPIO14
    channel: 3
    frequency: "1000Hz"
    id: pwm_panel_1_GPIO14
  - platform: ledc
    pin: GPIO15
    channel: 4
    frequency: "1000Hz"
    id: pwm_panel_2_GPIO15
  - platform: ledc
    pin: GPIO16
    channel: 5
    frequency: "1000Hz"
    id: test_GPIO16
  - platform: ledc
    pin: GPIO17
    channel: 6
    frequency: "33600Hz"
    id: pwm_panel_1_GPIO17
  - platform: ledc
    pin: GPIO33
    channel: 7
    frequency: "33600Hz" # default 490Hz
    id: pwm_panel_1_GPIO33
    
# Sensoren am I2C Bus
i2c:
  sda: GPIO8
  scl: GPIO9
  scan: true
  id: bus_a
sensor:
  # Pimoroni BME60 Sensor
  - platform: bme680
    temperature:
      name: "BME680 Temperatur"
      oversampling: 16x
      filters:
        offset: -0.65
    pressure:
      name: " BME680 Pressure"
    humidity:
      name: " BME680 Humidity"
      filters:
        offset: -0.065
    gas_resistance:
      name: " BME680 Gas Resistance"
    i2c_id: bus_a
    address: 0x76
    update_interval: 60s
  # BH1750 Lux/Lumen sensor
  - platform: bh1750
    name: " BH1750 Nr1Illuminance"
    i2c_id: bus_a
    address: 0x5C
    update_interval: 60s
  - platform: bh1750
    name: " BH1750 Nr2 Illuminance"
    i2c_id: bus_a
    address: 0x23
    update_interval: 60s
	 
 
zumindest messe ich jetzt überall die gleiche Spannung 
außer beim 
 channel: 7
    frequency: "33600Hz" # default 490Hz
da habe ich bei 100% 0V und bei 99% 3.29V gemessen
das würde ich noch hinbekommen...
die anderen Kanäle haben gleich reagiert das ist wichtig für mich
zumindest habe ich es verstanden das es man es so konfigurieren muss wenn man auf vielen Kanälen das Gleiche Ergebnis haben möchte
oder stimmt da trotzdem was nicht?