Which is set to color sensor mode to make the robot turn

Assignment Help Computer Engineering
Reference no: EM131321533

Assignment

Lego Mindstorms Line following algorithm

Lego Mindstorms have EV3 robots which can be modified to do assignments, one time or over and over. We utilize the software Lego Mindstorms which has in-fabricate alternatives to browse to help us in programming the robot. The line following program is one of the most common programs used on the industrial robots. This is exceptionally valuable when relegating an errand to the robot be it to get or drop a thing from one indicate other, or to watch the range with a camera appended on the highest point of the robot.

Explanation of line following algorithm:

There are several ways through which we can make the robot to follow a line; here I would prefer using the robot's light sensor to follow the black line. In order to create a program for the robot to follow a black line, first thing we need to be clear is that, the robot doesn't have to follow only the black line, it has to follow the border of the line. Which means, the robot follows 50% of black line and 50% of white background; this approach is known as left-hand approach. In the next step, we need to calibrate the robot's sensors; we as humans know what is black and what is white, but for the robot we need to feed the data. In order to do this, we use touch sensor and light/color sensor to measure the amount of reflected light from the surface, then we use the touch sensor to record the reading of the reflection of light, first we place the light sensor on the black surface, press the touch sensor and record the reading and then we place it on the white surface and press the touch sensor and record the reading. Now we have the readings for both black and white colors. We need to keep in mind that light condition must be stable at all times for the robot to perform the task.

Now to program the robot, we use switch block which is set to color sensor mode to make the robot turn each side following the line in the loop. We can use motor blocks or move tank block to move our robot. Here, we use Motor blocks, so as the first step, select a loop block and then add switch block and place it inside the loop block. Then we add Sensor block in the loop which has color sensor to use measure color mode to measure the color and reflection. We configure the motor movement as 20% to avoid the robot deviating from the line.

We place the robot on the black line with the sensor half on the line and half on the surface, then run the code. The trick is, we don't use the tank as the movement here, and we use the separate tires which allow the better movement of the robot. The robot senses the color differentiation and follows the line, wobbling while it does it, goes around ∞ times as we set the loop to infinite. We can also give our loop a time frame so that the robot patrols the area for a particular time.

Why does the robot wobble?

The robot tries to follow the border of the line, when it doesn't sense the border, it moves to the other side. Most of the robots have only one light sensor laced on the far left/right end of the robot, the robot uses this sensor and starts moving forward, when it doesn't sense any line, it moves from left to right, and vice versa. The robot keeps wobbling left and right on the surface in order to follow the line which wastes battery and time. One approach is that we can use two sensors both on each side of the robot to make it follow the line but it will still wobble and might not move fast. There is one advanced approach to make the robot follow the line and move with very less wavering and move fast, this can be created using the PID (Proportional Integral Derivative) control for the robot.

References

Robot Virtual Worlds. Curriculums and training. Retrieved on Oct 27th 2016 from https://www.robotvirtualworlds.com/training/

Reference no: EM131321533

Questions Cloud

Projectile travel horizontally : A 1.5-kg projectile is fired from level ground. The vertical component of the initial velocity is 65 m/s and the horizontal component is 29 m/s. Ignore air resistance and the curvature of the earth in this problem. How far in meters does the proje..
Why third parties have never been successful at the level : Write a three to four (3-4) page paper on the relationship between political parties and the electoral process in which you:Identify three to four (3-4) ideological differences between Americas two (2) major political parties.Analyzekey reasons why t..
Does the iso keep a global list of evaluated products : Every country participating in the computer products security evaluation has a list of evaluated products. Find out how to find this list. Does the ISO keep a global list of evaluated products?
Every breakeven point for the overall option strategy : Identify every breakeven point for the overall option strategy. A ratio call write (100 shares of stock purchased at $24, 2 short calls with strike = 35.00 and premium = 0.25 each). Each call contract covers 100 shares.
Which is set to color sensor mode to make the robot turn : Now to program the robot, we use switch block which is set to color sensor mode to make the robot turn each side following the line in the loop. We can use motor blocks or move tank block to move our robot.
Value of remaining equity after buyback : Global Works Inc.(GWI) is an all equity firm, currently worth $ 100 million. Costof equity capital is 20%. The CFO has pitched an exciting idea to the board. She astutelypoints out that GWI can borrow at a much lower rate than its cost of equity capi..
Find the potential energy with respect : A rock of 130 kg is found at the top of a mountain that is 1140-m high. Find the potential energy with respect to the bottom of the mountain (g = 9.8 m/s2).
Does the evaluation help a product in the marketplace : If you have a computer product, how do you get it evaluated? Does the evaluation help a product in the marketplace? Why or why not?
What amount should be included for net working capital : Lottie's Boutique needs to maintain 12 percent of its sales in net working capital. Lottie's is considering a 3-year project which will increase sales from their current level of $110,000 to $130,000 the first year and $145,000 a year for the followi..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write paper based on your crowdfunding research

Write a 4- to 5-page paper based on your crowdfunding research, select one that you consider to be an innovative technology or an innovative use of an existing technology

  Questiona program that accepts a candy name such as for

questiona program that accepts a candy name such as for example chocolate-covered blueberries price per pound and

  Type of structure-frame structure system

There are different types of frame system which are having combination beams(which is called horizontal element) , column (which is called vertical element)  and slab to hold the lateral and gravity, types of frame structure:-

  This week you learned about fundamentals of the electronic

this week you learned about fundamentals of the electronic information system. one way to learn something is to teach

  Demonstrate three multimedia applications

The seminar mentions that many tools already exist for deployment of multimedia applications such like (Camtasia, Blender and Paint.NET). Select such a tool, present its uses, advantages and limitations. Demonstrate three multimedia applications t..

  Difference between clustered and nonclustered indexes

define the meaning of each of the transaction levels supported by SQL Server.

  How many bits should immediate field of i-type instruction

By how many bits should the immediate field of an I-type instruction be reduced to match the length on an R-type instruction for the follow modifications to the MIPS architecture?

  Define the edge connectivity of a tree is 1

The edge connectivity of an undirected graph is the minimum number k of edges that must be removed to disconnect the graph. For instance, the edge connectivity of a tree is 1, and the edge connectivity of a cyclic chain of vertices is 2.

  What are the ethical implications of it system use locate

what are the ethical implications of it system use? locate an ethical situation you are familiar with or that you have

  Questionthe averaging algorithm proposed by lamport et al

questionthe averaging algorithm proposed by lamport et al. works for a totally connected network of clocks. will such

  Write the same program using a for-loop

Write the same program using a for-loop - write the same program that will display only the even numbers and odd numbers from 1 to N.

  Give important aspect of an operating system

What is the the most critical or useful function provided by an operating system.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd