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 Series C funding, which brings its total raise to around $95 million, will go toward mass production of the startup’s inaugural products

AI chip startup DEEPX secures $80M Series C at a $529M valuation 

A dust-up between Evolve Bank & Trust, Mercury and Synapse has led TabaPay to abandon its acquisition plans of troubled banking-as-a-service startup Synapse.

Infighting among fintech players has caused TabaPay to ‘pull out’ from buying bankrupt Synapse

The problem is not the media, but the message.

Apple’s ‘Crush’ ad is disgusting

The Twitter for Android client was “a demo app that Google had created and gave to us,” says Particle co-founder and ex-Twitter employee Sara Beykpour.

Google built some of the first social apps for Android, including Twitter and others

WhatsApp is updating its mobile apps for a fresh and more streamlined look, while also introducing a new “darker dark mode,” the company announced on Thursday. The messaging app says…

WhatsApp’s latest update streamlines navigation and adds a ‘darker dark mode’

Plinky lets you solve the problem of saving and organizing links from anywhere with a focus on simplicity and customization.

Plinky is an app for you to collect and organize links easily

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: How to watch

For cancer patients, medicines administered in clinical trials can help save or extend lives. But despite thousands of trials in the United States each year, only 3% to 5% of…

Triomics raises $15M Series A to automate cancer clinical trials matching

Welcome back to TechCrunch Mobility — your central hub for news and insights on the future of transportation. Sign up here for free — just click TechCrunch Mobility! Tap, tap.…

Tesla drives Luminar lidar sales and Motional pauses robotaxi plans

The newly announced “Public Content Policy” will now join Reddit’s existing privacy policy and content policy to guide how Reddit’s data is being accessed and used by commercial entities and…

Reddit locks down its public data in new content policy, says use now requires a contract

Eva Ho plans to step away from her position as general partner at Fika Ventures, the Los Angeles-based seed firm she co-founded in 2016. Fika told LPs of Ho’s intention…

Fika Ventures co-founder Eva Ho will step back from the firm after its current fund is deployed

In a post on Werner Vogels’ personal blog, he details Distill, an open-source app he built to transcribe and summarize conference calls.

Amazon’s CTO built a meeting-summarizing app for some reason

Paris-based Mistral AI, a startup working on open source large language models — the building block for generative AI services — has been raising money at a $6 billion valuation,…

Sources: Mistral AI raising at a $6B valuation, SoftBank ‘not in’ but DST is

You can expect plenty of AI, but probably not a lot of hardware.

Google I/O 2024: What to expect

Dating apps and other social friend-finders are being put on notice: Dating app giant Bumble is looking to make more acquisitions.

Bumble says it’s looking to M&A to drive growth

When Class founder Michael Chasen was in college, he and a buddy came up with the idea for Blackboard, an online classroom organizational tool. His original company was acquired for…

Blackboard founder transforms Zoom add-on designed for teachers into business tool

Groww, an Indian investment app, has become one of the first startups from the country to shift its domicile back home.

Groww joins the first wave of Indian startups moving domiciles back home from US

Technology giant Dell notified customers on Thursday that it experienced a data breach involving customers’ names and physical addresses. In an email seen by TechCrunch and shared by several people…

Dell discloses data breach of customers’ physical addresses

Featured Article

Fairgen ‘boosts’ survey results using synthetic data and AI-generated responses

The Israeli startup has raised $5.5M for its platform that uses “statistical AI” to generate synthetic data that it says is as good as the real thing.

20 hours ago
Fairgen ‘boosts’ survey results using synthetic data and AI-generated responses

Hydrow, the at-home rowing machine maker, announced Thursday that it has acquired a majority stake in Speede Fitness, the company behind the AI-enabled strength training machine. The rowing startup also…

Rowing startup Hydrow acquires a majority stake in Speede Fitness as their CEO steps down

Call centers are embracing automation. There’s debate as to whether that’s a good thing, but it’s happening — and quite possibly accelerating. According to research firm TechSci Research, the global…

Retell AI lets companies build ‘voice agents’ to answer phone calls

TikTok is starting to automatically label AI-generated content that was made on other platforms, the company announced on Thursday. With this change, if a creator posts content on TikTok that…

TikTok will automatically label AI-generated content created on platforms like DALL·E 3

India’s mobile payments regulator is likely to extend the deadline for imposing market share caps on the popular UPI (unified payments interface) payments rail by one to two years, sources…

India likely to delay UPI market caps in win for PhonePe-Google Pay duopoly

Line Man Wongnai, an on-demand food delivery service in Thailand, is considering an initial public offering on a Thai exchange or the U.S. in 2025.

Thai food delivery app Line Man Wongnai weighs IPO in Thailand, US in 2025

Ever wonder why conversational AI like ChatGPT says “Sorry, I can’t do that” or some other polite refusal? OpenAI is offering a limited look at the reasoning behind its own…

OpenAI offers a peek behind the curtain of its AI’s secret instructions

The federal government agency responsible for granting patents and trademarks is alerting thousands of filers whose private addresses were exposed following a second data spill in as many years. The…

US Patent and Trademark Office confirms another leak of filers’ address data

As part of an investigation into people involved in the pro-independence movement in Catalonia, the Spanish police obtained information from the encrypted services Wire and Proton, which helped the authorities…

Encrypted services Apple, Proton and Wire helped Spanish police identify activist

Match Group, the company that owns several dating apps, including Tinder and Hinge, released its first-quarter earnings report on Tuesday, which shows that Tinder’s paying user base has decreased for…

Match looks to Hinge as Tinder fails

Private social networking is making a comeback. Gratitude Plus, a startup that aims to shift social media in a more positive direction, is expanding its wellness-focused, personal reflections journal to…

Gratitude Plus makes social networking positive, private and personal

With venture totals slipping year-over-year in key markets like the United States, and concern that venture firms themselves are struggling to raise more capital, founders might be worried. After all,…

Can AI help founders fundraise more quickly and easily?