• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer

Microcontroller Tips

Microcontroller engineering resources, new microcontroller products and electronics engineering news

  • Products
    • 8-bit
    • 16-bit
    • 32-bit
    • 64-bit
  • Applications
    • Automotive
    • Connectivity
    • Consumer Electronics
    • Industrial
    • Medical
    • Security
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Videos
    • TI Microcontroller Videos
  • EE Resources
    • DesignFast
    • eBooks / Tech Tips
    • FAQs
    • LEAP Awards
    • Podcasts
    • Webinars
    • White Papers
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide

Teardown: Inside the
Anki Overdrive racecar set

March 22, 2017 By Lee Teschler

Robotic race cars make clever use of software and infrared optics to follow lines slyly hidden on the track.

Leland Teschler, Executive Editor

The Overdrive starter kit we analyzed contains sections of track that can go together in various ways and can even include jumps. An interesting feature of the track is that its sections use magnets to click together, and the track can be configured in a variety of racing layouts. To flawlessly traverse every layout thrown at it, each car takes a training lap before a race and basically memorizes the track using a built-in optical sensor to sense track position.

The cars are powered by rechargeable lithium batteries, and the set comes with a recharging overdrive carscar on trackapp screenstation where cars sit until their batteries are ready.

Under the covers
circuit board top
Removal of the car shell reveals that the Overdrive cars are basically circuit boards on wheels. Noteworthy in this view is the chunk of metal used for weight ballast, the multicolor LED giving battery charge status, and the LEDs that help simulate weapon strikes.

Removing the top of a car exposes the circuit board, the chassis, and a large ballast weight. The PCB sits in the chassis sandwiched between the two halves of the car shell so it comes out easily. Once it’s out, the mechanism by which the car steers becomes clear. There’s no steering mechanism. Instead, the car uses two tiny electric motors, one to power each of the rear wheels. So the car steers by slightly increasing or decreasing the speed of each rear wheel as need be.

It is worth examining how the motors are probably controlled. (One widely followed teardown site analyzed the Overdrive cars and botched the explanation of components related to the motor control, probably because those involved didn’t really understand motor control techniques.)

To begin, the speed of the motors can’t be controlled precisely enough to steer the car without some kind of closed-loop control. The reason is that just putting in a specific amount of motor current won’t guarantee that the motor will spin at a precise velocity. There can be changes in the tire friction as the car moves, as well as other variables that can slightly change the motor speed.

gear drive with callouts

velocity loop diagram
A close-up of the wheel-drive motors and gearing shows how the Overdrive cars steer and get power. Hall sensors on the PCB detect the passing of gear teeth in the drive, feeding back this information to the STM motor controller. The STM MCU implements a velocity feedback loop, driving the motors faster or slower based on the difference between the commanded velocity and the sensed velocity.

To make sure each motor spins at exactly the right speed, the controller must measure the speed of rotation of each axle. That is what the Hall effect switches do. Each motor drives a wheel through a bevel gear. The teeth of the driven gear pass next to a Hall effect sensor which is used as a way to sense wheel velocity. Pulses generated when individual gear teeth pass by the Hall sensor get fed back to the motor controller as a measure of wheel speed.

Sensed wheel speed is used to generate an error signal or correction factor for the speed command sent to the motor. In the case of these cars, the motor controller is an STM microcontroller that has motor control capabilities built in. The STM controller notes the speed of the axle, and compares it to the speed it has commanded the axle to turn. The difference between the commanded speed and the actual speed is an error term. If that error term is growing bigger, the controller speeds up the motor slightly by sending it more current. If the error gets smaller, the controller slows that motor slightly.

overdrive track
A view of the Overdrive track taken through the right kind of infrared lens reveals the lines that the cars follow and the dashes along side that likely help the cars gauge their lateral position. Image courtesy of Travis Deyle, founder of Hizook.com.

The method by which the controller knows when to change the speed so it can turn the car is also interesting. It involves the clever way that Anki devised the track the cars race around. The track viewed in normal light looks to be almost solid black. But when viewed through the right type of infrared filter, a pattern emerges. It is this pattern that the cars see. The pattern basically consists of lines which the cars follow. There are a series of dashes with varying width that are situated alongside the lines. The dashes seem to be there as a means for the car to notice that it’s getting too far away from the solid line it is trying to follow.

The car sees those lines via an optical sensor chip and an infrared LED at the front of each car, along with a lens assembly. The lens assembly does two things. First, it routes the light from the infrared LED down to the track to illuminate the spot that the optical sensor looks at. Second, it focuses the sensor on the track so the car can follow the line.

car undersideassembled lens

bare sensor and LED
The Overdrive cars follow lines on the track using an infrared optical sensor and infrared LED. With the PCB out of the car chassis, the function of the sensor lens assembly becomes clear. An opaque housing over top the sensor chip supports the plastic focusing lens which also doubles as a guide for the LED light, beaming it on the spot the infrared sensor sees. Removal of the lens assembly brings a clear view of the sensor and its LED.

We have an image of the track taken through a blue filter that lets near infrared light be imaged. This image comes from Travis Deyle who founded the robotics website called Hizook. Travis has graciously let us use it.

Other components

The rest of the components on the PCB are relatively straightforward. They include a low-energy Bluetooth chip from Nordic Semiconductor. We’ve seen it used on several other consumer devices. Additionally, there is a battery charging chip from Linear Technology. We also found four Diodes Inc. chips containing complementary pairs of MOSFETs, and a few other npn wideband bipolar transistors from

bottom board
Visible on the bottom of the board is the optical infrared light sensor/LED lens assembly along with the STM MCU, Nordic Semiconductor BLE chip, the Hall sensors, Philips npn transistors, and four Diodes Inc. complementary pair MOSFET chips.

One might also note what is not on the circuit board: You might think the Overdrive cars have light sensors or other electronics for detecting a light from another car, as would happen when a car is hit by one of the numerous “weapons” in the arsenal. But there are no sensors on the chassis other than the one used for finding lines on the track. Instead, software just actuates LEDs placed at various points on the car’s circuit board to help reinforce the illusion that the car has been hit by a tractor beam, a laser blaster, or some other misfortune. In that regard, the Anki team did a remarkable job of instilling their system with enough realism to keep things interesting.
References
Diodes Inc. DMG 1016G complementary pair enhancement mode MOSFET,
Linear Technology Inc. TP4054 lithium battery charger IC,
Nordic Semiconductor nRF8001 BLE,
Philips BF547 npn 1 GHz wideband transistor,
STMicroelectronics STM32F051K8 motor control MCU,

Filed Under: Applications, Consumer Electronics, Featured Tagged With: anki, diodesinc., linear technology, motor control, nordic semiconductor, overdrive, Philips

Primary Sidebar

DesignFast

Design Fast Logo
Component Selection Made Simple.

Try it Today
design fast globle

EE Training Center Classrooms

EE Classrooms

CURRENT DIGITAL ISSUE

A frequency you can count on There are few constants in life, but what few there are might include death, taxes, and a U.S. grid frequency that doesn’t vary by more than ±0.5 Hz. However, the certainty of the grid frequency is coming into question, thanks to the rising percentage of renewable energy sources that…

Digital Edition Back Issues

Subscribe to our Newsletter

Subscribe to weekly industry news, new product innovations and more.

Subscribe today

RSS Current EDABoard.com discussions

  • LED Drive Using Mosfet
  • Mosfet SSR triac output shunt circuit design
  • Active Balun Design
  • Thyristor Gate Drive
  • Specman training for new user

RSS Current Electro-Tech-Online.com Discussions

  • Two 300nH inductor in series, can get higher current?
  • Best way to reduce voltage in higher wattage system?
  • What is "off the shelf values for inductors"?
  • Funny Images Thread!
  • surge arresters

Footer

Microcontroller Tips

EE World Online Network

  • DesignFast
  • EE World Online
  • EDA Board Forums
  • Electro Tech Online Forums
  • Connector Tips
  • Analog IC Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • Wire and Cable Tips
  • 5G Technology World

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us
Follow us on Twitter Add us on Facebook Follow us on YouTube  Follow us on Instagram

Copyright © 2022 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy