Lynxmotion Tech Support

www.lynxmotion.com
It is currently Sat May 18, 2013 10:29 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sun Mar 13, 2011 4:19 pm 
Offline
Roboteer

Joined: Thu Mar 10, 2011 5:16 pm
Posts: 23
I have the lynxmotion wireless PS2 controller and it won't connect to the receiver. The green light on the receiver is solid and the red light is blinking. On the controller, the red light is blinking and the green light isn't lit up at all. I uploaded two photos of my wiring.


Attachments:
IMG_0400.JPG
IMG_0400.JPG [ 1.75 MiB | Viewed 1688 times ]
IMG_0401.JPG
IMG_0401.JPG [ 1.43 MiB | Viewed 1688 times ]
Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 4:43 pm 
Offline
Roboteer

Joined: Thu Mar 10, 2011 5:16 pm
Posts: 23
This is the code I'm using, if that has anything to do with it. It's on the lynxmotion website here: http://www.lynxmotion.com/images/html/build035.htm

'Work in progress!
LED con P0

;PS2 Controller / BotBoard I
;DAT con P4
;CMD con P5
;SEL con P6
;CLK con P7
;PS2 Controller / BotBoard II
DAT con P12
CMD con P13
SEL con P14
CLK con P15

temp1 var byte
index var byte
temp var byte(6)
cntr var byte
mode var byte

rhori var word
rvert var word
lhori var word
lvert var word
lservo var sword
rservo var sword
small var byte
large var byte

high CLK

test
low SEL
shiftout CMD,CLK,FASTLSBPRE,[$1\8,$43\8,$0\8,$1\8,$0\8] ;Config Enable
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$01\8,$44\8,$00\8,$01\8,$03\8,$00\8,$00\8,$00\8,$00\8] ;Set Mode and Fix(Analog
high SEL

pause 100

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$01\8,$4D\8,$00\8,$00\8,$01\8,$ff\8,$ff\8,$ff\8,$ff\8] ;Vibration Enable
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$01\8,$4F\8,$00\8,$FF\8,$FF\8,$03\8,$00\8,$00\8,$00\8] ;Enable Pressure
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$01\8,$43\8,$00\8,$00\8,$5A\8,$5A\8,$5A\8,$5A\8,$5A\8] ;Press_trans_start
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$01\8,$43\8,$00\8,$00\8,$00\8,$00\8,$00\8,$00\8,$00\8] ;Config Exit
high SEL

main
' This section find the mode the PSX controller is in.

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$1\8]
shiftin DAT,CLK,FASTLSBPOST,[mode\8]
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$1\8,$42\8]
for index = 0 to 2
shiftin DAT,CLK,FASTLSBPOST,[temp(index)\8]
next
high SEL

low SEL
shiftout CMD,CLK,FASTLSBPRE,[$1\8,$42\8,$0\8,small\8,large\8]
for index = 3 to 6
shiftin DAT,CLK,FASTLSBPOST,[temp(index)\8]
next
high SEL

' This section does the mixing for throttle steering on a diff steered vehicle.
rhori = (255 + temp(3))
rvert = (255 + temp(4))
lhori = (255 + temp(5))
lvert = (255 + temp(6))

lservo = 383 + ((lhori-383) + (lvert-383))
rservo = 383 + ((lvert-383) - (lhori-383))

if lservo < 255 then
lservo = 255
endif
if lservo > 510 then
lservo = 510
endif
if rservo < 255 then
rservo = 255
endif
if rservo > 510 then
rservo = 510
endif

lservo = 4 * (lservo - 383)
rservo = 4 * (rservo - 383)

' The following can be used as a debug to see the values of the joysticks and buttons.
' serout S_OUT,i57600,[13]
' for index = 1 to 6
' serout S_OUT,i57600,[" ",dec3 temp(index)\3]
' next

' serout S_OUT,i57600,[" ",dec3 rhori\3]
' serout S_OUT,i57600,[" ",dec3 rvert\3]

' serout S_OUT,i57600,[" LH ",dec3 lhori\3]
' serout S_OUT,i57600,[" LV ",dec3 lvert\3]
' serout S_OUT,i57600,[" LS ",sdec3 lservo\6]
' serout S_OUT,i57600,[" RS ",sdec3 rservo\6]

' The following code relates to the internal vibrator motors and is not used in this application.
small = 0 'temp(7)
large = 0 'temp(8)

' This section is where the servo style motor controller is directed.
servo 0, lservo, 1
servo 1, rservo, 1

goto main


Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 5:01 pm 
Offline
Roboteer
User avatar

Joined: Wed Jan 05, 2011 4:51 pm
Posts: 158
Location: Halmstad, Sweden
They are suppose to connect of you just supply 5V, whithout any more pins or code, so if they dosnt there are something wrong in the hardware ... sorry

_________________
PS
As i am Swedish, you may laugh at my spelling and grammar, but please please don’t comment it if you understand what i mean
DS


Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 5:49 pm 
Offline
Roboteer

Joined: Thu Mar 10, 2011 5:16 pm
Posts: 23
Would the wiring affect that at all? If it's getting power then it should connect regardless of its data connections to the board, right? So if it's getting power and not connecting, then it's probably a bad controller?


Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 5:50 pm 
Offline
Roboteer

Joined: Thu Mar 10, 2011 5:16 pm
Posts: 23
Oh. You said that exactly. Sorry.


Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 6:03 pm 
Offline
Roboteer

Joined: Thu Mar 10, 2011 5:16 pm
Posts: 23
It connected when I plugged it into my PS2.


Top
 Profile  
 
PostPosted: Sun Mar 13, 2011 7:04 pm 
Offline
Robot Guru
User avatar

Joined: Tue Nov 02, 2010 9:39 pm
Posts: 1431
Location: Quebec Canada
Check your battery. Maybe you have enough power to lit the led but not enough to connect. Often a power problem.

_________________
Eric Nantel
Qc Canada

Always liked Robot... Now i am learning to make some...! Wonderfull...


Top
 Profile  
 
PostPosted: Mon Mar 14, 2011 9:46 am 
Offline
Salmon of Retribution
User avatar

Joined: Fri Jul 28, 2006 5:41 pm
Posts: 540
Location: The Plane of Suck.
Also check the jumper. Be sure that is is on 5V, not VS. The receiver needs 5 volts. If it has more or less, it may not connect properly.

_________________
Curiously enough, the only thing that went through the mind
of the bowl of petunias as it fell was "Oh no, not again."

James "Don't call me Jim" Frye
Lynxmotion, Inc
http://www.lynxmotion.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group