wilsonmaker
@wilson-m · Temmuz 2025 tarihinde katıldı
Maker · home automation · Nottingham · new to IoT
- Konular
- 14
- Yanıtlar
- 71
- Puan
- 0
Oluşturulan forum yanıtları
Yapay zekâ tarafından English dilinden çevrildi ·
+1, hava durumu tahminiyle birlikte sera ısıtıcım için de bunu isterdim.
+1, would like this for my greenhouse heater with a weather forecast too.
Yapay zekâ tarafından English dilinden çevrildi ·
Ben de yeni başlayanım ama geçen kış hava durumu istasyonu bilgisayarımda tam olarak bunu yaşadım ve çözüm numaraya takılmamaktı. Bunun yerine portu, üzerine takılı olan cihaza göre bul. pyserial, portları USB kimlikleri ve seri numaralarıyla listeleyebilir:
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)
Kendi cihazınızın bilgilerini yazdırmak için bir kez çalıştırın ve seri numarasını oraya kopyalayın. 0x2341, orijinal Arduino kartlarının satıcı kimliğidir. Kartınız CH340 çipli bir klonsa (vid 0x1A86) dikkatli olun: bunların genellikle seri numarası olmaz, bu yüzden iki klon kullanıyorsanız birbirinden ayırt edemezsiniz ve bunun yerine p.location (USB yuvası) üzerinden eşleştirmeniz gerekir.Ayrıca okuma döngüsünü, hata oluştuğunda çökmek yerine portu yeniden aramaya devam edecek şekilde sarmalayın. Böylece insanlar istedikleri zaman kabloyu çıkarıp takabilir.
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.
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.
Yep did the same mistake on paper last winter at home. You want a dry contact, so either a relay module that’s volt-free (the Sonoff RE5V1C style board, or any ESP8266 plus a 5 V relay module wired COM/NO) across the thermostat terminals, in parallel with the old thermostat so it still works if your board dies.
The board side was easier than I thought once I found the catalogue. Open the device’s profile, Commands tab, Add command:
Method: heat.set
Label: Heating
Tier: Basic
Parameters: on (Yes / no, required)
Only Basic tier commands from that list show up in the Switch settings. Then in the Switch: Run a command, pick the device and heat.set, value from “The control’s value”. Bind Current state to a telemetry key the board reports, I send heat_on as 0/1 with every reading so the switch shows what the relay is really doing, not what you clicked. For a light or heating you can turn “Ask before running” off. Reply on the same id or the card sits on “Sent; waiting for the device”:
// 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}");
Page I used: Control cards.
Yapay zekâ tarafından English dilinden çevrildi ·
Bunu bir arkadaşımın küçük fırını için inceledim. Forge için de bir doküman sayfası bulamadım, bu yüzden kalite için ne yaptığını ya da bir planda nasıl yer aldığını söyleyemem.Normal IoT kısmıyla çalışan yöntem şu: sensörün kontrol cihazı (ya da küçük bir PLC) her parçanın kalınlığını ya da 10 sn başına min/maks/ortalama değeri telemetri olarak göndersin, örneğin {"thick_mm": 7.12, "rejects": 3}. Ardından profilde tolerans dışı için bir alarm kuralı tanımlayın. “Arasında” operatörü yok, ancak koşulları any ile gruplayabilirsiniz:
{ "any": [
{ "key": "thick_mm", "op": "<", "value": 6.0 },
{ "key": "thick_mm", "op": ">", "value": 8.0 }
] }
Vardiya başına sayılar için, artan bir rejects_total sayacı gönderin ve bunu saatlik increase toplamıyla grafiğe dökün. Red kapısının kendisi bulut yerine sensörün kontrol cihazı ya da PLC tarafından yerel olarak sürülmelidir; 0,4 m/s hızındaki bir bant, bir gidiş-dönüş beklemek zorunda kalamaz.Koşullar referansı: Alarm conditions reference.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
DNSServer + WiFiManager eklendi ve artık portal her iki telefonda da açılıyor. Provisioning, önceden oluşturulmuş isimlerle ilk denemede çalıştı; önce 30 çip ID’sini seri port üzerinden okuyup bir CSV dosyasına kaydettim. İlk derlemede token’ı NVS’e kaydetmeyi unutmuştum, bu yüzden yeniden başlatmada provisioning tekrar denendi ve device_exists hatası aldı. Düzeltildi, etiketler de basıldı.
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.
Yapay zekâ tarafından English dilinden çevrildi ·
rev 2 kartlar iki adet MMBT3904 ve EN üzerinde 1 uF ile geldi. Yüklemeler artık otomatik ve monitörü açmak artık kartı sıfırlamıyor. Rev 1’i kablolara bağlı transistörlerle geçici olarak düzelttim; çirkin ama çalışıyor. Eric’e teşekkürler, bunu hemen fark eden Aoife’ye de.
rev 2 boards arrived with two MMBT3904 and the 1 uF on EN. Uploads are automatic now and opening the monitor no longer resets it. I bodged rev 1 with transistors on wires, ugly but works. Thanks Eric, and Aoife for spotting it straight away.
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.
That was it. Guest network hands out the router as DNS fine, but my sketch was using a hardcoded NTP IP that a firewall blocked, so the clock never set and TLS failed. Switched it to pool.ntp.org and the sensor came back. All five are on the guest network now, isolation off, and the work laptop can’t see them.
Didn’t touch the port forwarding, Kevin, thanks anyway.
Yapay zekâ tarafından English dilinden çevrildi ·
Sebep pil olabilir mi? Pil soğukken benimkinin okumaları tuhaftı.
Could it be the coin cell? Mine read weird when the battery was cold.
Yapay zekâ tarafından English dilinden çevrildi ·
MJPEG için üzücü ama mantıklı, teşekkürler Aoife.
Shame about MJPEG but makes sense, thanks Aoife.
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.
I bought a cheap RTC HAT for this exact reason, DS3231, a couple of quid. Then the clock is right even offline.
Yapay zekâ tarafından English dilinden çevrildi ·
Flaşlandıktan sonra bunu Hermetry’nin kamera canlı görünümünde izleyebilir misin? Bunları merak ediyordum.
Can you watch it in Hermetry’s camera live view once it’s flashed? Been wondering about these.
Yapay zekâ tarafından English dilinden çevrildi ·
İstek için +1, bahçe kulübemdeki kamera için basit bir kişi sayımı çok isterim.
+1 for the request, would love a simple person count for my garden shed camera.
Yapay zekâ tarafından English dilinden çevrildi ·
Sadece temas noktalarını daha büyük yapabilir misiniz? Örneğin istasyonda geniş bakır şeritler gibi.
Could you just make the contacts bigger? Like wide copper strips on the dock.
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.
Only the isolation switch as far as I can see, plus a bandwidth limit. No proper rules.
Yapay zekâ tarafından English dilinden çevrildi ·
belki WiFi çok fazla akım çekiyor ve 3.3 V hattı çöküyor mu? Benimkinde brownout sorunları yaşadım
maybe the WiFi pulls too much current and the 3.3 V sags? I had brownouts on mine

