benhar-dev / ads-xbox-controller

Use an xbox controller with TwinCAT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple example of using an Xbox controller with TwinCAT

Disclaimer

This is a personal guide not a peer reviewed journal or a sponsored publication. We make no representations as to accuracy, completeness, correctness, suitability, or validity of any information and will not be liable for any errors, omissions, or delays in this information or any losses injuries, or damages arising from its display or use. All information is provided on an as is basis. It is the reader’s responsibility to verify their own facts.

The views and opinions expressed in this guide are those of the authors and do not necessarily reflect the official policy or position of any other agency, organization, employer or company. Assumptions made in the analysis are not reflective of the position of any entity other than the author(s) and, since we are critically thinking human beings, these views are always subject to change, revision, and rethinking at any time. Please do not hold us to them in perpetuity.

Overview

This is a proof of concept that you can use interface an xbox controller to TwinCAT via ADS. In this example we use a Python script in order to provide the controller wrapper.

Getting Started

First start the PLC project running. Next run the python script on the same IPC as the TwinCAT runtime. Finally open Desktop.view and start live view by pressing the small [L] on the right hand side.

Screenshot

image

Wireless Bluetooth Connection

There has been reported success with using the TP Link UB500 Bluetooth Adapter on IPCs running Windows 10 LSTC 2021. (not LSTC 2019!). Please feel free to submit further compatible Bluetooth dongle part numbers to include them here.

Versions

  • TcXaeShell 3.1.4024.20
  • TE2000 1.12.750.1

Need more help?

Please visit http://beckhoff.com.au/ for further guides

Acknowledgments

Other examples

Below is a list of other community made TwinCAT / Controller repos

About

Use an xbox controller with TwinCAT

License:MIT License


Languages

Language:CSS 72.0%Language:Python 20.0%Language:Smarty 7.9%