The project created in this tutorial
- #btzicj
- 27 Nov 2013
EV3 Color sensor is really powerful tool for solving a wide range of tasks. You can use it to build line followers, sort parts by color and many more. The sensor can differs by 7 colors: black, white, green, yellow, blue, red, brown. Also you can use color sensor for better line alignment on FLL's field and precise movement. You can detect color of a surface, reflected light and ambient light brightness. On this page you can find tutorials on better calibration, programming and some applications (LEGO catapult).
This project is for Robotics Supreme - LEGO Mindstorms EV3 yacht robot. It contains three programs.
The first one follows a line using one color sensor and detects if the robot has been pushed. Then it plays an alarm and stops the program.
The second program makes the robot go in a square, using the gyro sensor wait-change block. This makes it one of the easiest square solutions there is.
The third program makes the robot follow a direction. That is accomplished similarly to the linefollowing, but instead it uses the gyro sensor and always follows a straight line.
This program is developed with Robot Inventor - LEGO MINDSTORMS App Word Blocks and is used to make the robot align to a line with two color sensor. It's a mechanism we've used with EV3, NXT, SPIKE and now Inventor.
This program is developed with Robot Inventor - LEGO MINDSTORMS App Python and is used to make the robot align to a line with two color sensor. It's a mechanism we've used with EV3, NXT and now Inventor
This is the example program using the blocks available at Blocks Package for Advance Calibration of LEGO Mindstorms EV3 Color/Light sensors. The program makes the robot find the minimum and maximum values and to calibrate the current sensor value depending to the min and max.
EV3 PLF-block for LEGO front-wheel steered robots. The block has two relaxation coefficients – one for steering to the left and one for steering to the right. The aim is to make the robot follow a line smoothly when the color sensor is positioned closer to one of the wheels.
The block has the following parameters from left to right:
This MyBlock waits for the color sensor to detect any color and returns the peak angle the gyro detected at that time. This program is meant to work with a coin counting robot named Scrooge McRobot.
Playing Football with robots is extremely fun. It could be part of the classes, it could be part of demonstration days. This is a EV3 LEGO Mindstorms Project including the programs for controlling the WRO Football Striker and the WRO Football Goalkeeper, as well as all of the necessary My blocks.
This is an example program for tug of war with two touch sensors. The game can be played with almost any robot, so we used: https://www.fllcasts.com/materials/265-five-minute-bot, because it is the simplest. You have to attach two touch sensors at ports 1 and 4, preferably with long cables. You can also add a color sensor to port 3, which will detect when to end the game, although this is not required. The game is simple, two human players click the touch sensors as fast as they can. The robot moves in the direction of the one that clicks the fastest and the goal is to bring it to your finish line.
The program teaches about counters and flags. A big part of it is the good names of variables and loops and the addition to plenty of comments, from which students can learn how to form their program.
A robot that can be an ATM or smart lock with color code. The programs pull in and push out the color card and play sounds if the colors are in correct order. When the order is incorrect, you hear an error sound.
The robot takes place in lesson 7 of level 3.0 Security Systems.