V5 Pneumatics#

Introduction#

The V5 Pneumatics system uses an air pump and solenoid to control compressed air for moving cylinders. It can turn the pump on or off and extend or retract cylinders through code.

You will need to manually construct the class in order for this to work.

This page uses v5_pneumatic as the example V5 Pneumatics name. Replace it with your own configured name as needed.

Below is a list of available methods:

  • open – Extend a cylinder.

  • close – Retract a cylinder.

Constructors – Manually initialize and configure V5 Pneumatic Solenoid.

  • Pneumatics – Creates a V5 Pneumatics Solenoid.

Actions#

open#

open extends a cylinder.

Usage:

v5_pneumatic.open()

Parameters

Description

This method has no parameters.

close#

close retracts a cylinder.

Usage:
v5_pneumatic.close()

Constructors#

Constructors are used to manually create Pneumatics objects, which are necessary for configuring a V5 Pneumatic Solenoid.

Pneumatics#

Pneumatics creates a V5 Pneumatics Solenoid.

Usage:
Pneumatics(port)

Parameter

Description

port

The 3-Wire Port that the V5 Pneumatic Solenoid is connected to:

  • On the V5 BrainPorts.PORTx where x is the number of the port.
  • On a 3-Wire Expanderexpander.a where expander is the name of the expander instance.

# Create a V5 Pneumatic Solenoid in Port A
v5_pneumatic = Pneumatics(brain.three_wire_port.a)