<?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>10Dogs.net &#187; UML</title>
	<atom:link href="http://www.10dogs.net/tag/uml/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.10dogs.net</link>
	<description>Talk techie to me...</description>
	<lastBuildDate>Tue, 30 Aug 2011 10:54:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Model Boom-Gate &#8211; the sequel (or &#8220;More Spaghetti than an Italian Restaurant&#8221;)</title>
		<link>http://www.10dogs.net/2011/08/30/model-boom-gate-the-sequel/</link>
		<comments>http://www.10dogs.net/2011/08/30/model-boom-gate-the-sequel/#comments</comments>
		<pubDate>Tue, 30 Aug 2011 10:54:14 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Projects]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Boom-gate]]></category>
		<category><![CDATA[Control System]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[State Machine]]></category>
		<category><![CDATA[Statechart]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://www.10dogs.net/?p=28</guid>
		<description><![CDATA[My little boom-gate has made it to work now and been hooked up to the test automation harness. This pic should explain the spaghetti reference in the post title&#8230; This may all look a very unsophisticated , but the systems behind this are industrial strength and pretty comlex. It&#8217;s kind of humbling to think of [...]]]></description>
			<content:encoded><![CDATA[<p>My little boom-gate has made it to work now and been hooked up to the test automation harness.</p>
<p>This pic should explain the <em>spaghetti</em> reference in the post title&#8230;</p>
<div id="attachment_29" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/2011-08-30-12.58.19.jpg"><img class="size-medium wp-image-29" title="More Spaghetti than an Italian Restaurant" src="http://www.10dogs.net/wp-content/uploads/2011/08/2011-08-30-12.58.19-300x225.jpg" alt="More Spaghetti than an Italian Restaurant" width="300" height="225" /></a><p class="wp-caption-text">More Spaghetti than an Italian Restaurant</p></div>
<p><iframe src="http://www.youtube.com/embed/0-rlruwhJBw" frameborder="0" width="420" height="345"></iframe></p>
<p>This may all look a very unsophisticated , but the systems behind this are industrial strength and pretty comlex.</p>
<div id="attachment_31" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/TAMS1.jpg"><img class="size-medium wp-image-31" title="Physical Access Management System" src="http://www.10dogs.net/wp-content/uploads/2011/08/TAMS1-300x222.jpg" alt="Physical Access Management System" width="300" height="222" /></a><p class="wp-caption-text">Physical Access Management System</p></div>
<p>It&#8217;s kind of humbling to think of the millions of $&#8217;s worth of system and the size of the team that has toiled for well over a year putting the system together that is controlling my dinky boom-gate here.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.10dogs.net/2011/08/30/model-boom-gate-the-sequel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Model Boom-Gate</title>
		<link>http://www.10dogs.net/2011/08/28/model-boom-gate/</link>
		<comments>http://www.10dogs.net/2011/08/28/model-boom-gate/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 02:13:10 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Projects]]></category>
		<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[Arduino]]></category>
		<category><![CDATA[Boom-gate]]></category>
		<category><![CDATA[Control System]]></category>
		<category><![CDATA[Model]]></category>
		<category><![CDATA[State Machine]]></category>
		<category><![CDATA[Statechart]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://www.10dogs.net/?p=21</guid>
		<description><![CDATA[My project at work at the moment is a large Physical Access Control System (PACS). We have automated some of the testing of physical devices with an I/O interface and API into the control devices. As a bit of fun I built this to hang off the controller rather than watching events and status updates [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.10dogs.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushCpp.js"></script>
<p>My project at work at the moment is a large <a title="Wikipedia Link" href="http://en.wikipedia.org/wiki/Access_control">Physical Access Control System</a> (PACS). We have automated some of the testing of physical devices with an I/O interface and API into the control devices.</p>
<p>As a bit of fun I built this to hang off the controller rather than watching events and status updates at a computer console. The code very accurately simulates the behaviour programmed into the PLCs of the <a title="Magnetic Autocontrol MIB30" href="http://www2.ac-magnetic.com/products-Vehicle_Access_Access_Control_Barriers/1-1-1-345-5-E.html">actual boom-gates</a> that are controlling access on several mine-sites and ports all across Queensland.</p>
<div id="attachment_23" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5326-1.jpg"><img class="size-medium wp-image-23" title="Model Boom-Gate" src="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5326-1-300x200.jpg" alt="Model Boom-Gate" width="300" height="200" /></a><p class="wp-caption-text">Model Boom-Gate</p></div>
<h1>Implementation</h1>
<div id="attachment_24" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/boomgate_bb.jpg"><img class="size-medium wp-image-24 " title="Breadboard Wiring" src="http://www.10dogs.net/wp-content/uploads/2011/08/boomgate_bb-300x260.jpg" alt="Breadboard Wiring" width="300" height="260" /></a><p class="wp-caption-text">Breadboard Wiring</p></div>
<p style="text-align: left;">The implementation of this project is very simple. (Though the application is a little novel, I think.)</p>
<h2>Inputs</h2>
<ul>
<li><strong>Open Request:</strong> I have a push-button switch with a pull-down on the breadboard to test (play) with the application, but in reality this digital input is connected to a (normally-open) relay output of the PACS controller board that takes its direction from the overall system after assessing things like: driver ID (RFID); vehicle ID (RFID); qulaifications; fitness for work; fatigue (external systems).</li>
<li><strong>Reed Switch:</strong> This is to simulate the operation of an induction / safety loop as the vehicle passes over it. (This is a <em>very</em> noisy device and really should be debounced through code or hardware.)</li>
</ul>
<h2>Outputs</h2>
<ul>
<li><strong>Open State:</strong> The boom-gate is considered open the moment it starts to move upward and closed the moment it starts to move down. This is used in monitoring to know whether the gate is open without the &#8220;consent&#8221; of the control system, which will then raise an alert.</li>
<li><strong>Safety:</strong> This prevents the boom-gate (locally in its PLC / control) from closing while there is a vehicle under it. This is exposed as an output so the system can determine if the vehicle granted access actually drove through the gate or not.</li>
<li><strong>Servo Position:</strong> To open / close the boom arm.</li>
</ul>
<h2>Control</h2>
<ul>
<li><strong>State Machine:</strong> IMHO, this concept sits really well with embedded or control system software. In my application there are only four states and simple rules / actions on the transitions. There are *way* more complex implementations for this out there and, what appears to be, a pretty solid library available for Arduino. All of this seemed a huge overkill for my little application, so I managed my states and transitions via a simple <em>Switch / Case</em> control structure in my code.</li>
</ul>
<div id="attachment_22" class="wp-caption aligncenter" style="width: 528px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/boomgate_states.jpg"><img class="size-full wp-image-22  " title="boomgate_states" src="http://www.10dogs.net/wp-content/uploads/2011/08/boomgate_states.jpg" alt="UML Statechart" width="518" height="274" /></a><p class="wp-caption-text">UML Statechart</p></div>
<p><iframe src="http://www.youtube.com/embed/ESmDdIQRuko" frameborder="0" width="560" height="345"></iframe></p>
<p><pre class="brush: cpp">  // incredibly simple state machine
  // check for vslid transitions from the current state
  switch(_state)
  {
    case OPENING:
      // current state: Opening
      // transition to: Open
      // guard: Position &gt;= Upper Limit
      // action: none
      if (_position &gt;= INCREMENTS)
      {
        _state = OPEN;
      }
      // current state: Opening
      // transition to: Closing
      // guard: Open Request = false  AND Safety = false
      // action: set Closed
      else if (_openRequest == false &amp;&amp; _safety == false)
      {
        _state = CLOSING;
        _openState = false;
      }
      // open boom-gate
      else
      {
        // increment position and set servo
        setServoPosition(++_position);
      }   
      break;
  
    case OPEN:
      // current state: Open
      // transition to: Closing
      // guard: Open Request = false AND Safety = false
      // action: set Closed
      if (_openRequest == false &amp;&amp; _safety == false)
      {
        _state = CLOSING;
        _openState = false;
      }
      break;
  
    case CLOSING:
      // current state: Closing
      // transition to: Closed
      // guard: Position &lt;= Lower Limit
      // action: none
      if(_position &lt;= 0)
      {
        _state = CLOSED;
      }
      // current state: Closing
      // transition to: Opening
      // guard: Open Request = true OR Safety = true
      // action: set Open
      else if(_openRequest == true || _safety == true)
      {
        _state = OPENING;
        _openState = true;
      }
      // internal state activity: close boom-gate
      else
      {
        // decrement position and set servo
        setServoPosition(--_position);
      }
      break;
  
    default:
      // current state: Closed
      // transition to: Opening
      // guard: Open Request = true
      // action: set Open
      if (_openRequest)
      {
        _state = OPENING;
        _openState = true;
      }
  }</pre></p>
<h2>Construction</h2>
<p>This was pretty simple.</p>
<ul>
<li>A small project case with a slot cutout to mount the servo motor</li>
<li>A length of balsa bolted on to a servo horn for the boom</li>
<li>Cutout in the wood base for the Reed Switch</li>
<li>Fabricate a metal bracket for the Vehicle to mount the magnet</li>
</ul>
<div id="attachment_25" class="wp-caption aligncenter" style="width: 210px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5329.jpg"><img class="size-medium wp-image-25" title="Boom-Gate" src="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5329-200x300.jpg" alt="Boom-Gate" width="200" height="300" /></a><p class="wp-caption-text">Boom-Gate</p></div>
<div id="attachment_26" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5334.jpg"><img class="size-medium wp-image-26" title="Truck" src="http://www.10dogs.net/wp-content/uploads/2011/08/IMG_5334-300x200.jpg" alt="Truck" width="300" height="200" /></a><p class="wp-caption-text">Truck</p></div>
<h1>Links</h1>
<ul>
<li><a title="Fritzig" href="http://fritzing.org/projects/model-boom-gate/">Fritzing Project</a>: This is the host site for a great app for wiring up your breadboard circuit and moving through to PCB design. Fantastic piece of software too!</li>
<li><a href="http://www.10dogs.net/wp-content/uploads/2011/08/boomgate.pde">Arduino Code</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.10dogs.net/2011/08/28/model-boom-gate/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Visio Stencil and Template for UML 2.2</title>
		<link>http://www.10dogs.net/2010/03/04/visio-stencil-for-uml/</link>
		<comments>http://www.10dogs.net/2010/03/04/visio-stencil-for-uml/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 01:55:37 +0000</pubDate>
		<dc:creator>Simon</dc:creator>
				<category><![CDATA[Software Engineering]]></category>
		<category><![CDATA[UML]]></category>

		<guid isPermaLink="false">http://www.10dogs.net/?p=18</guid>
		<description><![CDATA[I am a simple creature! It made my morning this morning when I discovered a stencil download that added some of the UML 2.2 features to visio (which is floundering somewhere around UML 1.x out of the box&#8230;). &#8220;The UML stencil for Microsoft Visio supports all symbols of the UML 2.2, specified in OMG UML [...]]]></description>
			<content:encoded><![CDATA[            <script type="text/javascript" src="http://www.10dogs.net/wp-content/plugins/wordpress-code-snippet/scripts/shBrushCpp.js"></script>
<p>I am a simple creature! It made my morning this morning when I discovered a <a title="Visio Stencil and Template for UML 2.2" href="http://softwarestencils.com/uml/index.html">stencil download</a> that added some of the <a title="Unified Modelling Language" href="http://en.wikipedia.org/wiki/Unified_Modeling_Language">UML</a> 2.2 features to visio (which is floundering somewhere around UML 1.x out of the box&#8230;).</p>
<blockquote><p>&#8220;<em>The UML stencil for  Microsoft Visio supports all symbols of the UML 2.2, specified in OMG UML Superstructure Specification, formal/2009-02-02, as well as all previous versions, UML 2.1, UML 2.0, UML 1.5, UML 1.4, UML 1.3 and UML 1.1.</em>&#8220;</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.10dogs.net/2010/03/04/visio-stencil-for-uml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

