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

The AI industry moves faster than the rest of the technology sector, which means it outpaces the federal government by several orders of magnitude.

Senate study proposes ‘at least’ $32B yearly for AI programs

The FBI along with a coalition of international law enforcement agencies seized the notorious cybercrime forum BreachForums on Wednesday.  For years, BreachForums has been a popular English-language forum for hackers…

FBI seizes hacking forum BreachForums — again

The announcement signifies a significant shake-up in the streaming giant’s advertising approach.

Netflix to take on Google and Amazon by building its own ad server

It’s tough to say that a $100 billion business finds itself at a critical juncture, but that’s the case with Amazon Web Services, the cloud arm of Amazon, and the…

Matt Garman taking over as CEO with AWS at crossroads

Back in February, Google paused its AI-powered chatbot Gemini’s ability to generate images of people after users complained of historical inaccuracies. Told to depict “a Roman legion,” for example, Gemini would show…

Google still hasn’t fixed Gemini’s biased image generator

A feature Google demoed at its I/O confab yesterday, using its generative AI technology to scan voice calls in real time for conversational patterns associated with financial scams, has sent…

Google’s call-scanning AI could dial up censorship by default, privacy experts warn

Google’s going all in on AI — and it wants you to know it. During the company’s keynote at its I/O developer conference on Tuesday, Google mentioned “AI” more than…

The top AI announcements from Google I/O

Uber is taking a shuttle product it developed for commuters in India and Egypt and converting it for an American audience. The ride-hail and delivery giant announced Wednesday at its…

Uber has a new way to solve the concert traffic problem

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

Google is preparing to launch a new system to help address the problem of malware on Android. Its new live threat detection service leverages Google Play Protect’s on-device AI to…

Google takes aim at Android malware with an AI-powered live threat detection service

Users will be able to access the AR content by first searching for a location in Google Maps.

Google Maps is getting geospatial AR content later this year

The heat pump startup unveiled its first products and revealed details about performance, pricing and availability.

Quilt heat pump sports sleek design from veterans of Apple, Tesla and Nest

The space is available from the launcher and can be locked as a second layer of authentication.

Google’s new Private Space feature is like Incognito Mode for Android

Gemini, the company’s family of generative AI models, will enhance the smart TV operating system so it can generate descriptions for movies and TV shows.

Google TV to launch AI-generated movie descriptions

When triggered, the AI-powered feature will automatically lock the device down.

Android’s new Theft Detection Lock helps deter smartphone snatch and grabs

The company said it is increasing the on-device capability of its Google Play Protect system to detect fraudulent apps trying to breach sensitive permissions.

Google adds live threat detection and screen-sharing protection to Android

This latest release, one of many announcements from the Google I/O 2024 developer conference, focuses on improved battery life and other performance improvements, like more efficient workout tracking.

Wear OS 5 hits developer preview, offering better battery life

For years, Sammy Faycurry has been hearing from his registered dietitian (RD) mom and sister about how poorly many Americans eat and their struggles with delivering nutritional counseling. Although nearly…

Dietitian startup Fay has been booming from Ozempic patients and emerges from stealth with $25M from General Catalyst, Forerunner

Apple is bringing new accessibility features to iPads and iPhones, designed to cater to a diverse range of user needs.

Apple announces new accessibility features for iPhone and iPad users

TechCrunch Disrupt, our flagship startup event held annually in San Francisco, is back on October 28-30 — and you can expect a bustling crowd of thousands of startup enthusiasts. Exciting…

Startup Blueprint: TC Disrupt 2024 Builders Stage agenda sneak peek!

Mike Krieger, one of the co-founders of Instagram and, more recently, the co-founder of personalized news app Artifact (which TechCrunch corporate parent Yahoo recently acquired), is joining Anthropic as the…

Anthropic hires Instagram co-founder as head of product

Seven orgs so far have signed on to standardize the way data is collected and shared.

Venture orgs form alliance to standardize data collection

As cloud adoption continues to surge toward the $1 trillion mark in annual spend, we’re seeing a wave of enterprise startups gaining traction with customers and investors for tools to…

Alkira connects with $100M for a solution that connects your clouds

Charging has long been the Achilles’ heel of electric vehicles. One startup thinks it has a better way for apartment dwelling EV drivers to charge overnight.

Orange Charger thinks a $750 outlet will solve EV charging for apartment dwellers

So did investors laugh them out of the room when they explained how they wanted to replace Quickbooks? Kind of.

Embedded accounting startup Layer secures $2.3M toward goal of replacing QuickBooks

While an increasing number of companies are investing in AI, many are struggling to get AI-powered projects into production — much less delivering meaningful ROI. The challenges are many. But…

Weka raises $140M as the AI boom bolsters data platforms

PayHOA, a previously bootstrapped Kentucky-based startup that offers software for self-managed homeowner associations (HOAs), is an example of how real-world problems can translate into opportunity. It just raised a $27.5…

Meet PayHOA, a profitable and once-bootstrapped SaaS startup that just landed a $27.5M Series A

Restaurant365, which offers a restaurant management suite, has raised a hot $175M from ICONIQ Growth, KKR and L Catterton.

Restaurant365 orders in $175M at $1B+ valuation to supersize its food service software stack 

Venture firm Shilling has launched a €50M fund to support growth-stage startups in its own portfolio and to invest in startups everywhere else. 

Portuguese VC firm Shilling launches €50M opportunity fund to back growth-stage startups

Chang She, previously the VP of engineering at Tubi and a Cloudera veteran, has years of experience building data tooling and infrastructure. But when She began working in the AI…

LanceDB, which counts Midjourney as a customer, is building databases for multimodal AI