Tweeting Front Door

First of all, allow me to apologize. I set up my Tweeting front door at the end of 2011. Its only about 6 weeks away from 2013 now!

So, what is a Tweeting front door? Well, its a regular front door that sends a tweet every time it is opened.

Why would anyone want to know when a door has been opened? I have actually got 2 front doors, but the outer porch door isn’t locked. Because I am out of the house most of the time I have got no idea if it opened while I’m not there. Is someone stealing my mail? Has the big thing I ordered from eBay been delivered? What time did Danny come in to feed the cats while I’m on holiday?

It has also come in handy for looking back at what time something happened. Eg the time I went to do my shopping then realised I left my wallet at home I was able to tell by the time I left and the time I got back that I had wasted 17 minutes (not including working that out!). Or when some friends left after a night of drinking and saw suspicious behavior, I could look back and see it was 02:19 they left (I knew it was after midnight, but time happens at odd speeds after midnight!) .

How does it work then? Well, sensing the door opening and closing is done by a reed switch mounted to the frame and a magnet on the door, similar to a burglar alarm. This is connected to a Nanode, which continuously monitors the state of the switch. The Nanode is an Arduino clone with built in Ethernet so it can connect to the internet. Every 15 seconds the Nanode uploads the state of the switch (0 for closed, 1 for open) to Cosm.com. Cosm (formerly known as Pachube) is a free data-logging website for the IOT (Internet of Things). If the door is opened, however, it will upload the change straight away. One of the things which Cosm can do is send a tweet if certain conditions are met, such as a value changing from 0 to 1. If that happens then my protected house automation Twitter account (yes, I have more than 1) sends a tweet to me to let me know.  (I use a separate protected feed for this because I don’t want to advertise to everyone on Twitter when I leave the house)

 

Can you give me more detailed information about how it works? Sure, the sketch I’m running on the Nanode is available here, although it is just a slightly modified version of one I found by Wicked Devices (but with a lot of it rem’d out.  I should get around to tidying it up, but, hey, there’s a lot of things I should get around to!)

As for wiring, its just a case of wiring the door switch between pin 2 and ground, and giving the Nanode power and an ethernet connection.  I have also got a green and red LED for status.

First steps with a Raspberry Pi

I missed out on the chance to order a Raspberry Pi on launch day by a few minutes. No worries though, I could wait. After all, I didn’t know what I wanted one for anyway (although I knew I wanted one). A couple of months later, in April I was able to ‘register an interest’ in a Raspberry Pi. Then in June I was invited to place an order for one. Then on Friday October 5th it arrived! Good work RS! £30 and 6 months waiting well spent!

Although a month earlier I saw that www.coolcomponents.co.uk had them in, so for £25 and 2 days of waiting I actually got one a while ago :)

But on Friday I started to do something with one of them. I installed Raspbmc (the media center thing built originally for the Xbox). If I am honest, I was very disappointed. It was just far too simple! Download a small exe file to a PC, then run it with SD card in. Then put it in a Pi that’s connected to Ethernet and 20 mins later it all just works! Sure, there’s tweaking that can be done and add-ins that can be added in, but 40 mins after I decided to start, I was watching an episode of Firefly. (Most of that time was actually finding leads, power supply & SD card and unnecessarily downloading Debian)

Yesterday I decided to try the Debian image for some real Linuxing! I can’t say I know my way around Linux much at all but some things were vaguely familiar. After about an hour I had managed to install a couple of programs, mount a USB drive and copy files across and run a command line movie player so I could watch the next episode of Firefly (can you see a pattern here?)

And this evening I have set up SSH so I can execute commands from my tablet. First thing I did? Yup, fire up Firefly :)

Have you got your Raspberry Pi yet? If so, what have you done so far?

Stop Motion Beard

Ever wished you had the foresight to take a photo of your bead every day as it grew?

I did.  Until I did this!

 

Ride The Lobster Qualifying Ride 144 Unicycle Miles

This is not a new document, but is one I wrote in 2007 after qualifying for a 800km unicycle race in Nova Scotia.  After a hard drive crash in 2009 I thought this had been lost forever.  I have recently managed to recover a load of files from this drive, including my write up as a Word document.  I’ve decided to publish it here to share with you lovely internet people and hopefully reduce the likelihoods of loosing it again.  

 

Ride The Lobster Qualifying Ride

Nottingham To London Via Unicycle

September 10th & 11th 2007

  Continue Reading »

Rubiks Cube – a 30 year on-off love afair

It was over 30 years ago that I first learned to solve the Rubiks Cube. Then 15 years ago I learned to solve it all over again. And recently, I’ve learned that learning to solve it is still good fun!

Read on to find out how this little twisty puzzle has featured in my life…

Continue Reading »

Duct Tape Wallet

A few years ago, I walked passed a shop in London that sold a Duct Tape Wallet Kit. For about £15 it included a few lengths of duct tape pre-cut to length and some instructions. My interest was piqued but not enough to leave me with an empty wallet. Instead I invested in some Google time and a £4 roll of tape (which would have done around 20 wallets!) After about 4 years it was looking a bit battered and worn, and I had a few ideas to improve on my first one.

This time I made it with camera at the ready. Read on to learn more…

Continue Reading »

The Minutes Ringtone MP3

Like so many of you out there, I love listening to The Minutes podcast. Even the starting jingle gives me a smile because I know there is an hour of happiness about to arrive in my ears.

I’m sure you can imagine how delighted I was delighted to hear that the theme tune had been turned in to a ringtone. Yay \o/ However, the official download from here http://theminutespodcast.tumblr.com/post/15228052921/the-minutes-ringtone is in a .M4R format, which is fine for all the iPhone junkies out there, but not any good to most of the other 74% of mobile phone users.

So, if you like your ringtones in a good old MP3 format, I’ve converted it for you and you can download it here;
Minutes Theme MP3 Ringtone
On Android, long-click then save link, then play it in the standard music player app, menu > set as ringtone

Don’t forget, you can still listen to the latest The Minutes from here http://feeds.feedburner.com/theminutes

Enjoy!

Creme Egg Cup Cake

I like hacking. I like cakes. So why not combine the two? (I’ve decided to call it Cacking!)

If you have ever wanted to get Diabetes but wasn’t sure of the quickest ways to get it, or if a sugar coma is still on your bucket list then read on for a recipe that will make even Willie Wonka raise an eyebrow…


Continue Reading »

A World First – Rubiks Cube Meets Inverticycle

Rubiks Cubes have been around since the early 80’s, and Unicycles have been around since, well, the invention of the wheel as far as I can tell.  And in that time every possible new idea around either one has been done.  Until now that is!

Although there are a lot of people that can ride a unicycle, relatively few can ride an inverticycle (Probably around 20-30 people in the UK).  Solving the standard 3x3x3 Rubiks Cube isn’t that rare.  However, if you drew a Venn Diagram of people that could do both, it would be a very very slim slither of overlap.  If you add to it the people that have done both, and have video evidence for it, I believe that will give you an intersection with one person in it.  Me!

I will be getting in touch with Guinness shortly to see if there is any kind of category for this record

I’m back – And certified virus free… again!

Well it only seems like 6 weeks ago that I was posting about how this site was all nice and virus free.  Well, less than 2 weeks later, my hosting company, Dreamhosts announced that loads of their sites were infected.  Yup, that included mine!  Well, I’ve finally found the time to switch hosting company and hopefully I’ll stay clean this time.

I had planned to move to LCN as they have some pretty good packages at decent prices and they come highly recommended.  Sadly, though, they need the domain transferred to them so they can managed that in order to provide hosting.  Even after a discussion with a very nice guy in pre-sales they still have needed my domain transferring.

I then looked at www.tsohost.co.uk.  They were rated highly for security and WordPress hosting and within an hour my old site was up and running on their new servers!

The setup and transfer process was very straightforward, although I’ve had to reinstall all the WP plugins I liked on the old site.  I have lost a few embedded photos too, so you’ll have to bare with me with some of the posts here until I get a chance to find the original pics.

Fingers crossed I won’t be needing to do another ‘virus free again’ for a long long time now!

3 Stage ATtiny85 Watchdog Timer

A while ago I started logging temperatures to Pachube via a Nanode.  For the most part this works fine, but sometimes something breaks and I might lose a few hours or days worth of data.  It might be the Nanode that’s gone down, or Pachube, or (most likely) my Internet connection.  So I decided to build a simple 3 stage external Watchdog Timer that would monitor the status of the feed and start taking steps to rectify it.

Continue Reading »

Building an ATtiny ISP from a Xino

If you have seen my previous blog entry, you’ll know I have been playing around with an ATtiny85 for an upcoming project (more on that later…).  Using an Arduino (or, in my case a Xino from Ciseco) is easy enough, but when a sketch needs lots of tweaking to fine tune it, it means the ATtiny spends most of its time going in and out of the breadboard.  So I decided to build a dedicated ATtiny programmer

Continue Reading »

ATtiny Micro Programming With Arduino IDE

One of the most appealing things about the Arduino and ATmega328 is their size and simplicity.  After working with desktop and server computers for years I just loved how a small little chip could be programmed easily to achieve things that I cannot get a full blown computer to do.  I have never been a computer programmer though, but I know they don’t interface with the ‘real’ world too easily.

If a 28 pin micro controller is good, wouldn’t an 8 pin micro be even better?  Well, I started to research the ATtiny85 and discovered that it is almost as good as its big brother in some situations.  But best of all, it can be programmed from the familiar Arduino IDE

 

Continue Reading »

I’m back – and certified virus free!

Those of you that read my blog regularly, either at the main sowen.com site or through feeds at planet.nottinghack.org.uk, may have noticed I’ve been very quiet for the last couple of months.  Some of you have even noticed that my site had been infected with nasty gremlins.  Well, here’s what happened;

Some nice little Russian software vendors wanted a way to reach a larger audience, and found a loophole in my websites security that allowed some visitors to my site to be redirected to their site.  As it happens, their site either doesn’t exist, or is blacklisted by all the ISPs I’ve tested with, but that’s not the point.  The point is that when I went direct to my site, it was fine.  Everything looked as it should, and worked normally.  Visitors coming in from Google, or other search engines, however, were sent off to Russia.  Google realised what was going on, and I found that sowen.com was on their blacklist!

I spent time cleaning the site, running checks, installing updates, resubmitting it to Google, and generally pulling my hair out.  Despite my attempts at fixing things, I just couldn’t get Google to recognise it as clean.  So, all that time I didn’t want to add any more posts to the blog because that just causes embarrassment when I tell people I’ve got a new update.

Eventually I had to concede that I wasn’t able to fix things myself.  So I turned to the clever bods over at Nottingham Hackspace and asked for help.  I owe big thanks to all those that offered help, but most of all to Marcus.  He found the .htaccess that had a conditional redirect in it that was causing all the grief.

I’m proud to say that I’ve been virus free for over 3 days now, and Google has removed me from their blacklist.  Security has been improved on too so I shouldn’t be in this position again.  I’m now ready to start turning all the mental blogging I’ve done in the last two months in to real blogging!

Thanks again to those that pointed out the problem and the good guys at Nottingham Hackspace.  I’m sorry if any of you have been worried that you could have been infected (I’m assured that you couldn’t), and I’m sorry for the lack of updates recently.

Arduino Control Room

I’ve been working on a few Arduino projects recently that will hopefully result in varying levels of home automation.  The effect so far has  been to stick a box here, plug this in there, and dangle a wire from over there, with a general haphazard (with emphasis on the ‘hazard’ bit in some places!) outcome.

If this is to work with any degree of success, it needs some more permanent infrastructure.  It needs power.  It needs internet connectivity.  It needs to be centralised.  It needs easy access to things I want to monitor and/or control.  It needs to be tidy and out of the way, but easily accessible.  There’s a shelf in my cloak room that meets most of those criteria, so this weekend I started getting it prepared;

Continue Reading »

Modern Twist on Analog Dials

These days displays are all digital readouts or multifunction LCD screens that give you indications of pretty much everything that’s going on.  What seems to be lacking though is a good old fashioned analog dial with a needle pointing at a number.  Of course, a dial is normally limited to a single use, but I wanted to see if I could make something that’s the best of both worlds.

Continue Reading »

Arduino Powered Ikea Xmas Lights

As regular followers of the blog will know, I love Arduinos and all the stuff they can do. Those that know me will also know that I don’t love Christmas, particularly the seasonal decoration stuff. So this project was a nice mix of the two!

I decided to make myself some Arduino powered Xmas lights that vary their ‘chase’ speed based upon how close people are to my house.

Intrigued? Read on…

Continue Reading »

Xino Basic Build

This week I… Built a Xino Basic for Atmel as sold on http://shop.ciseco.co.uk

This is sold as a kit that anyone with even the most basic of soldering skills can put together. This is just about the cheapest way to get an Arduino compatible board that fits the standard Arduino shields. It also boasts a nice little prototyping area at the top which will mean that a lot of smaller projects can be completed without the need for additional shields. (See my Xino Dice post for an example of how the prototyping area can be used)The main kit comprises of the PCB, processor socket, connector headers and some resistors, capacitors and an LED

Continue Reading »

An aDventure in to aProtocol (or LLAP)

I’ve been messing about with Arduino derived micro controllers, and have been looking for a way to get them to send simple messages to and from each other. Something simpler than TCP/IP (which requires special hardware and relatively large libraries to run it), but more generic and flexible than just connecting an output pin on one device to the input pin on another.

aProtocol (or LLAP as it’s also known) as defined on OpenKontrol seems to fill that gap just nicely. So, in 16 lines of code, I got a simple acknowledgement working;

String msg;
String reply;
void setup() {
Serial.begin(9600);
Serial.print("aDDSTARTED--");
}
void loop(){
if (Serial.available() >= 12){
if (Serial.read() == 'a') {
if (Serial.read() == 'D' && Serial.read() == 'D'){
msg = "";
for (byte i=0; i<9; i++) msg += Serial.read();
if (msg.compareTo("HELLO----")) reply = "aDDHELLO----";
// else if ...
Serial.print(reply);
} } } }

Continue Reading »

Xino Dice

A couple of days ago I got a Xino board like this one. Not is this about the cheapest way to get an Ardunio compatible microprocessor, but it has the benefit of a nice little prototype area on board too. So, although it fits standard Arduino shields, many simple projects can be completed on just the one board.

I wanted to do something simple and nice with it, and with components and hardware I had to hand. I realised the prototype area would be great for mounting LEDs, and so the idea of a digital dice was born. I gathered a few bits and bobs and got the soldering iron out.

Continue Reading »