<?xml version="1.0"?>
<rss version="2.0"><channel><title>Articles: Articles</title><link>https://www.stripboard.com/articles.html/records/?d=1</link><description>Articles: Articles</description><language>en</language><item><title>The Crystal a-Maze</title><link>https://www.stripboard.com/articles.html/records/the-crystal-a-maze-r1/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2018_07/DIY-Kits-RF-1Hz-50MHz-Crystal-Oscillator-Frequency-Counter-Meter-Digital-LED-tester-meter.jpg_640x640.jpg.ff0d2a3af5a6796e80f99b9f65d50421.jpg" /></p>

<p>
	<u><strong>A Beginner's Project With Possibilities</strong></u>
</p>

<p>
	There's an amazingly cheap project available from multiple Chinese sellers that offers a good starting point for someone who has never built an electronics gismo before.  It's a tester that's good for go/nogo and frequency identification of crystals up to around 50Mh/z.  In theory it should check ceramic resonators and filters too, and maybe it has other uses, like a frequency meter or maybe - with a lille insight - can be used to indirectly measure inductance and capacitance.
</p>

<p>
	<img alt="DIY-Kits-RF-1Hz-50MHz-Crystal-Oscillator" class="ipsImage" height="451" src="https://ae01.alicdn.com/kf/HTB1GcAYSpXXXXaCaXXXq6xXFXXXh/DIY-Kits-RF-1Hz-50MHz-Crystal-Oscillator-Frequency-Counter-Meter-Digital-LED-tester-meter.jpg_640x640.jpg" width="604" /></p>

<p>
	I bought mine <a href="https://www.aliexpress.com/item/DIY-Kits-RF-1Hz-50MHz-Crystal-Oscillator-Frequency-Counter-Meter-Digital-LED-tester-meter/32582207261.html" rel="external nofollow">here</a> for only £2.11 (British Pounds) and that included the shipping from China!  They vendor wants a massive £0.25 shipping now though! <img alt=";)" data-emoticon="" height="20" src="https://www.stripboard.com/uploads/emoticons/wink.png" srcset="https://www.stripboard.com/uploads/emoticons/wink@2x.png 2x" title=";)" width="20" /> I've been looking at the little bag of parts for a couple of weeks now, so it's time to get the soldering iron out...
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">1</guid><pubDate>Sun, 01 Jul 2018 12:48:55 +0000</pubDate></item><item><title>C.H.I.P. Board Notes</title><link>https://www.stripboard.com/articles.html/records/chip-board-notes-r2/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2020_05/1177757101_C-H-I-P_SBC_Module.jpg.99679316effbda95e259563bfb79bd13.jpg" /></p>

<p>
	Here's a series of notes on the NextThingCo C.H.I.P. computer module.  At the moment they are in no particular order.  The notes all refer to the original CHIP and not the CHIP-Pro embedded module.  Due to the nature of the product this is all very command line orientated and we (mostly) eschew Graphics User Interfaces (windowing).
</p>

<p>
	<u><strong>Bluetooth</strong></u>
</p>

<p>
	Yes, the CHIP has Bluetooth capability but you need to work at it a little.  The key here is the bluetoothctl utility.  Mileage may vary but getting bluetooth peripherals to pair/connect and finally function boils down to:
</p>

<pre style="background-color:#eff0f1;border:0px;color:#242729;font-size:13px;padding:5px;text-align:left;vertical-align:baseline;">
<code style="background-color:#eff0f1;border:0px;font-size:13px;padding:0px;vertical-align:baseline;">bluetoothctl scan
</code></pre>

<p>
	I found that it was necessary to turn on the agent in order to get my bluetooth keyboards to function.  Pairing and a successful connection simply isn't enough.
</p>

<pre style="background-color:#eff0f1;border:0px;color:#242729;font-size:13px;padding:5px;text-align:left;vertical-align:baseline;">
<code style="background-color:#eff0f1;border:0px;font-size:13px;padding:0px;vertical-align:baseline;">agent on
connect 00:11:22:33:44
</code></pre>

<p>
	<strong>Note that command completion (using TAB) works at the bluetoothctl prompt, which is a huge relief when using the toy keyboard on a PocketCHIP!  This also works for the bluetooth device number: once seen it's only necessary to type the first couple of unique characters before hitting the TAB.</strong>
</p>

<p>
	<u><strong>Stuck in GUI Mode?</strong></u>
</p>

<p>
	So you did the...
</p>

<pre style="background-color:#292929;color:#ffffff;font-size:15px;padding:1.1em 28px;">
<code style="background-color:transparent;font-size:15px;padding:0px;">sudo apt-get install xfce4</code></pre>

<p>
	 ... and are now stuck in the (fairly useless for embedded applications) xfce4 environment?  You're seriously contemplating a reflash!  Use systemctl to change the default boot with a symlink: 
</p>

<pre style="background-color:#eff0f1;border:0px;color:#242729;font-size:13px;padding:5px;text-align:left;vertical-align:baseline;">
<code style="background-color:#eff0f1;border:0px;font-size:13px;padding:0px;vertical-align:baseline;">systemctl set-default multi-user.target
</code></pre>

<p style="background-color:#ffffff;border:0px;color:#242729;font-size:15px;padding:0px;text-align:left;vertical-align:baseline;">
	To change back to booting to the GUI:
</p>

<pre style="background-color:#eff0f1;border:0px;color:#242729;font-size:13px;padding:5px;text-align:left;vertical-align:baseline;">
<code style="background-color:#eff0f1;border:0px;font-size:13px;padding:0px;vertical-align:baseline;">systemctl set-default graphical.target</code></pre>

<p>
	Note that this will kick you into raw <strong>full screen</strong> console mode, with the various consoles accessible by the usual Alt+F1 to F? key sequences.  As it's proper text mode for the display (not a windowing environment) the text will be bolder and look less enhanced, but IMHO it's more readable.
</p>

<p>
	<u><strong>Battery Connector</strong></u>
</p>

<p>
	The tiny white battery connector on the C.H.I.P. is a <span style="background-color:#ffffff;color:#333333;font-size:15px;"><span> </span>JST-2.0 PH</span>.  You can buy them <a href="https://www.aliexpress.com/item/10Sets-Mini-Micro-JST-2-0-PH-Connector-Male-Female-2-3-4-5-6-7/32878135998.html?traffic_analysisId=recommend_2049_1_99722_iswiall&amp;scm=1007.12908.99722.0&amp;pvid=656ed2d0-0d79-4c61-bf1c-edab73e4896b&amp;tpp=1" rel="external nofollow">here</a> already terminated, rather cheaply, and without any postage charges.  Make sure you chose the 2 pin size.  If you are a member of our forums here, and have at least ten meaningful posts to your credit, I will post you two free ones if you simply PM me with your mail address.
</p>

<p>
	 
</p>

<p>
	<span style="color:#c0392b;"><u><strong>Footnote on 28th May 2020</strong></u></span>
</p>

<p>
	This slightly dated article isn't static, and will be added to in small ways from now on.  That's because I've secured a supply of C.H.I.P. modules directly from Chinese manufacturer - part of the run that Next Thing Co didn't pay them for.  I can't sell them at $9 (but Next Thing Co couldn't either as this broke them!) as I paid an arm and a leg for air freight; a local agent fee; plus European import duty, but they are still excellent value.  If you are interested in one or two them please Personal Message me through this portal as I don't sort my spam-filled mailbox that often.  I only have the modules themselves as I declined the offer of PocketChips and related modules.  I don't have the plastic "safety" covers even though the Chinese source promised them, but these were always a non-essential option anyway.
</p>
]]></description><guid isPermaLink="false">2</guid><pubDate>Tue, 03 Jul 2018 15:20:59 +0000</pubDate></item><item><title>Free Stripboard Now!</title><link>https://www.stripboard.com/articles.html/records/free-stripboard-now-r3/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2020_05/Free_Stripboard_from_stripboard_dot_com.jpg.71439dc3ec1389f18499d4727704e07b.jpg" /></p>

<p>
	For the first twenty posters of a project built on Stripboard only:  post details and photos of your project built on Stripboard in these forums and I will send you a <strong>small</strong> pack of Stripboards from my present collection at my sole expense.
</p>

<p>
	The simple conditions are:
</p>

<ul>
<li>
		The project must be non-trivial - (no LED plus a resistor!).
	</li>
	<li>
		The project must function in some meaningful way.
	</li>
	<li>
		At least 50% of the wiring must be on an actual piece of <strong>standard</strong> Stripboard.
	</li>
	<li>
		Your description must run to at least 100 words accompanied by at least two reasonable pictures.
	</li>
	<li>
		You must PM me through this board with the postal address to send your reward to. (I won't exchange e-mails).
	</li>
	<li>
		My decision on if your project qualifies for a reward is final.
	</li>
	<li>
		The ongoing shipping risk is yours once I deliver your reward to my local post office.  (no second postings).
	</li>
	<li>
		I will use the cheapest uninsured postal method, so you may have to be patient.
	</li>
	<li>
		Only the first twenty such projects qualify though I might show a little flexibility if there are edge cases here.
	</li>
	<li>
		You should show a little willingness to answer other people's questions about your project.
	</li>
</ul>
<p>
	Other benefits of joining in here as a member:
</p>

<ul>
<li>
		Private hobbyists can advertise their surplus components and other electronic junk for free.
	</li>
	<li>
		You'll never be bothered with any on-site advertising or spam emails.  (I couldn't give a xxxx if there's zero revenue!).
	</li>
	<li>
		You'll never be asked for sponsorship: my hobby is my hobby.
	</li>
	<li>
		Start (and fully moderate) your own forum, just so long as it's of general interest to electronic hobbyists. (PM me on this).
	</li>
</ul>
<p>
	My aim is to get this free and non-commercial forum off the ground, so barriers to freebies will increase as time goes on.  I've set about 100 GBP of <strong>my own money</strong> aside for this little promotion, so hopefully everyone will benefit in some way.  I will publicly acknowledge your contribution and advise the date your reward was posted right here on the forums.  Quite obviously your personal details won't be published or recorded anywhere on the site.  <strong>There is no commercial motivation whatsoever behind this offer: this site is purely a recreational hobby!</strong>  Get constructing!
</p>
]]></description><guid isPermaLink="false">3</guid><pubDate>Thu, 14 May 2020 13:48:47 +0000</pubDate></item><item><title>Vcad Stripboard Design Software Is Now Free!</title><link>https://www.stripboard.com/articles.html/records/vcad-stripboard-design-software-is-now-free-r4/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2020_05/1349478247_VeeCAD_running_under_win_onUbuntu.png.682a43e2806ad47eeb8bb59455426a25.png" /></p>

<p>
	A couple of Xmas's back my dear daughter bought me a full licence for Vcad as a present.  I used it to redesign a seven segment display stripboard, and then to layout a larger board simply as a trial.  The process was reasonably successful and I verified that Vcad wasn't money wasted.  The main problem here was the paucity of available component outlines - much of the work in designing a stripboard with Vcad was to flesh out the very bare symbols library.
</p>

<p>
	Recently I revisited Vcad on the Windows laptop and decided to port my purchase to "the big screen"; namely the recently built AMD Ryzen 5 based under-desk that delivers more computer power than I've ever dreamed of.  The problem was that in the interim I'd finally carried out the switch away from Windows that I'd been promising myself for decades.  I was resigned to keeping a low cost Lenovo laptop pretty much only to run Vcad.  In the last few days I've been adding more drives in the Ryzen 5's capacious box and it struck me that I should explore using it for stripboard design.  I'd had a fair bit of experience with virtualisation on Windows machines, but didn't fancy a Windows virtual machine on a Linux box even though there was now oodles of RAM and twelve fast CPU cores available. 
</p>

<p>
	Never having bothered with Wine I decided to see if it was still being actively developed and was pleasantly surprised when I arrived at the <a href="https://wiki.winehq.org/Main_Page" rel="external nofollow">Wine website</a>.  The install instructions were clear to follow and I had it running on Ubuntu 20.04 in no time.  I created a Windows sub-directory in my home directory and a child directory for <a href="https://notepad-plus-plus.org/" rel="external nofollow">notepad++</a>.  The performance of notepad++ was an eye-opener, so how about Vcad?  Had there been an upgrade, or had that Aussie guy simply lost interest, like most stripboard design software authors have over the years?  Once again things were much more promising than I'd imagined possible, though it took a short while to locate Mr Lascelles site - it had moved, and so had the name of his package!
</p>

<p>
	Yes, Vcad is now called <a href="https://veecad.com/index.html" rel="external nofollow">VeeCAD,</a> but the main takeaway here is that the nice <a href="https://veecad.com/contact.html" rel="external nofollow">Mr Lascelles</a> has opened up the source code and isn't now charging for the full version.  You can download it (and the manual) for free from his <a href="https://veecad.com/downloads.html" rel="external nofollow">download links</a>.  This guy is obviously a stayer in the game, so many have fallen by the wayside over the years.  By opening up the internals of VeeCAD there's scope for others to make incremental improvements.
</p>

<p>
	Like notepad++ the installation process on Ubuntu 20.04 under Wine was quick and flawless, but I will cover this in another article very soon.  I anticipate that VeeCAD will feature heavily on this site before too long, though I hope the odd few stripboard design software packages still standing will tell us all about their products too.  Please feel free to post your experiences with this (and other stripboard design software) in our forums, and share you hints and tips.
</p>
]]></description><guid isPermaLink="false">4</guid><pubDate>Wed, 27 May 2020 08:30:33 +0000</pubDate></item><item><title>Installing VeeCAD Under Linux Wine</title><link>https://www.stripboard.com/articles.html/records/installing-veecad-under-linux-wine-r5/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2020_05/Fifth_VeeCAD_setup_screen_under_Wine.png.de450a9e8b8b7c13a88690af8d8753a5.png" /></p>

<p>
	VeeCAD is FREE stripboard design software that nominally runs under Windows, but many in engineering and hobbyist community no longer use Windows.  If you aren't tied into the Windows ecosystem commercially - some would talk about M$ tentacles here - there are better and free alternatives amongst the ever expanding distributions of Linux.  So how to leverage all this free software into doing something really productive with stripboard?  For the home user the Ubuntu distribution of Linux, which is in turn based on the Debian distribution (that's how open source software works folks!), is the first port of call.  For that reason we are talking about Ubuntu and in particular the latest 64bit version 20.04 here.
</p>

<p>
	Assuming you already have a recent copy of Ubuntu installed proceed as follows:
</p>

<p>
	Go to the <a href="https://wiki.winehq.org/Download" rel="external nofollow">Wine downloads page</a> and follow their amazingly clear instructions.  Click on your operating system, then on the page for that operating system select the most recent stable version - we don't do bleeding edge here!  Follow the amazingly clear instructions and then type wine at a terminal window prompt.  If all went well you'll get the <strong>Usage: wine...</strong> help messages and the system will then exit back to the prompt.  The Wine install worked for me with Ubuntu 20 without any of the usual snags about dependencies and version incompatibilities.  They've quite obviously spent a very long while honing this.
</p>

<p>
	Now download VeeCAD from the <a href="https://veecad.com/downloads.html" rel="external nofollow">download page</a> - you'll likely want to download the manual as well.  If you download it using the archive manager then there's a direct way of extracting it.  If you don't already have a Windows sub-directory in your home directory then create one.  If you are well organised you'll create another sub-directory for VeeCAD and place the Setup file there.  Now name the .exe as an argument to Wine.
</p>

<p>
	<img alt="Running_VeeCAD_setup_under_Wine.png" class="ipsImage ipsImage_thumbnailed" data-fileid="20" data-ratio="39.12" data-unique="4ax9hdgsp" width="795" src="https://www.stripboard.com/uploads/monthly_2020_05/Running_VeeCAD_setup_under_Wine.png.d389424dc565884ceb34718e6370c12a.png"></p>

<p>
	The rest is super easy, but as VeeCAD is 32 bit Windows you really should install it to Program Files (x86).
</p>

<p>
	<img alt="Third_VeeCAD_setup_screen_under_Wine.png" class="ipsImage ipsImage_thumbnailed" data-fileid="22" data-ratio="107.12" data-unique="5txi27sza" width="351" src="https://www.stripboard.com/uploads/monthly_2020_05/Third_VeeCAD_setup_screen_under_Wine.png.938809f8a19555f8d110c2239a44ba7e.png"></p>

<p>
	.
</p>

<p>
	<img alt="Fourth_VeeCAD_setup_screen_under_Wine.png" class="ipsImage ipsImage_thumbnailed" data-fileid="19" data-ratio="79.96" data-unique="61qnjg1jr" width="499" src="https://www.stripboard.com/uploads/monthly_2020_05/Fourth_VeeCAD_setup_screen_under_Wine.png.bb641362087f634c84d43ddb60d4deee.png"></p>

<p>
	..
</p>

<p>
	<img alt="Fifth_VeeCAD_setup_screen_under_Wine.png" class="ipsImage ipsImage_thumbnailed" data-fileid="17" data-ratio="79.96" data-unique="0878ut8ci" width="499" src="https://www.stripboard.com/uploads/monthly_2020_05/Fifth_VeeCAD_setup_screen_under_Wine.png.8a6d0e1b7f51f6b3c6bb71a4ed4f3fce.png"></p>

<p>
	<span style="font-family:Arial,Helvetica,sans-serif;">Make sure you've checked the place a desktop icon box before you hit [Install].  When install completes then just hit the <em>run now</em> button and presto!</span>
</p>

<p>
	<img alt="VeeCAD_works.png" class="ipsImage ipsImage_thumbnailed" data-fileid="23" data-ratio="81.62" data-unique="ij77bsukt" width="702" src="https://www.stripboard.com/uploads/monthly_2020_05/VeeCAD_works.png.1b05a0976c3a82836eee579ace52ef09.png"></p>

<p>
	Wine stores its Windows file system in a hidden directory called .wine in your home directory, but you don't have to make these files visible to your favourite Linux file manager to manipulate them.  Simply type winefile (not winfile) at a terminal prompt and it will throw up its own Windows file-friendly file manager.  Hitting the C:\ button at the top will open a child window onto the Wine file system where you've installed to.  You can navigate to the VeeCAD.exe file and click on it to start VeeCAD.   You can also use winefile to navigate to <em>users -&gt; &lt;your_name&gt; -&gt; Start Menu</em> and click on VeeCAD.lnk to start VeeCAD.   It's probably a good idea to put a shortcut to winefile on your Ubuntu toolbar.  But shouldn't there be an easier way to start a program?  Well, of course there is: when you told Wine to place a Windows desktop icon it went to Linux and did the same thing, but adding in the tricks to start Wine running on the correct .exe file first.  Apart from the visual appearance of its window your installed Windows program acts very much like any Linux one.  You can right click on the new Linux VeeCAD icon and add it to favourites so that it shows up on your toolbar - nothing could be easier!
</p>

<p>
	If you ever feel a need to uninstall a Windows program then simply type <em>wine uninstaller</em> in a Linux terminal window and an (almost) genuine Windows installer dialogue will pop up.
</p>

<p>
	<u><strong>A Footnote</strong></u>
</p>

<p>
	I subsequently found out that you are supposed to run <em>winecfg </em>to set up the Wine environment for VeeCAD.  I found this out from the Help in a running copy of VeeCAD - doh!  There wasn't anything to change as the defaults were already as described, but you might want to insert a VeeCAD.exe entry in the <em>winecfg</em> Applications dialogue for completeness - see the Help screens after you run VeeCAD for the first time.  Maybe RTFM applies here! <img alt=";)" data-emoticon="true" height="20" src="https://www.stripboard.com/uploads/emoticons/wink.png" srcset="https://www.stripboard.com/uploads/emoticons/wink@2x.png 2x" title=";)" width="20"></p>

<p>
	____
</p>

<p>
	 
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">5</guid><pubDate>Wed, 27 May 2020 12:06:44 +0000</pubDate></item><item><title>Oranges Could Become My Favourite Fruit!</title><link>https://www.stripboard.com/articles.html/records/oranges-could-become-my-favourite-fruit-r8/</link><description><![CDATA[
<p><img src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_Plus_Box.jpg.f158c023146078ada409a42ed83dc21e.jpg" /></p>

<p>
	A few weeks back I was tempted by a Pi - not the one with all the little seeds you understand.  No, that one isn't open source engineering, and quite frankly isn't for us professional (retired) engineers. <img alt=";)" data-emoticon="true" data-loaded="true" data-ratio="100.00" height="20" src="https://www.stripboard.com/uploads/emoticons/wink.png" srcset="https://www.stripboard.com/uploads/emoticons/wink@2x.png 2x" title=";)" width="20"> Yes, you've guessed it: Orange Pi!  The sub-twenty-UK-pounds of the <a href="https://www.aliexpress.com/item/32448079125.html?spm=a2g0o.productlist.0.0.57fc335dvzAccQ&amp;algo_pvid=8c066a7b-26d3-4da2-ab21-d5ce9dc634c4&amp;algo_expid=8c066a7b-26d3-4da2-ab21-d5ce9dc634c4-3&amp;btsid=0ab6fab215913569080864514ee726&amp;ws_ab_test=searchweb0_0,searchweb201602_,searchweb201603_" rel="external nofollow">Orange Pi PC</a> proved just too much to resist.  A board with a quad core CPU, 1GB of RAM, WiFi &amp; Ethernet, HDMI video, IR receiver, Camera Port, 3xUSB, etc. at this price level is probably too good to be true.  Or is it?
</p>

<p>
	I decided that boards which depend on a microSD for program storage are an economy too far.  Whilst this bottleneck might be OK in an ultra low cost embedded application development work requires something better.  So it was pay the few pounds extra for the <a href="https://www.datalight.com/solutions/technologies/emmc/what-is-emmc" rel="external nofollow">eMMC</a> version and see what turned up.  As it turned out there wasn't the expected six weeks or more wait for Chinese components, as despite all the world turmoil Orange Pi central had their pretty box on my desk in inside a month.
</p>

<p>
	I don't generally rush off and try new gismos the same hour/day, but eyeballing the OP PC+ triggered childhood Christmas Morning Syndrome, and I just had to fire it up right away.  I'd omitted to order a power lead but the one 1.7/4.0mm for the Cubieboard 2 did the job fine.  Ditto HDMI converter, keyboard etc. for same.
</p>

<p style="text-align: center;">
	<img alt="Orange_Pi_PC_Plus_First_Powerup.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="30" data-ratio="75.00" data-unique="yzbdj4i27" width="640" src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_Plus_First_Powerup.jpg.cf0a9fa6a52b40c5830167b49eb7f7e1.jpg"></p>

<p>
	Power up time: oh no not Android 4.4 again, and all in CHINESE!  This was not a good start!  Drawing on all my painful experiences with cheap Chinese Android tablets that had - often mysteriously - factory reset, I navigated through the hieroglyphics and attained English language nirvana!
</p>

<p style="text-align: center;">
	<img alt="Chinese_Android.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="27" data-ratio="75.00" data-unique="5vct5frj5" width="320" src="https://www.stripboard.com/uploads/monthly_2020_06/Chinese_Android.jpg.7d70638113609a188b7da6966c368a2a.jpg">    <img alt="No_Android_Apps.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="33" data-ratio="75.00" data-unique="p2tck3eal" width="320" src="https://www.stripboard.com/uploads/monthly_2020_06/No_Android_Apps.jpg.12d69fdd399c44d4109a91f51afbd6d0.jpg"></p>

<p>
	Click on the massive Google Play icon... zilch!  Click on every one of the other giant icons... double zilch!  It had a dumb deaf and blind Android core installed so I'd need to sideload some apps.  But wait; enough of this nonsense; let's boot to a decent Linux distro from the microSD.  I'd never tried Armbian before but this seemed like a good time to start.
</p>

<p>
	The first attempt at booting Armbian from the microSD didn't go well: I'd naturally chosen the latest version (Focal) but missed a warning that Focal images had been broken.  Stepping back to Buster solved this problem, and that booted after a short delay - we were getting somewhere!  Set the passwords; do the usual updates...
</p>

<p>
	The next step was to transfer Armbian from the microSD to the on-board eMMC so that we could lose the slow card entirely.  This proved remarkably easy as there's a pre-written script called <em>nand-sata-install</em> to do exactly this.  Now we are flying as a boot is so much faster - yes, eMMC was certainly the right way to go here!  You can see the eMMC at the bottom centre (just above the dual row pin header) of the board in the first picture.  On the Plus version they've moved the second DRAM to the other side of the board (directly below the visible one near the centre of the board) to make room for it.  BTW if you do have the non-Plus version then don't make the mistake of going for a superfast A2 microSD card as there aren't any drivers for these in Armbian (yet) and it will likely run significantly slower than a much cheaper A1 specification card.
</p>

<p style="text-align: center;">
	<img alt="Transferring_Armbian_Rootfs_To_eMMC.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="32" data-ratio="75.00" data-unique="ul7ym4a4i" width="640" src="https://www.stripboard.com/uploads/monthly_2020_06/Transferring_Armbian_Rootfs_To_eMMC.jpg.21876126042135dd2c4e88204d3c82bd.jpg"></p>

<p>
	After my usual desktop tweaks I pulled the D language compiler from the repos: although I like Python, D takes a much better approach to higher level programming and also integrates almost seamlessly with C code for the low level bit twiddling.
</p>

<pre class="ipsCode">
sudo apt install gdc</pre>

<p>
	<span ipsnoautolink="true">How are we doing from a thermal stress point of view?  Well... so far the H3 isn't under much stress, but it can get a lot hotter!</span>
</p>

<p>
	<span ipsnoautolink="true"><img alt="H3_CPU_Idle_Temperature.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="28" data-ratio="133.33" width="240" src="https://www.stripboard.com/uploads/monthly_2020_06/H3_CPU_Idle_Temperature.jpg.d2aace0b8635b37ad9b6f58e5fad41e6.jpg"></span>
</p>

<p>
	<u><strong>Getting To The Pins</strong></u>
</p>

<p>
	Next step was to get at the peripherals, and it turns out that WiringPi has already done the spadework for the H3 here - no sense reinventing the wheel!  There's a WiringPi port for the Orange Pi PC to be found <a href="https://github.com/zhaolei/WiringOP" rel="external nofollow">here</a>.
</p>

<p>
	The H3 sports the following multi-functional input/out pins:
</p>

<pre class="ipsCode" id="ips_uid_6635_8">
Port A (PA): 22 input/output port
Port C (PC): 19 input/output port
Port D (PD): 18 input/output port
Port E (PE): 16 input/output port
Port F (PF):  7 input/output port
Port G (PG): 14 input/output port
Port L (PL): 12 input/output port</pre>

<p>
	The Orange Pi Plus PC can't possible provide user access to all these 108 pins within the limited board area, though unused peripherals can generally be reassigned to simple I/O:
</p>

<p style="text-align: center;">
	<br><img alt="Orange_Pi_PC_IO_Pinout.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="25" data-ratio="101.91" data-unique="se25n80ih" width="314" src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_IO_Pinout.jpg.5633734586673c105e2917276e751eac.jpg"></p>

<p style="text-align: center;">
	<a class="ipsAttachLink ipsAttachLink_image" data-fileext="jpg" data-fileid="26" href="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_Plus_IO_Test.jpg.859b83ab2f8476d559648542033b433c.jpg" rel=""><img alt="Orange_Pi_PC_Plus_IO_Test.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="26" data-ratio="75" width="640" src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_Plus_IO_Test.jpg.859b83ab2f8476d559648542033b433c.jpg"></a>
</p>

<p>
	With WiringPi installed we can now get at the pins at both BASH script and compiled C code level, the package also contains a wealth of examples.  I chose to test things out with a tiny script.  Just to throw some execution randomness and impose a parallel load on the H3 CPU I ran a HD movie in another window.  I can thus report that <em>Kill Bill</em> didn't kill the execution script! <img alt=";)" data-emoticon="true" height="20" src="https://www.stripboard.com/uploads/emoticons/wink.png" srcset="https://www.stripboard.com/uploads/emoticons/wink@2x.png 2x" title=";)" width="20"></p>

<p style="text-align: center;">
	<img alt="Orange_Pi_PC_Plus_IO_Screen.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="29" data-ratio="75.00" data-unique="7arqop43l" width="640" src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_PC_Plus_IO_Screen.jpg.0f52f2cbc97513f9e26944774f6e6db9.jpg"></p>

<pre class="ipsCode" id="ips_uid_5075_7">
PIN=1
while true; do
	gpio write $PIN 1
	sleep 0.05
	gpio write $PIN 0
	sleep 0.05
done</pre>

<p style="text-align: center;">
	<a class="ipsAttachLink ipsAttachLink_image" data-fileext="jpg" data-fileid="31" href="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_Script_Output_On_Pin_1.jpg.c71c047bca15d5213cfaad6cbfeabdec.jpg" rel=""><img alt="Orange_Pi_Script_Output_On_Pin_1.jpg" class="ipsImage ipsImage_thumbnailed" data-fileid="31" data-ratio="60" width="320" src="https://www.stripboard.com/uploads/monthly_2020_06/Orange_Pi_Script_Output_On_Pin_1.jpg.c71c047bca15d5213cfaad6cbfeabdec.jpg"></a>
</p>

<p>
	A fairly regular squarewave as expected, so the video playback isn't impacting the hardware timing, however the observant reader may note that the output frequency of the square wave on logical Pin 1 (physical Pin 12 - the red picohook) isn't the 10Hz it should be.  This is a - long by about 25% - error in the Armbian sleep routine and nothing directly to do with the hardware.  It would be interesting to trace the sleep routine implementation back to see exactly where/how this crept in.  Maybe more on this later.
</p>

<p>
	<u><strong>The Conclusion...</strong></u>
</p>

<p>
	So.. now we have a near perfect development platform for embedded applications.  The beauty here is that there are much smaller and even lower cost boards using the same basic hardware configuration but without unnecessary appendages like the HDMI interface to form the basis of really smart hardware.  Orange Pi Central has recognised this potential by promising <strong>L</strong>ong <strong>T</strong>erm <strong>S</strong>upport for these boards - hardware projects generally have a far longer useful lifetime than software.  Fabricators <strong>should</strong> therefore be able to depend on continuity of supply!  If all this potential is fulfilled then Oranges really could become my favourite fruit!
</p>

<p>
	<u><strong>Coming Up</strong></u>
</p>

<p>
	I've ordered a few of the Orange Pi PC Plus' smaller even cheaper cousins - the Orange Pi Zero, to embedd in future Stripboard projects, so stay tuned for a first evaluation.
</p>

<p>
	 
</p>

<p>
	_____________________________________
</p>

<p>
	<span style="font-family:Lucida Sans Unicode,Lucida Grande,sans-serif;"><strong>If you enjoyed this article and want to see a lot more then please create a site membership and post a comment - a little encouragement goes a long way!  With free membership you can also start new threads in our forums; ask questions; or publish your own constructional articles.  Stripboard.com is an advertising free, and non-commercial area of the Internet that has no aspiration toward world domination - or even making anyone any money!</strong></span>
</p>
]]></description><guid isPermaLink="false">8</guid><pubDate>Fri, 05 Jun 2020 11:40:10 +0000</pubDate></item></channel></rss>
