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/
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..
|