Try as I might, I couldn’t get it to work. Of the 3 packages that needed to be installed, 1 of them seemed to always throw up error messages when trying to install them. I even met Andrew at BETT 2015 and mentioned this to him, but he said there were no easy answers. It would easiest for someone who knows what they are doing to sit and work through it with me 😦
Right, school open evening is coming up, so I thought I’d have another bash. Installed all the packages seemingly successfully, the relay on the PiFace turned on when it should and the motor in the chicken moved when it should using the test programme. Hmm, just one problem though, the Pi would not read the hashtags from Twitter and then speak them, using espeak. Boo hoo.
I thought I ought to use some different packages, so had a look at Twython. Well, what a difference. It worked first time. I just need to work out how to upgrade from controlling an LED to activating a motor in my twittering toy.
Just to prove it works, here are the tweets with #happy in them.
In my hunt for an orange-orange-black resistor, I was looking for some resistors when I cam across these from an old project. Great, lets canabalise it 🙂
I was so keen to get it working, I didn’t even take my Pi B off the robot is was mounted on.
More details and the code follows tomorrow.