ME 405 Portfolio
Public Member Functions | Public Attributes | List of all members
actuator.Actuator Class Reference

Driver to be used to interact with the 12 V Linear Actuator. More...

Public Member Functions

def __init__ (self)
 Configures the Linear Actuator. More...
 
def pen_down (self)
 Places the pen down. More...
 
def pen_up (self)
 Places the pen up. More...
 
def lock_pen (self)
 Locks pen in place. More...
 

Public Attributes

 EN_A
 Creates an Enable Pin. More...
 
 IN1A
 Input 1 Pin. More...
 
 IN2A
 Input 2 Pin. More...
 

Detailed Description

Driver to be used to interact with the 12 V Linear Actuator.

This driver manipulates the pins that are connected to the X_Nucleo IHM04A1 DC Motor Breakout Shield.

Constructor & Destructor Documentation

◆ __init__()

def actuator.Actuator.__init__ (   self)

Configures the Linear Actuator.

Configures all the pins on the Nucleo such that the Nucleo can control the Linear Actuator.

Member Function Documentation

◆ lock_pen()

def actuator.Actuator.lock_pen (   self)

Locks pen in place.


Once a pen position is reached, this method helps lock the pen in place.

◆ pen_down()

def actuator.Actuator.pen_down (   self)

Places the pen down.

This method allows the user to tell the actuator to place the pen on the paper.

◆ pen_up()

def actuator.Actuator.pen_up (   self)

Places the pen up.

This method allows the user to tell the actuator to take the pen off the paper.

Member Data Documentation

◆ EN_A

actuator.Actuator.EN_A

Creates an Enable Pin.

The Enable pin is necessary to start controlling the pen motion.

◆ IN1A

actuator.Actuator.IN1A

Input 1 Pin.

The pen actuator requires two pins to control upward/downward motion. This is the first pin.

◆ IN2A

actuator.Actuator.IN2A

Input 2 Pin.

The pen actuator requires two pins to control upward/downward motion. This is the second pin.


The documentation for this class was generated from the following file: