Goblin Teasmade Upcycle: Part 2

After the first stages were completed, that is, designing the new wiring situation and wiring the internals. The contraption now looks something like this

The wiring pattern was explained in the last post. So the things you see beyond the mentioned pin patterns are the wires for the i2c devices (ghetto pixel, and DS1307 RTC). The RTC is used to keep the time internally, there are some interesting points to consider about the clock face itself and how it will maintain time. More on this later…

Stage 5 – Building a Web UI.

The code for the Web UI can be found here on github. Obviously when you’re serving files from an Arduino via the SD card you want to keep the files as small as possible. After running ImageOptim and minifying the javascript and css It probably all comes in under 150kb. Which isn’t much but is still enough to make the poor Arduino struggle… The HTML code should be runnable in any browser and there’s a neat little clock UI that should make you feel good to watch.

Obviously, you don’t have a teasmade on your network, so unfortunately you won’t be getting a nice cup of tea out of it. Sorry.

Things to note on the Web UI are

  • Moving the cursor over the clock shows the kettle and teapot and their states behind it.
  • Pressing the right hand button makes tea… Well, I’ll mark that as WORKSFORME heh.
  • Pressing the left hand button turns on the light.
  • The freakin’ clock hands animate!!

Continue reading →

Goblin Teasmade Upcycle: Part 1, The Teardown

Here's what the smart home used to look like - Goblin TeasmadeDo you remember the Goblin Teasmade? The device was a mechanical and electrical marvel, however very likely responsible for many a house fire, and probably entirely unsafe by todays standards. The teasmade was the epitome of the must have device for the middle class home of the 1960s, it even featured in the Queen music video for “I Want to Break Free“.

As I’m not shy of a challenge I decided to upcycle a 1963 model into a new fangled, Internet of Things device which can make tea over the web.
Continue reading →

Python DS1307 library for Raspberry Pi

jBli3I just spotted an article over on SwitchDoc Labs blog for accessing the HotPi RTC using python which is pretty cool. Please note that the DS1307 on the HotPi is wired directly into the i2c port and is powered with 3.3V so the application notes regarding the pull up resistors do not apply, you should be able to just use the software immediately with your HotPi.

Here’s the example code they have on their website.

import time
import datetime
import SDL_DS1307

ds1307 = SDL_DS1307.SDL_DS1307(1, 0x68)

# Main Loop - sleeps 10 seconds, then reads and prints values of all clocks

while True:

print ""
print "Raspberry Pi=\t" + time.strftime("%Y-%m-%d %H:%M:%S")

print "DS1307=\t\t%s" % ds1307.read_datetime()


It makes me consider importing this into the HotPi-daemon in some way 🙂

Their github page is here https://github.com/switchdoclabs/RTC_SDL_DS1307

Grab the code and see what you can do!