beanz Magazine

Introduction to Lego EV3

Vreni Arbes and Eugen Gebhardt on Flickr

With an EV3 robotics set, you can build all kinds of robots!

What Does Robot Mean?

Most of us know what a robot is, but many people do not know what the word means. It comes from the Czech word “robota”, meaning forced labor! Therefore, a robot is a machine that we can build that will do labor, or work, for us.

Building a robot single-handedly, completely from scratch, requires learning mechanics, electronics, and programming.

Luckily, Lego has given us a great place to start by creating a robotics kit called EV3. With a Lego EV3 set, we can build robots of all sorts that can do all kinds of work: lifting, throwing, flapping, rolling, and much more.

What’s in the Box?

It depends on which edition you buy. In the Home Edition, you’ll find approximately 600 building elements. Many of these are Lego pieces that you can find in a Lego technic set. They include axles, gears, beams, and connectors to name a few.

Additionally, there is an EV3 Brick (the programmable “brains” of the set), two large motors, one medium motor, one touch sensor, one color sensor, one infrared sensor and an infrared remote. Lego also offers another edition called the Education Set.

The Education Set has fewer building elements, but there is an additional touch sensor and ultrasonic sensor, as well as a gyro sensor. The Education Edition does not include an infrared sensor or remote. It is a good choice for those who are interested in doing science experiments and logging data, as the sensors and software are designed for such projects.

Get Things Moving

A good way to set a robot in motion is to give it a motor, and then program the motor to rotate. So, before building a robot, let’s start by getting the motor turning. To do this, you’ll need EV3’s programming environment, LabView, which can be downloaded for free.

Once LabView is installed, connect the brick block to the computer via the included USB cable, and a large motor piece to the brick via one connector cable. Open the LabView programming software and find the large motor block in the green palette.

Connect it to the play block. The large motor block gives several programming options. We can program it for a given number of seconds, a given number of rotations, or a given number of degrees. We can also choose the rotation speed.

Next, download the program to the brick, and the program will appear on the brick’s screen. Select it to see the motor rotate.

Next Steps

Once we have a rotating motor, all types of possibilities arise. Attach wheels to make vehicles, rods to make swinging pendulums, and other Lego elements to design robots of endless variety.
With a bit of guidance from The Lego Mindstorms EV3 Idea Book, using 19 additional Lego pieces, we converted the motion of the rotating motor into that of flapping wings. Adding a second large motor lets our bird flap and roll at the same time.

Extendibility

One fun way to stand out among EV3 users is to turn an Android phone or tablet into a remote control using MIT App Inventor. For those looking to explore electronics a bit deeper, EV3 and Arduino can be used together, allowing access to all Arduino-compatible sensors. And for folks that program using Scratch and prefer not to learn a second drag-and-drop programming language, Scratchx.org has an EV3 extension.

Also In The August 2017 Issue

A substitution cipher is an easy way to begin learning about how to use and make secret codes.

Scratch is a fun block-based programming language that's easy to learn once you understand the basics.

The micro:bit is a not too expensive board that lets you easily build projects to learn about computing.

The humble sewing machine can be a great first step to fun maker projects. Here's how to get started!

There's lots you can do make your online experiences enjoyable AND safe.

Minecraft is a fun game to play and a way to learn about games and programming. But first you have to learn the basics.

Have you ever put books in alphabetical order? What do you think the best method of alphabetizing would be?

Some ideas how to engage young women in computing and STEAM based on recent research.

These three dimensional objects are 3D printed and cast images when light shines through them.

How do computers predict what text you want to write next? Here's how to create predictive stories.

Links from the bottom of all the August 2017 articles, collected in one place for you to print, share, or bookmark.

Interesting stories about computer science, software programming, and technology for February 2017.