Feb 032016
 
Using MCP3008 to measure temperature with GPIO Zero and RasPiO Pro Hat

In the previous article I showed you the GPIO Zero Experimenter’s Kit I put together to go with the RasPiO® Pro Hat. Today I’m going to give a quick overview of how to use the MCP3008 analogue to digital converter to read the TMP-36 temperature sensor. This gives us a temperature reading (in °C) that we can use to make “decisions” in our Python program. In our case, we’re going to switch on a red LED when the temperature is 24 °C or greater. But there are all sorts of other things you could do, […more…]

Jan 282016
 
GPIO Zero Experimenter's Kit and RasPiO Pro Hat

On Tuesday I had a funny thing happen. I was testing an analogue to digital converter (ADC) chip – the MCP3008 – to see how well it worked on the RasPiO® Pro Hat. I had it all wired up, and powered up the Pi, typed a few lines of GPIO Zero code, and… It worked, but not quite how I thought it should. Instead of giving a value of 1.0 for 3V3 and 0 for 0V it was giving 0.67 for 3V3. I left it running and went for lunch. During lunch the ‘lights went […more…]

Dec 022015
 
Ethernet On Pi Zero - How To Put An Ethernet Port On Your Pi

The Pi Zero attracted a huge amount of attention, which is great for the educational mission of the Raspberry Pi Foundation. Whenever a new product is released, people air their opinions in the forums on what they would have liked it to have. One of the most common “I wish it had”s was an ethernet port. There are reasons why ethernet was not included. The two most obvious ones are cost and board size (it would have almost doubled the size of the Zero) So What’s To Be Done If You Need Ethernet? Well the […more…]

Nov 162015
 
How to drive a 7 segment display directly on Raspberry Pi in Python

Last week I bought some 4-digit, 7-segment displays to experiment with. Strangely enough it was something I’d never tried before, so I was interested to see how they work. I googled around looking to see if someone else had done this before. It seems there are several different sorts of 7-segment displays, so you have to find a good match for the one you’ve bought. You can get them in various guises including: i2c backpack; 12 pins; 16 pins; resistors built-in; common anode; common cathode etc. The ones I bought are 12 pin, bare, no […more…]

Oct 292015
 
RasPiO Duino Videos Complete

Last Thursday I decided I needed to do the “Analog Inputs Video” for RasPiO® Duino. All the other basic functionality was well covered in the previous assembly/setup/tutorial videos. There’s also the 47 page user guide (FREE Download – good intro to Arduino programming) and a GitHub repository with the example sketches in. But I wanted to complete the basic set of videos, so at midday I started planning. I filmed in the afternoon and cut the video in the evening. At about 2230 I was done, so I started uploading it to YouTube (~2.4 Gigabytes […more…]

Oct 222015
 
RasPiO GPIO Ruler goes on general sale

You may remember I ran a KickStarter campaign in August for the RasPiO® GPIO Ruler. The KickStarter rewards were all sent out in the first week of October. (We finished shipping 3 weeks early.) So now it’s time to launch the product officially and make it available to all on general sale. If you missed out on the KickStarter, now you can buy one. In case you haven’t seen it before, this is what it looks like… What Is The RasPiO® GPIO Ruler? It’s a coding crib-sheet for RPi.GPIO, a port ID guide, a multi-scale […more…]

Jul 142015
 
RasPiO GPIO Ruler

For some time now I’ve been using the wonderful RPi.GPIO Python library by Ben Croston. It’s great for using the General Purpose Input Output (GPIO) ports on the Raspberry Pi to control things and read inputs. I’ve written at least 14 tutorials on it (listed here) over the last couple of years. But I still find myself needing to look up the exact commands to use. I’ve made a crib-sheet which is really useful, but pieces of paper get lost. What I really want is the most used commands in a portable, accessible form that […more…]

Sep 072014
 
VGA for Pi Debuts at CamJam, alongside HDMIPi production model No. 1

I went to the Cambridge Jam yesterday and displayed HDMIPi production model #1, met lots of people, including Eben, Liz, and a multitude of Pi enthusiasts and bloggers (quite normal for a #CamJam). There was also a CNBC news crew there to film some Pi action. They shot a brief clip of me doing something like this… Matt Hawkins @RPiSpy kindly took this one for me using my camera. Good job he’s not a monkey, or we might have a copyright dispute. It was really nice to spend some time chatting to Matt. (Thanks for […more…]

Sep 012014
 
RPi.GPIO - port function checker

A few weeks ago I blogged about RPi.GPIO updates for the model B and updated my RPi.GPIO documentation and quick reference sheets. But there was one feature I held back on because I needed a bit more time to mess about with it. (And then got busy with other things.) So What Was It? gpio_function() Another RPi.GPIO feature that sneaked in while I wasn’t looking is gpio_function() This is a feature that’s been inserted in RPi.GPIO to enable you to query the setup status of a port to see how it’s configured. import RPi.GPIO as […more…]

Aug 132014
 
New Port ID Board for the Raspberry Pi B+ - RasPiO Portsplus 2

Today I’m launching the RasPiO Portsplus 2. It’s a simple port ID board for the Raspberry Pi model B+. It’s available over at http://rasp.io/portsplus2 but full information below… RasPiO® Portsplus 2 The RasPiO® Portsplus 2 board is designed for the new Raspberry Pi B+. It labels the ports clearly for you so that you don’t need to count pins. This will help you avoid wiring errors and damage… You can slip it over the B+ GPIO header if you want, or hold it next to the header (many people tell me they do this – and this […more…]