packageUart

Serial link: the microcontroller and external serial devices - suffix Py: device whose behaviour is described by a Python script

Extends from Modelica.Icons.ExamplesPackage (Icon for packages containing runnable examples).

Contents

NameDescription
LoopbackReal electrical serial link looped back on itself: GP0 (TX) transmits a frame, GP1 (RX) receives and decodes it, GP3 (LED) confirms that the byte arrived intact
EchoPyThe microcontroller talks to an external serial device: it sends a line, the device sends it back
SensorThe microcontroller queries a serial temperature sensor, reads two changing measurements, then sends it a setpoint that comes out on a real output
RegulationControl loop closed through the serial link alone: the real output of the sensor drives the plant, whose response comes back on its input
GpsPyA GPS module spontaneously pushes its position frames; the microcontroller counts them without ever asking for anything
StateMachinePySerial device whose behaviour is described by a state-machine Python script: its reply depends on what happened before
LcdThe microcontroller writes two lines to a 20x2 display through a real serial link; the display shows them on its icon with scrolling
FormatSerial link in 8E2 (even parity, 2 stop bits) instead of 8N1: the microcontroller and the device must use the same frame format