Book Image

Lego Mindstorms EV3 Essentials

By : Abid H. Mujtaba
Book Image

Lego Mindstorms EV3 Essentials

By: Abid H. Mujtaba

Overview of this book

<p>Building robots from scratch can be a tough task, but the Lego Mindstorms EV3 robotics kit makes it easy to create them in minutes. Far more than a toy, the programming brick allows you to create functional robots while its open source and hackable nature will allow you to use the powerful LeJOS framework to create projects of increasing complexity.</p> <p>This book provides a rapid and practical guide to building with EV3. Get up and running and swiftly learn how to construct and program automated robots using the EV3's brick, motors, and sensors. Next, you'll construct an obstacle-avoiding robot and learn how to program the EV3 brick before moving on to the advanced possibilities of the LeJOS framework. You will also learn how to install LeJOS, link your computer to EV3, and how to use it to program your Lego robots in Java. You will then quickly get to grips with using LeJOS by constructing an autonomous line-tracking robot. By the end of this book, you will be able to unleash the full creative power of Lego Mindstorms EV3.</p>
Table of Contents (19 chapters)
Lego Mindstorms EV3 Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
The Make Utility
Index

Chapter 2. Sensors and Motors

A robot is essentially a computer hooked up to inputs and outputs. It receives information from its inputs, processes it, and then issues commands to its outputs. The hallmark of a robot is the awareness of both its environment and its own state and the automation of its response to this awareness. Therefore, robotic design is concerned with analyzing inputs, making decisions, and controlling outputs.

This chapter is concerned with the question of input and output, specifically sensors and motors. Motors, in particular, are closely identified with robots and are what distinguishes them from automated systems in general. For example, the thermostat in your building has room temperature as its input, makes decisions based on the value of this input, and controls the air conditioning system as output—but you would not be inclined to call it a robot. Locomotion is an essential quality of a robot, at least in public imagination, and EV3 does not disappoint in this...