The Hardware Setup and Deciding on the OS

As I mentioned before I am a big fan of the B+ RaspberryPi as I feel it hits the sweet spot for price v functionality & capability especially as I use them on a wired network.  To the Pi I have added a PiDrive from Western Digital.  I spotted these a while back. They have been specifically designed for the Pi and they have a clever lead that splits a single power supply between the drive and the Pi.  Add in one of their 3A power supply units and we are ready to roll. The PiDrive has it’s own enclosure which the official Pi enclosure fits snugly on top of.  All in all it makes a very neat package.

Pi and PiDrive

A word of warning though.  The new batch of B+ have a new revision number (900032) that does not seem to have been added to what seems to be the official list of versions.  This can cause issues if using software that checks version number.

The next issue to solve is what base OS to run. A key requirement (obviously) is to have the OS on the PiDrive but sadly no one makes it really easy to do that. I did not want to move just the data part as it is the system logging etc that is a big culprit in high write cycles that eventually kill SD Cards.  On my old Pi that has an OS created by raspbian-ua-netinst, it has an old 256Mb micro SD card with just the boot files which is a great way to recycle these small cards (and one less thing to buy).

After some investigation, It came down to 3 main options:

  1. Use raspbian-na-netinst and build directly to the PiDrive.
  2. Use DietPi.
  3. Use Jessie Lite Raspbian image and move the OS to the PiDrive.

Option 1 was definitely tempting as it would build it directly onto the PiDrive, but it seemed the project was not being actively managed and I really did not want to get into the issues that might bring.  It had also previously taken quite a bit of time to get the OS setup as you even need to install sudo.  Personally I think it is a great way of setting up a RaspberryPi and the Foundation should really look to bring into a supported method. This time though, I decided to pass.

Option 2 was again tempting.  DietPi has lots of good things and features especially the optimised packages.  You can also set up things like a fixed IP address or your WiFi off a configuration file.  The RaspberryPi Foundation could learn a thing or two from that.  The 2 things against DietPi are that firstly, I am a bit of a control freak so I like to understand what the install has actually done.  DietPi makes that difficult.  The second is that I was concerned that moving it to an HDD could break some of the features. DietPi does allow data areas to be moved to an HDD, but I wanted a more robust solution.  However, I did decide to use DietPi on one of the OrangePi Zeros I had bought (more of that another time).

Option 3 would allow me to build off a well known base and should also allow updates and upgrades as they appear. It does come with some baggage that I would not use, but the setup is well understood.  In addition, one of the regular participants on the OpenEnergyMonitor (OEM) forums had written a script for moving everything over to an HDD, so I thought I’d give that a go.

Facebooktwitterby feather
Posted in RaspberryPi, Technical - General | Tagged , , , | Leave a comment

Introduction & Background

I have been interested in connecting things up in my house for a while now but have had limited time due to a Self Build project. That is now complete, so I am now able to spend more time on this hobby. I am a Software Engineer to trade as it were, but for the last 20 years or so I have had little opportunity in my working life to do that, bar a few VBA macros here and there. It is however, one of the things I do really enjoy and get immense satisfaction from a well crafted piece of code.

Although the languages themselves have changed (I mainly used ADA and Perl in the past), the principles remain. All I need to understand is the syntax and the data structures. Eventually I’d like to get a grip of exception handling as well.

I have also fiddled with Ubuntu for many years, so have a reasonably good knowledge of UNIX and I have dabbled in the art of email delivery and ran my own mail server (Mailtraq) for many years. When I built the house I flood wired the house with CAT6 and so have a wired home network with managed switches which has given me more than a passing understanding of networking. All in all, a jack of all trades.

When the RaspberryPi was first announced, it grabbed my imagination, so I put my pre-order in for one of the first batch and the little gem dropped though my door a few months later. That Pi has been running ever since mainly bringing in the data from my weather station. It has been running off an old 2.5in HDD that I stuck in an enclosure – I had suffered several SD card failures before moving to this setup. I think the base operating system was a dual image that was available for EmonCMS for a while from OpenEnergyMonitor (OEM) folk. It has been super reliable but I have not kept the OS up to date (I think it is still wheezy) so it really needs refreshing.

Sometime ago, I expanded my Pi estate with a B+. Again I set it up on an HDD but this time using a great little script I found called raspbian-ua-netinst. This downloads a minimal set of packages and can load the OS directly onto the HDD. Very clever and simple, but I am not convinced this project is being fully maintained so for my latest setup I have not used it. This device has been running EmonCMS for quite some time, collecting energy use data but again this has got out of date so needs refreshing.

For Christmas I treated myself to some new hardware;

  • Pi B+
  • WD Labs PiDrive, case and Power Supply
  • Couple of OrangePi Zeros

I like the B+. It has enough processing power for the jobs I have, 4 USB Ports and the price is 2/3 of a Pi3. It disappeared from the suppliers for a while but a new batch (and revision) has been produced and they seem in plentiful supply. The revision is causing some issues as it is not officially listed so even Dataplicity was not recognising it and any SW that checks the model generally has a hissy fit.

My plan is this; combine all my routine stuff onto this new device and PiDrive so freeing up at least one Pi for playing with. Put that Pi onto the UPS I have so it is a little more robust. Gradually develop and integrate in more IOT into this platform. I intend to document that journey here so come along for a ride!

Facebooktwitterby feather
Posted in General | Leave a comment

Getting Started

This is an ‘Under construction’ post, because this blog is. I’ve sort of run a blog, intermittently, for a number of years but I felt I really wanted to blog abut my tech experiences. I often struggle to find the information I’m after and when I do I want to make it easier to those that follow and document what I have done.

However, setting it up means I’m not blogging, so, I have this framework setup and I’ll develop it over time. For now, I intend it to be information rich and style poor 🙂

Facebooktwitterby feather
Posted in General | Leave a comment