Hello Everybody,
Actually I’m trying to build an ESPHome based (3D-Printer) Filament-Dryer including a scale to predict the amount of filament left inside. By now I successfully connected the sensors: the HX711 and a HTU21D.
I really would be happy to upload this (later hopefully successful) project here.
My problem is: I can not successfully connect this 5V Relais Module to this NodeMCU V3 ESP8266 (12F) via this TXS0108E Logic Level Converter: it’s control-LEDs do not light up at all (neither when switch PIN is activated or it is not).
In my following code I already tried with and without out commented inverted mode:
substitutions:
devicename: "filadryer_2"
friendly_name: "KE Filament Dryer 2"
esphome:
name: "${name}"
friendly_name: "${friendly_name}"
esp8266:
board: nodemcuv2
wifi:
ssid:
password:
power_save_mode: none
reboot_timeout: 0s
web_server:
port: 80
logger:
level: DEBUG
api:
ota:
mdns:
disabled: false
i2c:
- id: klima
sda: D2
scl: D1
scan: true
switch:
- platform: gpio
pin: D5
name: 'Obere Heizschale'
id: heizschale_oben
# inverted: true
- platform: gpio
pin: D6
name: 'Untere Heizschale'
id: heizschale_unten
# inverted: true
- platform: template
name: 'Heizung'
icon: "mdi:hair-dryer"
id: heizung
turn_on_action:
- switch.turn_on: heizschale_oben
- switch.turn_on: heizschale_unten
turn_off_action:
- if:
condition:
- switch.is_on: heizung
then:
- switch.turn_off: heizschale_oben
- switch.turn_off: heizschale_unten
optimistic: true
assumed_state: true
sensor:
- platform: htu21d
i2c_id: klima
temperature:
name: "Filament Dryer 2 Temperatur"
humidity:
name: "Filament Dryer 2 Luftfeuchtigkeit"
update_interval: 60s
- platform: hx711
name: "Filament Dryer 2 Masse"
id: masse
dout_pin: D3
clk_pin: D4
gain: 128
filters:
- calibrate_linear:
- 484000 -> 0
- 611000 -> 275
update_interval: 60s
unit_of_measurement: g
accuracy_decimals: 0
As far as I found out D5
and D6
are some of the rare control PINs that can be used for relays: so they are not HIGH or LOW upon boot.
The relays VCC
and JD-VCC
are connected (via jumper) and VCC
is connected to 5V supply that of course is also connected to the LogicLevel converters HV-VC-PIN
.
I already re-soldered the LogicLevel converter, replaced it and also tried to replace the NodeMCU. And - of course - controlled every intended voltage amount everywhere in every situation (D5
and/or D6
turned on/off).
As far as I have come too, now I am really desperate, so any help and suggestions would really be appreciated…