# ArduinoSensor Beta

class ArduinoSensor(serial_port: str, name: Union[str, NoneType] = None, command: str = '*')

Generic driver for an Arduino-based sensor.

These devices connect through serial at 115,200 baud. They introduce themselves upon first connect/reset. They listen for a single byte command in their main loop(). When commanded, they respond with some ASCII data.

# Arguments

  • serial_port: Serial port through which device is connected
  • name: The name of the component.
  • command: Command to be sent to device to request reading. '*' by default.

# Returns

  • When read, returns the parsed response, which can be an int or float.

# Metadata

Built and maintained by:

Author Institution GitHub
Murat Ozturk Indiana University, School of Informatics, Computing and Engineering @littleblackfish