Free Sample
+ Collection

Lego Mindstorms EV3 Essentials

Abid H. Mujtaba

Create and program complex autonomous robots using the third-generation Lego Mindstorms robotics kit
RRP $17.99
RRP $29.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781783553495
Paperback210 pages

About This Book

  • Create automated robots programmed on the EV3 brick or using Java
  • Learn the fundamentals of robotics and create your own impressive mechanical minions
  • Work through examples and construct functional robots as you become familiar with the hardware and software of the EV3

Who This Book Is For

If you are a robot enthusiast who wants to quickly get the most out of Lego Mindstorms EV3, this is the book for you. Prior programming experience is useful to get the most out of this book, but not necessary.

Table of Contents

Chapter 1: Introducing EV3
Presenting EV3
Introducing the EV3 components
Differentiating between the Home and Education sets
An overview of the brick
Navigating the menu
Chapter 2: Sensors and Motors
Introducing inputs
The Motor Control application
Constructing a rover robot
Chapter 3: EV3 Brick Programming
The Brick Program application
Visual programming – blocks and icons
Sample programs
Obstacle-avoiding robot
Limitations of visual programming
Chapter 4: LeJOS – Unleashing EV3
Classic programming on EV3
LeJOS – introduction
The advantages of LeJOS
Installing LeJOS
Testing the LeJOS installation
Chapter 5: Connecting with LeJOS
Copying files to the SD card
Mini USB cable
SSH access
Chapter 6: Hello, World – Writing Our First Program
Installing the JDK
LeJOS libraries
The Hello, World EV3 program
Chapter 7: Sensors and Motors – the LeJOS way
A brief interlude about IDEs
Large motor
The touch sensor
Chapter 8: The Line-follower Robot
The Line-follower robot
Differential drive
Setting up the LeJOS project
Programming the differential drive
Testing the differential drive
Chapter 9: Sensing the Path
Exploring the color sensor
Detecting the path
Interrupting the motion
Chapter 10: Tracking the Line
The objective
The project structure
The project code
Tracking a straight line
Sweeping for the path
The limited sweep
The narrow seek capability
The final version

What You Will Learn

  • Get to grips with the components of Lego EV3
  • Calibrate sensors and motors for your robot
  • Program essential commands to EV3 on the brick
  • Connect EV3 to your computer using USB, Bluetooth, and Wi-Fi
  • Build several robots that navigate obstacles and follow line paths
  • Install LeJOS on EV3 and program EV3 using Java
  • Automate code compilation and deployment using Gradle and SSH
  • Set up various IDEs with a focus on Android Studio for development using LeJOS

In Detail

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.

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.


Read More