Raspberry Pi PiTFT Weather Station

IMG_5218More tinkering with the wonderful Adafruit 2.8″ Touchscreen TFT module (PiTFT) for the Raspberry Pi.  This time a weather station drawing data from weather.com.

Luckily there’s a wonderful python module to extract data from three popular weather services; python-weather-api supports NOAA, Yahoo! Weather and weather.com.  This makes life so much easier. Continue reading

Displaying Raspberry Pi Truetype Fonts

IMG_5200

I’ve been enjoying tinkering about with AdaFruit’s PiTFT 2.8″ touchscreen for the Raspberry Pi.  Working out how to display text and graphics on the screen using the frame buffer with, Python, my programming language of choice.  It took little research to get text to display on the frame buffer.  It took a little more to work out how to identify and list installed Truetype fonts. So I thought I’d post the code I used to list the Truetype fonts installed on a Raspberry Pi in case it proves helpful to others. Continue reading

Review: AVR ISP Shield Kit for Arduino

AVR ISP Shiled

AVR ISP Shiled

I’ve had the pleasure of using ATtiny85 devices on previous projects like the ATtiny85 Christmas Bauble. I’ve had some ideas for some more projects but distractions have meant quite a long absence from the soldering iron; damn you Skyrim!

One of the things I’d planned to do was to make a shield for programming these devices rather than lashing them up each time on a breadboard. It’s a relatively easy circuit so the shield would not have been too difficult to produce. However, in the mean time I discovered that Phenoptix have produced the AVR ISP Shield Kit for Arduino. A kit of parts including a bespoke PCB for a price lower than I could have created a Veroboard version. Their version allows the programming of a range of similar devices, which my version wouldn’t have supported. I purchased and the kit was speedily delivered and well packaged.
Continue reading

Arduino Theremin

Wikipedia …

The theremin originally known as the ætherphone/etherphone, thereminophone or termenvox/thereminvox is an early electronic musical instrument controlled without discernible physical contact from the player.

It is named after the westernized-name of its Russian inventor, Léon Theremin, who patented the device in 1928. The controlling section usually consists of two metal antennas which sense the position of the player’s hands and control oscillators for frequency with one hand, and amplitude (volume) with the other, so it can be played without being touched. The electric signals from the theremin are amplified and sent to a loudspeaker.

Continue reading

Raspberry Pi Python LCD Class 0.0.1 Release

The earlier post “Clocks – Part 1: HD44780 16X2 LCD” showed connecting a HD44780 16×02 LCD module to the Raspberry Pi and displaying the date and time.

I’ve taken the code to drive the display and made a class so that it can be used in other projects.

In time, I may extend this for other display sizes (20×4), types (graphical) and interfaces (I2C, etc).

At the moment, the class handles the 4 bit HD44780 16×2 Character LCD.  It’s very simple and provides member functions to initialise, clear and write text to each of the 2 lines.

It can be downloaded here.

Unix Daemon Python Library 0.0.1 Released

Another building block I’ve found useful having wanted to have processes run after the terminal session has ceased is the Unix style Daemon process.  This library provides a Python wrapper class.

The code was shamelessly borrowed from Sander Marechal’s “A simple unix/linux daemon in Python”.  Unfortunately his page no longer exists. Continue reading

BMP085 I2C Temperature & Pressure Python Library 0.0.1 Released

This purpose of this library is to read temperature and barometric pressure from the BMP085 I2C sensor.

The datasheet can be found here.

I cannot take credit for the code.  I’ve just wrapped it in a class for my own use and shared it here.  It was shamelessly borrowed from these 2 sources:

The class can be downloaded from the downloads page.