Skip to content

Quickstart

You just received a brand new ActPack 4.1! We'll walk you step-by-step through how to connect your ActPack and read sensor data and/or make the motor move.

  1. Install git.

    Download the Git for Windows client here.

    Run:

    apt-get install git
    

  2. Install Python:

    Install the appropriate version of Python for Windows from here.

    sudo apt install python3

  3. Make a virtual enviroment:

    Open the start menu, and open "Git Bash." Run the following to create your enviroment:

    mkdir ~/.venvs
    python -m venv ~/.venvs/flexsea_demos_env
    

    mkdir ~/.venvs
    python3 -m venv ~/.venvs/flexsea_demos_env
    
  4. Activate the newly created virtual environment:

    source ~/.venvs/flexsea_demos_env/Scripts/activate
    
    source ~/.venvs/flexsea_demos_env/bin/activate
    
  5. Clone the repository:

    git clone https://github.com/DephyInc/Actuator-Package.git
    cd Actuator-Package/Python/flexsea_demo
    
  6. Install the dependencies

    pip install .
    
  7. Hold the button until the ActPack turns on. (User Interface)

  8. Secure your ActPack to a working surface.
  9. Connect your ActPack to your power supply with an XT30 connector. Apply a voltage > UVLO.
  10. Hold the button until the ActPack turns ON.
  11. Connect your ActPack to your computer with a USB-C cable.

    Note

    Always use a USB Isolator to protect your computer.

  12. Make a copy of the default parameter file to a new file called params.yaml. This will hold the configuration settings for your ActPack program.

  13. Record the serial port assigned to your ActPack (e.g. COM5 or /dev/ttyACM0) in params.yaml under general > ports.

  14. Run the read_only demo program to read data from your actpack.

    flexsea_demos read_only params.yaml
    

Next Steps

  • Run Other Demos To see a list of the available demo names:

    flexsea_demos -h
    
  • Visualize data in the console and in the Matplotlib outputs

  • Use our scripts as a starting point for your own experiments!