Check out my first novel, midnight's simulacra!

InaMORAta: Difference between revisions

From dankwiki
Line 74: Line 74:


==Protocol==
==Protocol==
The Heltec publishes desired PWM levels to the MEGA by writing a single byte over the UART. This communicates a value 0--255. It ought be immediately applied by the MEGA. It is published once a second, and whenever a new value is read from MQTT.
The MEGA publishes measured RPM and water temperature levels, along with the currently applied PWM, to the Heltec over the UART. Values may be published in any order, at any time. These values are published in a human-readable form, one after another with no intervening content. They are of the form `Tf`, `Ri`, and `Pi`, where `f` is a float and `i` is an integer.


[[CATEGORY:Projects]]
[[CATEGORY:Projects]]
[[CATEGORY:Hardware]]
[[CATEGORY:Hardware]]