British Celanese Motor Club – Treasure Hunt, March 1965

Here’s a short cine film of the British Celanese Motor Club’s treasure hunt, held on 21st March 1965.

This was one of an annual programme of motoring events that also included paced drives (rallies).

1965 scheduleAs the club was affiliated to the RAC and the events had to be notified to the local police, it all seemed to be taken pretty seriously. There was an intricate scoring system that made allowances for participants being unable to take part in some events due to work commitments.

Scoring system

This treasure hunt started from the Manor Road Service Station on the A5111 ring road in Derby. I think the garage has long since vanished, but looking at the stills it would seem to have been somewhere near where the Argosy is today.

Manor Road Service Station Manor Road A5111We next see the competitors in Kirk Langley turning right onto Flagshaw Lane. Except – the turning doesn’t look anything like that as far as I can work out. Unless I’m in the wrong place, of course … in which case I’m only going to score one point for a non-finish! Langley MillThe scenes get progressively snowier and more ‘interesting’ to drive, with the competitors finally reaching Tansley in the Peak District. Scotland Nurseries is still going strong today.

TansleyThe treasure hunt finishes at the Celanese Sports & Social Club on Borrowash road, having first turned right across the A52 from Derby to get there. That’s not been legally possible (thankfully) for many, many years!

Borrowash RoadA sprint finish into the social club with the completed check sheets to end.

Celanese Sports ClubContestantEndUnfortunately I can’t find a record of the winner of this particular event in my father’s BCMC files, which are in good order up until the end of 1964. I suspect that my recent arrival may have distracted him somewhat.

St. George’s Day Parade, April 1973, Derby

I’ve finally started to digitise some of the 8mm cine film that was shot by my father, brother and me during my childhood. The earliest reels are from 1964, with the latest being from 1979/80. Most of it is obviously just family stuff, but there are some more generally interesting scenes in amongst the holiday memories.

This excerpt is the 1973 St. George’s Day parade in Derby. From what I remember, these were fairly large events that started somewhere near the Council House and finished with a church service. Venues changed yearly – as I’m sure that as well as attending this one at St. Alkmund’s Church on Kedleston Road, a parade I took part in another year finished at the (now former) Queen’s Hall Methodist Mission on London Road.

If you look very closely you’ll see me marching with the 147th Derby, 3rd Ockbrook & Borrowash cub scouts …

The Mysterious Harper Gardens, Derby

Harper Gardens is a small public space sandwiched between the A6 Pride Parkway flyover and Siddals Road. Not much larger than many suburban gardens, it’s somewhere I usually pass without a second thought on my regular walks between the office and the city centre. But today I noticed the lovely flowering cherry tree in the north-eastern corner of the plot and stopped to photograph it.

Harper GardensIt’s a curious location for a public garden. A quick search of the internet reveals that at some point in the 1940s a paint factory burned down on this spot. Quite how the site ended up in the city council’s hands and became a garden seems less clear.

If anyone can fill in the details for me, the comment box awaits below!

The Beast of Bolsover

As the weather was better than expected today, an excursion to Bolsover resulted. The castle, managed by English Heritage, is fascinating. Sir William Cavendish’s riding school, dating from the 1600s, is possibly one of the reasons why Great Britain is so good at the Olympic sport of dressage horse dancing today. The little castle is beautifully preserved, and its wall paintings are unique survivors from the pre civil war era.

The Little Castle, BolsoverI can’t recommend a visit heartily enough, especially as since the last time I went sometime in the 1990s they’ve opened a visitor centre and cafe. The cherry scone was great and the coffee will definitely put hairs on your chest. Which is perhaps just as well. For at the bottom of the Venus fountain lurks a shocking sight. The Beast of Bolsover, no less. Please look away now if you’re of a nervous disposition.

The Beast of BolsoverDon’t say that I didn’t warn you!

Two to three hours is plenty of time to walk around the castle and grounds at a reasonable pace. An excellent video guide is provided as part of the £10.20 (adult) / £6.10 (child) entrance fee. Grown-up and family friendly commentaries are available.

B5023 Duffield to Cowers Lane

While Italy were busy losing at rugby, I decided to take Gnu out for a run around the Derbyshire countryside. The day was overcast, but warm enough for me to manage with just a fleece, scarf and the heating. This was the most enjoyable stretch of the route – three and a half minutes of B road twistyness between Duffield and Cowers Lane.

I didn’t even bother to stop for the bargain bacon …

Off balance

I’m feeling a little off balance at the moment. Last Wednesday I was busy telling the ARIS and webMethods user groups that “numbers don’t speak for themselves”. I was talking about the creating business cases, but I believe the statement to be true more generally. Numbers only make sense if you can relate them to a specific context. Furthermore, the numbers used must report or measure something meaningful, otherwise there’s no point in collecting the data. (You can find my detailed explanations rants on both of theses topic here and here if you’re interested).

Anyway, this was me in action at the event. It looks a little as if I’m conducting an auction and that the chandelier is about to bring it all to a messy end.

ARIS user group meeting 1st March 2017I’d had an active week up to that point, and although I spent Thursday in the office, that day was busy too. Here’s my steps chart for the first part of the week …

Mon-Thu 27/2 - 2/3 steps… 43,611 in all. I should have been feeling great! Nicely (but not stupidly) over the 10,000 steps a day average we’re supposed to achieve, according to the NHS and others. But having wittered on about context, you should already know that I’m about to tell you what happened next.

Full week 27/2 - 5/3An average of under 1,700 steps a day for Friday to Sunday. Monday to Thursday wiped me out, so I’ve spent most of the time asleep or moping around on the sofa. I haven’t been eating (much) either.

I feel that given my opening salvo I should now provide some context to these numbers. After all, you could just assume that I’ve been really lazy for the last three days. I wish that was true!

My best case hypothesis is that I picked up a bug (or mild food poisoning) early last week. As I was rather ‘poorly’ on Thursday evening that explanation could make sense. My worst case hypothesis is that the lymphoma has started to put on a bit of a sprint. I’ve been feeling increasingly fatigued for some weeks now, with even the most sanguine of the consultants that I’ve been seeing starting to suggest that chemo might be needed ‘soon’. Having spent 2.5 years on watch and wait, I’m not sure if ‘soon’ means weeks or months or a year or more … sometimes I don’t want to know the numbers at all.

Anyway, the next few days should help me figure out which of the hypotheses is right. I’m starting to get a bit of energy back today, so I’m hopeful that the bug explanation proves to be the right context for last week’s steps chart.

Raspberry Pi – camera box

This weekend, I was finally happy that I’d managed to implement a reasonable temperature and humidity project as well as a motion detecting camera for my Raspberry Pi. I decided to invest £19 in a ModMyPi camera box to consolidate them onto my Pi 3. It arrived today, and after an evening’s fun this is the result.

Pi Camera BoxLid open for testing. The DHT22 temperature and humidity sensor is at the front, with the motion sensor and camera mounted in the lid.

Pi Camera Box - installed in the garageIn situ.

I think it looks much better than my original attempt, even if the rather fiddly assembly took a couple of hours (with testing) rather than the 10 minutes claimed by the manufacturer! It also means that as my camera is now mounted the correct way up, I no longer need to rotate the image by 180 degrees in my code …

Update: After I’d installed this in the garage, I started to get a large number of false positives. A change back to my Pi2 made little difference (although the original version I’d put together but without the DHT22 had worked well). Finally, soldering a 10k resistor between the data and ground wires of the PIR detector seems to have resolved the issue of the data pin going high without it sensing movement.

Carsington eight: a Seven driving route

Here’s an enjoyable driving route around Mid Derbyshire. Especially on a cold but sunny Saturday in February in a Caterham 7. What other way is there to travel?

This slideshow requires JavaScript.

My route map is below, just in case anyone is interested in replicating the experience. I can recommend Kedleston Hall, Carsington Water’s Visitor Centre and Middleton Top as places to visit on this route if you’re not in a hurry …

Humidity and temperature monitoring with a Raspberry Pi

Continuing my quest to protect my Caterham 7 using my Raspberry Pi, I bought a bargain box of 37 assorted sensors for £21. One of the devices supplied was a DHT11, capable of monitoring temperature and humidity. A quick internet search led me to discover the very useful pigpio libraries and daemon. Wiring up the DHT11 to the Pi’s GPIO pins was simple – 3 wires, 1 to the 3V3 supply, 1 to a ground pin and the data pin of the device to GPIO pin 17. The author of the pigpio library also provides some example code for the sensor.

This was enough to demonstrate that I could get it to work, but the accuracy of the DHT11 was woeful. It’s advertised as having an accuracy of +/- 2 Celsius, but my experiments suggested that the one I had acquired for the princely sum of 57p had an accuracy of around +/- 5 Celsius. As I also wanted the sensor to work in an unheated garage, another limitation was that the DHT11 is unable to read values below freezing.

Encouraged, I decided to invest a further £6 in a plug compatible DHT22 sensor. This has an operating range of -40 Celsius to 125 Celsius, with an accuracy of +/- 0.5 degrees. Initial tests suggested that it was far more accurate than the DHT11. While the sensor produces a slightly different data stream to the DHT11, it was close enough for the example code to have been written in a way that it would still work.

As part of my experiments, I made a small modification to the example code (testDHT.c) to calculate the dew point from the temperature and relative humidity readings. I’ve also changed the way it outputs data, to write it to a file rather than the screen.

void cbf(DHTXXD_data_t r)
{
   FILE* fp;
   char buff[100];
   time_t now;
   float rdwpt,rtemp,rhum;
   extern float rdewpt_();
 
   if (r.status == 0) {
       now = time (0);
       strftime (buff, 100, "%Y%m%d-%H%M", localtime (&now));
       rtemp=r.temperature;
       rhum=r.humidity;
       rdwpt=rdewpt_(&rtemp,&rhum);
       fp=fopen("readings.txt", "a");
       fprintf(fp,"%s ",buff);
       fprintf(fp,"%.1f ", rtemp);
       fprintf(fp,"%.1f ", rhum);
       fprintf(fp,"%.1f", rdwpt);
       fprintf(fp,"\n");
       fclose(fp);
   }
}

While it would have been simple enough to write a dew point calculation in C, I decided to write it in FORTRAN instead. Hey, the more people who get to love FORTRAN the better. Here’s the function I wrote, which uses the Magnus formula. It’s declared in the C fragment above as an external function that returns a float. Parameters are passed to FORTRAN by address, rather than by value.

C
C     DEWPOINT CALCULATION FROM TEMPERATURE IN CELSIUS - RTEMP
C                               RELATIVE HUMIDITY - RHUM
C     USING THE MAGNUS FORMULA WITH CONSTANTS SUITABLE FOR A
C     TEMPERATURE RANGE OF -45 TO 60 CELSIUS
C
C     AUTHOR: TJH 28-01-2017
C
      REAL FUNCTION RDEWPT(RTEMP,RHUM)
      REAL RH
      RH = (LOG10(RHUM)-2)/0.4343+(17.62*RTEMP)/(243.12+RTEMP)
      RDEWPT = 243.12*RH/(17.62-RH)
      RETURN
      END

Compiling and linking the C and FORTRAN code using gfortran:

gfortran -Wall -pthread -o DHTXXD *.c *.f -lpigpiod_if2

produces an executable that can create a data file. This example was created using the command:

./DHTXXD -g17 -i600

which reads the data from GPIO pin 17 every 10 minutes.

20170128-2009 6.9 72.0 2.2
20170128-2019 6.9 71.7 2.1
20170128-2029 6.8 71.3 2.0
20170128-2039 6.8 71.4 2.0
20170128-2049 6.8 71.7 2.0
20170128-2059 6.8 71.4 2.0
20170128-2109 6.7 71.1 1.8

This provides data in a suitable format to use some relative simple gnuplot commands to create a charts. The first example plots the relative humidity readings over time, with the larger spikes in the relative humidity data correlating to the garage door being opened while it was raining.

set xdata time
set xlabel "Time"
set ylabel "Relative Humidity %"
set timefmt '%Y%m%d-%H%M'
set format x '%H%M'
plot 'readings.txt' using 1:3 title 'Relative Humidity' with linespoints

HumidityThe second example graphs the air temperature reading directly from the DHT22 with the dew point temperature calculated from the Magnus formula.

set xdata time
set xlabel "Time"
set ylabel "Temperature in degrees Celsius"
set timefmt '%Y%m%d-%H%M'
set format x '%H%M'
plot 'readings.txt' using 1:2 title 'Air Temperature' with linespoints, \
     'readings.txt' using 1:4 title 'Dew Point' with linespoints

Air temperature and dew pointI’m going to be keeping an eye on the data, to understand if it might be beneficial to seal the garage door more effectively than at present and invest in a dehumidifier.

1 2 3 84