Logitech PS2 Cordless Action Controller with Basic Stamp
xnonox
Posts: 6
I had luck with the logitech wireless controller with my BS2.
Basically, I used the code in N&V #101 and the same wiring.
except for this part of code:
PsxAtt PIN 9 ' PSX joystick interface
PsxClk PIN 8
PsxCmd PIN 10
PsxDat PIN 11
the original code was
PsxAtt PIN 8 ' PSX joystick interface
PsxClk PIN 9
PsxCmd PIN 10
PsxDat PIN 11
the other big difference is the +5V to the receiver.
I wasnt able to connect the controller to the receiver using 5V.
So I add a series of zener diode and a resister to about 3.5V (5 *0.7 zener)
I just dont have 3.3V zener on hand.
when the receiver is connected to the controller, the voltage across the receiver is 3.3V
after the code adjustment and 3.3V voltage regulation.
I had the code running with the logitech wireless controller
Right now I just need to figure out how to use t to control my boebot!!
UPDATE!! 3/15/11
I finally figure out how to use the receiving data to control my boebot .
the control part is very stable whether analog or digital.
However, when the controller is more than 3 feet away, the connection just isnt stable anymore (especially when using analog control).
I tried to tune up the receiver supply voltage (I used a 200 ohm pot)
it will stay connected between 3.3V to 4.0V
the range is still the same (about 2-3 feet)
I am thinking to put a wireless router antenna on both the receiver and controller to see if there is any difference.
UPDATE!!
I found out the cause of the range problem. I have a 2.4 GHz wireless camera that i forget to turn off.
Basically, I used the code in N&V #101 and the same wiring.
except for this part of code:
PsxAtt PIN 9 ' PSX joystick interface
PsxClk PIN 8
PsxCmd PIN 10
PsxDat PIN 11
the original code was
PsxAtt PIN 8 ' PSX joystick interface
PsxClk PIN 9
PsxCmd PIN 10
PsxDat PIN 11
the other big difference is the +5V to the receiver.
I wasnt able to connect the controller to the receiver using 5V.
So I add a series of zener diode and a resister to about 3.5V (5 *0.7 zener)
I just dont have 3.3V zener on hand.
when the receiver is connected to the controller, the voltage across the receiver is 3.3V
after the code adjustment and 3.3V voltage regulation.
I had the code running with the logitech wireless controller
Right now I just need to figure out how to use t to control my boebot!!
UPDATE!! 3/15/11
I finally figure out how to use the receiving data to control my boebot .
the control part is very stable whether analog or digital.
However, when the controller is more than 3 feet away, the connection just isnt stable anymore (especially when using analog control).
I tried to tune up the receiver supply voltage (I used a 200 ohm pot)
it will stay connected between 3.3V to 4.0V
the range is still the same (about 2-3 feet)
I am thinking to put a wireless router antenna on both the receiver and controller to see if there is any difference.
UPDATE!!
I found out the cause of the range problem. I have a 2.4 GHz wireless camera that i forget to turn off.