Skip to main content

II. Rosie Patrol



10 steps to convert our Rosie into Rosie Patrol - the greatest superhero of them all.  With a logo.

We continue to use the Raspberry Pi and Raspbian OS, and write even more code using the Python programming language.  We'll introduce lots more interaction with the outside world, and hacking of real-life objects, using servo motors, relays, dot LED matrix displays and GPS receivers.  And to help us do all of this, we'll play around with serial transmission of data (SPI), pulse width modulation (PWM) of signals, and venture into the world of application programming interfaces (APIs) so that Rosie Patrol can rely on the help of other computers that are much more knowledgable than her.

And... oh yes... we'll finally get to play with a 3D printer.  What could possibly go wrong?

1Lights in shining armour Use a relay to cycle through the lights on a head torch
2I'm just angling around Play around with servo motors to make stuff move
3Eye would like to have some I'sMake eyes using dot LED matrix displays, and control them using SPI
4Eh, P.I?Create and work with APIs to remotely make stuff happen
5Lights, camera, satisfactionTake photos using the Pi and a camera
6Beam me up, Rosie!Use a GPS receiver to track you exact location on Earth
7a, b, see, d Pick out letters from photos using Google Cloud Vision API
8Code: readUse Google Text-to-Speech to read books out aloud
9Farcical fartificial intelligenceForm random opinions about surrounding objects using Google Cloud Vision API
10Facial deconstructionUse a 3D printer to produce robot parts

You'll get to tackle:

  • Raspberry Pi
  • Raspbian operating system (basically Linux)
  • More hardware (relays, dot LED matrix displays, camera, GPS receiver...)
  • Python programming language, including use of APIs
  • Optical character recognition, for reading letters from pictures
  • Different types of electronic signals, like Serial Peripheral Interface (SPI), and Pulse Width Modulation (PWM)...
  • And finally get to play around with 3D printers

Show me the proof!


Comments

Popular posts from this blog

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…

Beam me up, Rosie!

How do you get from A to B?

You can't, as As and Bs are just letters in the alphabet. But if A is your house, and B is a meerkat village at your favourite safari park, you'd probably use a device equipped with GPS.  Not to be confused with UPS, who will deliver you your chosen meerkat through the post. And why on Earth would Rosie Patrol need one? Precisely, it's because she is on Earth that she needs one. Because our planet is rather big. Big enough to get lost in. And we don't want to lose our friendly plastic boxes on wheels. And maybe, eventually when she's clever enough, she'll go and defeat baddies on her own. And return home afterwards for a well deserved Earl Grey tea.

Besides, why wouldn't we want to add another three letter acronym to Rosie Patrol's repertoire?
All superheroes need:One Raspberry Pi 3, running Raspbian OSComputer from which you are connecting to the Raspberry Pi Probably the most important bit: a GPS receiver thingmy. …

Code: read

Humans are said to have 5 senses in total.  Common, clearly isn't one of them.

But - jokes aside - computers all around us are growing ever more intelligent (so we hear).  They can play chess.  Drive cars.  Some might even do these things at the same time.  Without crashing (quite literally).

Likewise, we've been making steady progress equipping Rosie Patrol with some useful skills.  Skills needed to bring much needed law and order to the world.  She can move.  She can see.  She can sense.  And in our last episode, she began to read.  With a little helping hand from some (considerably) bigger computers at the mothership that is Google.

But can she really read?  You know.  Read out aloud?

True to our style, there is only one way to find out.  It's time to invoke Code: Red Read.  And take the power of reading to the next level (or page).
All superheroes need:One Raspberry Pi 3, running Raspbian OS.  Connected to the Internet. Computer from which you are connecting to the R…