Contents Menu Expand Light mode Dark mode Auto light/dark mode
gearpy
gearpy

Library

  • gearpy
    • mechanical_objects
      • DCMotor
        • angular_acceleration
        • angular_position
        • angular_speed
        • compute_electric_current
        • compute_torque
        • drives
        • driving_torque
        • electric_current
        • electric_current_is_computable
        • inertia_moment
        • load_torque
        • maximum_electric_current
        • maximum_torque
        • name
        • no_load_electric_current
        • no_load_speed
        • pwm
        • time_variables
        • torque
        • update_time_variables
      • Flywheel
        • angular_acceleration
        • angular_position
        • angular_speed
        • driven_by
        • drives
        • driving_torque
        • inertia_moment
        • load_torque
        • master_gear_efficiency
        • master_gear_ratio
        • name
        • time_variables
        • torque
        • update_time_variables
      • GearBase
      • HelicalGear
        • angular_acceleration
        • angular_position
        • angular_speed
        • bending_stress
        • bending_stress_is_computable
        • compute_bending_stress
        • compute_contact_stress
        • compute_tangential_force
        • contact_stress
        • contact_stress_is_computable
        • driven_by
        • drives
        • driving_torque
        • elastic_modulus
        • external_torque
        • face_width
        • helix_angle
        • inertia_moment
        • lewis_factor
        • load_torque
        • master_gear_efficiency
        • master_gear_ratio
        • mating_role
        • module
        • n_teeth
        • name
        • reference_diameter
        • tangential_force
        • tangential_force_is_computable
        • time_variables
        • torque
        • update_time_variables
      • MatingMaster
      • MatingSlave
      • MechanicalObject
      • MotorBase
      • Role
      • RotatingObject
      • SpurGear
        • angular_acceleration
        • angular_position
        • angular_speed
        • bending_stress
        • bending_stress_is_computable
        • compute_bending_stress
        • compute_contact_stress
        • compute_tangential_force
        • contact_stress
        • contact_stress_is_computable
        • driven_by
        • drives
        • driving_torque
        • elastic_modulus
        • external_torque
        • face_width
        • inertia_moment
        • lewis_factor
        • load_torque
        • master_gear_efficiency
        • master_gear_ratio
        • mating_role
        • module
        • n_teeth
        • name
        • reference_diameter
        • tangential_force
        • tangential_force_is_computable
        • time_variables
        • torque
        • update_time_variables
      • WormGear
        • angular_acceleration
        • angular_position
        • angular_speed
        • compute_tangential_force
        • driven_by
        • drives
        • driving_torque
        • external_torque
        • helix_angle
        • inertia_moment
        • load_torque
        • master_gear_efficiency
        • master_gear_ratio
        • mating_role
        • n_starts
        • name
        • pressure_angle
        • reference_diameter
        • self_locking
        • tangential_force
        • tangential_force_is_computable
        • time_variables
        • torque
        • update_time_variables
      • WormWheel
        • angular_acceleration
        • angular_position
        • angular_speed
        • bending_stress
        • bending_stress_is_computable
        • compute_bending_stress
        • compute_tangential_force
        • driven_by
        • drives
        • driving_torque
        • external_torque
        • face_width
        • helix_angle
        • inertia_moment
        • lewis_factor
        • load_torque
        • master_gear_efficiency
        • master_gear_ratio
        • mating_role
        • module
        • n_teeth
        • name
        • pressure_angle
        • reference_diameter
        • tangential_force
        • tangential_force_is_computable
        • time_variables
        • torque
        • update_time_variables
    • motor_control
      • PWMControl
        • add_rule
        • apply_rules
        • rules
      • MotorControlBase
      • rules
        • ConstantPWM
          • apply
        • ReachAngularPosition
          • apply
        • RuleBase
        • StartLimitCurrent
          • apply
        • StartProportionalToAngularPosition
          • apply
    • powertrain
      • Powertrain
        • elements
        • export_time_variables
        • plot
        • reset
        • self_locking
        • snapshot
        • time
        • update_time
    • sensors
      • AbsoluteRotaryEncoder
        • get_value
        • target
      • Amperometer
        • get_value
        • target
      • SensorBase
      • Tachometer
        • get_value
        • target
      • Timer
        • duration
        • is_active
        • start_time
    • solver
      • Solver
        • run
    • units
      • AngularAcceleration
        • to
        • unit
        • value
      • Angle
        • cos
        • sin
        • tan
        • to
        • unit
        • value
      • AngularPosition
        • cos
        • sin
        • tan
        • to
        • unit
        • value
      • AngularSpeed
        • to
        • unit
        • value
      • Current
        • to
        • unit
        • value
      • Force
        • to
        • unit
        • value
      • InertiaMoment
        • to
        • unit
        • value
      • Length
        • to
        • unit
        • value
      • Stress
        • to
        • unit
        • value
      • Surface
        • to
        • unit
        • value
      • Time
        • to
        • unit
        • value
      • TimeInterval
        • to
        • unit
        • value
      • Torque
        • to
        • unit
        • value
      • UnitBase
    • utils
      • add_fixed_joint
      • add_gear_mating
      • add_worm_gear_mating
      • dc_motor_characteristics_animation
      • export_time_variables
      • StopCondition
        • operators
          • EqualTo
          • GreaterThan
          • GreaterThanOrEqualTo
          • LessThan
          • LessThanOrEqualTo
          • OperatorBase
        • check_condition
        • operator
        • sensor
        • threshold
  • Usage Examples
    • 1 - Simple Powertrain
      • System in Analysis
      • Model Set Up
      • Simulation Set Up
      • Results Analysis
    • 2 - Complex External Torque
      • System in Analysis
      • Model Set Up
      • Results Analysis
    • 3 - Gear Structural Analysis
      • System in Analysis
      • Model Set Up
      • Results Analysis
    • 4 - DC Motor Electric Analysis
      • System in Analysis
      • Model Set Up
      • Results Analysis
    • 5 - DC Motor PWM Control
      • System in Analysis
      • Model Set Up
      • Simulation Set Up
      • Results Analysis
      • Improved Model Set Up
      • Simulation Set Up
      • Results Analysis
    • 6 - DC Motor Animation
      • System in Analysis
      • Model Set Up
    • 7 - Worm and Helical Gears
      • System in Analysis
      • Model Set Up
      • Simulation Set Up
      • Results Analysis
    • 8 - Multiple Simulation Concatenation
      • System in Analysis
      • Second Step Model Set Up
      • Simulation Set Up
      • Results Analysis
    • 9 - Stop Simulation
      • System in Analysis
      • Second Step Model Set Up
      • Simulation Set Up
      • Results Analysis
    • 10 - Time Variables Export
      • System in Analysis
      • Time Variables Export
    • 11 - External Torque From File
      • System in Analysis
      • External Load Torque Analysis
      • Model Set Up
      • Results Analysis

References

  • Get Started
    • Installation
    • Dependencies
  • PyPI
  • Issue Tracker
  • Source Code
  • License
  • Release Notes
    • Version 1.0.0
Back to top

SensorBase¶

class SensorBase¶

Bases: ABC

SensorBase object.

Abstract base class for creating sensor objects.

See Also

AbsoluteRotaryEncoder

Amperometer

Tachometer

Next
Tachometer
Previous
target
Copyright © 2024, Andrea Blengino
Made with Sphinx and @pradyunsg's Furo
On this page
  • SensorBase
    • SensorBase