Quote:
Originally Posted by Garrett.d.w
thanks for the link to the code, this will be very helpful when writing my own version.
my only question as far as this code is where you got the PS/2 library and the network client library.
#include <Ethernet.h> (I already have this one)
#include <ClientUDP.h>(I need these two)
#include <PS2X_lib.h>
Am I correct to assume that you connected to the network using the ethernet shield?
|
Hey Garrett,
I worked with Anthony to develop the Arduino control system. Since we've released that source code, the official Arduino code has added in support for UDP packets. You no longer need a 3rd party library, but the code will have to be modified slightly. More on this below.
As far as the PS2X library, you can get it here:
http://www.billporter.info/playstati...-library-v1-0/
Please let me know if you're able to get this working, as I believe this is a new version of the library that we have yet to test.
I've gone ahead and released source code for a basic tank drive robot control system that uses an Arduino (I'd suggest an Ethernet Pro:
http://www.sparkfun.com/products/10536) or a Netduino (programmed in Visual Studio). I've released a free/open source Android app that you can use to control the Arduino or Netduino in addition to a Python app that will allow you to use a laptop as a driver station with any USB gamepad.
All the instructions and source code are located here:
http://ttjcrew.com/?p=156 (my personal site)
http://code.google.com/p/ipgamepad/ (google code project)
All of this code uses the latest Arduino version, so you should be able to get a basic system up and running without modifying anything. This works with the native Arduino Ethernet code to send UDP packets.
Hope this will get you off to a good start. I'm always available to answer questions, just shoot me a PM if you need any assistance. Good luck!