<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Roko.ca &#187; H-Bridge</title>
	<atom:link href="http://roko.ca/tag/h-bridge/feed" rel="self" type="application/rss+xml" />
	<link>http://roko.ca</link>
	<description></description>
	<lastBuildDate>Sun, 20 Jun 2010 23:37:03 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>A Blast From The Past (Sumo Style) Part I</title>
		<link>http://roko.ca/robotics/a-blast-from-the-past-sumo-style-part-i</link>
		<comments>http://roko.ca/robotics/a-blast-from-the-past-sumo-style-part-i#comments</comments>
		<pubDate>Fri, 04 Jun 2010 02:40:53 +0000</pubDate>
		<dc:creator>Roko</dc:creator>
				<category><![CDATA[Mini Sumo v6]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[H-Bridge]]></category>
		<category><![CDATA[Machining]]></category>
		<category><![CDATA[Mini Sumo]]></category>
		<category><![CDATA[Robot Games]]></category>

		<guid isPermaLink="false">http://roko.ca/?p=214</guid>
		<description><![CDATA[It&#8217;s been a busy summer (and then winter), involving getting a new job and moving to a new city, so I haven&#8217;t had much time to work on my robots much recently, let alone update my blog! So, instead of posting any updates on my robots (those will come later on when I get more [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s been a busy summer (and then winter), involving getting a new job and moving to a new city, so I haven&#8217;t had much time to work on my robots much recently, let alone update my blog! So, instead of posting any updates on my robots (those will come later on when I get more work done), I&#8217;ve dug up some information on one of my older Sumo Robots, aptly named:</p>
<h2 style="text-align: center;">Chomp!</h2>
<div id="attachment_215" class="wp-caption alignleft" style="width: 160px"><a href="http://roko.ca/wp-content/uploads/2009/09/2000-L-6_Auto_Sumo.jpg"><img class="size-thumbnail wp-image-215  " title="2000-L-6_Auto_Sumo" src="http://roko.ca/wp-content/uploads/2009/09/2000-L-6_Auto_Sumo-150x150.jpg" alt="Chomp! in Competition" width="150" height="150" /></a><p class="wp-caption-text">Chomp! in Competition</p></div>
<p>Chomp! was my first sumo robot, and first robot beyond BEAM robotics. Built in my High School years, it competed for the first time in the 2000 Western Canadian Robot Games, and placed first in the 5kg Autonomous Sumo competition. Although slow and lumbering, this robot had a good (for the time) vision system and protective skirt system that deployed on startup.</p>
<p>The brains of the Sumo was the rustic Basic Stamp II, powering an L298 H-bridge that controlled 4 motors, one per wheel. An aluminum frame held the robot together, and a custom made decals gave the robot a nice fierce personality <img src='http://roko.ca/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Back before the days of commonly available Sharp IR Rangefinders, I used a solution involving Modulated IR sensors (40 kHz) and modulated IR LEDs. By toggling the LEDs on or off, from a single sensor I could determine if the robot was to the left, right or front of me. A far cry from &#8216;<a href="http://roko.ca/category/robotics/mini-sumo-v6">1.21 GW</a>&#8216;, my current mini sumo, but it worked, and helped get the robot first place!</p>
<div id="attachment_216" class="wp-caption alignright" style="width: 160px"><a href="http://roko.ca/wp-content/uploads/2009/09/2000-L-14_Auto_Sumo.jpg"><img class="size-thumbnail wp-image-216  " title="2000-L-14_Auto_Sumo" src="http://roko.ca/wp-content/uploads/2009/09/2000-L-14_Auto_Sumo-150x150.jpg" alt="Chomp! preparing for Battle, before deploying protective skirts" width="150" height="150" /></a><p class="wp-caption-text">Chomp! preparing for Battle, before deploying protective skirts</p></div>
<p>Chomp! went on to compete in the 200 WCRG for the next year or two, but other robots rapidly improved over the years, and Chomp! became too slow and the protective flaps too weak for stronger robots.</p>
<p>Chomp! actually had a sister (brother?) robot, named &#8220;Fatal Discharge&#8221;, which never ended up working right. Unfortunately, this was before I figured out enough about motor controllers to know that the L298 wasn&#8217;t quite up to the task.</p>
<p>After Chomp!, I went on to build &#8220;Event Horizon&#8221;, which was a moderately successful robot, and one of the first in Canada to have a vacuum system for increased traction. But more on that later&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://roko.ca/robotics/a-blast-from-the-past-sumo-style-part-i/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Quadrupeds Need a Whole Lot of Motor Controllers</title>
		<link>http://roko.ca/robotics/quadruped-motor-control</link>
		<comments>http://roko.ca/robotics/quadruped-motor-control#comments</comments>
		<pubDate>Fri, 05 Jun 2009 04:35:02 +0000</pubDate>
		<dc:creator>Roko</dc:creator>
				<category><![CDATA[Quadruped]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[H-Bridge]]></category>

		<guid isPermaLink="false">http://roko.ca/?p=192</guid>
		<description><![CDATA[It&#8217;s been a while since my last update on the Quadruped&#8217;s build progress, but I finally got my PCBs back for the motor controllers. Since the robot has twelve motors, I need six motor controllers in total (Each of my controllers controls two motors). They&#8217;re an updated version of the h-bridge I prototyped last fall, [...]]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption alignleft" style="width: 160px"><a title="Blank PCBs.. Black Soldermasks look cool." rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=311&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85"><img title="Blank PCBs.. Black Soldermasks look cool." src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=313&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85" alt="Bare PCBs 1" width="150" height="113" /></a><p class="wp-caption-text">Blank PCBs</p></div>It&#8217;s <div class="wp-caption alignright" style="width: 160px"><a title="The motor controller mounted in the leg." rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=308&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85"><img title="The motor controller mounted in the leg." src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=310&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85" alt="Leg Motor Controller 1" width="150" height="113" /></a><p class="wp-caption-text">Motor Controller in the Leg</p></div>been a while since my last update on the Quadruped&#8217;s build progress, but I finally got my PCBs back for the motor controllers. Since the robot has twelve motors, I need six motor controllers in total (Each of my controllers controls two motors). They&#8217;re an updated version of the <a href="http://roko.ca/robotics/h-bridge-prototype-build">h-bridge I prototyped last fall</a>, and used in my <a href="http://roko.ca/category/robotics/mini-sumo-v6">mini sumo robot</a>. Although definately more than is really required, the motor controllers boast ultra-low RDSon Direct FETs, and HC9S12C32 micro-controller to handle the control and monitoring of the h-bridges. The black soldermask really enhances the look of the PCBs mounted in the robot.</p>
<p>Each leg has it&#8217;s own motor controller to manage the two motors in each leg, and another two motor controllers will manage the four motors in the core. The leg motor controllers are shaped specifically to fit within the frame on one side. The other side of the upper leg frame will hold another PCB with some sensors (I&#8217;m planning on e-field and/or pressure sensors in the robot&#8217;s feet and on the leg itself.)</p>
<p><div class="wp-caption alignleft" style="width: 160px"><a title="Backside of the motor controller." rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=305&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85"><img title="Backside of the motor controller." src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=307&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85" alt="Leg Motor Controller 2" width="150" height="113" /></a><p class="wp-caption-text">Motor Controller and Angle Sensing Boards</p></div>Each <div class="wp-caption alignright" style="width: 160px"><a title="The programming adapter attaches to the leg itself, and uses pogo pins to make contact for the programming signals" rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=302&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85"><img title="The programming adapter attaches to the leg itself, and uses pogo pins to make contact for the programming signals" src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=304&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85" alt="Leg Pogo Adaptor" width="150" height="113" /></a><p class="wp-caption-text">Programming Adapter</p></div>joint requires angular feedback for the motor controller&#8217;s closed loop system. This is accomplished by using special potentiometers through which the joint shaft will pass. The potentiometer is wired as a simple voltage divider, and  as the angle of the shaft changes, the potentiometer will give a different voltage output. This voltage will in turn be read by the motor controller and turned into useful data. The special potentiometers used here were a bit of an obscure find, but luckily they are a stock item at Digikey.</p>
<p>In order to ease the routing of all the connections on a 2 layer PCB, I decided to offload the large BDM header onto a separate board, which can be screwed onto the leg frame when I load the motor controller firmware. Several pogo pins then  make the programming connections to the test points on the controller PCB. I decided to get creative with the shape, and it turned out pretty neat.</p>
<p>I&#8217;m toying with the idea of putting a customized boot loader in the 9s12 controller, and giving the main processor (the Gumstix) programming control over all motor drivers. This way, instead of individually updating firmware on the motor controllers as I continue development down the road, I can instead just load one hex file into the Gumstix&#8217; file system, and it will automatically update the firmware on all six motor controllers.</p>
<p><div class="wp-caption alignleft" style="width: 160px"><a title="The 4x 2000mAh LiPo batteries I will use to power the robot. They will be wire 2s2p for a total of 4000 mAh at 7.2 volts" rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=299&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85"><img title="The 4x 2000mAh LiPo batteries I will use to power the robot. They will be wire 2s2p for a total of 4000 mAh at 7.2 volts" src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=301&amp;g2_GALLERYSID=820600e0866e15c88aa38f35c0b31a85" alt="New Battery" width="150" height="113" /></a><p class="wp-caption-text">LiPo Batteries</p></div>I also recently ordered the batteries I will be using to power the robot, 4x 2000 mAh LiPo batteries. I will be running then in a 2-series 2-parallel configuration to get 4000 mAh at 7.2 volts to run the entire robot. I still need to design and build a board that will fit underneath the batteries in the core of the robot, which will be responsible for battery protection/charging as well as power and control signal distribution to the four legs.</p>
<p>Still a lot of work to go, but it&#8217;s getting closer to walking&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://roko.ca/robotics/quadruped-motor-control/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mini Sumo PCBs&#8230;</title>
		<link>http://roko.ca/robotics/mini-sumo-pcbs</link>
		<comments>http://roko.ca/robotics/mini-sumo-pcbs#comments</comments>
		<pubDate>Tue, 28 Apr 2009 17:57:49 +0000</pubDate>
		<dc:creator>Roko</dc:creator>
				<category><![CDATA[Mini Sumo v6]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[H-Bridge]]></category>
		<category><![CDATA[Mini Sumo]]></category>

		<guid isPermaLink="false">http://roko.ca/?p=177</guid>
		<description><![CDATA[After a rushed PCB design marathon, I got my PCBs in last week, built by the good folks at APCircuits. The stencil came in shortly after. Since I made the PCBs into a panel, I had to cut them appart and file down the edges so that it would fit in the chassis. Overall the [...]]]></description>
			<content:encoded><![CDATA[<p><div class="wp-caption alignleft" style="width: 160px"><a title="Blank PCBs..." rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=272&amp;g2_GALLERYSID=9ceca21a5b6f4cb8daa8e30876164b8a"><img title="Bare PCBs" src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=273&amp;g2_GALLERYSID=9ceca21a5b6f4cb8daa8e30876164b8a" alt="BlankPCB" width="150" height="113" /></a><p class="wp-caption-text">Bare PCBs</p></div>After <div class="wp-caption alignright" style="width: 160px"><a title="Fitting the PCB in the body..." rel="lightbox[g2image]" href="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=278&amp;g2_GALLERYSID=9ceca21a5b6f4cb8daa8e30876164b8a"><img title="Fitting the PCB in the body..." src="http://roko.ca/gallery/main.php?g2_view=core.DownloadItem&amp;g2_itemId=279&amp;g2_GALLERYSID=9ceca21a5b6f4cb8daa8e30876164b8a" alt="MockUpPCB" width="150" height="113" /></a><p class="wp-caption-text">Fitting the PCB in the body...</p></div>a rushed PCB design marathon, I got my PCBs in last week, built by the good folks at APCircuits. The stencil came in shortly after. Since I made the PCBs into a panel, I had to cut them appart and file down the edges so that it would fit in the chassis. Overall the PCBs turned out nicely. I built them up and can sucessfully load code into the LPC2138. (No pictures of the completed circuit board yet). Things are comming togethor nicely.</p>
<p>You&#8217;ll also notice on the silk screen that I have given this robot a more creative name than Mini Sumo Version 6. I now call it &#8220;1.21Gw,&#8221; pronounced, of course, much as Doc Brown pronounced it in the timeless classic (no pun intended) &#8220;Back to the Future&#8221;</p>
<p>Now to finish it up and write some basic code for the robot games this weekend.</p>
]]></content:encoded>
			<wfw:commentRss>http://roko.ca/robotics/mini-sumo-pcbs/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>H-Bridge Fundamentals</title>
		<link>http://roko.ca/robotics/h-bridge-fundamentals</link>
		<comments>http://roko.ca/robotics/h-bridge-fundamentals#comments</comments>
		<pubDate>Fri, 12 Dec 2008 04:07:20 +0000</pubDate>
		<dc:creator>Roko</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Robotics]]></category>
		<category><![CDATA[Electronics]]></category>
		<category><![CDATA[H-Bridge]]></category>

		<guid isPermaLink="false">http://roko.ca/?p=44</guid>
		<description><![CDATA[An introduction into basic H-Bridge theory and operation, this article covers the fundamentals you need to know to make a working H-Brigde with N and P Channel MOSFETs Obligatory Introduction Since I began building sumo robots in late 1999, I&#8217;ve been wrestling (no pun intended) with motor drivers. At first I used single chip solutions [...]]]></description>
			<content:encoded><![CDATA[<p>An introduction into basic H-Bridge theory and operation, this article covers the fundamentals you need to know to make a working H-Brigde with N and P Channel MOSFETs</p>
<p><span id="more-44"></span></p>
<p><!--pagetitle:Introduction--></p>
<h2>Obligatory Introduction</h2>
<p align="left">Since I began building sumo robots in late 1999, I&#8217;ve been       wrestling (no pun intended) with motor drivers. At first I used single       chip solutions like the L298 in &#8220;Chomp&#8221; which worked well most       of the time, with only the occasional burnout. What most of you who know       me and my       robots probably don&#8217;t know is that Chomp had a twin named &#8220;Fatal       Discharge&#8221;. It was built with almost the same design, with the main       difference being the motors. On this robot, the L298 worked occasionally, burning out       most of the time. It just wasn&#8217;t adequate for the motors, and at the time       I didn&#8217;t have enough electronics knowledge to make it work. As such, Fatal Discharge never made       it to competition.</p>
<p align="left">Since then, I&#8217;ve built more robots, and       have gained much more experience making motor controllers. This       document is meant to provide some vital information on making a       &#8220;bullet proof&#8221; motor driver, based upon my experiences and       research into the field.</p>
<p align="left"><em><strong>:::DISCLAIMER:::</strong></em></p>
<p align="left">I       in no way guarantee that I haven&#8217;t made any mistakes, and I am not liable       for any damage that may be caused by using circuits discussed in this       page. If you spot any errors, please let me know.</p>
<p align="left">Be       careful when dealing with large batteries and H-Bridges. They require care       in design and construction, and carelessness can lead to components       overheating, and catching on fire.</p>
<p align="left"><a title="Contact Me" href="http://roko.ca/contact">If you have any questions of concerns, feel free to ask.</a></p>
<h2>So Why Make My Own Motor Driver?</h2>
<p align="left">It&#8217;s a commonly known fact to roboticists why motor       drivers are needed. 99.99% of the time, the micro controller or control       circuitry of a robot just can&#8217;t provide the       current needed to power motors. For motors with small current draw, single       chip solutions such as the L293 or L298 can be used, however these are       only useful for a range of less than one or two amps.</p>
<p align="left">In       the world of 3kg (and the now obsolete 5kg) autonomous sumo, having motors       that can output high power is necessary, especially when vacuum systems       are used. These motors are driven in extreme conditions, requiring abrupt       speed and direction changes, as well as being subject to high loads. When driving motors under       these conditions, an L298 will work only for very efficient motors in the       lower power ranges, but these super efficient motors are not always easy to find       when you are on a budget. Some motors produce plenty of output       power, but can also be very inefficient, thereby causing many problems with       associated control circuitry, and a simple single chip solution will no       longer cut it.</p>
<p align="left">For my 3kg robot &#8220;Event Horizon&#8221;, I made the       switch from pre-made motor drivers to rolling my own mosfet h-bridges.       There are plenty of designs out there, and I went for simplicity       using P-channel mosfets for the high side of the bridge, and N-channel mosfets for       the low side of the bridge.</p>
<p align="left">H-Bridge designs using only N-channel       devices are out of the scope of this article, although many of the       concepts discussed in this article still hold valid. Eventually, I may make another page       regarding the design of h-bridges using N-channel devices only.</p>
<p align="left">
<p align="left">
]]></content:encoded>
			<wfw:commentRss>http://roko.ca/robotics/h-bridge-fundamentals/feed</wfw:commentRss>
		<slash:comments>36</slash:comments>
		</item>
	</channel>
</rss>
