Use an xbox controller for sensor interface
Posted: Mon Sep 27, 2010 3:17 pm
Hi, I do quite a lot of work with the Max/MSP music audio software and I have been happily using various sensors connected to the analogue ins of a Make Controller for various projects. But now I'd like to do some wireless stuff. I tried working with xbees, but couldn't really get any joy out of them. However I have just started using an Xbox controller connected to a USB port on a PC - I can then use this with Max/MSP because it has a Human Interface object which makes it really easy to set up.
The Xbox controller comes equipped with lots of switches and 2 joysticks and I don't have to worry about debouncing etc. My understanding of electronics is somewhat basic, but as I understand it each of the joysticks comprise of two 5K pots for the X and Y axis. If I wanted to replace one of the pots say with an LDR in the 5K range (if such a thing exists) then presumably I could hack in to the Xbox and substitute the 5k pot for the ldr and then light falling on this LDR substitutes for the movement of the X axis for example.
However, what if I wanted to substitute the joystick pot with a sensor which produced a variable voltage like a hall effect sensor. How could I trick the Xbox controller in to thinking that the hall effect sensor was behaving like a variable resistor instead ? Once I crack this with the cheap second hand wired controllers I would feel happier about modding the wireless ones.
Thanks ,
Des
The Xbox controller comes equipped with lots of switches and 2 joysticks and I don't have to worry about debouncing etc. My understanding of electronics is somewhat basic, but as I understand it each of the joysticks comprise of two 5K pots for the X and Y axis. If I wanted to replace one of the pots say with an LDR in the 5K range (if such a thing exists) then presumably I could hack in to the Xbox and substitute the 5k pot for the ldr and then light falling on this LDR substitutes for the movement of the X axis for example.
However, what if I wanted to substitute the joystick pot with a sensor which produced a variable voltage like a hall effect sensor. How could I trick the Xbox controller in to thinking that the hall effect sensor was behaving like a variable resistor instead ? Once I crack this with the cheap second hand wired controllers I would feel happier about modding the wireless ones.
Thanks ,
Des