Hardware

How BB-8 Works

Comment

Image Credits: Alberto E. Rodriguez / Getty Images

By now, there’s a pretty good chance that you’ve seen the new Star Wars movie — and for those who haven’t, don’t worry: no spoilers here. At long last, we’ve got a much-needed dose of Starfighters, Rebel Alliances, Lasers, and droids. BB-8, the adorable successor to R2-D2, has captured hearts and minds. As lovable as it is, and even with as much life as its creators managed to instill into it, in the end… it’s a super sophisticated prop. And now you’re wondering: how the heck does this thing work?

While JJ and Co. have kept the specifics of BB-8’s innards mostly under wraps, we can suss out the basics. Behind that trilling orange and white sphere, BB-8 is likely a set of wheels (propelling the sphere by spinning against its inner-wall) and a magnetic mast (to hold on to and control BB-8’s head). The sort of “wobbly” way BB-8 moves? It’s all inherent to the design — what might be considered a flaw if used anywhere else, here it helps to give BB-8 much of its character.

That explanation will leave a lot of you wanting for more. Want a more detailed breakdown than that? Read on, folks.

A lot of the analysis you see on the internet today has people treating BB-8 as two discrete operations, one each for the head and ball. However, one of the many patents filed by Disney and partner Sphero paints a different picture. This patent, for a “Magnetically coupled accessory for a self-propelled device,” explains how to get BB-8 to work without a separately controlled head. Combine this with Sphero’s Chief Scientist Adam Wilson telling Polygon.com that the head isn’t articulated independently, and you can start to paint a picture of what the internals look like.

The strongest justification for this kind of system is in watching BB-8 try to lean over. It doesn’t seem to be able to maintain a constant head angle while static. This strongly implies that the head isn’t articulated independently, and is consistent with the patent.

Let’s get things rolling

The head complicates things, so let’s just think about the body for now. An image from one of the patents is an extremely helpful illustration. To make things simple, let’s think about this problem in two dimensions, looking only at forward and backward motion. The same principles apply to keep this stable; all that’s happening when BB-8 turns is the internal assembly yawing to point in a different direction.

In a nutshell, what we’ve got is a sphere with wheeled mechanism inside it. The wheels are forced down against the wall of BB-8 in some way (either spring or gravity, it doesn’t matter a huge deal). Rotating the wheels shifts the center of the system’s mass, the bulk of which is in the wheel assembly, off of the vertical line that includes the center of the ball and the contact point with the ground. Leaning generates a moment. Do this right, and the ball moves in the direction that the wheels were shifted to. If we were to picture a mast mounted perpendicularly on top of the wheel base, the ball would move in a direction opposite to the mast.

patentgrab_wheelImage: United States patent application

In broad strokes, this is similar to what it’s like to get a Zorb ball moving. Being the heaviest thing in the Zorb, moving forward changes your position relative to the ball’s center of mass. This, in the end, leads to rotation and forward motion. (We’re not going to go over the dynamics of this problem, but reach out if you really want to know).

zorbImage: Flickr/Damian Cugley under a CC by-SA 2.0 license

A head for math

That mast we talked about earlier? That’s where BB-8’s head goes. Since it’s attached to the mast through the sphere, it makes sense that it would be attached magnetically, as the patent dictates. There are lots of ways to do this, but one that lets BB-8 bounce and still function like it does in the movie involves a set of attractive and repelling magnets. Repulsion probably keeps the head from contacting the ball, and magnetic attraction around the edges of the head keeps it from rolling off.

bb-8-3Image: Bryce Durbin

Earlier, we went over how to get BB-8 to move if you wanted the mast (and therefore the head) to point in the direction opposite to motion. Through most of the movie, though, you see that BB-8’s head is tilted in the direction of motion. We also know that the head can’t move separately. So, how does this work?

giphy (1)

Again, BB-8’s floppy motion tells a lot. Notice how before BB-8 starts moving forward full tilt, there’s a brief period when it’s moving with the head almost rolling backward? Applying some dynamics to the problem helps explain what’s going on.

To clear things up, I don’t think that this is an inverted pendulum problem, even though it’s easy to draw some comparisons. However, let’s pull one concept out from the typical inverted pendulum problem that you go over in school. To get the inverted pendulum’s shaft pointed in the direction of motion, you first have to move the system backwards a little bit, let the shaft fall into place, and then reverse the direction of motion.

Image: Bryce Durbin

Similarly, I suspect that the brief period of minimal motion when the base is moving but BB-8 as a whole isn’t is doing something similar. It’s likely that BB-8 gets into motion slowly (without a noticeable backward head shift). Then, by slowing the motors down, the head is allowed to roll forward. Once the head is pointing forward, you can resume the motors and get that nice full-tilt roll that’s shown in the movies.  Alternately, it’s possible that the motors drive the mast forward, letting the ball move backwards, and then the motors maintain constant angle as BB-8 moves forward. If the mast and wheel assembly have enough inertia relative to the rest of the system, you wouldn’t need more than a tiny initial motion before getting started.

All this is easier said than done, though. The control law and sensor suite running all this has to be incredibly sophisticated – making running BB-8 as much of a software problem as it is a hardware problem.

Calibration is Key

Since your entire operation depends on knowing the angle of offset from vertical (θ), your control system needs to be able to measure this to extreme accuracy. This is perhaps why we saw BB-8 needing to be calibrated when TechCrunch’s Lucas Matney played around with a scale model toy earlier in the year. All this feeds into what you call a closed-loop control system, which maintains the angle (θ) of offset from the center at whatever value you set it as. This value is set by the software depending on how fast you want BB-8 to go.

All this being said, this system does mean the BB-8 comes with some handling restrictions. Really, it would have been simpler to just use the two-system method that other analysts predicted. I can see why the designers wouldn’t have done that, though – it’s just less cool.  A lot of this is in broad strokes based on what we can get from video and patent filings. It’s possible that I’m entirely wrong and BB-8 does something else.

More TechCrunch

For over six decades, the nonprofit has been active in the financial services sector.

Accion’s new $152.5M fund will back financial institutions serving small businesses globally

Meta’s newest social network, Threads is starting its own fact-checking program after piggybacking on Instagram and Facebook’s network for a few months. Instagram head Adam Mosseri noted that the company…

Threads finally starts its own fact-checking program

Looking Glass makes trippy-looking mixed-reality screens that make things look 3D without the need of special glasses. Today, it launches a pair of new displays, including a 16-inch mode that…

Looking Glass launches new 3D displays

Replacing Sutskever is Jakub Pachocki, OpenAI’s director of research.

Ilya Sutskever, OpenAI co-founder and longtime chief scientist, departs

Intuitive Machines made history when it became the first private company to land a spacecraft on the moon, so it makes sense to adapt that tech for Mars.

Intuitive Machines wants to help NASA return samples from Mars

As Google revamps itself for the AI era, offering AI overviews within its search results, the company is introducing a new way to filter for just text-based links. With the…

Google adds ‘Web’ search filter for showing old-school text links as AI rolls out

Blue Origin’s New Shepard rocket will take a crew to suborbital space for the first time in nearly two years later this month, the company announced on Tuesday.  The NS-25…

Blue Origin to resume crewed New Shepard launches on May 19

This will enable developers to use the on-device model to power their own AI features.

Google is building its Gemini Nano AI model into Chrome on the desktop

It ran 110 minutes, but Google managed to reference AI a whopping 121 times during Google I/O 2024 (by its own count). CEO Sundar Pichai referenced the figure to wrap…

Google mentioned ‘AI’ 120+ times during its I/O keynote

Firebase Genkit is an open source framework that enables developers to quickly build AI into new and existing applications.

Google launches Firebase Genkit, a new open source framework for building AI-powered apps

In the coming months, Google says it will open up the Gemini Nano model to more developers.

Patreon and Grammarly are already experimenting with Gemini Nano, says Google

As part of the update, Reddit also launched a dedicated AMA tab within the web post composer.

Reddit introduces new tools for ‘Ask Me Anything,’ its Q&A feature

Here are quick hits of the biggest news from the keynote as they are announced.

Google I/O 2024: Here’s everything Google just announced

LearnLM is already powering features across Google products, including in YouTube, Google’s Gemini apps, Google Search and Google Classroom.

LearnLM is Google’s new family of AI models for education

The official launch comes almost a year after YouTube began experimenting with AI-generated quizzes on its mobile app. 

Google is bringing AI-generated quizzes to academic videos on YouTube

Around 550 employees across autonomous vehicle company Motional have been laid off, according to information taken from WARN notice filings and sources at the company.  Earlier this week, TechCrunch reported…

Motional cut about 550 employees, around 40%, in recent restructuring, sources say

The keynote kicks off at 10 a.m. PT on Tuesday and will offer glimpses into the latest versions of Android, Wear OS and Android TV.

Google I/O 2024: Watch all of the AI, Android reveals

Google Play has a new discovery feature for apps, new ways to acquire users, updates to Play Points, and other enhancements to developer-facing tools.

Google Play preps a new full-screen app discovery feature and adds more developer tools

Soon, Android users will be able to drag and drop AI-generated images directly into their Gmail, Google Messages and other apps.

Gemini on Android becomes more capable and works with Gmail, Messages, YouTube and more

Veo can capture different visual and cinematic styles, including shots of landscapes and timelapses, and make edits and adjustments to already-generated footage.

Google Veo, a serious swing at AI-generated video, debuts at Google I/O 2024

In addition to the body of the emails themselves, the feature will also be able to analyze attachments, like PDFs.

Gemini comes to Gmail to summarize, draft emails, and more

The summaries are created based on Gemini’s analysis of insights from Google Maps’ community of more than 300 million contributors.

Google is bringing Gemini capabilities to Google Maps Platform

Google says that over 100,000 developers already tried the service.

Project IDX, Google’s next-gen IDE, is now in open beta

The system effectively listens for “conversation patterns commonly associated with scams” in-real time. 

Google will use Gemini to detect scams during calls

The standard Gemma models were only available in 2 billion and 7 billion parameter versions, making this quite a step up.

Google announces Gemma 2, a 27B-parameter version of its open model, launching in June

This is a great example of a company using generative AI to open its software to more users.

Google TalkBack will use Gemini to describe images for blind people

Google’s Circle to Search feature will now be able to solve more complex problems across psychics and math word problems. 

Circle to Search is now a better homework helper

People can now search using a video they upload combined with a text query to get an AI overview of the answers they need.

Google experiments with using video to search, thanks to Gemini AI

A search results page based on generative AI as its ranking mechanism will have wide-reaching consequences for online publishers.

Google will soon start using GenAI to organize some search results pages

Google has built a custom Gemini model for search to combine real-time information, Google’s ranking, long context and multimodal features.

Google is adding more AI to its search results