Yeni: Yapay zekâ güvenlik duvarı tüm platformu izliyor ve her olayı sade bir dille açıklıyor. Nasıl çalıştığını görün

Michael Wilson

wilsonmaker

@wilson-m · Temmuz 2025 tarihinde katıldı

Yeni üye

Maker · home automation · Nottingham · new to IoT

Konular
14
Yanıtlar
70
Puan
0
Yeni üye10 için Üye puan

Oluşturulan forum yanıtları

15 yazı görüntüleniyor – 31 ile 45 arası (toplam 70)

I’m a beginner too but I had exactly this with my weather station PC last winter, and the fix was to stop caring about the number. Find the port by what’s plugged into it instead. pyserial can list ports with their USB ids and serial number:

from serial.tools import list_ports

def find_arduino():
    for p in list_ports.comports():
        print(p.device, p.vid, p.pid, p.serial_number, p.description)
        if p.vid == 0x2341 and p.serial_number == "85736323838351F0B0E1":
            return p.device
    return None

port = find_arduino()
ser = serial.Serial(port, 9600, timeout=2)

Run it once to print yours and copy the serial number in. 0x2341 is the vendor id of genuine Arduino boards. If yours is a clone with a CH340 chip (vid 0x1A86), careful: those usually have no serial number, so with two clones you can’t tell them apart and you’d match on p.location (the USB socket) instead.

Also wrap the read loop so it looks for the port again after an error instead of dying, then people can replug whenever they like.

Ask me about 4–20 mA.
Kabul edilen çözüm♥ 8

Yapay zekâ tarafından English dilinden çevrildi ·

Evet, geçen kış evde kâğıt üzerinde aynı hatayı ben de yaptım. Kuru kontak gerekiyor; yani termostat uçlarına paralel olarak, gerilimsiz bir röle modülü (Sonoff RE5V1C tipi kart ya da COM/NO bağlı herhangi bir ESP8266 ile 5 V röle modülü) bağlamalısınız. Böylece kart arızalansa bile eski termostat çalışmaya devam eder.Kataloğu bulduktan sonra kart tarafı düşündüğümden daha kolaydı. Cihazın profilini açın, Commands sekmesine gidip Add command seçin:

Method:  heat.set
Label:   Heating
Tier:    Basic
Parameters: on (Yes / no, required)

Anahtar ayarlarında yalnızca bu listedeki Basic seviyeli komutlar görünür. Sonra Switch: Run a command bölümünde cihazı ve heat.set’i seçin, değeri “The control’s value” olarak ayarlayın. Current state alanını, kartın bildirdiği bir telemetri anahtarına bağlayın; ben her okumayla birlikte heat_on değerini 0/1 olarak gönderiyorum, böylece anahtar tıklamanızı değil rölenin gerçekte ne yaptığını gösteriyor. Işık ya da ısıtma için “Ask before running” seçeneğini kapatabilirsiniz. Kart, aynı id üzerinden yanıt vermezse kart “Sent; waiting for the device” durumunda takılı kalır:

// in callback, topic "v1/rpc/req/17"
String id = String(topic).substring(11);
digitalWrite(RELAY, on ? HIGH : LOW);
mqtt.publish(("v1/rpc/res/" + id).c_str(), "{"ok":true}");

Kullandığım sayfa: Control cards.

Ask me about 4–20 mA.
Kabul edilen çözüm♥ 5

I looked into this for a friend’s small bakery. I couldn’t find a doc page for Forge either, so I can’t tell you what it does for quality or how it gets on a plan.

What works with the normal IoT part: have the sensor’s controller (or a small PLC) send the thickness of each piece, or the min/max/average per 10 s, as telemetry, e.g. {"thick_mm": 7.12, "rejects": 3}. Then an alarm rule on the profile for out of tolerance. There’s no “between” operator, but you can group conditions with any:

{ "any": [
  { "key": "thick_mm", "op": "<", "value": 6.0 },
  { "key": "thick_mm", "op": ">", "value": 8.0 }
] }

For counts per shift, send a growing rejects_total counter and chart it with the increase aggregate per hour. The reject gate itself must be driven locally by the sensor controller or PLC, not from the cloud; a belt at 0.4 m/s can’t wait on a round trip.

The conditions reference is Alarm conditions reference.

Ask me about 4–20 mA.
Kabul edilen çözüm♥ 3

DNSServer + WiFiManager and the portal pops up on both phones now. Provisioning worked first time with pre-created names; I read the 30 chip IDs over serial into a CSV first. Forgot to save the token to NVS on my first build, so on reboot it tried to provision again and got device_exists. Fixed, and stickers are printed.

Ask me about 4–20 mA.
♥ 1

Yapay zekâ tarafından English dilinden çevrildi ·

Meğer sorun buymuş. Misafir ağı yönlendiriciyi DNS olarak sorunsuz veriyor, ama sketch’im bir firewall’un engellediği sabit kodlu bir NTP IP’si kullanıyordu; bu yüzden saat hiç ayarlanmadı ve TLS başarısız oldu. Bunu pool.ntp.org olarak değiştirdim ve sensör geri geldi. Beşi de şu an misafir ağında, izolasyon kapalı ve iş dizüstü bilgisayarı onları göremiyor.Port yönlendirmesine dokunmadım, Kevin, yine de teşekkürler.

Ask me about 4–20 mA.
♥ 2

Yapay zekâ tarafından English dilinden çevrildi ·

Tam da bu sebeple ucuz bir RTC HAT aldım, DS3231, birkaç sterline. Böylece saat internet olmasa bile doğru oluyor.

Ask me about 4–20 mA.
♥ 0

Yapay zekâ tarafından English dilinden çevrildi ·

Gördüğüm kadarıyla yalnızca izolasyon anahtarı var, bir de bant genişliği sınırı. Düzgün bir kural yok.

Ask me about 4–20 mA.
♥ 0
15 yazı görüntüleniyor – 31 ile 45 arası (toplam 70)