robotics company robot company  

Go Back   Trossen Robotics Community > TRC Data Center > Drivers, Libraries, Firmware

Home Submit File What's New What's Popular Search

Axon PS2 Controller Interface Library
Old 09-28-2009 02:45 AM
JadeKnight
JadeKnight is offline
Vacuum Tube
 
Views: 592
Replies: 0
This is a library (.h and .c file) to interface with a PS2 controller using an Axon MCU. It should work with any AVR based MCU, though, with some minor modifications.

The low level PS2 communication code was adapted from 'Dunk's tutorial on the 'Society of Robots' website.
http://www.societyofrobots.com/membe...rials/node/200

Features:
  • Configurable pin assignments (uses 4 or 5 I/O pins, and 5v regulated power).
  • Supports connecting/disconnecting the controller at any time.
  • Detecting analog vs. digital mode.
  • Forcing analog mode on controller.
  • Easy access to all buttons and axes (axes can be raw, or with a simple deadzone).
  • Currently tested to work with a genuine Sony PS2 wired controller (any other brands/types *may* require some tweaking of the low-level communication code).
Attached Files
File Type: zip Axon_PS2_Controller (4.27 KB, 78 views)
Tags: PS2 Controller Axon AVR




 


All times are GMT -5. The time now is 05:07 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.