Home Page Icon
Home Page
Table of Contents for
Table of Contents
Close
Table of Contents
by Abid H. Mujtaba
Lego Mindstorms EV3 Essentials
Lego Mindstorms EV3 Essentials
Table of Contents
Lego Mindstorms EV3 Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introducing EV3
Presenting EV3
Introducing the EV3 components
Brick
Motors
Sensors
Technic pieces
Differentiating between the Home and Education sets
An overview of the brick
The front face
The back face
The top face
The bottom face
The left face
The right face
Navigating the menu
The Recent Programs tab
The File Browser tab
The Apps tab
The Settings tab
Turning off EV3
Summary
2. Sensors and Motors
Introducing inputs
The touch sensor
The color sensor
The reflect mode
The ambient mode
The color mode
The infrared sensor
The proximity mode
The remote mode
The ultrasonic sensor
The gyroscopic sensor
The angle mode
The rate mode
Motors
The large motor
The degree mode
The rotation mode
The medium motor
Outputs
Motors
The Motor Control application
Constructing a rover robot
Summary
3. EV3 Brick Programming
The Brick Program application
Visual programming – blocks and icons
Explaining the Hello program
Programming blocks
Sample programs
Multiple segments
Simultaneous actions
Button-activated greeting
Sensor-activated greeting
The touch sensor
The color sensor (the REFLECT mode)
The color sensor (the COLOR mode)
The IR sensor (the PROX mode)
Motor control
The motor rotation event
Detecting obstacles
Obstacle-avoiding robot
Desired functionality
Construction
Differential drive
Program sequence
Limitations of visual programming
Summary
4. LeJOS – Unleashing EV3
Classic programming on EV3
LeJOS – introduction
The advantages of LeJOS
Installing LeJOS
Confirming the SD card's filesystem
Loading firmware on the SD card
Installing LeJOS on EV3
Testing the LeJOS installation
Summary
5. Connecting with LeJOS
Copying files to the SD card
Limitations
Mini USB cable
SSH access
Setting up the SSH configuration
Limitations
Bluetooth
Configuring the computer
Configuring EV3
Connecting to EV3 using Bluetooth
Wi-Fi
Configuring EV3
Wi-Fi configuration using SSH
Limitations
Summary
6. Hello, World – Writing Our First Program
Installing the JDK
Testing the JDK
Explanation
Compiling and running the code
Gradle
Testing the Gradle installation
Explanation
Compiling and running the code
LeJOS libraries
The Hello, World EV3 program
The HelloWorld.java program
Explanation
The build.gradle file
Explanation
Compilation
Deployment
Execution
Summary
7. Sensors and Motors – the LeJOS way
A brief interlude about IDEs
Large motor
The build.gradle file
The Motor.java file
Compile, deploy, and execute
More motor commands
The touch sensor
The TouchSensor.java file
The Touch.java file
Explanation
Compile, deploy, and execute
Summary
8. The Line-follower Robot
The Line-follower robot
The required behavior
Construction
Differential drive
Setting up the LeJOS project
The build.gradle file
The LineFollower.java file
Programming the differential drive
The differential drive code
Constructors
Commands
Forward
Stop
Rotate clockwise
Rotate counterclockwise
Testing the differential drive
Modified Line-follower code
Summary
9. Sensing the Path
Exploring the color sensor
The ColorSensor.java file
The LineFollower.java file
Testing
Detecting the path
The ColorSensor.java file
The LineFollower.java file
Testing
Interrupting the motion
The LineFollower.java file
Testing
Summary
10. Tracking the Line
The objective
The project structure
Controller
The LineFollower.java file
The Controller.java file
Explanation
The project code
The ColorSensor.java file
The DifferentialDrive.java file
The LineFollower.java file
The build.gradle file
Makefile
Tracking a straight line
The Controller.java file
Explanation
Sweeping for the path
Code changes (Controller.java)
Testing
Issues
The limited sweep
Code changes (Controller.java)
Testing
The narrow seek capability
Code changes (Controller.java)
Testing
The final version
Code (Controller.java)
Explanation
Testing
Summary
A. The Make Utility
Makefile
Prerequisites
Basic usage
Explanation
B. LeJOS and IDEs
Eclipse
IntelliJ IDEA
Android Studio
Index
Search in book...
Toggle Font Controls
Playlists
Add To
Create new playlist
Name your new playlist
Playlist description (optional)
Cancel
Create playlist
Sign In
Email address
Password
Forgot Password?
Create account
Login
or
Continue with Facebook
Continue with Google
Sign Up
Full Name
Email address
Confirm Email Address
Password
Login
Create account
or
Continue with Facebook
Continue with Google
Prev
Previous Chapter
Cover
Next
Next Chapter
Lego Mindstorms EV3 Essentials
Table of Contents
Lego Mindstorms EV3 Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why subscribe?
Free access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code
Downloading the color images of this book
Errata
Piracy
Questions
1. Introducing EV3
Presenting EV3
Introducing the EV3 components
Brick
Motors
Sensors
Technic pieces
Differentiating between the Home and Education sets
An overview of the brick
The front face
The back face
The top face
The bottom face
The left face
The right face
Navigating the menu
The Recent Programs tab
The File Browser tab
The Apps tab
The Settings tab
Turning off EV3
Summary
2. Sensors and Motors
Introducing inputs
The touch sensor
The color sensor
The reflect mode
The ambient mode
The color mode
The infrared sensor
The proximity mode
The remote mode
The ultrasonic sensor
The gyroscopic sensor
The angle mode
The rate mode
Motors
The large motor
The degree mode
The rotation mode
The medium motor
Outputs
Motors
The Motor Control application
Constructing a rover robot
Summary
3. EV3 Brick Programming
The Brick Program application
Visual programming – blocks and icons
Explaining the Hello program
Programming blocks
Sample programs
Multiple segments
Simultaneous actions
Button-activated greeting
Sensor-activated greeting
The touch sensor
The color sensor (the REFLECT mode)
The color sensor (the COLOR mode)
The IR sensor (the PROX mode)
Motor control
The motor rotation event
Detecting obstacles
Obstacle-avoiding robot
Desired functionality
Construction
Differential drive
Program sequence
Limitations of visual programming
Summary
4. LeJOS – Unleashing EV3
Classic programming on EV3
LeJOS – introduction
The advantages of LeJOS
Installing LeJOS
Confirming the SD card's filesystem
Loading firmware on the SD card
Installing LeJOS on EV3
Testing the LeJOS installation
Summary
5. Connecting with LeJOS
Copying files to the SD card
Limitations
Mini USB cable
SSH access
Setting up the SSH configuration
Limitations
Bluetooth
Configuring the computer
Configuring EV3
Connecting to EV3 using Bluetooth
Wi-Fi
Configuring EV3
Wi-Fi configuration using SSH
Limitations
Summary
6. Hello, World – Writing Our First Program
Installing the JDK
Testing the JDK
Explanation
Compiling and running the code
Gradle
Testing the Gradle installation
Explanation
Compiling and running the code
LeJOS libraries
The Hello, World EV3 program
The HelloWorld.java program
Explanation
The build.gradle file
Explanation
Compilation
Deployment
Execution
Summary
7. Sensors and Motors – the LeJOS way
A brief interlude about IDEs
Large motor
The build.gradle file
The Motor.java file
Compile, deploy, and execute
More motor commands
The touch sensor
The TouchSensor.java file
The Touch.java file
Explanation
Compile, deploy, and execute
Summary
8. The Line-follower Robot
The Line-follower robot
The required behavior
Construction
Differential drive
Setting up the LeJOS project
The build.gradle file
The LineFollower.java file
Programming the differential drive
The differential drive code
Constructors
Commands
Forward
Stop
Rotate clockwise
Rotate counterclockwise
Testing the differential drive
Modified Line-follower code
Summary
9. Sensing the Path
Exploring the color sensor
The ColorSensor.java file
The LineFollower.java file
Testing
Detecting the path
The ColorSensor.java file
The LineFollower.java file
Testing
Interrupting the motion
The LineFollower.java file
Testing
Summary
10. Tracking the Line
The objective
The project structure
Controller
The LineFollower.java file
The Controller.java file
Explanation
The project code
The ColorSensor.java file
The DifferentialDrive.java file
The LineFollower.java file
The build.gradle file
Makefile
Tracking a straight line
The Controller.java file
Explanation
Sweeping for the path
Code changes (Controller.java)
Testing
Issues
The limited sweep
Code changes (Controller.java)
Testing
The narrow seek capability
Code changes (Controller.java)
Testing
The final version
Code (Controller.java)
Explanation
Testing
Summary
A. The Make Utility
Makefile
Prerequisites
Basic usage
Explanation
B. LeJOS and IDEs
Eclipse
IntelliJ IDEA
Android Studio
Index
Add Highlight
No Comment
..................Content has been hidden....................
You can't read the all page of ebook, please click
here
login for view all page.
Day Mode
Cloud Mode
Night Mode
Reset