Just purchased BoBoarduino Robot Controller and the PS2 Controller V4 The PS2 receiver green indicator light will not activate There is 5V power to the receiver. I hope some one can help me.
I have built a robot that has 5 servos I purchased the BotBoarduino Arduino Duemilanove board and the PS2 V 4 controller ( which the receiver is not working) I would like a down load a program that may get me started to run my servos. I have the basic download on right now. Will this be alright to run my servos. Let me know Thank you
Hi,
To help you, we will first need a bit more information:
-
Please provide us with some pictures of your setup. Make sure to clearly show all components involved, including the BotBoarduino, its connections (servos, power) and all of its jumpers. Also, take a picture of your power source(s) (such as power supply, battery pack, etc.)
-
Please let us know what code you have running on the BotBoarduino right now. You can either paste a copy of the source URL in your reply or attach the source (archived as a ZIP file).
Please note you should be using the Arduino-PS2X library version from Lynxmotion, found here. If you already have a copy of the PS2X library installed, please remove it (usually under Documents > Arduino > libraries). Then, install the Lynxmotion version using these steps.
- If you can provide more details (picture, schematic/drawing, etc.) about your robot / servomotor arrangement, it may help us provide better advice, too.
We await your reply to further help you.
Sincerely,
I may have to take robot apart and spread all components out to see connections. I will attach picture to show board connections, Battery and receiver connections. if you need to take apart and spread out let me know.
I have no specific spots for servos There is no reference between board and controller yet. I was plugging servo spare into #10 to see if I could get it to work
with no success. The red and black wires near receiver connections are for 5V center meter, Right meter is 7.2 V Battery(VS) which comes from adjustable voltage regulator.
Left meter is 9 V Battery Voltage. I down loaded the PS2 zip file, and the only change was the led under the power led is not flashing any longer as you can see. The green light on PS2 receiver is still out.
I maybe over my head on this project sure hope you can help Thank you
Hey,
Thank you for the pictures.
I’d first recommend that you swap the yellow (DAT)/purple (ATT) wires with each other. Most of our examples nowadays use pin 8 for DAT and pin 6 for ATT by default, so that may help later.
But, this would not prevent the receiver and controller from syncing (solid green LED on receiver).
Just to confirm your pictures, the PS2 receiver is powered with 5 V DC on its VCC/GND pins and it does not have a blinking green LED? If that is the case, then it may very well be defective, since the rest of your wiring and jumpers seems good.
If it does not power-up at all, please open a support ticket (select Exchanges/Returns) here. Make sure to do the following in your message:
- Include your order or invoice number
- Add a link to this topic
- Mention you have a defective Lynxmotion PS2 receiver and need a replacement for RB-Kee-05.
Sincerely,
Received The PS2 and receiver today and the led is working Following directions to set up Botboarduino board. The computer does not respond. The power light on board comes on and the computer makes a sound. The com port knows its a Arduino board but I can not find a driver or it never downloaded. Why does the board not show in the Device Manager?
Hi,
Lets try and reduce the unknowns so we can figure out exactly where is the issue. First step there will be to identify what is wrong with the BotBoarduino.
First, disconnect the BotBoarduino from your computer.
Then, remove anything that is attached to the BotBoarduino (such as the PS2 wires).
After it is all clear, open the device manager. If you have a Ports (COM & LPT) category, expand it (click the +]).
Then, take a screenshot of that window (ALT+PrintScreen) and save it (you can use mspaint).
Make sure the BotBoarduino has its power jumper set to “USB” then connect it to the computer. Please take a screenshot of any driver installation window or anything similar, if they show up. As before, save that image.
Then, go to device manager again and take a screenshot of the new device that was added. It will either be under Ports (COM & LPT) or as an unknown (possibly with a yellow triangle as an icon).
We await you reply with the details requested.
Sincerely,
I did as you suggested, pictures are in attached word file.
Disconnected the BotBoarduino from computer.
Removed anything that was attached to the BotBoarduino.
Then opened the device manager, no Ports (COM & LPT) category, 1st picture.
BotBoarduino has its power jumper set to “USB” then I connected it to the computer, no driver install window showed up, no picture.
Then, went to device manager again and took screenshot of the new device that was added, Port COM3, 2nd picture.
Thanks much!
botboard.docx (144 KB)
Hi,
That seems very good then!
Concerning this:
There is no driver installation window because the drivers are already installed for this device (it should only happen once, the first time). Also, it should be noted it is a very standard driver (FTDI VCP), so it is possible it was already installed by some other device in the past on your computer, too.
Next step, startup the Arduino IDE and open the Blink example (File** -> Examples -> 01.Basics -> **Blink). Under Tools, change the settings to be board = “Arduino Duemilanove or Diecimila”, processors = “ATmega328” and port = “COM3”, since that is the one you have in your case (see image below for reference).
With those settings changed, try to upload the Blink code to the board.
Let us know if this works. You can change the delays inside loop() and recompile/upload again to see if it works well.
Sincerely,
The blink code uploaded and LED is flashing.
OK! That is great. This means your BotBoarduino is working properly.
Now, you can go ahead and reconnect the PS2 receiver to is (CLK/DAT/CMD/ATT > 9/8/7/6) and VCC/GND to VCC/GND.
Make sure the jumper for port 6/7/8/9 is set to 5V (and not VS).
Sincerely,
I was able to change the loop What codes should I down load for ps2 controller?
I up loaded the PS2x_lib.h but I can not open it to see how to connect my servos or make changes Its telling me I need a pde ? If I up loaded the wrong file how do i remove it Thank you
Hi,
For the PS2X lib, you should not need to do anything with the contents of the .ZIP directly.
First, go to your Documents -> Arduino -> libraries folder. If there is any PS2X folder in there, delete it.
Then, open up the Arduino IDE and follow these steps to install the PS2X lib ZIP file from here.
Once this is done, you can then program any software to your BotBoarduino that uses the PS2X library and is appropriate for your robot.
If you want a quick test, you can download this example. Extract the files to a folder and open up the .INO file.
Upload this to your BotBoarduino.
With the BotBoarduino powered and the PS2 receiver connected, turn on the PS2 controller. The controller and receiver should sync up.
Once that is achieved, press the START button. The BotBoarduino should produce a beep.
Please reply with a picture of your setup showing all components (especially wiring and jumpers).
Sincerely,
Thank you so much for your help this should give me a starting point
I am still having difficulties uploading the PS2X zip library into Sketch. It give me an error when compiling, I have copy and paste’d error message below:
Arduino: 1.8.3 (Windows 7), Board: “Arduino Duemilanove or Diecimila, ATmega328”
C:\Users\Natalie\AppData\Local\Temp\ccWBt3ko.ltrans0.ltrans.o: In function `main’:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup’
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop’
collect2.exe: error: ld returned 1 exit status
exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.
This report would have more information with"Show verbose output during compilation"
option enabled in File -> Preferences.
Hi,
Please attach to your next reply your source code file.
Also, try again the compilation but with verbose (compilation) mode activated. You can do so in the menu under File -> Preferences.
Sincerely,
I tried it again, here is the error message. Not sure what you mean by the source code unless this is it. This is the PS2X link that you gave in prior message.
Thanks again:)
Arduino: 1.8.3 (Windows 7), Board: “Arduino Duemilanove or Diecimila, ATmega328”
C:\Program Files (x86)\Arduino\arduino-builder -dump-prefs -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Natalie\Documents\Arduino\libraries -fqbn=arduino:avr:diecimila:cpu=atmega328 -ide-version=10803 -build-path C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557 -warnings=none -build-cache C:\Users\Natalie\AppData\Local\Temp\arduino_cache_471572 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Natalie\Documents\Arduino\PS2_Original\PS2_Original.ino
C:\Program Files (x86)\Arduino\arduino-builder -compile -logger=machine -hardware C:\Program Files (x86)\Arduino\hardware -tools C:\Program Files (x86)\Arduino\tools-builder -tools C:\Program Files (x86)\Arduino\hardware\tools\avr -built-in-libraries C:\Program Files (x86)\Arduino\libraries -libraries C:\Users\Natalie\Documents\Arduino\libraries -fqbn=arduino:avr:diecimila:cpu=atmega328 -ide-version=10803 -build-path C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557 -warnings=none -build-cache C:\Users\Natalie\AppData\Local\Temp\arduino_cache_471572 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.avrdude.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.arduinoOTA.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -prefs=runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr -verbose C:\Users\Natalie\Documents\Arduino\PS2_Original\PS2_Original.ino
Using board ‘diecimila’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Using core ‘arduino’ from platform in folder: C:\Program Files (x86)\Arduino\hardware\arduino\avr
Detecting libraries used…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp” -o “nul”
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Natalie\Documents\Arduino\libraries\PS2X_lib” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp” -o “nul”
Using cached library dependencies for file: C:\Users\Natalie\Documents\Arduino\libraries\PS2X_lib\PS2X_lib.cpp
Generating function prototypes…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -flto -w -x c++ -E -CC -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Natalie\Documents\Arduino\libraries\PS2X_lib” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp” -o “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\preproc\ctags_target_for_gcc_minus_e.cpp”
“C:\Program Files (x86)\Arduino\tools-builder\ctags\5.8-arduino11/ctags” -u --language-force=c++ -f - --c+±kinds=svpf --fields=KSTtzns --line-directives “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\preproc\ctags_target_for_gcc_minus_e.cpp”
Compiling sketch…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-g++” -c -g -Os -w -std=gnu++11 -fpermissive -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -flto -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10803 -DARDUINO_AVR_DUEMILANOVE -DARDUINO_ARCH_AVR “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino” “-IC:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\standard” “-IC:\Users\Natalie\Documents\Arduino\libraries\PS2X_lib” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp” -o “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp.o”
Compiling libraries…
Compiling library “PS2X_lib”
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\libraries\PS2X_lib\PS2X_lib.cpp.o
Compiling core…
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring_pulse.S.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\WInterrupts.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\hooks.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring_analog.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring_digital.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring_pulse.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\wiring_shift.c.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\CDC.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\HardwareSerial.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\HardwareSerial0.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\HardwareSerial1.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\HardwareSerial2.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\HardwareSerial3.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\IPAddress.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\PluggableUSB.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\Print.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\Stream.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\Tone.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\USBCore.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\WMath.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\WString.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\abi.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\main.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\new.cpp.o
Using previously compiled file: C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\core\core.a
Archiving built core (caching) in: C:\Users\Natalie\AppData\Local\Temp\arduino_cache_471572\core\core_arduino_avr_diecimila_cpu_atmega328_0c812875ac70eb4a9b385d8fb077f54c.a
Linking everything together…
“C:\Program Files (x86)\Arduino\hardware\tools\avr/bin/avr-gcc” -w -Os -g -flto -fuse-linker-plugin -Wl,–gc-sections -mmcu=atmega328p -o “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557/PS2_Original.ino.elf” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\sketch\PS2_Original.ino.cpp.o” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557\libraries\PS2X_lib\PS2X_lib.cpp.o” “C:\Users\Natalie\AppData\Local\Temp\arduino_build_263557/core\core.a” “-LC:\Users\Natalie\AppData\Local\Temp\arduino_build_263557” -lm
C:\Users\Natalie\AppData\Local\Temp\ccHRjjTj.ltrans0.ltrans.o: In function `main’:
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:43: undefined reference to `setup’
C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino/main.cpp:46: undefined reference to `loop’
collect2.exe: error: ld returned 1 exit status
Using library PS2X_lib in folder: C:\Users\Natalie\Documents\Arduino\libraries\PS2X_lib (legacy)
exit status 1
Error compiling for board Arduino Duemilanove or Diecimila.
Thank you for the copy of the verbose compiling attempt.
Unfortunately, we would really need the code to see what is wrong in this case.
In the Arduino IDE with your program open, go to the menu File -> Save As…
Choose a location for the file and save it. The software will create a new folder for it with the same name as the .ino file.
Once this is done, simply compress that folder (ZIP, RAR, etc.) and attach it to your next post.
Sincerely,
I was away from project. I attached the zip file as your request. Thank you for your help
PS2X_Example_Zip.zip (1.95 KB)