Im New and I tried everything. PLEASE HELP ME :'(

test the controller with a Playstation 2 to verify that it is working.

Second please check the connections…

The image shows a different board but the pin orientation id the same…

OR…
lynxmotion.com/images/html/build034.htm
Copy & paste the program from the bottom of the page into the editor. There are two sections that need to be tailored to your setup. At the top of the program, in the “Bot Board Selection” section, you select either Mini-Atom Bot Board, or the Bot Board II. Remove the semicolons in front of the four lines that match your board, and add semicolons in front of the four lines that do NOT match your board. At the bottom of the program, in the “Basic Micro IDE Terminal” section you select the IDE you are using. You will need to do this twice - once under “sending carriage return”, and once under “sending all the data”. Remove the semicolons from the 1 line in both places to match your IDE, and add semicolons in front of the lines that do NOT match your IDE.

The program uses the Bot Board II, Basic Atom 28 and the 5.3.0.0 editor as the default. If this is your setup, no changes need to be made.

[code];-----------Bot Board Selection----------
;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
;-----------------------------

index var byte
temp var byte(19)
mode var byte
Small_Motor var byte
Large_Motor var byte

;PS2Init
high CLK

low SEL
shiftout CMD,CLK,FASTLSBPRE,$1\8,$43\8,$0\8,$1\8,$0\8] ;CONFIG_MODE_ENTER
high SEL
pause 1

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_LOCK
high SEL
pause 100

low SEL
shiftout CMD,CLK,FASTLSBPRE,$01\8,$4F\8,$00\8,$FF\8,$FF\8,$03\8,$00\8,$00\8,$00\8] ;SET_DS2_NATIVE_MODE
high SEL
pause 1

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
pause 1

low SEL
shiftout CMD,CLK,FASTLSBPRE,$01\8,$43\8,$00\8,$00\8,$5A\8,$5A\8,$5A\8,$5A\8,$5A\8] ;CONFIG_MODE_EXIT_DS2_NATIVE
high SEL
pause 1

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_MODE_EXIT
high SEL
pause 1

main

;-----------PS2 Mode----------
low SEL
; asking “mode” to PS2 controller
shiftout CMD,CLK,FASTLSBPRE,$1\8]
; reading “mode” from PS2 controller
; 73(hex) is dualshock1 (digital buttons)
; 79(hex) is dualshock2 (analog buttons)
shiftin DAT,CLK,FASTLSBPOST,[mode\8]
high SEL
;-----------------------------

pause 1

;-----------PS2 Data----------
low SEL
; asking data to PS2 controller
shiftout CMD,CLK,FASTLSBPRE,$1\8,$42\8]
; reading data from controller
; (don’t use a “for-next” loop, it’s too slow to read PS2 data)
shiftin DAT,CLK,FASTLSBPOST,[temp(0)\8,temp(1)\8,temp(2)\8,temp(3)\8,temp(4)\8,temp(5)\8,temp(6)\8,temp(7)\8,temp(8)\8, |
temp(9)\8,temp(10)\8,temp(11)\8,temp(12)\8,temp(13)\8,temp(14)\8,temp(15)\8,temp(16)\8,temp(17)\8,temp(18)\8]
high SEL
;-----------------------------

pause 1

;-----------PS2 Vibration motors----------
Small_Motor = 1 - Temp(1).bit5 ; Numeric right arrow button (Small Motor on/off)
Large_Motor = Temp(8) ; Analog left arrow button (Large Motor speed)

low SEL
; asking data to PS2 controller (again)
; sending at the same time the vibration motors speed to perform
; (using the previously read analog buttons position ( <- : large motor, -> : small motor )
; the more you press on these buttons, the more the corresponding motor vibrates fast
; some wireless PS2 controllers react only to the large motor command and some have no motor at all.
shiftout CMD,CLK,FASTLSBPRE,$1\8,$42\8,$0\8,Small_Motor\8,Large_Motor\8]
; we don’t care about reading the data from the controller here.
; so, why not use this to read PS2 data the first time? because it’s not working:
; as the PS2 controller is starting to send data just after receiving the
; “shiftout CMD,CLK,FASTLSBPRE,$1\8,$42\8…”<------here
; and as we are sending after that some data for motors “… ,$0\8,temp(7)\8,temp(8)\8]”
; it’s now too late to read all the data from the PS2 controller
; because there’s already some bytes sent by it and lost (no buffer here).
high SEL
;-----------------------------

;-----------Basic Micro IDE terminal----------
; sending carriage return (CR = 13) and the PS2 mode(hex) to the PC
;serout S_OUT,i57600,[13, hex2 mode\2] ; Basic Micro IDE <= 02.2.1.1
serout S_OUT,I8N1_57600,[13, hex2 mode\2] ; Basic Micro IDE <= 05.3.0.0
;serout S_OUT,i57600,[13, hex2 mode\2] ; Basic Micro Pro IDE <= 08.0.1.7

for index = 1 to 18 ; temp(0) contains a dummy variable so we don’t send it to the PC
; sending all the data to the PC
;serout S_OUT,i57600," “, dec3 temp(index)\3] ; Basic Micro IDE <= 02.2.1.1
serout S_OUT,I8N1_57600,” “, dec3 temp(index)\3] ; Basic Micro IDE <= 05.3.0.0
;serout S_OUT,i57600,” ", dec3 temp(index)\3] ; Basic Micro Pro IDE <= 08.0.1.7
next
;-----------------------------

goto main[/code]

how can i check it if its working or not?

do I have to make new file with the 3 files that in .prj?

I dont have playStation 2 and I have this PS2
lynxmotion-ps2-controller-v2-large.jpg

following the link will provide you with the info you need.
you need to open a new window in the IDE and upload the code to the ATOM.
you need to use the Debug tools to see what the PS2 is doing.

Although im saying all this, im still not convinced this is even needed. We just need more info from you to establish the issue.

When i ask you to change the ssc to 38.4 you questioned it, rather than confirmed you have changed it.

i think from all the info i have got from you’ is that the problem is the connection between the BB and the SSC. the reason i think this is is that you never clearly answered my question about the sounds coming from the board. What sounds does the Board make when you power it up, turn on ps2 etc.?? only tell me what its doing… not what it doesn’t do.

Can you post a clear image of the cable from the BB and the ssc, and also provide the connections shown in the code you have used.

Im not familiar with those new PS2 level shifters and whether the receiver LEDs have changed in there reactions so i cant be sure if one steady LED and one Blinking LED is correct? (need others help here)

did you buy the PS2 controller and the PS2 level shifter Receiver together?? or separate??

I bought them together but they come like this
the PS2 controller with the receiver in one box and the board that i connect the receiver in another pack. but they came together.

i thought the v2 ps2 controllers had two red leds. i **think **you have a v1. no need to the extra level shift board if you have a V1.

v1

No level shift required can can be wire like this…
lynxmotion.com/images/html/build162.htm

v2 uses the level shift board had two red leds. you do not have a V2 receiver.

i connect the PS2 like the pic do u want me to do this?

im sorry. yes i did it.

This is the sound when is the power on
youtube.com/watch?v=LWWxI7sr1XE

This is the counection between BB II and SSC-32
youtube.com/watch?v=iduVEWALjPs

the code that I used is in this
lynxmotion.com/images/html/build159.htm
under the name Phoenix BASIC Atom Pro Program
next to step 18

ok cool thanks for the videos. :wink:
The connection between the two boards is fine. The botboard makes the correct sound that has been programmed to it. :smiley:
you could try programming the ATOM with that code snipped to see whats happening. Info on that can be found in that link i posted.

The LED on the Botboard is indicating power is good to that board. and the LED on the SSC is flickering very fast, meaning its received data and is waiting for initiation from the PS2.

Once the SSC has received this data it will not flicker any more until it next receives data. but its getting that PS2 working for this to happen…

it does seem that the PS2 is at fault here and im starting to feel sympathetic towards these issues you are having as it seems to be one problem after another…

But here is the holy grail of all electronic issues… Power!
seeing that all the connections seem ok and that the atom is programmed correctly and is working as expected i can only assume that that you are powering both boards and the PS2 receiver from that 6v battery.???

Correct me if im wrong there…? i cannot make out if you have a separate power supply for VS and VL

If im correct then it might be better to change your powering options to something more acceptable like:

Maybe this is how you have it?

Also…
The software switches the controller to analogue mode and some controllers need to be put into analogue mode manually by pushing the button on the controller.

u welcome I thought video is the best way coz I think i can’t explain it in words :smiley:

yes I followed the tutorial provided. and this is the video
youtube.com/watch?v=HHgKjtSy3d4

In the forlder Phoenix_V20.prj 3 code files

Phoenix_cfg.bas
Phoenix_V20.bas
Phoenix_control_ps2.bas

Do u want me to create new code file with them or replace what in "Phoenix_control_ps2.bas"and if i need to creat another file what i should name it?

I have it powered exactlly like the picture u provided.

how to do that coz as in the video I couldnt change any thing on the PS2 controller


Ok well it would seem that testing the ps2 with the code is the only solution I can think of.

The code has nothing to do with the phoenix code, ssc or anything else except the ps2. Please follow the instructions and guidelines in the ps2 tutorial so its done just right.

but id i did this it will ease the phoenix cod?

i did every thing in the tutorial and this is what i got
youtube.com/watch?v=OweMzuKtfI8
what to do next?

Based on the values on the screen, your PS2 is working correctly. When you change any of the inputs (for example the pad on the left side) you will see the values change (analog input). Therefore the connection and setup is working well. The next step is to ensure you upload the correct walking code to the board, ensure you have it physically setup properly (power, jumpers etc.) Also, since you are likely using an SSC-32 servo controller, ensure it’s powered and set correctly. If you have issues, please provide a few clear images of the electrical setup between the Bot Board and the SSC-32.

Yes the connection between BB II and SSC-32 are the same as the tutorial in lynxmotion online and also I provide many videos about that
youtube.com/watch?v=qvb2FMm6RQU
youtube.com/watch?v=LWWxI7sr1XE
youtube.com/watch?v=iduVEWALjPs
youtube.com/watch?v=HHgKjtSy3d4

I really did everything but I dont know why is not working

Im pretty sure you have a V2 Controller and been sent a V1 Receiver. They are not compatible…

Why a new version of the PS2 was ever released i dont know :confused:
especially since they look almost identical with the exception of the logo being curved more on the controller and the color change in the receivers ps2 LEDs. A more obvious change would have saved issues like this. :question:

Of cause… This is a only true if v1RX -v2TX are not compatible… :blush:

how can i fix it please :frowning:

It seems you have an older PS2 receiver (one green and one red LED). Did you purchase a separate receiver? Note that the new PS2 transmitter does not work with the old PS2 receiver, although they look the same. The “old” transmitter has a very flat Lynxmotion sticker, while the new one has a sticker with rounded edges.

how come I bought it from Lynxmotion and they came in the same box. and also I have another PS2 receiver with 2 red LED not green and red.

These what I have
the long PS2 receiver with 2 red LED i bought it separately
the other one come with the PS2 controller that shown in the pic
what I have connected already is the last one that i bought

Im running out of time :’(