Skip to content
Snippets Groups Projects
Commit 8aa80f81 authored by 3d's avatar 3d
Browse files

change popcorn to esp32

parent 8bcdbc43
No related branches found
No related tags found
No related merge requests found
{% set devicename = "esphome_popcorn" %} {% set devicename = "esphome_popcorn" %}
{% include "/includes/ansible.inc.yaml" %} {% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.d1_mini.inc.yaml" %} {% include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %}
on_boot: on_boot:
priority: 250 priority: 250
...@@ -13,77 +13,60 @@ ...@@ -13,77 +13,60 @@
spi: spi:
miso_pin: GPIO12 miso_pin: GPIO19
clk_pin: GPIO14 mosi_pin: GPIO23
clk_pin: GPIO18
climate: font:
- platform: pid - file: "gfonts://Roboto"
id: pid_heater id: my_font
name: "PID Heater Controller" size: 115
sensor: pot_sensor - file: "04B03.ttf"
default_target_temperature: 264 id: b03
heat_output: pot_heater size: 20
control_parameters:
kp: 0.0 color:
ki: 0.0 - id: my_red
kd: 0.0 red: 100%
visual: green: 0%
min_temperature: 0 blue: 0%
max_temperature: 275 - id: my_green
temperature_step: 1 red: 0%
green: 100%
blue: 0%
- id: my_blue
red: 0%
green: 0%
blue: 100%
- id: my_yellow
red: 100%
green: 100%
blue: 0%
button: display:
- platform: template - platform: ili9341
name: "PID Heater Autotune" model: TFT 2.4
on_press: cs_pin: GPIO5
- climate.pid.autotune: pid_heater dc_pin: GPIO16
reset_pin: GPIO17
rotation: 90°
sensor: lambda: |-
- platform: max31855 it.printf(160,120,id(my_font),TextAlign::CENTER,"264°C");
name: "Pot Temperature"
id: pot_sensor time:
cs_pin: GPIO15 - platform: sntp
update_interval: 30s id: ntp_time
- platform: pid timezone: 'Europe/Berlin'
name: "PID Heater Result"
type: RESULT
- platform: pid
name: "PID PROPORTIONAL Result"
type: PROPORTIONAL
- platform: pid
name: "PID INTEGRAL Result"
type: INTEGRAL
- platform: pid
name: "PID DERIVATIVE Result"
type: DERIVATIVE
- platform: pid
name: "PID HEAT Result"
type: HEAT
output: output:
- platform: slow_pwm - platform: ledc
pin: GPIO0 pin: GPIO4
id: pot_heater id: gpio_4_backlight_pwm
period: 15s
binary_sensor: light:
- platform: gpio - platform: monochromatic
pin: output: gpio_4_backlight_pwm
number: GPIO13 name: "ILI9341 Display Backlight"
inverted: true id: back_light
mode: restore_mode: ALWAYS_ON
input: true \ No newline at end of file
pullup: true
name: "Heat Button"
id: heat_button
on_release:
then:
- climate.control:
id: pid_heater
mode: "OFF"
on_press:
then:
- climate.control:
id: pid_heater
mode: HEAT
target_temperature: 264
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment