<?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>matt&#039;s english adventures</title>
	<atom:link href="http://blog.mattc.org.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.mattc.org.uk</link>
	<description>the english adventures... blogged</description>
	<lastBuildDate>Fri, 17 Feb 2012 23:31:16 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5</generator>
		<item>
		<title>The DCC Controller &#8211; Part 1 and 2.</title>
		<link>http://blog.mattc.org.uk/2012/02/17/the-dcc-controller-part-1-and-2/</link>
		<comments>http://blog.mattc.org.uk/2012/02/17/the-dcc-controller-part-1-and-2/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 23:11:21 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Model Railway]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/?p=95</guid>
		<description><![CDATA[So, the PCBs came. Only after I&#8217;d unpacked it to have a peek did I realise the sheer mountain I had to climb. Well, perhaps mountain is the wrong word, because mountains are big. The main microcontroller is tiny. It&#8217;s &#8230; <a href="http://blog.mattc.org.uk/2012/02/17/the-dcc-controller-part-1-and-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So, the PCBs came. Only after I&#8217;d unpacked it to have a peek did I realise the sheer mountain I had to climb. Well, perhaps mountain is the wrong word, because mountains are big. The main microcontroller is tiny. It&#8217;s a quad flatpack, 100 pins, 25 a side, on a 0.5mm pitch. That&#8217;s tiny when soldering by hand!. I tried a tactic I learned as a student engineer at Seprol. Which basically boils down to coat everything in sight with solder, then wick off the excess with braid, and then gently touch each pin in turn to melt what&#8217;s left and ensure a proper bond. After I&#8217;d done all 100 pins, I left it for a while. A few nights later, I did all the support components, including the voltage monitor / supervisor, power supply, crystal and RS232 port. So far so good, and special thanks to Gill and Keith for letting me borrow a super duper magnifier to check out the QFP.</p>
<p>With that much soldering done, I decided it was time for a test run, so I hooked up the power supply, and connected it to my PC, and loaded the flash programmer. I was absolutely heartbroken when it didn&#8217;t connect, then realised I hadn&#8217;t set the PC serial port up in Memtool. After I&#8217;d done that, everything worked fine. I could connect to the bootloader on the chip, and erase the flash memory.</p>
<p>Woohoo!!!</p>
<p>~</p>
<p>Over the coming days, I soldered more bits and pieces down, including a couple of LEDs and a few MOSFETS. One of these, a tiny SOT23 device, is to drive a cooling fan. The idea was to use the CAPCOM unit on the XC164 to drive the MOSFET, so the fan is speed controlled. After writing a short test program, I managed to get the fan to spin at varying speeds. I&#8217;ve just tarted up the code a bit, and put upper and lower limits on the speed so that you can&#8217;t go past maximum or under minimum. The under minimum is important so that the fan doesn&#8217;t stall, but the maximum?</p>
<p>Well, the PWM works on two registers and a timer in the CAPCOM unit. The first register is a reload value and the second is a match value. When the timer overflows, it flips an output pin, and reloads from the reload register. This reload value is calculated to give a period of 1 millisecond. The second register is compared against the timer, but a match only flips the output pin, rather than reloading the timer. So it&#8217;s important to ensure that the flip register isn&#8217;t set past the flip and reset register, or it won&#8217;t work. You can use it to generate interrupts as well, but since I&#8217;m only bothered about the fan (and therefore the output pin), I switched the interrupts off.</p>
<p>The advantage of this method is that the modulation is all done in hardware. No software whatsoever, except to turn the fan on and off, and change the speed.</p>
<p>More tomorrow, but I have to go into work for an emergency lighting test, and it&#8217;s a 1 hour one&#8230; what a waste of time that will be. Might leave the car at the valet place.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2012/02/17/the-dcc-controller-part-1-and-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The time is near</title>
		<link>http://blog.mattc.org.uk/2012/01/29/the-time-is-near/</link>
		<comments>http://blog.mattc.org.uk/2012/01/29/the-time-is-near/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 14:00:11 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/2012/01/29/the-time-is-near/</guid>
		<description><![CDATA[Well its been a while since the last post, and even longer since one on the railway. Reasons? Well mainly I ran out of money. However, things are improving, and I&#8217;ve ordered the parts remaining to build the new controller. &#8230; <a href="http://blog.mattc.org.uk/2012/01/29/the-time-is-near/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Well its been a while since the last post, and even longer since one on the railway. Reasons? Well mainly I ran out of money. However, things are improving, and I&#8217;ve ordered the parts remaining to build the new controller.</p>
<p>My first attempt at a multichannel analogue controller was successful, at least from a build point. It did what I wanted it to do. However, it relied on human thought to ensure that you didn&#8217;t set up a conflict and a resulting short circuit. After burning out a few transistors, I came to the decision that DCC would be a better bet, so I&#8217;ve been busy designing a DCC controller. Retail wise, on existing solutions, I would have to spend about £250 on control hardware, and about £15 per locomotive for the clever bit.</p>
<p>I did some quick checking on site, and found that I could get a 5 amp H bridge for under a £10. I had already anticipated microcontrollers when I was in the USA, and purchased 3 Infineon XC164 devices. With the heart of the design decided, I set about a circuit board. This is a custom designed board, and has everything I need on a 100 x 160 board, which will slot into a standard instrument case. In total, I&#8217;ve so far spent around £150, so we&#8217;re still way under budget.</p>
<p>I was, originally, going to design a nice handset based around another xc164, with capacitive keys, and a 4 x 40 LCD, however, I&#8217;ve decided that to test out the whole theory, I&#8217;ll use a computer. The link between the PC and the controller board is RS232, so it would be easy to move to a custom handset in the future. The computer program is written in Visual Basic. Whilst I&#8217;m really a c / c++ programmer, its not too difficult to pick up, so I should be able to make it work.</p>
<p>The parts are all here, and the PCB is due next week, so I&#8217;ll be building soon <img src='http://blog.mattc.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2012/01/29/the-time-is-near/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I almost forgot..</title>
		<link>http://blog.mattc.org.uk/2011/10/23/i-almost-forgot/</link>
		<comments>http://blog.mattc.org.uk/2011/10/23/i-almost-forgot/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 18:38:28 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/2011/10/23/i-almost-forgot/</guid>
		<description><![CDATA[Having completed the first week of NEBOSH, I was on my way home when I saw a signpost for Jodrell Bank. Well, me being me, I had to take a look. Photo attached. Unfortunately, the place was closed, so this &#8230; <a href="http://blog.mattc.org.uk/2011/10/23/i-almost-forgot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p><img style="display:block;margin-right:auto;margin-left:auto;" alt="image" src="http://blog.mattc.org.uk/wp-content/uploads/2011/10/wpid-IMAG0289.jpg" /></p>
<p>Having completed the first week of NEBOSH, I was on my way home when I saw a signpost for Jodrell Bank. Well, me being me, I had to take a look. Photo attached. Unfortunately, the place was closed, so this was about as close as I could get without breaking and entering.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/10/23/i-almost-forgot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Job</title>
		<link>http://blog.mattc.org.uk/2011/10/23/new-job/</link>
		<comments>http://blog.mattc.org.uk/2011/10/23/new-job/#comments</comments>
		<pubDate>Sun, 23 Oct 2011 17:29:08 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/?p=96</guid>
		<description><![CDATA[Well, I&#8217;ve officially got the new job. Quality, Environmental and H&#38;S Engineer. Good points &#8211; A bit more money. Bad Points &#8211; A bit more responsibility. All in all, a good balance. I&#8217;ve got several training courses to go on, &#8230; <a href="http://blog.mattc.org.uk/2011/10/23/new-job/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Well, I&#8217;ve officially got the new job. Quality, Environmental and H&amp;S Engineer.</p>
<p>Good points &#8211; A bit more money. Bad Points &#8211; A bit more responsibility.</p>
<p>All in all, a good balance. I&#8217;ve got several training courses to go on, one of which I had the first stint of last week &#8211; NEBOSH. All in all (and its a feeling common to the other 4 folks on the course) I think it&#8217;s rather over-intense. It&#8217;s spread over 2 one week sessions, but I think 4 one week sessions would be better. Maybe I&#8217;m worrying too much, and we&#8217;ll be fine, but there&#8217;s as much going out the over-flow as there is going into my head.</p>
<p>In other news, I&#8217;ve decided that there are four rooms in my house in need of decorating. The bathroom, the master bedroom, the stairwell and the lounge (in that order). I&#8217;ve been thinking of ways I can make more space in the bathroom, and the only way that&#8217;s going to happen is if I lose the bath, and install a shower. I&#8217;m not particularly bothered about losing the bath, and it would generate lots more space. Enough to put in some storage for toiletries, clean towels and so on. All in all, a better idea.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/10/23/new-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web browser for tablets</title>
		<link>http://blog.mattc.org.uk/2011/10/09/web-browser-for-tablets/</link>
		<comments>http://blog.mattc.org.uk/2011/10/09/web-browser-for-tablets/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 10:47:43 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Gear-grinder]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/2011/10/09/web-browser-for-tablets/</guid>
		<description><![CDATA[So, after getting an Asus Transformer, I thought about a decent browser for it. Free would be ideal, but a couple of quid is no major expense. So far I&#8217;ve tried the standard browser. Its ok-ish, but seems to struggle &#8230; <a href="http://blog.mattc.org.uk/2011/10/09/web-browser-for-tablets/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So, after getting an Asus Transformer, I thought about a decent browser for it. Free would be ideal, but a couple of quid is no major expense. </p>
<p>So far I&#8217;ve tried the standard browser. Its ok-ish, but seems to struggle with Facebook, which is one site I access quite frequently on the tablet.</p>
<p>Firefox is too slow, and apparently has issues with Flash, reloading libraries each start and won&#8217;t find bookmarks in the standard location.</p>
<p>Opera mobile is slightly better, as it&#8217;s much faster, and supports Flash. Their zoom function also works better too. Bookmarks are still an issue, but this could be fixed by their speed-dial feature, which I really love on my phone. Sadly, its designed for a phone screen, and therefore is limited to 9 squares about 2 inches square. Total waste of screen space on a tablet. You could easily fit 30+ decent sized buttons on there!</p>
<p>I also tried Dolphin, which looks to be Chrome based, but again, struggles with Facebook.  Bookmarks are not a problem (unsurprising, since Google  makes both Chrome and Android).</p>
<p>So, what would I like? Opera HD. Just like Opera mobile, but with a couple of UI tweaks to make the speed dial work better on a tablet, and use of standard bookmarks. </p>
<p>Is that too much to ask? </p>
<p>Lets wait and see&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/10/09/web-browser-for-tablets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>F1 Japanese GP 2011 &#8211; Suzuka</title>
		<link>http://blog.mattc.org.uk/2011/10/09/f1-japanese-gp-2011-suzuka/</link>
		<comments>http://blog.mattc.org.uk/2011/10/09/f1-japanese-gp-2011-suzuka/#comments</comments>
		<pubDate>Sun, 09 Oct 2011 09:14:06 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/?p=91</guid>
		<description><![CDATA[A great win from Jenson Button. Pushed a bit at the start, but kept his cool to do a pitstop overtake on Sebastian Vettel. Cruising home to the line, when it seems that Alonso had a bit more fight in &#8230; <a href="http://blog.mattc.org.uk/2011/10/09/f1-japanese-gp-2011-suzuka/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A great win from Jenson Button.</p>
<p>Pushed a bit at the start, but kept his cool to do a pitstop overtake on Sebastian Vettel. Cruising home to the line, when it seems that Alonso had a bit more fight in him. Jenson cooly turned the wick up to keep Fernando just outside the DRS activation zone. The race is still on for the constructors championship.</p>
<p>Oh, and Vettel secured the drivers championship title.</p>
<p>Korea next week!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/10/09/f1-japanese-gp-2011-suzuka/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formula 1, other news and such.</title>
		<link>http://blog.mattc.org.uk/2011/09/25/formula-1-other-news-and-such/</link>
		<comments>http://blog.mattc.org.uk/2011/09/25/formula-1-other-news-and-such/#comments</comments>
		<pubDate>Sun, 25 Sep 2011 15:11:30 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/2011/09/25/formula-1-other-news-and-such/</guid>
		<description><![CDATA[So, it could have been the climax of the 2011 Formula One championship this weekend in Singapore. But not quite. Mr Vettel is still one point short of a clear win over Jenson Button. The party will have to wait &#8230; <a href="http://blog.mattc.org.uk/2011/09/25/formula-1-other-news-and-such/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So, it could have been the climax of the 2011 Formula One championship this weekend in Singapore. But not quite. Mr Vettel is still one point short of a clear win over Jenson Button. The party will have to wait until the next race.</p>
<p>In other news, a satellite has crash landed on earth after being in orbit for a decent length of time. The orbit was at 57 degrees, so it could have crashed just about anywhere on populated Earth. Luckily it went for a swim instead.</p>
<p>Also, it turns out that a certain flavour of neutrinos can, in fact, travel faster than the speed of light. Well done to the guys at the LHC for working that out. When exactly are you going to find that hadron that you originally set out to find, and spent millions of pounds on equipment for?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/09/25/formula-1-other-news-and-such/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The latest trick from the spammers</title>
		<link>http://blog.mattc.org.uk/2011/09/16/the-latest-trick-from-the-spammers/</link>
		<comments>http://blog.mattc.org.uk/2011/09/16/the-latest-trick-from-the-spammers/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 09:00:31 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/?p=84</guid>
		<description><![CDATA[So, I&#8217;m now receiving emails from the future. &#8220;** SPAM ** Earn 2 SouthWest Tickets&#8221; from Ticket  Center (Blatantly American, then&#8230;) Sent 11/10/2018 11:24 Presumably as most people sort their mail by date, it ensures that the spam mail is &#8230; <a href="http://blog.mattc.org.uk/2011/09/16/the-latest-trick-from-the-spammers/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>So, I&#8217;m now receiving emails from the future.</p>
<p>&#8220;** SPAM ** Earn 2 SouthWest Tickets&#8221; from Ticket  Center (Blatantly American, then&#8230;) Sent 11/10/2018 11:24</p>
<p>Presumably as most people sort their mail by date, it ensures that the spam mail is always at the top of the list (in my spam box, which I rarely look at anyway)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/09/16/the-latest-trick-from-the-spammers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts&#8230;</title>
		<link>http://blog.mattc.org.uk/2011/07/10/thoughts/</link>
		<comments>http://blog.mattc.org.uk/2011/07/10/thoughts/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 21:35:00 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/2011/07/10/thoughts/</guid>
		<description><![CDATA[Today (and the whole weekend, really) has been not so good. I don&#8217;t know why. Maybe it&#8217;s  because there&#8217;s no-one here to talk to. Maybe I&#8217;m stressed. Well, OK, I AM stressed. Is it work? Could be. Work is just &#8230; <a href="http://blog.mattc.org.uk/2011/07/10/thoughts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Today (and the whole weekend, really) has been not so good. I don&#8217;t know why. </p>
<p>Maybe it&#8217;s  because there&#8217;s no-one here to talk to. Maybe I&#8217;m stressed. Well, OK, I AM stressed. Is it work? Could be. Work is just work though. I&#8217;m usually quite good at filtering it out. </p>
<p>Money problems? No more than usual.</p>
<p>Perhaps it&#8217;s all the little things working together, or something else altogether. I wish I knew. </p>
<p>Someone (Tamsyn, I think) calls me a childless father. I guess I&#8217;m also a wifeless husband too, and maybe these are issues. Not easy ones to fix, those&#8230;</p>
<p>I&#8217;m 30 on Tuesday. I know that&#8217;s not it. It doesn&#8217;t bother me. It&#8217;s just a number. Besides, you&#8217;re as young as you feel. And I can feel pretty young if I want to. </p>
<p>I wish I knew what was wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/07/10/thoughts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>I&#8217;m back again (again)</title>
		<link>http://blog.mattc.org.uk/2011/07/07/im-back-again-again/</link>
		<comments>http://blog.mattc.org.uk/2011/07/07/im-back-again-again/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 20:01:07 +0000</pubDate>
		<dc:creator>Matt</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.mattc.org.uk/?p=78</guid>
		<description><![CDATA[Been over to America with work. All a bit rushed, but I got there eventually. Notes to self&#8230; Never fly through Atlanta again. They have way to many storms. Never fly with Delta again. They hub at Atlanta. Other than &#8230; <a href="http://blog.mattc.org.uk/2011/07/07/im-back-again-again/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Been over to America with work. All a bit rushed, but I got there eventually.</p>
<p>Notes to self&#8230;</p>
<ul>
<li>Never fly through Atlanta again. They have way to many storms.</li>
<li>Never fly with Delta again. They hub at Atlanta.</li>
</ul>
<p>Other than the actual traveling, a really nice week and a bit away. Saw Messrs. Gladstone, Erin, and all the people from the apartments. Hope you get well soon Whitney!</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mattc.org.uk/2011/07/07/im-back-again-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
