Skip to main content

I. Rosie

10 steps to get our robot Rosie moving around the house, using a Raspberry Pi.

We begin with basic setup of the Pi and Raspbian OS, before rapidly descending into the crazy world of the Python programming language.   And somewhere along the way, we make her wheels move using DC motors, help her to avoid collisions using ultrasonic distance sensors and make her both controllable and independent, remotely, using the power of the web.  All very useful stuff that will allow Rosie to do something more productive in the future.

1I’ve got Pi(3) brainSetup your Pi to run the Raspbian operating system
2Why-Fi-ght the Wi-Fi?Make your Pi remotely accessible, using Wi-Fi and SSH
3Hurrah-ndom inventions Create your first Python application
4Don't reinvent the eelPlay around with DC motors and wheels
5Achoo! Crash-choo! Episode IUse ultrasonic distance sensors to avoid obstacles
6Achoo! Crash-choo! Episode IIUse Python threads to run lots of tasks in parallel
7Web of PiesMake a web interface for your Pi, using Python Flask
8Hello supervision, goodbye supervisionUser Supervisor to run your application in the background
9Abject, disorientated programmingUse Python classes to make your code more sophisticated
10Rough around the hedgesCreate your own Python motor controller application

You'll get to dabble in:

  • Raspberry Pi
  • Raspbian operating system (basically Linux)
  • Hardware (DC motors, RGB LEDs and ultrasonic distance sensors)
  • Python programming language, with all the frilly object orientated bits
  • Flask web framework
  • Supervisor for starting / stopping your magnificent invention

Proof is in the pudding:

Comments

Popular posts from this blog

Break an egg! You've got to be in it to win it.

What the 'egg? It turns out: parenting is actually quite hard.

Not least because you suddenly find yourself responsible for one, two, or - in our household - three little miniature versions of us that need to be kept well away from the soldering iron. Or the 3D printer. Or that marauding hexapod that you forgot to power off before you left for work in a hurry.  But to compound matters further, you find yourself well and truly ambushed - financially.  You are at all times being pressurised by dark forces beyond your control to make an investment, however dubious the return.

That's right.  Clearly, you will be considered an abject failure as a responsible adult if you don't purchase the latest, trendy parenting gizmo. That feeding bottle sterilising kit clinically proven to kill all known bacteria through the science of nuclear fission. Or that titanium alloy buggy guaranteed not to crumple in the event of a sudden collision with falling Soviet-era space debris.  Evidently,…

Tea minus 30

We're fast approaching Christmas time.  And if robots were to make one simple observation about the human species during the Christmas festivities, it's that they watch a lot of TV.  A LOT.  Often, accompanied by an inappropriate amount of greenhouse gas-producing food.  Stuff you don't normally eat during the remainder of the year - for good reason.

And most so-called shows on TV are boring to robots like Rosie.  After all, why watch a minor subspecies of the human race - celebrities - stumble awkwardly around the dance floor, dressed like a faulty, sparking circuit board?  Such branch of entertainment doesn't require robots to engage any of their proud circuitry.  Their processors remain idle.  Memory under-utilised.

But if robots are to be part of people's homes (and blend in), they need to look at least a little interested in some of this irrational nonsense.  Nobody likes a party pooper.  A killjoy.  And this is where a certain subgenre of TV entertainment co…

Raspberry bye, hello

Let us make this very clear from the onset of this exotic excursion.

This is not a case of Raspberry Bye. Our relationship with our favourite single-board computer hasn't at all soured. In fact, we've become wholly inseparable. There's been many months of undeniable fun that's been had with the venerable computer strangely named after an edible fruit. To the extent that our relationship requires a healthy break. And quite frankly, our Pis require a well earned summer holiday to do whatever it is that robots and computers do during their time off. Crash. Burn. Refuel (with questionable toxins). Not at all unlike their human counterparts. And ultimately, it would be nice if they could return to a brand new, adorable pet waiting for them at home, a likeable little companion that they can just get along with.

Well, we visited a pet shop, but couldn't find anything as small and smart as this adorable pup we stumbled up on while searching the Internet for a new, miniat…