FloatShield Class¶
- class automationshield.FloatShield(port: str | None = None)[source]¶
Bases:
BaseShieldClass for Floatshield device. Inherits from BaseShield.
The Floatshield features a ball in a vertical tube. A fan (the actuator) is installed at the bottom, which can blow the ball up in the tube. The position of the ball in the tube is measured by a distance sensor at the top of the tube, using infrared laser.
- Interface:
Actuator input should be provided in percent by default.
Potentiometer is provided in percent by default.
Sensor values are provided in millimetres from the bottom of the tube.
- Parameters:
port (str | None) – Port on which the Arduino is connected, defaults to None.
- script: str = 'floatshield'¶
Name of the script directory in which the
.inofile for the specific shield is located.
- shield_id: str = 'FL'¶
ID assigned to shield. This is used to check whether the correct firmware is installed on the Arduino.
- class PlotInfo[source]¶
Bases:
PlotInfo- sensor_min: float = 0¶
Sets to lower bound of the sensor value. This is used to set up the
LivePlotter.
- sensor_max: float = 320¶
Sets the upper bound of the sensor value. This is used to set up the
LivePlotter.