From 21cda859705845c02944db74ca957170c6bb64b2 Mon Sep 17 00:00:00 2001 From: Commander1024 Date: Thu, 2 Sep 2021 22:05:19 +0200 Subject: [PATCH] Added ADC for photo diode voltage measurement.\nAdded blue LED output channel. --- esphome/sleepingroom.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/esphome/sleepingroom.yaml b/esphome/sleepingroom.yaml index c6ad7dd..53dce75 100644 --- a/esphome/sleepingroom.yaml +++ b/esphome/sleepingroom.yaml @@ -57,6 +57,9 @@ output: - platform: ledc pin: GPIO18 id: led_green + - platform: ledc + pin: GPIO19 + id: led_blue # Initialize UART for Vindriktning sensor uart: @@ -158,6 +161,12 @@ sensor: - platform: pm1006 pm_2_5: name: "Feinstaub PM 2.5µm" +# Analog photo diode voltage + - platform: adc + pin: 32 + name: "Spannung Photodiode" + attenuation: 11db + update_interval: 10s # IR Receiver, dumps all received values into serial remote_receiver: