Check out my first novel, midnight's simulacra!

InaMORAta: Difference between revisions

From dankwiki
No edit summary
Line 8: Line 8:
We'll want to report RPMs to the controlling host, and probably take PWM and RGB orders from it. We might use [[LoRa]] for this later. For now, we'll use MQTT over WiFi from the Heltec.
We'll want to report RPMs to the controlling host, and probably take PWM and RGB orders from it. We might use [[LoRa]] for this later. For now, we'll use MQTT over WiFi from the Heltec.
===MQTT topics===
===MQTT topics===
* <tt>mora3/pwm</tt> desired PWM, integer 0–255, published by controller, subscribed by Heltec
* <tt>sensors/mora3.therm</tt> floating-point temperature in celsius
* <tt>mora3/therm</tt> temperature in celsius, published by Heltec, subscribed by controller
** published once per second by Heltec, subscribed by controller
* <tt>mora3/rpm</tt> rpm extrapolated from the most recent second (i.e., multiplied by 60), Heltec->controller
* <tt>sensors/mora3.rpm</tt> integer rpm extrapolated from the most recent second (i.e., multiplied by 60)
** published once per second by Heltec, subscribed by controller
* <tt>control/mora3/rgb</tt> accepts six hex digits BBRRGG specifying the fan color
** published by controller, subscribed by Heltec
* <tt>control/mora3/pwm</tt> accepts an integer 0–255 specifying the fan PWM
** published by controller, subscribed by Heltec


==Powering the system==
==Powering the system==