How to Connect a PS3 controller to an Arduino with a USB host shield and Bluetooth dongle (Part 1)

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • See part 2 for updates: • How to Connect a PS3 c...
    A quick overview of how to interface a PS3 (Dualshock 3) controller with an Arduino microcontroller using a USB host shield and Bluetooth dongle. Head over to barrettsproject... for details. Feel free to leave comments/questions here or on the related post on my website.
    Check out my other video where I drive an RC car with this setup: • Control an RC car with...
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 253

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    If you read around on Circuits@Home they suggest that you use the Sony made controller. It's is possible that the aftermarket version will work, but it is not guaranteed.

  • @MikeSims70
    @MikeSims70 4 ปีที่แล้ว

    You are obviously highly intelligent and this video is almost 10 years old. I'm curious, what are you are doing professionally right now? What kind of degree did you get?

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Both an accelerometer and gyroscope can determine the pitch and roll (the accelerometer by gravity, the gyro by angular velocity) but only a gyro can determine yaw (BTW a gyro doesn't use gravity or magnetism). You are correct that a gyro cannot tell North, but that is not important for measuring yaw from a fixed point, say the point the gyro is initialized at. The Wikipedia page for the DualShock3 states that it has 6 DOF, but not exactly which types of sensors. I would expect a gyro and acc.

  • @AnSoNeves
    @AnSoNeves 10 ปีที่แล้ว

    Ok, I'm back!
    I've used your tips to control two servos and four motors in differential steering configuration on my amphibious bulldozer project. It worked fine after a lot of work.
    I'm here just to say thank you Barrett Anderies and to share my experience:
    In my case, I needed to share the motor batteries with the Arduino because the circuit (Arduino Mega + USB Shield + Bluetooth Dongle) was drawing a lot of current. I've never heard that the 5V output pin on Arduino could be used as an 5V input until I needed to do that. So I used a 7805 voltage regulator (and it's mandatory to do that!!!) and connected his output to the 5V pin of the Arduino.
    I had many problems when I was using differents ground sources. I guess the digital circuits of both USB Host Shield and Bluetooth Dongle are more sensibles to that. In general, you should use a single ground level to the whole circuit. My doubt here was about sharing any wire between the low power circuit (Arduino, shield and dongle) and high power circuit (h-bridges and motors). It seems there is no problem in sharing the ground wire, but I used many diodes anyway. Just for precaution.
    Sadly I don't have any vídeo of the working project and it's already dismounted. :(
    Good luck!

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      André,
      Thanks for the information and congrats on your project! You should ALWAYS have a common (single) ground between all of your circuits. You are correct that you would not want to share the high power lines (positive (red)) of the drive system with that of the control circuit, but all the grounds (black) should always be common.

  • @andrewbeaver1843
    @andrewbeaver1843 11 ปีที่แล้ว +1

    The address is hardware dependent on the controller, not on the dongle. If you had the address 01:23:45:67:89:10. The first three bytes, 01:23:45, are specific to the manufacturer. The last three, 67:89:10, are specific to the device.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Other people have had the same issue. One person figured out that the new version of the library doesn't print out anything except "PS3 Bluetooth Library Started," unless you enable debugging in the code. The problem is, if you enable debugging, the code gets too large to upload to an UNO. So, don't worry if you aren't seeing some of the information shown in this video.

  • @TheWJRProductions
    @TheWJRProductions 11 ปีที่แล้ว

    Can you make another video that goes over the code? particularly a motor responding to a button being pressed. I have seen countless videos and done countless google searches and I can't find anyone who goes into the code.

  • @johnconnor8612
    @johnconnor8612 11 ปีที่แล้ว +1

    thank you for that,
    and Now the problem comes, when i am trying to connect the PS3 controller with the USB dongle, there is only a line appear on the serial monitor "PS3 Bluetooth Library Started" why is that? i have also connected the PS3 controller with the USB host shield via USB cable, nothing appear on the screen as what i expected from your Post video, if you guys out there got the same problems as i do, feel free to comment. Thank You

  • @love2wheel
    @love2wheel 10 ปีที่แล้ว +1

    This is my little project, a lot of credit goes to you. Click the link below:
    Rambot in action

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Yes, although you'll have to watch your serial monitor carefully because the data from the accelerometer is being refreshed so quickly it's easy to miss the button message.

  • @MrAlb0t
    @MrAlb0t 11 ปีที่แล้ว

    then it is awessome! and i'm already thinking of aplications to the remote.
    By the way, do you think its a best buy a arduino mega or uno? i need to get one of them in my hands and quickly because i can't wait to try out that remote and a bunch of servos/motors :)

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    The shield should automatically connect to the Bluetooth dongle once you have uploaded the correct code to your Arduino. Are you receiving any messages in the serial monitor? Several people have brought it to my attention that the new versions of the Bluetooth dongles are not lighting up (for an unknown reason), although they still work properly.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Let me make sure I understand you correctly. You are able to achieve communication with a dongle (i.e. retrieve the dongle's BT address), but you aren't getting anything when you plug in your controller? Are you doing a hot-swap? Do you get "Bluetooth Library Started" right after plugging in your PS3 controller? If so, I think I know what your problem is.

  • @yelenglor
    @yelenglor 11 ปีที่แล้ว

    What kind of program did you use for the arduino. can you send me the actual program that you used for this. were trying to put together our arduino uno and bluetooth shield with the dongle .We will be putting this on a rc car that we will want to control w/ either the computer or a ps3 controller. we also have a usb host shield that we well use this on too.This is for a school project that im working with my group. Any and all advice helps us. Thanks

  • @thomaslove5456
    @thomaslove5456 10 ปีที่แล้ว +3

    So when I try to run the PS3BT example I get a message no matching function for call to 'PS3BT::getAnalogButton(Button)' Any suggestions? I have the Sparkfun board and when I run the example from the older library, I can get the PS3 controller to sync up and run.
    Also, I am wondering is this will be able to be run the Arduino Wireless Proto Shiled with an XBee on this as well as the USB host board running the PS3BT.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    That "page" is the serial monitor. It's part of the Arduino IDE, so what type of operating system you are running is irrelevant as long as you have the IDE installed. You open it by clicking the small button at the top right of the Arduino IDE (with the magnifying glass).

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    It's possible, but you'll have to make sure the shields don't use the same pins at the same time. I know the USB host shield uses ISP to communicate with the Arduino, which uses digital pins 10 through 13 but I don't know what most motor shields use. If you can find a motor shield that doesn't use D10-D13 you should be fine.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Both of those shields look like they should work, but I can't guarantee it. All I know is that the circuits@home and sparkfun editions work. That being said, both of the shields you mention look very similar to mine, so I would expect them to work fine with my code. Also, sorry for the delay in my response. I've been out of town for three weeks.

  • @MooMooArmyFantasyMoodz
    @MooMooArmyFantasyMoodz 11 ปีที่แล้ว

    Hey, do you have to connect the bluetooth dongle to the arduino through the software? Or have you just inserted the dongle and it automatically connects? I've tried uploading the Bluetooth PS3BT programme but it does not do anything, the dongle doesn't light up :/ please help!

  • @CodfishCatfish
    @CodfishCatfish 11 ปีที่แล้ว

    Corrected yes. I was not quite sure what the actual setup of the controller was and assumed it was an accelerometer and not a gyro.Agreed Bennet if it has both then it of course YAW would be from point of origin. I think I overlooked the fact it was 6 DOF rather than an 3 axis accelerometer alone. I was clearly Overthinking it again I think. All the best Spence

  • @MrAlb0t
    @MrAlb0t 11 ปีที่แล้ว

    very good tutorial! i'm still wondering, fter you press start button to acess the acelerometer feed can you still press the other buttons? like R1 kinda button or analog, like R2, for example?

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    If you plug your controller into the shield after having plugged in your Bluetooth dongle, the shield will automatically program the controller to the right address. However, since you can't see the debug information, you won't be able to tell if your shield recognized your dongle, which is a problem. I think your only viable option is to enable debugging in the code. Unfortunately this will make the sketch too large to fit on an UNO.

  • @GursehajSinghArora
    @GursehajSinghArora 9 ปีที่แล้ว +7

    HC-05 can act as Master or Host .....

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    If you've downloaded the library and placed the folder in the correct location, the example should show up. I suspect that the library has not been installed correctly. If this is the case, even if I give you the example sketch, it still won't run because the Arduino IDE will not be able to compile the library. Make sure that you have removed all dots (.) and dashes (-) from the library folder name, otherwise the Arduino IDE will not recognize it.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    You get that error when the IDE can't find the library, so yes, you probably didn't install the library correctly. Double check that the library folder is in the correct location and that there aren't any dots or dashes in the folder name.

  • @kaz04271
    @kaz04271 11 ปีที่แล้ว

    Hey I need some help. My IDE is reading "USB does not read a type" as an error. does that mean I probably didn't properly move the file in right? Or did i not remove all dots and dashes.

  • @johnconnor8612
    @johnconnor8612 11 ปีที่แล้ว

    and now, what should i do next? i am trying so hard just to get the PS3 controller connected to the Bluetooth dongle +USB host shield. i have read through all the comments regarding this issue/problems, yet i still CANNOT connect it successfully. few steps that i have taken to settle this:
    1. i used an external 9v dc adapter source to power up.
    2. i used 2 different brand of Bluetooth dongle, 1 of them is exactly the same as the black one in your post video,
    3. i connect ps3 cntrler using usb.

  • @koulokoe
    @koulokoe 11 ปีที่แล้ว

    I want to make a quad rotor, but i have never used an arduino before. Can you please give me soms tips on what kind of arduino aparatus is the best to buy for my project? Thanks :)

  • @DavidQuinco
    @DavidQuinco 8 ปีที่แล้ว

    Nice vídeo! I want to do a quadcopter controlled by the ps3 controler. Do you think that i can use it for this project? i am talking about the scope...

  • @Shazril228
    @Shazril228 10 ปีที่แล้ว

    Hello! I'm really new here and I'd just like to know what's the difference between the USB Host Shield you use in the video and Arduino's USB Host Shield?

    • @BarrettAnderies
      @BarrettAnderies  9 ปีที่แล้ว

      Both shields use the same USB host chip (the MAX3421E), so their functionality should be nearly identical. It appears that the Arduino version has more breakouts for certain pins. Other than that, there should not be a significant difference.

  • @vickylance
    @vickylance 9 ปีที่แล้ว

    Barrett Anderies Can you please tell me how to send signals via arduino to PS3 or Xbox 360 controller to make the motors vibrate?

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว +2

    So when you initialize your Arduino you get the first line; when you plug in your dongle (of if it was already plugged in) you get the next five lines; when you plug in your PS3 controller you get the next two lines. All of that is as it should be. What is the state of your hardware when you get the last line?

    • @williammuff5485
      @williammuff5485 2 ปีที่แล้ว

      what kind of range do you get with this?

    • @BarrettAnderies
      @BarrettAnderies  2 ปีที่แล้ว

      @@williammuff5485 ~30 ft with line of sight

    • @Billy18bm
      @Billy18bm 2 ปีที่แล้ว

      @@BarrettAnderies is it finicky with repairing once back in range?

    • @BarrettAnderies
      @BarrettAnderies  2 ปีที่แล้ว

      @@Billy18bm I didn’t use it enough to say. I would guess that it would be finicky since that seems to be how Bluetooth is in general.

    • @Billy18bm
      @Billy18bm 2 ปีที่แล้ว

      @@BarrettAnderies I wanted to use RF but building some of enclosure for an arduino/battery/joystick/rf module seems tough.

  • @AnSoNeves
    @AnSoNeves 10 ปีที่แล้ว

    Thank you, guy! It helped me a lot!
    There is a lack of information about that. So your video should be at the main sources about Arduino USB Host Shield + PS3 Controller! With this step-by-step video, it was easier than sync with Windows and DS3!
    Thanks once more!

    • @AnSoNeves
      @AnSoNeves 10 ปีที่แล้ว

      It could be useful to say that I'm using Keyes version of the shield with an Mega-like Arduino board. The chipset of this dongle is a CSR8510A10, so I believe that others with the same chipset will probably work.

  • @johnconnor8612
    @johnconnor8612 11 ปีที่แล้ว

    Very helpful tutorial. I am about to get one of the USB host shield from eBay, either ‘USB Host Shield Support Google Android ADK & UNO MEGA Duemilanove 2560 Arduino ‘ or 'USB host shield Keyes'. which one will for sure work with the Code (that you provide) ? does it really matter with the manufacturer company kind?

  • @tylerbartolome4887
    @tylerbartolome4887 10 ปีที่แล้ว

    Thank you for this video! It definitely pointed me in the right direction! But my USB host shield has no outer female sockets like yours does, will that still work?

    • @tylerbartolome4887
      @tylerbartolome4887 10 ปีที่แล้ว

      I did order it at circuits at home. Is there anyway that it would still work, or any way that I could solder the headers on?

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Tyler Bartolome Did you buy the pre-assembled version? If so, it only comes with male headers (as you've noticed). There is a second row of holes just inside of where the current headers are soldered. You can buy female headers and solder them there.

    • @tylerbartolome4887
      @tylerbartolome4887 10 ปีที่แล้ว

      Barrett Anderies Thank you! I was slightly confused when I opened the box and only saw the male headers.

  • @smith8585
    @smith8585 11 ปีที่แล้ว

    nice tutorial
    when I connected my PS3 controller. I cant see any line in the monitor saying that "Dualshock 3 controller connected"
    I only managed to set the address for the dongle
    any recommendation ?

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    You are getting those errors because the Arduino IDE can't find the USB host shield library (you not having the shield plugged in is irrelevant). You have to place the library in your "libraries" folder in "Arduino" and remove ALL dots (.) and dashes (-) from the folder name (the Arduino IDE does not allow dots and dashes in library folder names). Once you do this all of your errors should cease.

  • @rohithkyla7595
    @rohithkyla7595 8 ปีที่แล้ว

    Hey Jerome, I was just wandering weather i can use this to control my quadcopter with my PS3 Controller. Do you think it would work? Thanks in advance...

  • @sergeantkarl9824
    @sergeantkarl9824 4 ปีที่แล้ว

    i saw someone do this whit an xbox Controller, ordered the host and since i still had a xbox 360 Controller and a working dongle , could i use this with the xbox controller and dongle or do i need to get a ps3 one

  • @Altair9292
    @Altair9292 11 ปีที่แล้ว

    Could you do the same thing with the Bluetooth HC-05 transceiver? This is the only bluetooth part I have handy right now

  • @bhavikpatel2387
    @bhavikpatel2387 5 ปีที่แล้ว

    Can we use any bluetooth dongle or we have to use any particular dongle for this

  • @therub3665
    @therub3665 2 ปีที่แล้ว

    I know that the video is old, but if there is someone here, could you tell me if it only works with original PS3 controls or also with generic ones?

  • @27techguy
    @27techguy 9 ปีที่แล้ว

    Hello, can some help me in creating a Arduino code. I have a Arduino maga, motors control shield, and a USB shield. I want to be able to use a PS3 analog controller to control 2 DC motors. Where one motors works of Up and Down while the other motors works on Left to Right.

  • @steveg2277
    @steveg2277 2 ปีที่แล้ว

    Will this work with a controller that comes paired with a dongle???

  • @claystudiofx
    @claystudiofx 8 ปีที่แล้ว

    Hi, everytime i turn on the arduino and want to connect to ps3 again, do i need to repeat all those proses (unplug bluetooth dongle & plugging the cable etc) ? Or do i only need to setup once, and next time i turn on arduino, ps3 will automatically connected ?

  • @HobbyBots
    @HobbyBots 11 ปีที่แล้ว

    If only 5% of TH-cam videos were so useful.....

  • @yelenglor
    @yelenglor 11 ปีที่แล้ว

    how did you get to that one page were you can see the configuration were it tells you that it was connecting to your ps3 on you mac but i have a pc i couldn't find it.

  • @mahmood9800
    @mahmood9800 11 ปีที่แล้ว

    hi there I was wondering that can you have a Arduino at the bottom then the host shield in the middle and a Motor Drive Shield on top

  • @lucaskirby1069
    @lucaskirby1069 11 ปีที่แล้ว

    Hello i was wondering if i could go from the ps3 contrller to a arduino then to a pair of xbees then to a board controlling two servos on my nitro rc car?
    and if so how would i code that?
    thanks

  • @love2wheel
    @love2wheel 10 ปีที่แล้ว

    Excellent tutorial. I am really impressed by the details shown. It was easy peezy! However, this library is useless for UNO as there is no space left to do any programming. Is there a way to reduce the size of library? Otherwise, I'll buy Mega.

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Yes, you can reduce the size of the sketch. The fewer library functions you use, the less space is used. For example, if you open the PS3BT.ino and remove the code that accesses the gyroscope information you will notice a reduction in sketch size. If you're only using a few functions, you can easily use an UNO for most projects. I recently used an UNO to drive six servos with the library using the joysticks, D-pad and the four buttons on the right.

    • @love2wheel
      @love2wheel 10 ปีที่แล้ว

      Barrett Anderies
      Thanks a lot! I was able to reduce it to 25K after removing pitch and roll functions. I only need Right Joystick, Left Joystick and cross button. Were you able to reduce it even further?

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Param S Try removing all function calls to buttons you don't need. That will give you an idea of the smallest you will be able to get it.

    • @love2wheel
      @love2wheel 10 ปีที่แล้ว

      Thanks! I ended up using mega as I needed 4 interrupts for 4 dc motors with encoders.
      Another question: Can you think of a some way to know approximate distance from USB host shield to phone, assuming they are connected by bluetooth? I don't want to add any sensor to outside of the phone., adding sensors to the shield/arduino unit is acceptable. Is this even possible? I want my robot to follow my phone at a set distance, say two feet away.

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Param S You will not be able to estimate distance using Bluetooth, but there are a variety of sensors that can. You could use a sonar like the Maxbotix LV-EZ0, or a infrared range finder like the Sharp GP2Y0A21YK. Both are pretty cheep and will have plenty of accuracy for your application.

  • @R3v0luti0nZzPM
    @R3v0luti0nZzPM 9 ปีที่แล้ว

    Im looking for a proper bluetooth dongle with decent range (at least 10 meters). Trying to do the same thing (use an arduino board uno with host shield, a ps3 controller, and a dongle). Any recommendations?

    • @R3v0luti0nZzPM
      @R3v0luti0nZzPM 9 ปีที่แล้ว

      +Matthew Wong Also must be a canadian provider - i.e Amazon.ca/ebay.ca

  • @YvesMaisonnett
    @YvesMaisonnett 9 ปีที่แล้ว

    When I open the library and try to compile, it goes as "fatal error: PS3BT.h: No such file or directory compilation terminated."
    Do you know whats happening?
    Sorry, I'm noob at programing

  • @CodfishCatfish
    @CodfishCatfish 11 ปีที่แล้ว

    I think YAW depends on magnetism rather than gravity. Unless it has some kind of knowledge that north is north then turning the controller in a 360 degree circle does not exert any gravity on the controller. pitch and roll do this. In a 3 axis Gyro the third axis would sample height and the device being drawn to ground... eg defying gravity or imposing gravity. I think that's correct anyway. However if it's 6 axis it may have a HMC5883L or equivalent.? I am working with 10DOF at present Baro

  • @AllThingsGundam
    @AllThingsGundam 8 ปีที่แล้ว

    Hey man its good info you got here, I have a issue with my setup I am using a duelshock 4 controller and I can get it connected and piarred once in a great while, What might the issue be? And half the times I get a D1 code error.

    • @BarrettAnderies
      @BarrettAnderies  7 ปีที่แล้ว

      I'm not sure what the problem is. I get a lot of comments about a D1 error, but I was never able to figure out what the error codes referred to. I would suggest that you contact the developer.

  • @cbeale5150
    @cbeale5150 11 ปีที่แล้ว

    Would it be possible to do this for a different board and programming language?
    I have a Servopod board from new micros and can program using isomax. Do you know of a library that works for this programming language?

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Yes, but you would have to find/write the library. I do not know if a library exists for that language. The USB host chip is the MAX3421E. It is an SPI device, and therefore can be controlled by almost any microcontroller. You may be able to port the existing Ardunio library.

  • @florianlutan1796
    @florianlutan1796 11 ปีที่แล้ว

    Nevermind, solved the problem by looking into the source code. The baud is 115200 instead of the usual 9600. I don't know if that is mentioned in the video, whatever, I'm happy that it's working :D

  • @deniseduardodonadontorres3698
    @deniseduardodonadontorres3698 9 ปีที่แล้ว

    Hi Barrett, I'm having problems to upload this example to my Arduino, the problem is that the sketch binary is too big! I'm using the Arduino Leonardo, could you help me please?

    • @BarrettAnderies
      @BarrettAnderies  9 ปีที่แล้ว

      Denis Eduardo Donadon Torres If you remove or comment out portions of the example code you are not interested in using it is possible to reduce the size of the sketch slightly. Otherwise your only option is to use a board with more memory.

    • @deniseduardodonadontorres3698
      @deniseduardodonadontorres3698 9 ปีที่แล้ว

      Barrett Anderies Nice Barrett, thank you for your help! C ya.

  • @johnconnor8612
    @johnconnor8612 11 ปีที่แล้ว

    what is it the problem? when i received only 'PS3 Bluetooth Library Started'. i connected ps3 controller with usb host shield + arduino via USB cable, i dont see any other line printed out in the serial monitor, exvept 'PS3 Bluetooth Library Started'. therefore, is it possible, my USB host shield doesn't working.? or i just need to try out with other Bluetooth dongle?

  • @migue4619
    @migue4619 9 ปีที่แล้ว

    hi! did you made a pwm with the analogs???

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Another person was having a similar problem, and he discovered that the latest version of the USB host shield library does NOT print out debug information unless you enable debugging. I have added a note on my website post about this. Everything thing should still work for you, but you won't see all of the information I show being printed out in this video.

  • @hukie94
    @hukie94 9 ปีที่แล้ว

    Nice. I am still waiting for more tutorial videos with arduino...Thank you

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    It sounds like a Bluetooth dongle issue. I had the same error message with one of my dongles. I suggest trying a different dongle.

  • @angelgarabitooficial
    @angelgarabitooficial 9 ปีที่แล้ว

    hi, i have a problem whith my conecction. i can never join the ps3 control and arduino. i upload the librery from arduino, but never get join, the led number 1 never is on only. can you help me?

  • @AndersPecore
    @AndersPecore 10 ปีที่แล้ว

    Very good, question. When I plug in my dongle I don't get the thing that tells me what my dongle's address is but I do get the message telling me the library has started and nothing else. Any ideas?

    • @BarrettAnderies
      @BarrettAnderies  9 ปีที่แล้ว

      You will get the message telling you that the library has started every time you open your terminal as long as the USB host shield is attached. As for the dongle address message, I would guess that you are not receiving it because you have an incompatible dongle. This happens all the time even if you think you have a working dongle. The dongles are just finicky. If you haven't already, follow the link in the description to my website post and see the link to the list of confirmed dongles. Also, activate debugging just in case it is not showing the address for that reason (I'm pretty sure this is not necessary, but it's nice to see everything that is going on. I explain how to activate debugging in Part 2).

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    No. A Bluetooth transceiver is a Bluetooth device incapable of actively seeking a connection (like the one I show in the video). It can be connected to by a Bluetooth host like your computer, but it will not be able to communicate with PS3 controller.

  • @RomanticApplePie
    @RomanticApplePie 8 ปีที่แล้ว

    Can this be done without going through the USB shield and just using the USB type B on the chip?

    • @BarrettAnderies
      @BarrettAnderies  7 ปีที่แล้ว

      I don't think so. As I understand it, you need a USB host chip to run the USB port that communicates with the Bluetooth dongle, and as far as I know, the Arduino only has a USB to serial converter (FTDI, etc).

  • @GaryMcKinnonUFO
    @GaryMcKinnonUFO 7 ปีที่แล้ว +1

    Very helpful, thanks for sharing.

  • @kaiserfhu
    @kaiserfhu 10 ปีที่แล้ว +1

    Thank you for this video! It is excellent ! But i tried to use "ADK Shield Module For Android Rev 2.3" and "another BT dongle" . And Error occurred! These are the massages:
    PS3 Bluetooth Library Started
    Unknown Device Connected - VID: 0A5C PID: 21E8
    BTD Init Failed, error code: 209
    Sir, is it possible you tell me if i used the wrong "Shield" or i have to you the "Dongle you suggested"? I appreciate.

    • @kaiserfhu
      @kaiserfhu 10 ปีที่แล้ว +1

      I changed another dongle and it works. Thank you!

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    Yes, this is the exact shield and dongle I used on the caster bot.

  • @Mk-kaiat86
    @Mk-kaiat86 ปีที่แล้ว

    Hi brother good morning, uncle or need to connect a chinese dualshock ps3 controller on T95max plus android box via 5.0 dongle (BTL8761B) I should make it through the same steps, I would be grateful for advice 😉

  • @johnconnor8612
    @johnconnor8612 11 ปีที่แล้ว

    'unless you enable debugging in the code' what do you mean? what should i do, in order to make it connected. fyi: the USB host shield, i ordered from eBay, (not sparkfun or circuit@home, due to far travel shipping issue)
    ' So, don't worry if you aren't seeing some of the information shown in this video.' what do you mean? is it my problem can be fixed? what should i do next. may i know, how did the guy manage to make it works successfully?

  • @cosmo890
    @cosmo890 11 ปีที่แล้ว

    Do you need the playstation 3 controller driver?

  • @alistairkapp7136
    @alistairkapp7136 8 ปีที่แล้ว

    hello help pls, i am thinking of making an electric long board with an arduino in there so i can have a custom remote, i was wondering with this sheild if i could use a mouse, and remodel the shape of the mouse, keeping att the wiring the same , so for the pc it knows no difference but for me it a more ergonomic handle, any way i was wondering if i could set scroll wheel up and down to speed, pls reply any help and or problems there are with this idea, thanks to any helpful replies

  • @jefersonstipp6022
    @jefersonstipp6022 10 ปีที่แล้ว

    would be possible to spend all the programming you did is that I am still a rookie?. thanks

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      The code I ran is included with the library. Once you install the library it will be available in the examples folder.

    • @jefersonstipp6022
      @jefersonstipp6022 10 ปีที่แล้ว

      excellent thanks programming...

  • @aragami16
    @aragami16 8 ปีที่แล้ว

    Got errors when compiling PS3BT example. I think it's kind of overflow or something like that (I'm not sure since I don't have my arduino with me right now).

    • @aragami16
      @aragami16 8 ปีที่แล้ว

      Here's the error message pastebin.com/P2AWT6FH.
      I use Arduino IDE 1.6.8

  • @tllima
    @tllima 11 ปีที่แล้ว

    hello
    I'm from Brazil, and I've just seeing your video on youtube, where you explain with detais how to connect PS3 controller to Arduino using host bluetooth dondle, and now I would like to ask you some help... could you please respond to my message?
    Best regards
    Thiago Lima - from Brazil

  • @kevgorman9482
    @kevgorman9482 10 ปีที่แล้ว

    would you be able to tell me where u got the livrary for the host shield
    i dont no where i can get a safe 1 without virus's
    iv had so many viruses that i dont really trust downloading bt if i dont it wont work

    • @BarrettAnderies
      @BarrettAnderies  10 ปีที่แล้ว

      Follow the link in the description. I have provided all the information about the library on my website.

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว

    I would suggest starting with a Mega 2560. It's more powerful than the UNO and just as easy to program and use.

  • @jcouellet3600
    @jcouellet3600 6 ปีที่แล้ว

    how many controllers have you used n proximity of each other, "does one controller affect other controllers with different mac adresses?"

    • @BarrettAnderies
      @BarrettAnderies  6 ปีที่แล้ว

      I would guess that the maximum number of controllers that you could use at the same time would be at least equal to however many you can use with a PS3/Xbox simultaneously (4?). Since the PS3 controller is Bluetooth, the maximum number could be substantial.

  • @mahshang-peng795
    @mahshang-peng795 7 ปีที่แล้ว

    Hey Barrett its me again. I've already gotten all the hardware required but the problem now is after i upload the code to the arduino, nothing pops out. In your video after you upload the code to your arduino a window will pop up with information regarding the bluetooth address and whatsoever but for mine nothing happens its like the code gets uploaded but it just stays there nothings happening would really appreciate it if you could help. Oh yea Btw I've already enabled the uhs debugging but still no avail. Thanks

  • @saifsaifis2173
    @saifsaifis2173 11 ปีที่แล้ว

    I dont have the code for the bluetooth in my arduino exempels!! can you post it somewhere plz, reg, Seif

  • @Prime_delta235
    @Prime_delta235 9 ปีที่แล้ว

    hi
    I need help. Im trying to make tracked robot controlled by arduino with usb shield and a ps3 controller.problem was it only works when arduino board is plug into pc or latop.I need to make it stand alone and externally powered by batteries.
    thanks..

    • @BarrettAnderies
      @BarrettAnderies  9 ปีที่แล้ว

      AUGUST MARIBON Salido I would suggest that you start with Jeremy Blum's videos on Arduino basics: th-cam.com/video/fCxzA9_kg6s/w-d-xo.html.

    • @Prime_delta235
      @Prime_delta235 9 ปีที่แล้ว

      Barrett Anderies thanks for d reply. i figure it out, .max3421e chip on board usb shield needs 3.3v to work..and onboard 3.3v regulator of my arduino is not good.. i put external 3.3v supply to usb shield.works fine now..

  • @rohitmehta7281
    @rohitmehta7281 5 ปีที่แล้ว

    I need to buy correct dongle to connect with my PS3...does someone have any link so that form where i can buy?

  • @saifsaifis2173
    @saifsaifis2173 11 ปีที่แล้ว

    It's works now. I reinstalled the software and it works now :). thanx alot. Seif

  • @florianlutan1796
    @florianlutan1796 11 ปีที่แล้ว

    Damn, this video is awesome. I bought a big amount of stuff to do the same with a RC tank, but when I put my Arduino Uno together with the USB shield and one of my three different Bluetooth dongle, the serial monitor only gets random three characters, something like "2Hö" (it seems that it's always the same characters that show up). Can someone please help me?

  • @brianbradley1855
    @brianbradley1855 9 ปีที่แล้ว +1

    It appears that the Kinivo BTD-400 Bluetooth 4.0 USB adapter will work. I have tested with the Wii Remote and Nunchuck and SPP with Samsung Galaxy 5. This was an the Arduino Mega Board with SainSmart USB shield.
    Here is the link to bluetooth dongle www.amazon.com/gp/product/B007Q45EF4/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1

  • @SirWamby
    @SirWamby 7 ปีที่แล้ว

    If it all works however my controller doesn't connect, is it the controllers fault?

  • @BarrettAnderies
    @BarrettAnderies  11 ปีที่แล้ว +3

    I added a link in the description to another video of mine where I drive an RC car with this setup. In the description of that video there's a link to the corresponding post on my website where you can download the code.

  • @MalucoDivino
    @MalucoDivino 10 ปีที่แล้ว

    Awesome tutorial, everything I was looking for.
    Thanks

  • @hungnguyen-np7dp
    @hungnguyen-np7dp 6 ปีที่แล้ว

    hello friend could you help me, I have this error when trying to compile the code "OSC did not start" could you help me in advance thank you very much

  • @Harlequin43
    @Harlequin43 8 ปีที่แล้ว

    Why doesn't my (same as yours) BT dongle light up when I plug the whole assembly into PC?
    And PS3BT example displays "Error compiling" message (((

    • @Harlequin43
      @Harlequin43 8 ปีที่แล้ว

      +Harlequin43 solved.
      The latest IDE no longer works with USB host library examples. Had to use 1.0.5

  • @quiqueraygoza116
    @quiqueraygoza116 11 ปีที่แล้ว

    Where can I find the dongle that you used?

  • @eToroBoT
    @eToroBoT 11 ปีที่แล้ว

    Hi
    Can you please give me everything you need to build this?
    i have a ps3 controller, and rc truck, arduino uno, what else?

  • @finalspinal
    @finalspinal 9 ปีที่แล้ว

    Can i attach a servo controller to my arduino then and control the servos via ps3 controller?

  • @jeromefernando7410
    @jeromefernando7410 8 ปีที่แล้ว

    Once I'm running the code on the arduino, It's showing on the monitor serie "PS3 Bluetooth Library started" but it's not showing me the Dongle information, I bought one which is working with the arduino and the shield, but it's not showing me anything about the dongle, do you know what could be the problem?

    • @xRAYx10
      @xRAYx10 8 ปีที่แล้ว

      +Jerome Fernando I have the same problem

    • @BarrettAnderies
      @BarrettAnderies  8 ปีที่แล้ว

      Did you enable debugging? I don't think it shows the dongle info unless debugging is enabled.

    • @xRAYx10
      @xRAYx10 8 ปีที่แล้ว

      Yeah I figured out how to debugg it after downloading the program, sublime text

    • @Must23
      @Must23 8 ปีที่แล้ว +1

      how did you do that?

    • @andreaguizzaro4361
      @andreaguizzaro4361 8 ปีที่แล้ว

      He explains it in the second part of the video

  • @swever826
    @swever826 11 ปีที่แล้ว

    Thanks!!! Finally a video that I understand how to do this!! I will try this tomorrow :D

  • @horaciosoto8313
    @horaciosoto8313 8 ปีที่แล้ว

    i have a KEYES host shield, would it work, and where can I download the library? thank you

    • @castro1780
      @castro1780 8 ปีที่แล้ว

      the links are on his blog, the link to that is in the description. let me know if you got this to work or get it working, I'd like to get the same shield but Im wondering if it will work.

  • @maxschulze735
    @maxschulze735 11 ปีที่แล้ว

    Will these shields work with my Freetronic Eleven?

  • @bluetiger30
    @bluetiger30 11 ปีที่แล้ว

    Hello , I did every thing as shown in the vid . but i get this message
    PS3 Bluetooth Library Started
    Bluetooth Dongle Initialized
    HCI Reset complete
    Write class of device
    Local Bluetooth Address: 00:11:67:D6:B3:BB
    Wait For Incoming Connection Request
    Dualshock 3 Controller Connected
    Bluetooth Address was set to: 00:11:67:D6:B3:BB
    BTD Init Failed, error code:

  • @doakwilson8674
    @doakwilson8674 11 ปีที่แล้ว

    If possible could you send me the code to control the Rc car with the controller