Instruments
The plugin exposes three PyMoDAQ instruments. The actuator and the 0D viewer talk to the Raspberry over the network (see Communication (PyMoDAQ ⇄ Raspberry)); the 2D viewer drives the Pi camera directly and therefore only works on the Raspberry itself.
MoveRasp — actuator (DAQ_Move)
MoveRasp drives the outputs of the bench wired to the Raspberry (e.g. a fan or a
heater), either in PWM or in all-or-nothing mode depending on the bench
configuration.
The available axes are loaded automatically from the bench configuration (
ACTUATORS_CONFIGinconfig.py): each actuator becomes a selectable axis with its owntitle,unitsand bounds (min/max).Selecting an axis updates the units and bounds accordingly; the set-point is then sent to the Raspberry as a piloting request through the ZMQ link.
Find homedrives the selected output to0.
On the default bench, two PWM actuators are exposed: a fan (Ventilateur, 25 kHz) and a heater (Resistance, 100 Hz).
ViewRasp — detector (DAQ_Viewer 0D)
ViewRasp reads the sensors of the bench (I2C sensors and pin inputs) wired to the
Raspberry.
The settings list every component found in the configuration, grouped under Detectors and Actuators; tick the components you want to acquire.
On each grab, the selected components are read in a single multi-acquisition request and returned as 0D data — one labelled channel per component.
On the default bench, the available channels include the relative humidity (AHT10) and several temperatures (four TMP102 probes and the EMC2101 controller).
PiCamera — detector (DAQ_Viewer 2D)
PiCamera streams the Raspberry Pi camera using the Picamera2 library.
The
Resolutionparameter switches betweenlow(preview configuration) andhigh(still configuration).A frame is returned as a 2D array (grayscale) or as three channels (RGB); hardware averaging over Naverage frames is supported.
Warning
picamera2 is Linux / Raspberry only. On a Windows or macOS control machine the
PiCamera viewer is simply not loaded; the remote actuator and 0D detector keep working.