I wanted to be able to interact with my twitter account(s) using Python scripts. I’d heard there was a Python library called tweepy that does a lot of the Applications Programming Interface (API) work for you. I’d also seen quite a few posts in the Python section of the Raspberry Pi Forums, where people had problems with it. Prize Draw I thought I’d take a look, spurred on by the idea that I’d like to be able to select a random twitter follower every once-in-a-while for a prize draw. So, last week, I spent a […more…]
On Saturday I decided to build my MotorPiTX, by Jason ‘boeeerb’ Barnett. It was a straightforward build. The only difficult part was the optional micro-USB power connector. Overall it took me about an hour to build. I took my time over it – knowing that I was going to photograph it and that you lot would be scrutinising every blemish. ;) About 20 minutes of that time was spent trying to ensure that I didn’t bridge two connections on the micro USB connector. I rarely use desoldering braid, but on this occasion I did. I […more…]
I had a very busy time at the Cambridge Raspberry Jam last Saturday. I was speaking and demonstrating the prototype RasPiO® baseboard that I designed. More on that in a bit. Because I was speaking, I decided not to do a show and tell as well. I was glad about that, as I tend to get stuck next to my show and tells, which stops me from going around and seeing what other people are doing. Since Mike “Recantha” Horne had asked me to judge the show and tells competition, I had to have a […more…]
Pimoroni released the PiGlow in August while I was away in Poland. It’s a small, purple board (that fits inside a PiBow) with 18 LEDs in 6 colour groups, arranged in a 3 armed spiral formation. It has an 8 bit, 18-way PWM controller that can be used to control the brightness of the LEDs (0 = OFF, 255 = Fully ON). (More on PWM here) Although I was abroad when it came out, there was plenty of banter about it on twitter. In a few short weeks, various people have written Python classes to […more…]
For a long time I’ve wanted to have a go with one of these 8×8 led arrays. I always thought they look like lots of fun. Searching around, I happened across Richard Hull’s Github repo, which provides a set of Python drivers and installation instructions for this 8×8 led array… …which can be had, if you’re willing to wait a week or two, for a little over £2 ($3) delivered from Banggood Assembly It comes in kit form and takes about 10 minutes to solder up, if you’re not new to soldering. There are no […more…]
A few people have been asking me about the RasPiCamcorder software. My original plan was to partner with a well known supplier and offer a “build your own RasPiCamcorder” kit, along with software and instructions, as a product. The software was always going to be open sourced though. But the market said NO! Many people have argued with the market and lost. I don’t intend to. There simply weren’t many takers for it. Cool though it is to be able to Dropbox your photos and videos, having neither sound nor screen seems to be enough […more…]
Having managed to get VLC streaming from Pi Camera to Nexus 7 Android tablet working, it was only a matter of time before I wanted to stream from the RasPiCamcorder. But when I tried it, I came across an annoying problem. RPi.GPIO needs to run as root (that’s why we always use sudo for our GPIO stuff) But VLC refuses to run as root. This means you can’t run them both from the same program. There’s all sorts of clever solutions people proposed (and I wasted a lot of time unsuccessfully trying them all out) […more…]
I wanted to be able to upload photos from my RasPiCamcorder straight to DropBox. So I did a little research and came across an absolute gem of a program called Dropbox-Uploader, by Andrea Fabrizi. A truly brilliant piece of work that gives you access to your DropBox account right from the command line. You do have to jump through a couple of hoops to get it set up (security mostly), but once you’ve done that, it’s a breeze. 1. DropBox account First of all you need a DropBox account. Hop on over to DropBox and […more…]
In this article, I’ll show you how to hook up and control a port expander chip with wiringpi2 for python. It’s really easy, and once set up (with about 3 lines of code) you can control your new ports just the same way as if they were on the Pi itself. This is, so far, my favourite new feature of WiringPi2 for Python – although there are some I have yet to play with. This is part 3 of my wiringpi2 for python series. If you haven’t read parts 1 & 2 yet, I recommend […more…]
This is part 2 in a series on WiringPi 2 for Python. The basics are covered in part 1 (click here). You should read that first if you haven’t already, as we build on it here in part 2. Today we’ll cover three things… 1. Raspberry Pi board revision checking with WiringPi2 for Python 2. Using the Raspberry Pi’s internal pull-ups and pull-downs with WiringPi2 for Python 3. Using hardware PWM with WiringPi2 for Python 1. Checking your Raspberry Pi board revision number in WiringPi2 It’s quite useful to be able to check what version […more…]