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 rob ...
Lego Mindstorms Line following algorithmLego Mindstorm.docx
1. 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
2. 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
3. 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
http://www.robotvirtualworlds.com/training/
HOSP 1015 – Managing the Hotel Guest Experience
Team Project
Week 8: Management Organization
DUE: Week 8, Sunday, 11:59 PM Eastern
Value: 25 Points
1. Create a Management Organizational Chart for your hotel.
You must use the SmartArt graphics in Word to create this
chart in your document.
2. For each position, write a bulleted list of the skills required
for the job and the responsibilities of the job. You will need to
do some internet research for this!
3. Assume that after your management staffing was done, but
afterwards your management company determined that you
needed to eliminate one management position.
a. Which position would you eliminate
b. Why that position?
4. c. How would you cover the responsibilities of that manager
Note: When using the Excel spreadsheet for parts of your
assignment, you will need to insert the relevant parts of the
spreadsheet into your Word document by copy/paste function.
FORMAT Requirements (for ALL Sections of the Team Project)
Your paper must meet the following requirements. These are
designed to allow you to submit a professional quality paper.
1. Each paper must have a title page (sample below).
2. Margins must be 1.5 inches on the top and bottom and 1 inch
on each side.
3. Each page must be numbered at the bottom of the page,
centered, in the footer section of the page (Use Word Footer
functionality). The Title Page is not numbered.
4. Paper must be double spaced, with each paragraph beginning
indented.
5. There must be no spelling and no grammatical errors.
6. The tone of the paper must be professional.
7. Each paper must be submitted through Turnitin using the
Turnitin link in the course as instructed by your professor.
8. When using the Excel spreadsheet for parts of your
assignment, you will need to insert the relevant parts of the
spreadsheet into your Word document by copy/paste function.
Essential Elements:
Each section of your paper must be logically organized, based
on the assigned items. It should be easy to read, and move
sequentially through the content you are presenting. The “why”
of your decisions is as important as the “what”. You must be
able to describe and defend the reason/thought process you used
to arrive at your decision.
There is not necessarily a “right answer” to many of these
points. Your performance on the paper will be based not so
much on what you chose, but WHY you chose it. Was your
choice logical and based on the facts available? Was your
choice based on creating a competitive advantage?
5. For example, if you are presenting the location of your hotel.
Why did you locate your hotel there? What are the advantages
to this location and what will you do to maximize these? Are
there any disadvantages and if so, what could you do to
minimize them. It is important that you use any information
that has been presented in the class to date, along with your
knowledge.
Under no circumstances are you to use the term “as stated
before” or “as stated above”, and then repeat what you said
earlier. This is both annoying an unprofessional.
Use professional terms, not slang. Assume you are writing this
note to your investors or to your boss.
Title Page Example:
Johnson and Wales University
Title of Paper
Subtitle of Paper (if any)
Team Member 1 name, Team Member 2 name, etc.
Submitted in partial fulfillment of:
Course Number, Course Name
Professor’s Name