1
$\begingroup$

I'm currently building a hexapod bot, composed with an Arduino Mega board and an USB SSC-32 (from Lynxmotion). But now I want add a PS3 wireless controller to move my hexapod, I have made some search but nothing realy interesting. Maybe the Servoshock module but it seems works only with the ServoshockShield, a kind of Arduino card with Servo output.

  • Can I use the ServoShock module alone ?
  • Can I connect it with Rx/Tx port of the Arduino Mega board ?
  • Do you have other solution for me ? Board with documentation and sources codes ?

Thank you all

$\endgroup$

3 Answers 3

1
+50
$\begingroup$

If you want to do this on your own, you need additional hardware:

  • A arduino with an USB-Host (Mega will not work) or an shield which provides the USB-Host
  • A Bluetooth dongle

On your Arduino you will have to run the PS3BT You have to know the MAC adress of your BT-dongle. This can be obtained in two ways:

  • Most simple: It is written on the dongle itself
  • Or you have to run the script and the MAC should be displayed over SerialMonitor

If you have the address then you have to comment the line 19 in the code and uncomment line 20. Additionally you have to enter your MAC address in the line 20.

Then unplug the dongle from the arduino, plug in the PS3 controller via USB and reset the arduino. The controller will be paired with the dongle.

Now plug in the dongle again and pair the controller (pressing the playstation button). It should work from here on. The script just prints the inputs from the controller to the serial monitor. Then you just have to implement all the rest of your code.

$\endgroup$
6
  • $\begingroup$ Thank you for helping but I don't realy know what's the USB-Host and the Bluetooth dongle. I have make some search and found the Arduino Mega ADK have a USB-Host, can it works if I add a Bluetooth dongle ? Can I buy a board to manage that and plug-it with my Ardiuno Mega board ? $\endgroup$
    – Arthur
    Commented Sep 23, 2014 at 16:39
  • $\begingroup$ I saw Ardiuno making USB Host shield, and it's work with Arduino Mega board, but it's using all basic pin (circuitsathome.com/wp/wp-content/uploads/2011/02/…). How I must config it ? Something exist to works with Serial communication ? $\endgroup$
    – Arthur
    Commented Sep 23, 2014 at 16:51
  • 1
    $\begingroup$ You can take the mega ADK and the bluetoothdongle or take a normal uno and the board you just found. Here is all the documentation to this board github.com/felis/USB_Host_Shield_2.0 I would guess on the first glance, that the arduino and the usb-board are communicating with SPI-bus, because they say in the readme :"If you are using the Arduino Due, then you must include the Arduino SPI library like so: #include <SPI.h> in your .ino file." $\endgroup$
    – TobiasK
    Commented Sep 23, 2014 at 18:29
  • 1
    $\begingroup$ No i does not take all pins. I take only 3 pins for the spi, but spi is a multi slave bus so you can still use them. You just need to be careful when using extra spi-device, that there won't be any conflict. if you look at this picture circuitsathome.com/wp/wp-content/uploads/2011/02/… you will see that on both sides there are 2 rows of soldering holes in parallel, in one row you solder some jumper-pins to your arduino, in the other you can solder another socket row, where you access all your other arduino functionality. $\endgroup$
    – TobiasK
    Commented Sep 24, 2014 at 5:20
  • 1
    $\begingroup$ The only problem is that you cannot stack another shield. This board even provide 8 additional GPIO-Pins. So you gain additional functionality. $\endgroup$
    – TobiasK
    Commented Sep 24, 2014 at 5:22
1
$\begingroup$

The ServoShock module works by itself, you just have to wire the connections. If you use the shield, it's plug and play. You can pull the button/axes states and write servo position outputs using the SPI bus, there's a Arduino library at the ServoShock documentation page at www.servoshock.com.

$\endgroup$
0
$\begingroup$

I don't have experience connecting a PS3 controller to an Arduino board, but if you can work out a computer-arduino connection then you can use PyGame to read the state of all the buttons and axes.

$\endgroup$
1
  • $\begingroup$ Sorry but I need a solution wireless and without computer. $\endgroup$
    – Arthur
    Commented Sep 23, 2014 at 16:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.