• 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
    • 5G
    • Automotive
    • Connectivity
    • Consumer Electronics
    • EV Engineering
    • Industrial
    • IoT
    • Medical
    • Security
    • Telecommunications
    • Wearables
    • Wireless
  • Learn
    • eBooks / Tech Tips
    • EE Training Days
    • FAQs
    • Learning Center
    • Tech Toolboxes
    • Webinars/Digital Events
  • Resources
    • Design Guide Library
    • LEAP Awards
    • Podcasts
    • White Papers
  • Videos
    • EE Videos & Interviews
    • Teardown Videos
  • EE Forums
    • EDABoard.com
    • Electro-Tech-Online.com
  • Engineering Training Days
  • Advertise
  • Subscribe

Teardown: Inside the
Anki Overdrive racecar set

March 22, 2017 By Lee Teschler 17 Comments

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

Reader Interactions

Comments

  1. Blake says

    December 25, 2017 at 10:03 pm

    Is there a way I can make my Anki Overdrive cars go faster?

    Reply
    • Sven says

      January 3, 2018 at 11:05 am

      They will go faster once you earn a higher experience Level by (successfully) racing against the AI drivers.
      At some point, giving full throttle will just make them fly off the curves!

      Reply
    • Akira says

      November 2, 2018 at 6:23 am

      you can reduce the number from hall effect wheel (one that give hall sensor, so the AI will think the speed is slow when the real speed is faster. hall effect wheel is the one look like disc with many tiny hole. all you do just block those hole with either tape or anything that small enough.

      considered that, the AI will falsely count the speed, and it will much crash on it..
      if it happen, you just clear the one that you use to block hall sensor.

      Reply
    • Chris says

      October 13, 2020 at 5:48 pm

      There are “super speed” kits and cars available on ebay.

      Reply
  2. cappy says

    January 7, 2019 at 11:30 am

    Hi,
    thanks for this content. Now I understand how it works.
    Do you think there is a way to make a standard straight track from start-grid plane?

    THX
    Cappy

    Reply
  3. Thomas says

    August 11, 2019 at 9:58 pm

    Does anyone know where I can buy new batteries for Anki overdrive and original cars for it since and Anki is no longer available. I’ve Looked on eBay they didn’t have any can anybody help

    Reply
    • tee says

      December 23, 2019 at 11:55 am

      amazon

      Reply
  4. Fish_and_Flowers says

    December 8, 2019 at 7:58 pm

    For what it is worth, if the motors used in these cars are DC motors, then the current is not what is varied to affect speed, but actually the Voltage. Or more likely average DC Voltage.. The only difference I see between these cars and standard DC servo motor controls is their extremely small size and the use of a pulse feedback rather than a tachometer as industrial servos would. The Hall device pulse generator is a genus idea to reduce size, weight and COST (winding a decent tach is neither cheap nor simple). And the reason I mentioned AVERAGE DC Voltage is at least 20 years ago industrial servos went down in cost when they adopted a method of sending a constant frequency DC pulse train to motors and varied the speed by varying the duty cycle of the the pulses. If “on” voltage is 12 volts, a 10% duty cycle yields a 1.2 Volt effect, and a 95% duty cycle yields a 11.4 Volt effect.

    Reply
  5. Tim says

    January 19, 2020 at 7:47 pm

    All of a sudden only one wheel spins on one of our cars so it goes in circles…. any ideas how to fix this?

    Reply
    • Henry M says

      April 4, 2021 at 4:03 pm

      Yes, for us it was hair in the axle of the stuck wheel. We gently pried the wheel off and removed the hair. Now it is back on the track! Very happy.

      Reply
  6. Cj says

    February 4, 2020 at 7:44 am

    It was from one of disconnection with motor. Open the case and check two black and red wire.

    Reply
  7. marian says

    August 31, 2020 at 3:06 pm

    Hello,
    Very nice article. Do you know what kind of optical sensor is used?

    Reply
  8. Ale says

    December 2, 2020 at 11:18 pm

    If I “upgraded” the battery from the original 70 ma battery to a 100 -200 ma battery wouldn’t the programmed tp4054 program resistor prevent the upgraded battery from reaching its full current potential. Thereby rendering the upgrade senseless.

    Or is my lack of battery / charger knowledge showing?

    Hoping someone with real understanding can set me straight.

    Thanks and thanks for this in depth peek into these sets.

    Reply
  9. Marcin says

    December 28, 2020 at 5:59 am

    The car stops after a few seconds of driving and then the second one, the battery is full, what’s going on?

    Reply
  10. Andreas Broicher says

    March 1, 2021 at 3:50 pm

    hi, great article, but what I am missing missing is a clear description of the battery details to fully opperate the car under full load.
    Sure, the battery is a 1S = 3,7 Volts and the mAh should 75 mAh or higher,
    but what about the discharge rate?
    Is 2C enough? In my expirience no! You can control the car, but when it should run with its own AI, it will not drive correctly. Not enough energy from the 2C available.
    But How much discharge rate is the best for this car?
    5C or 10C or 15C?

    Reply
    • Paul Reeder says

      September 13, 2021 at 6:56 am

      These batteries have a 1C discharge rate. You will be hard pressed to find a single cell battery that is greater than 1C.

      Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Featured Contributions

Edge AI without the guesswork: designing for real battery life, real performance, and real workloads

Designing for functional safety in robotics: key considerations for engineers

Can chiplets save the semiconductor supply chain?

Navigating the EU Cyber Resilience Act: a manufacturer’s perspective

The intelligent Edge: powering next-gen Edge AI applications

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Sensors
In this Tech Toolbox, we cover some of those technologies driving the next generation of connected systems, including ultra-low-power sensing strategies that extend node battery life, and 60 GHz CMOS radar for contactless health and presence detection.

EE Learning Center

EE Learning Center

EE ENGINEERING TRAINING DAYS

engineering
“bills
“microcontroller
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

Footer

Microcontroller Tips

EE World Online Network

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips

Microcontroller Tips

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2026 · 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