Reader small image

You're reading from  Building Smart LEGO MINDSTORMS EV3 Robots

Product typeBook
Published inApr 2018
Reading LevelIntermediate
PublisherPackt
ISBN-139781788471565
Edition1st Edition
Languages
Concepts
Right arrow
Author (1)
Kyle Markland
Kyle Markland
author image
Kyle Markland

Kyle Markland is a young robotics enthusiast and aspiring engineer who is committed to helping others learn about technology. His first introduction to robotics was when he joined a FIRST LEGO League (FLL) team. In 2015, he started a weekly series of robotics tutorials on his YouTube channel Builderdude35. The videos aim to teach viewers engineering and programming concepts such as PID line following, dog gears, and pneumatics. In recognition of his efforts in robotics education, LEGO MINDSTORMS officially named Kyle a MINDSTORMS Community Partner (MCP) in August 2017.
Read more about Kyle Markland

Right arrow

Programming

Now we need to write a program that makes this smart tank move. We will be using EV3-G, the graphical programming language designed for the EV3.

Setting up the program

Before we start to write the program, we need to assign port numbers to both of the IR sensors. The program makes use of both of the IR sensors on the robot. The IR sensor that is mounted to the robot's chassis is plugged into port 1, so we will refer to this sensor as IR 1. The sensor mounted to the turret is plugged into port 2, so we will refer to that sensor as IR 2. It is imperative to remember this because the program identifies these sensors using their port numbers. We use the port numbers to tell the robot which sensor to check at any...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Building Smart LEGO MINDSTORMS EV3 Robots
Published in: Apr 2018Publisher: PacktISBN-13: 9781788471565

Author (1)

author image
Kyle Markland

Kyle Markland is a young robotics enthusiast and aspiring engineer who is committed to helping others learn about technology. His first introduction to robotics was when he joined a FIRST LEGO League (FLL) team. In 2015, he started a weekly series of robotics tutorials on his YouTube channel Builderdude35. The videos aim to teach viewers engineering and programming concepts such as PID line following, dog gears, and pneumatics. In recognition of his efforts in robotics education, LEGO MINDSTORMS officially named Kyle a MINDSTORMS Community Partner (MCP) in August 2017.
Read more about Kyle Markland