Tag Archives: Robots

Making Raspberry Pi Robots

At the core of this post is a review of a new book, Learn Robotics with Raspberry Pi: Build and Code Your Own Moving, Sensing, Thinking Robots. I recommend it as a great above-basic level introduction to building a standard robot, learning a bit about the Linux operating system, learning to program in Python, and learning some basic electronics. However, I want to frame this review in a bit more context which I think will chase some readers away from this book while at the same time making others drool. But don’t drool on the electronics. Continue reading Making Raspberry Pi Robots

STEM Holiday Gifts for Kids

Tis the season to give robots and slime.

The two big news items for STEM holiday shopping this year are a) Robots have leveled off in complexity and price and b) slime has come of age. Continue reading STEM Holiday Gifts for Kids

Extending The LEGO Boost Robot Kit With A Book

The LEGO Boost Creative Toolbox is a humanoid robot that is also a guitar, a dogbot, and an industrial fabrication machine. Which of these things it is depends on which set of instructions you follow. A scratch-like programming language lets you control the boost from a phone or tablet, via blue tooth. It is not cheap, but it is an amazing and excellent toy.

It does take absolutely forever to build any of these projects, but there are stages along the way where you can stop and play with what you’ve got so far. Continue reading Extending The LEGO Boost Robot Kit With A Book

Learn Scratch Programming (For Kids And Adults)

Scratch Programming Playground: Learn to Program by Making Cool Games is a brand new offering from No Starch Press.

Never mind all the other programming books for kids, this is the best so far.

It helps that the Scratch Programming environment is so easy to use and allows such creative development, and it also helps that Scratch is likely to be a programming environment for basic robotics in the future. But the book itself is excellent, and works at several levels. A young kid working with an adult, a medium level kid working on their own, or an adult playing on the computer after the kids have gone to bed.

Scratch is in the Logo family of object oriented programming. Indeed, Scratch itself, as a language, is a very short distance from the original object oriented programming, much closer to the source than many professional object oriented language.

It works like this. See the graphic to the right. This is code that controls a “sprite” which in this case is a picture of a ball.

The light brown C-shaped things are control constructs. An outer one called “forever” contains code that will be run from the time the program is started until it is stopped externally. Inside that is an “if” loop that checks to see if the object “paddle” (specified in the blue object) touches the sprite (ball). If that event happens, then the code inside the “if” thingie is executed. In this case, the variable “score” goes up by one, a funny little blerp sound is made, and the ball turns in the opposite direction.

Meanwhile, the paddle has a wadge of code that goes with it as well, which responds to key presses or mouse movements, so that the paddle can be used as part of the bouncing the ball game. And so on.

In the code block on the left, contact between a pirate (a sprite) and a leaf causes the leaf to disappear and the pirate to get a score for making the leaf disappear.

You can imagine the possibilities.

So, imagine the following game. A complex maze is on the screen. The player uses arrow keys, etc., to move a tiny cat around in the maze, working the cat from the beginning to the end. At the end, there is a hole that the cat goes through, and now the cat is in another maze. And so on for several mazes.

Are there objects in the maze the cat must avoid? Or obtain? Will you time how long it takes to get through each level? Will you keep a high score? Will you have two cats, with two people controlling them, each moving in opposite directions through the maze?

The code examples I give above are not from Scratch Programming Playground, but the maze example is. It is one of several projects that the book works you though, as you learn all the various programming concepts in Scratch 2.0. The programs you learn to code produce complicated results and are really spiffy, but the programming itself is easy and the code is not extensive, because Scratch 2.0 is so powerful yet easy to use.

Each example, such as the maze, is fully developed, and then, new versions (like having the second player ability, etc.) added, and by the time you are done with that example, if not sooner, you are already adding things of your own design, from your own imagination.

Scratch 2.0 can be run as a stand along program in windows and on a Mac, but works better on the web, in a browser, on all platforms. Working in that environment, on the browser, has the important advantage of immediate access to a large amount of work done by others, that you can freely borrow from. And, of course, you can show off your own work.

Scratch Programming Playground tells you how to obtain or set up an account on Scratch at MIT, holding your hand effectively but respectfuly through the entire process. The book is also associated with, as per usual for a No Starch book, a web site with the code and other items used in the book. However, I recommend actually hand building most of this code on your own, so you actually learn what you are doing.

It is possible to figure out how to make a hand held game controller work with Scratch programs, but that will depend on the controller you have and the platform. A USB controller and a bit of software from the web that lets you set up the buttons should work.

I would not be surprised if future Internet of Things programming, robotic programming, and other coding you might want to get involved in either uses Scratch or follows this model. The mBot robots can be controlled with a version of Scratch, which produces Arduino code for that robot, and there is now a compiler that allows the general use of scratch for Arduino. Arduino is a basic prototyping machine that can run things, as in “Internet of Things” and that is similar to controllers in general, like the ones in your computer, VCR, thermostat, DVD, car, Mars Rover, etc. (Wait, did I just say “VCR” … whatever.)

A bit of the book giving instruction on a code block to control a tennis ball sprite.[/caption]Anyway, Scratch 2.0 on the web, as per Scratch Programming Playground, gives you, er, your kids, great training in all the programming concepts, and with it you basically controls sprites (objects) on a screen. But the same language is already adapted to control a common form of robot (mBot) and has been adapted to program a widely used controller. So, with Scratch Programming Playground, a little practice and nine dollars worth of hardware, you can take over the world! Or, at least, a good portion of the Tri State Area.

When I do my “Science oriented holiday gift guide” (SOHGG) in a few weeks, this book is going to be on it. Al Sweigart, author, has really nailed a kids oriented programming book better than I’ve seen done before, and I’ve seen them all.

Impossible Voyage becomes Ever More Possible

i-812a9ba7cb86f21e0fd1b7e3d970d7f0-body_camera.jpg

This camera pill is not larger than a candy. It can be swallowed by the patient. The doctor steers it through esophagus and stomach ….
So, you swallow this “pill” and miniaturized scientists riding inside get to travel around inside your body like in that movie, doing battle with your immune system while searching for a deadly clot, and running dangerously low on fuel.Well, not exactly. This IS a camera that you swallow. That is not so unusual. Doctors have had patients swallow cameras for some time now, to give them a look at the inside of your alimentary tract. This camera is different because the doctors do get to drive it , though not by using miniaturized pilots. Continue reading Impossible Voyage becomes Ever More Possible

Cooperating Robofish Set To Take Over Oceans, Lakes

In the world of underwater robots, this is a team of pioneers. While most ocean robots require periodic communication with scientist or satellite intermediaries to share information, these can work cooperatively communicating only with each other.Over the past five years Kristi Morgansen, a UW assistant professor of aeronautics and astronautics, has built three Robofish that communicate with one another underwater. Recently at the International Federation of Automatic Control’s Workshop on Navigation, Guidance and Control of Underwater Vehicles, she presented results showing that the robots had successfully completed their first major test. The robots were programmed to either all swim in one direction or all swim in different directions, basic tasks that can provide the building blocks for coordinated group movement. This success in indoor test tanks will eventually provide the basis for ocean-going systems to better explore remote ocean environments.”Underwater robots don’t need oxygen. The only reason they come up to the surface right now is for communication,” Morgansen said.Her robots would not need to come to the surface until their task was complete. They could cooperatively track moving targets underwater, such as groups of whales or spreading plumes of pollution, or explore caves, go underneath ice-covered waters, or into) dangerous environments where surfacing might not be possible. Schools of robots would be able to work together to do things that one could not do alone, such as tracking large herds of animals or mapping expanses of pollution that can grow and change shape.

Continue reading Cooperating Robofish Set To Take Over Oceans, Lakes

Microsoft Attempts to Patent the Very Essence of Humanity

What? Consider this Abstract from the patent:

A software design process includes three elements–an object/component driven element, a situation/scenario driven element, and an arbitrator/communicator element that is logically interposed and serves as an intermediary between the object/component driven and the situation/scenario driven elements. Through an iterative communication process overseen by the arbitrator/communicator, software design can take place and be measured against a metric. The communication process overseen and implemented by the arbitrator/communicator can allow ideas and developments provided by one element to be translated into a format that the other element understands. Once the metric has been achieved, the design process can be terminated.

Continue reading Microsoft Attempts to Patent the Very Essence of Humanity

Cornell robot sets a record for distance walking

i-f8a574431a488e02baff097978145232-cornel_ranger.jpg

We’re not sure what brand of batteries it was using, but the Cornell Ranger robot just kept going and going April 3 when it set an unofficial world record by walking nonstop for 45 laps — a little over 9 kilometers or 5.6 miles — around the Barton Hall running track.Developed by a team of students working with Andy Ruina, Cornell professor of theoretical and applied mechanics, the robot walked (and walked) until it finally stopped and fell backward, perhaps because its battery ran down. “We need to do some careful analysis to find out for sure,” said Greg Stiesberg, a graduate student on the team.An earlier version of the same robot had already set a record by free-walking a bit over 1 kilometer, about .62 miles. (Another robot has walked 2.5 kilometers [1.55 miles] on a treadmill, Ruina noted. A six-legged robot has walked a bit more than 2 kilometers, and there’s some debate over whether or not that counts.)…Read the rest here.

Robot Rebellion Put Down by US Military …. This time…

i-463e5a663461796c60872cc859c2181c-combat_robot.jpg

The Robots have been very quiet lately, have you noticed?This is probably because they have been chagrined by recent events only now being made public.Kevin Fahey, US Army program executive officer for ground forces … said there had been chilling incidents in which the [Combat Robots] had … attempted to train … 5.56mm M249 light machine-gun on its human comrades.”The gun started moving when it was not intended to move,” he said.Apparently, alert American troops managed to quell the traitorous would-be droid assassins before the inevitable orgy of mechanised slaughter began. Fahey didn’t say just how, but conceivably the rogue robots may have been suppressed with help from more trustworthy airborne kill machines, or perhaps prototype electropulse zap bombs.No humans were hurt, but it seems that the struggle was sufficiently terrifying that it may be some time before American troops are ready to fight alongside robots again.As Fahey pointed out, “once you’ve done something that’s really bad, it can take 10 or 20 years to try it again”. That said, it seems he expects to deploy a new and more trustworthy armed ground automaton within a year – perhaps the MAARS, an upgraded SWORDS (Special Weapons Observation Reconnaissance Direct-action System) packing a heavier 7.62mm machine-gun and featuring improved safety features.MAARS is also said by its makers to have “Transformer-like” abilities akin to those of Optimus Prime. Rather than being able to disguise itself as, say, a mobility scooter or a dessert trolley, the MAARS is actually only able to transform – with help from human allies – into a slightly different robot.[source]

Johnny Lee is TechnoMan (The world’s newest super hero).

You’ve already seen Johnny’s Wii Remote Hacks … and if you have not go and look. This is not about Wii, or video game, or anything like that. This is about transforming the relationship between technology and society. So if you missed Johnny Lee: Wii Remote hacks please go have a look. It is the TED Talk with a record number of interruptions and the largest standing ovation.Then, com back here and have a look at this other video from my new hero, Johnny Lee:Tracking Your Fingers with the Wiimote Continue reading Johnny Lee is TechnoMan (The world’s newest super hero).