thompsonfw
@mthompson · Ağustos 2025 tarihinde katıldı
Embedded developer · agriculture · 4 years in the field
- Konular
- 5
- Yanıtlar
- 24
- Puan
- 0
Oluşturulan forum yanıtları
Yapay zekâ tarafından English dilinden çevrildi ·
Hangi pin tekrar? GPIO 4 mü?
Which pin again? GPIO 4?
Yapay zekâ tarafından English dilinden çevrildi ·
30 prob, yeniden tasarım bütçesi yok.
30 probes, no redesign budget.
Yapay zekâ tarafından English dilinden çevrildi ·
Sertifikalı modül. Kendi radyo tasarımınızı kasıtlı yayıcı sertifikasyonu için test etmek, ilk partinizin tamamından daha pahalıya mal olur ve kopyalanmış bir anten ilk seferde nadiren geçer.
Certified module. Testing your own radio design for intentional radiator certification costs more than your whole first batch, and a copied antenna rarely passes first time.
Yapay zekâ tarafından English dilinden çevrildi ·
Kapı kontakları basit reed anahtarlarıdır, evet. PIR’ler ESP32’den çalışmaz, kendi 12 V beslemesine ihtiyaç duyar. PIR çıkışlarının röle kontağı mı yoksa open collector mı olduğunu biliyor musunuz? Genellikle bu bilgi kapağın içindeki karttaki yazılıdır.
Door contacts are plain reed switches, yes. The PIRs will not run from the ESP32, they need their own 12 V supply. Do you know if the PIR outputs are relay contacts or open collector? It’s usually written on the board inside the cover.
Yapay zekâ tarafından English dilinden çevrildi ·
Hesaplamayı ESP32 üzerinde yapın. Sulama pivotlarında eğim alarmlarını bu şekilde yapıyorum.Düşürmeler: bir cihaz profili varsayılan olarak saniyede 10 telemetri mesajına ve saniyede 200 veri noktasına izin verir. Siz saniyede 50 mesaj ve 450 nokta gönderiyorsunuz, bu yüzden çoğu onaylanıp düşürülüyor ve limitini sürekli aşan bir cihazın oturumu kapatılıyor. Logdaki rate_limit budur. Tablo için MQTT sayfasına bakın.Roberts.r için de açılar: roll, paletin uzun ekseni etrafındaki dönüş; pitch, kısa eksen etrafındaki dönüş; yaw ise pusula yönü. Palet hareketsizken yalnızca ivmeölçerden:
float roll = atan2(ay, az) * 180 / PI;
float pitch = atan2(-ax, sqrt(ay * ay + az * az)) * 180 / PI;
Hareket halindeki bir kamyonda ivmeölçer frenleme ve sarsıntıları da algılar; bu yüzden onu jiroskopla harmanlayın (tamamlayıcı filtre, yaklaşık %98 jiroskop, %2 ivmeölçer) ya da yaw için manyetometreyi de kullanan bir Madgwick filtre kütüphanesi kullanın.Sonra ham akışı değil, ihtiyacınız olanı gönderin: roll/pitch değerini her 10 saniyede bir, ayrıca eğim örneğin 30° değerini geçtiğinde anında bir mesaj göndererek:
{"roll": 2.1, "pitch": -0.8, "tilt_max": 3.4}
tilt_max, son mesajdan bu yana görülen en büyük eğimdir; böylece mesajlar arasındaki kısa bir uç kaybolmaz. Ardından tilt_max > 30 üzerinde bir alarm kuralı yeterlidir.
Compute on the ESP32. I do tilt alarms on irrigation pivots this way.
The drops: a device profile by default allows 10 telemetry messages per second and 200 data points per second. You send 50 messages and 450 points a second, so most of it is acknowledged and dropped, and a device that keeps breaking its limit gets its session closed. That’s the rate_limit in the log. See MQTT for the table.
Angles, for roberts.r too: roll is rotation around the pallet’s long axis, pitch around the short axis, yaw is the compass heading. From the accelerometer alone, when the pallet is still:
float roll = atan2(ay, az) * 180 / PI;
float pitch = atan2(-ax, sqrt(ay * ay + az * az)) * 180 / PI;
In a moving truck the accelerometer also sees braking and bumps, so blend it with the gyro (complementary filter, about 98 % gyro, 2 % accel) or use a Madgwick filter library, which also uses the magnetometer for yaw.
Then send what you need, not the raw stream: once every 10 s the current roll/pitch, plus an immediate message when the tilt passes, say, 30°:
{"roll": 2.1, "pitch": -0.8, "tilt_max": 3.4}
tilt_max is the biggest tilt seen since the last message, so a short tip between messages is not lost. An alarm rule on tilt_max > 30 is then all you need.
Yapay zekâ tarafından English dilinden çevrildi ·
Radyo olabilir. Bir keresinde Bluetooth’u çalışmayan ama Wi-Fi’si çalışan bir Pi 4 kullanmıştım, aynı çip ama yine de oluyor.
Could be the radio. I had a Pi 4 with dead Bluetooth but working Wi-Fi once, same chip but it happens.
Yapay zekâ tarafından English dilinden çevrildi ·
dtostrf bu. Artık geçerli JSON, anahtarlar görünüyor. NaN sorunu on dakika sonra başıma geldi, test için sensörü çıkardığımda. Yani iyi bir tavsiyeymiş.
dtostrf it is. Valid JSON now, keys showing up. The NaN point bit me ten minutes later when I unplugged the sensor to test, so good call.
Yapay zekâ tarafından English dilinden çevrildi ·
Sonlandırma ve bias dirençleri? Bunlar olmadan 38400 hızında 40 m, tam olarak bunu yapabilir.
Termination and bias resistors? 40 m at 38400 without them can do exactly this.
Yapay zekâ tarafından English dilinden çevrildi ·
Fark çaba noktasında. Bir kartı çıkarmak hiçbir beceri gerektirmez. ESP32 üzerinde flash belleği dökmek de kolaydır, flash şifreleme açık değilse. Flash şifreleme + NVS şifreleme birlikte kullanıldığında, dökülen veri ssadece anlamsız çıktı verir.
Difference is effort. Pulling a card is zero skill. Dumping flash is easy on an ESP32 too, unless flash encryption is on. With flash encryption + NVS encryption, a dump gives you garbage.

