Archive

Archive for the ‘Bluetooth’ Category

The Balancing Robot

March 4th, 2012 599 comments

Now avaliable as a kit
A balancing robot kit is now avaliable via Kickstarter: http://www.kickstarter.com/projects/tkjelectronics/balanduino-balancing-robot-kit. Check out the blog post as well: http://blog.tkjelectronics.dk/2013/03/balanduino-balancing-robot-kit-kickstarter/.

Hello everybody
I have for a long time wanted to build a remote controllable balancing robot aka Segway – that’s was actually the main reason why I created the PS3 Bluetooth Library both for Arduino and the FEZ Devices. It has been a long time since the sneak peak and the performance has been improved a lot since then. The original one had a FEZ Rhino as the main processor, but I discovered that it was not fast enough to read the encoders, as it is not running embedded code. Also I was already using more than 10ms per loop, which I used as a fixed time loop, so I decided to step up a notch and go for a much more powerful device: the mbed microcontroller, which is an ARM Cortex-M3 running 96MHz.

It might have been possible with just a normal Arduino (NB: I have now ported the code to Arduino, see update for the code), but I didn’t want the speed of the processor to be an issue, so I decided to go for the mbed. The robot also features an Arduino Duemilanove with a USB Host Shield on top running a sketch based on my PS3 Bluetooth Library. The mbed board actually has USB Host functionality, but I decided not to port the PS3 Bluetooth Library as my original thought were to use an Arduino Due, but as you might know it hasn’t been released yet, despite the Arduino team announced, that it would be released by the end of 2011. But as soon as it is released I think I will port the code to it instead.

Video Demonstration
Here is a short video demonstration of the robot and me explaining some of the concepts of the design and how it works:
[youtube=http://www.youtube.com/watch?v=N28C_JqVhGU]
Read more…

PS3 Controller BT Library for Arduino

January 16th, 2012 292 comments

I just finished porting the bluetooth library to Arduino. It’s based on the library for the USB Host Shield from Circuits@Home. It works exactly the same way as the class for the boards from GHIElectronics – FEZ Panda, FEZ Rhino etc. You should check out my other post, if you haven’t already: FEZ Panda & PS3 Controller, FEZ Panda & PS3 Controller via Bluetooth, and Demonstration of the PS3 Controllers in action.
To make it work, you’ll need a USB Host Shield or an Arduino ADK.

Update
I have now created another library that only supports the controller via USB. The source code for the USB library can be found at the github repository. An example can be found as well: PS3USB.ino.

Video Demonstration

The library can be found at our Github: https://github.com/felis/USB_Host_Shield_2.0. You should also see the Github wiki for more details.

Categories: Arduino, Bluetooth, TKJ Electronics, USB Tags:

Demonstration of the PS3 Controllers in action

January 10th, 2012 No comments

NB: The newest source code can now be found at github.

Playstation Navigation and Motion controller

Playstation Navigation and Motion controller

As some of you might have seen, my class for the development boards from www.ghielectronics.com, including FEZ Panda, FEZ domino, FEZ Rhino etc, now also works with the two other PS3 controller: the Navigation and the Motion controller. The Navigation controller works the exact same way as the original Dualshock 3 controller.
The Motion controller is a little different, as all of the commands sent to the controller are sent via the HID Interrupt channel, and not thru the HID Control channel as the Dualshock 3 and Navigation controller. It also use a DATA output request instead of a set output report request. For more information, see the source code and the wiki.

A great thing about the Motion controller is that it features a 3-axis accelerometer, 3-axis gyro, 3-axis magnetomer, a thermometer, and the shiny bulb on the top of course. All these peripherals can by controlled by the FEZ devices too.

 
Stay tuned as I have almost finished porting the code to Arduino – I will make a new post as soon as I’m finished.

 
Demonstration of the three controllers

The code used in the video: PS3BluetoothNXTVersion2

Categories: Bluetooth, TKJ Electronics, USB Tags:

FEZ Panda & PS3 Controller via Bluetooth

September 9th, 2011 39 comments

NB: The newest source code can now be found at github.

As you might have seen, I finally got the PS3 Controller working via Bluetooth. Before you read any further, you should read my previous post first and also see the wiki for more information.

Read more…

Categories: ARM, Bluetooth, Guides, USB Tags: