10. The Color Magic Card Trick
In this chapter, you’ll make a robot that identifies cards by color and deals them out one at a time. Your robot can tell you the color of the card, even when you can’t see it. No, it’s not magic, but it’s still pretty cool.
In addition to the EV3, you need a deck of Uno playing cards, preferably an older one. The older editions of Uno have solid colored backgrounds, whereas the more recent editions have mottled rays of color, which make it harder for the color sensor to detect the color correctly. If you have one of these newer decks, don’t worry—we’ll go through testing the deck to see whether you need to take some colors out of your deck for the trick to work correctly. As an alternative, you can also use Skip-Bo ...
Get Build and Program Your Own LEGO Mindstorms EV3 Robots now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.