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

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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