(11-22-2025, 12:46 PM)admin Wrote: free GPIO (without pull up resistance):
GPIO15
GPIO16
these two free gpios can use for DS18B20 for N60
I´ve used pin 15 with no luck. The actual question was, in what spot in the code I should put the sensor setup?
I just tried again like this (part of the code):
font:
- file: "gfonts://Roboto"
id: roboto
size: 15
i2c:
sda: 18
scl: 17
display:
- platform: ssd1306_i2c
model: "SSD1306 128x64"
address: 0x3C
lambda: |-
it.printf(0, 15, id(roboto), "IP: %s", id(eth_ip).state.c_str());
modbus:
modbus_controller:
- address: 1
update_interval: 5s
one_wire:
- platform: gpio
pin: GPIO15
sensor:
- platform: dallas_temp
name: spk_lampotila
update_interval: 10s
- platform: modbus_controller
address: 100
register_type: holding
name: bl0910_1_current_1
id: n60_1_current_1
unit_of_measurement: A
device_class: current
accuracy_decimals: 3
value_type: U_DWORD_R
filters:
- multiply: 0.001
And I get an error:
collect2: error: ld returned 1 exit status
*** [.pioenvs/spk-mittaukset/firmware.elf] Error 1
========================= [FAILED] Took 46.92 seconds =========================
What could cause this and again, where in what palce in the code should I put that sensor in?