<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>DE CODER.com</title>
		<link>https://decoder.ucoz.com/</link>
		<description>Blog</description>
		<lastBuildDate>Mon, 25 Aug 2014 21:03:46 GMT</lastBuildDate>
		<generator>uCoz Web-Service</generator>
		<atom:link href="https://decoder.ucoz.com/blog/rss" rel="self" type="application/rss+xml" />
		
		<item>
			<title>Using a USB host shield and a Bluetooth dongle to get data from a PS3 controller</title>
			<description>&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;!--IMG1--&gt;&lt;img alt=&quot;&quot; style=&quot;margin:0;padding:0;border:0;&quot; src=&quot;http://decoder.ucoz.com/_bl/0/50396534.png&quot; align=&quot;&quot; /&gt;&lt;!--IMG1--&gt;&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m interested in using a PS3 controller as the remote for future projects/robots. Having received all of the required hardware, I decided to make this video explaining the process of setting up the PS3 controller and Arduino for communication via Bluetooth. See below the video for details. UPDATE: The latest USB host library does not print out any debug information, so you won&amp;rsquo;t see any of the information that is printed out below &amp;ldquo;Bluetooth Library Started.&amp;rdquo; You should still be able to connect your PS3 controller and see it&amp;rsquo;s data output in the terminal.&lt;/p&gt;

&lt;p&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;400&quot; src=&quot;https://decoder.ucoz.com//www.youtube.com/embed/q3vXTX6Qe54&quot; width=&quot;585&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Several people have asked me for the code, so&amp;nbsp;&lt;a href=&quot;https://dl.dropbox.com/u/43421685/Website%20C...</description>
			<content:encoded>&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;!--IMG1--&gt;&lt;img alt=&quot;&quot; style=&quot;margin:0;padding:0;border:0;&quot; src=&quot;http://decoder.ucoz.com/_bl/0/50396534.png&quot; align=&quot;&quot; /&gt;&lt;!--IMG1--&gt;&lt;/p&gt;

&lt;p&gt;I&amp;rsquo;m interested in using a PS3 controller as the remote for future projects/robots. Having received all of the required hardware, I decided to make this video explaining the process of setting up the PS3 controller and Arduino for communication via Bluetooth. See below the video for details. UPDATE: The latest USB host library does not print out any debug information, so you won&amp;rsquo;t see any of the information that is printed out below &amp;ldquo;Bluetooth Library Started.&amp;rdquo; You should still be able to connect your PS3 controller and see it&amp;rsquo;s data output in the terminal.&lt;/p&gt;

&lt;p&gt;&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;400&quot; src=&quot;https://decoder.ucoz.com//www.youtube.com/embed/q3vXTX6Qe54&quot; width=&quot;585&quot;&gt;&lt;/iframe&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Several people have asked me for the code, so&amp;nbsp;&lt;a href=&quot;https://dl.dropbox.com/u/43421685/Website%20Content/BT_RC.ino&quot; sl-processed=&quot;1&quot; target=&quot;_blank&quot; title=&quot;https://dl.dropbox.com/u/43421685/Website%20Content/BT_RC.ino&quot;&gt;here&lt;/a&gt;&amp;nbsp;it is (click to view, right-click and &amp;ldquo;Save as&amp;rdquo; so download).&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&amp;nbsp;&lt;/p&gt;

&lt;p&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Hardware (besides an Arduino):&lt;/strong&gt;&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;A Sony-made, PS3 controller (Dualshock 3 or Sixaxis (I was unable to find a strictly Sixaxis controller)).&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;A USB host shield:&amp;nbsp;&lt;a href=&quot;https://www.circuitsathome.com/products-page/arduino-shields&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;https://www.circuitsathome.com/products-page/arduino-shields&quot;&gt;Circuits@home&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;https://www.sparkfun.com/products/9947&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;https://www.sparkfun.com/products/9947&quot;&gt;Sparkfun&lt;/a&gt;.&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;A Bluetooth dongle: The&amp;nbsp;&lt;a href=&quot;https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;https://github.com/felis/USB_Host_Shield_2.0/wiki/PS3-Information&quot;&gt;wiki&lt;/a&gt;&amp;nbsp;page for using a PS3 controller will have a list of compatible dongles (although note that in the video I mention that one of the &amp;ldquo;supported&amp;rdquo; dongles doesn&amp;rsquo;t in fact work). Here are the two I have: The&amp;nbsp;&lt;a href=&quot;http://www.ebay.com/itm/200468994562?ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649#ht_2636wt_1189&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://www.ebay.com/itm/200468994562?ssPageName=STRK:MEWNX:IT&amp;amp;_trksid=p3984.m1439.l2649#ht_2636wt_1189&quot;&gt;black one&lt;/a&gt;&amp;nbsp;(working)&amp;nbsp;and the&amp;nbsp;&lt;a href=&quot;http://www.microcenter.com/product/387794/Bluetooth_40_USB_Micro_Adapter&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://www.microcenter.com/product/387794/Bluetooth_40_USB_Micro_Adapter&quot;&gt;green one&lt;/a&gt;(not working, although listed as compatible). These are also confirmed working (by the developers):&amp;nbsp;&lt;a href=&quot;http://www.microcenter.com/product/279381/Bluetooth_USB_Micro_Adapter&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://www.microcenter.com/product/279381/Bluetooth_USB_Micro_Adapter&quot;&gt;Kingston&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href=&quot;http://www.microcenter.com/product/296751/Bluetooth_USB_Adaptor&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://www.microcenter.com/product/296751/Bluetooth_USB_Adaptor&quot;&gt;Zoom&lt;/a&gt;.&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;The Software (besides the Arduino IDE):&lt;/strong&gt;&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;UPDATE: Some people have had trouble with the newer versions of the USB host shield library. The new library does not print out the debug information you see in my video and the sketch will become too large to upload to an UNO if you turn the debugging on. If you would like to use the exact same version I use in my video (and am still using), you can get it&amp;nbsp;&lt;a href=&quot;https://dl.dropboxusercontent.com/u/43421685/Website%20Content/USB_Host_Shield_Library.zip&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; title=&quot;https://dl.dropboxusercontent.com/u/43421685/Website%20Content/USB_Host_Shield_Library.zip&quot;&gt;here&lt;/a&gt;. You can get the latest version of the USB host shield library below.&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;You will need to download the entire USB host shield library from GitHub.&amp;nbsp;&lt;a href=&quot;https://github.com/felis/USB_Host_Shield_2.0/archive/master.zip&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;https://github.com/felis/USB_Host_Shield_2.0/archive/master.zip&quot;&gt;This&lt;/a&gt;&amp;nbsp;is a direct download link, but if you&amp;rsquo;d like to take a look around the repository go&amp;nbsp;&lt;a href=&quot;https://github.com/felis/USB_Host_Shield_2.0&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;https://github.com/felis/USB_Host_Shield_2.0&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;Install the library as you would any other (if you haven&amp;rsquo;t done this before see&amp;nbsp;&lt;a href=&quot;http://arduino.cc/en/Guide/Libraries&quot; sl-processed=&quot;1&quot; style=&quot;border: 0px; font-family: inherit; font-style: inherit; font-weight: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(25, 130, 209); text-decoration: none;&quot; target=&quot;_blank&quot; title=&quot;http://arduino.cc/en/Guide/Libraries&quot;&gt;this&lt;/a&gt;&amp;nbsp;page), and open the &amp;ldquo;PS3BT&amp;rdquo; example as I show in the video (&lt;strong style=&quot;border: 0px; font-family: inherit; font-style: inherit; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;File &amp;ndash;&amp;gt; Examples &amp;ndash;&amp;gt; (Whatever you named the library) &amp;ndash;&amp;gt; Bluetooth &amp;ndash;&amp;gt; PS3BT&lt;/strong&gt;). Remember that the Arduino doesn&amp;rsquo;t allow for dots (.) or dashes (-) in the library folder name, so when you download the library (which for some reason does have dots and dashes in its folder name) you will have to rename for the Arduino IDE to recognize it.&lt;/p&gt;

&lt;p style=&quot;border: 0px; font-family: &apos;Helvetica Neue&apos;, Helvetica, Arial, sans-serif; font-size: 15px; margin: 0px 0px 1.625em; outline: 0px; padding: 0px; vertical-align: baseline; color: rgb(55, 55, 55); line-height: 24.375px;&quot;&gt;If there is something I forgot to include here, or if you have a question about something in the video, please ask.&lt;/p&gt;</content:encoded>
			<link>https://decoder.ucoz.com/blog/using_a_usb_host_shield_and_a_bluetooth_dongle_to_get_data_from_a_ps3_controller/2014-08-26-7</link>
			<category>Noticias</category>
			<dc:creator>sault73</dc:creator>
			<guid>https://decoder.ucoz.com/blog/using_a_usb_host_shield_and_a_bluetooth_dongle_to_get_data_from_a_ps3_controller/2014-08-26-7</guid>
			<pubDate>Mon, 25 Aug 2014 21:03:46 GMT</pubDate>
		</item>
	</channel>
</rss>