Preview

Nxt-G Programming Re-Up

Powerful Essays
Open Document
Open Document
3272 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Nxt-G Programming Re-Up
NXT-G Programming
Workshop for FLL Coaches

Developed by Tony Ayad
Updated by LeRoy Nelson
California - Los Angeles Region FLL
September 2012

Outline
• Purpose:
• This workshop is intended for FIRST® LEGO® League (FLL®) coaches who are interested in learning about LEGO® MINDSTORMS® NXT and the NXT-G programming language.
• Basic Programming Agenda (Introductory Workshop)
• NXT Controller (aka: the “brick”)
• Blocks
• The NXT-G Interface
• The MOVE, MOTOR & RESET Blocks
• Turns - there is more than one way to turn
• Geometry and Math for the Robot
• Resources
• Advanced Programming (for Advanced Workshop)
• Light Sensors
• Program Control (WAIT, LOOP, SWITCH Blocks)
• Math (VARIABLES, MATH and COMPARE Blocks)
• My Block
• Touch Sensors

08/31/12

Basic Programming - Tony Ayad

2

NXT Controller – The robot’s “brain” The USB port is used to connect to
The PC so you can download the aka: the “Brick”
Programs into NXT Controller
3 Output ports used for the motors

A

B

C USB
Name

Icons representing menu options
Use this button to turn on the NXT and select the shown option
SELECT menu option (right)

SELECT menu option (left)

Menu Level Back (off)

4 sensor Input ports used to attach sensors

08/31/12

Light Sensor

1

2

3

4

Basic Programming - Tony Ayad

Touch Sensor

3

FLL Robot Configuration
• For FLL Competition you are allowed:
• 1 NXT Brick [or the discontinued RCX yellow Brick]
• Up to 3 motors; two for moving; the third is for the arm
• Any number of LEGO-manufactured MINDSTORMS type sensors: touch, light, color, rotation or ultrasonic
[However, you only have 4 sensor ports on the NXT!]
• You can use as many non-electric LEGO pieces as you need
• You may NOT use ANYTHING that is not made by LEGO
• Instructing the robot to move and turn is accomplished by the
NXT Motors, which rotate in a predetermined direction.
• All examples used in this document assume the robot

You May Also Find These Documents Helpful

  • Powerful Essays

    JGT Task 3

    • 1072 Words
    • 4 Pages

    The figures for fixed and variable costs for each section were derived from company records. I has been decided that at 1,000 units the variable costs could be determined and that it would also be a good point to set our volume at for analysis. Here is a breakdown of the costs for each option:…

    • 1072 Words
    • 4 Pages
    Powerful Essays
  • Better Essays

    JGT Task 1

    • 1830 Words
    • 6 Pages

    The recommendation is that management reorganizes the production process down to five stations, with appropriate tasks in each station to produce the required work boots.…

    • 1830 Words
    • 6 Pages
    Better Essays
  • Good Essays

    Egt1 Task 1

    • 694 Words
    • 3 Pages

    The total revenue, TR, is the overall amount of all sources of a business’s income. It consists of total sales or profit, over a period of time. The TR can be calculated by taking the price and multiplying it by the quantity. For example, if a business decides to retail another product and the total revenue does increase, thus the marginal revenue would be greater than zero. However, if the business decides to sell another product and the marginal revenue is zero, then there would not be any changes to the total revenue.…

    • 694 Words
    • 3 Pages
    Good Essays
  • Good Essays

    After looking over Matthew’s Implementation plan I can see that it is well thought out and comprehensive. Every area of the assignment was followed. I think that the portion of the paper that stands out is the great deal of thought and precision that is in the project timeline. The timeline is very in depth and even allows for a small window of extra time, if needed. Areas of improvement would be more detail on the scope items. Had questions about who would create test/automation scripts, for example. Project budgets are typically broken down by SDLC phase in my experience as well as by line item. The only thing that I can see that needs improvement would be spelling and grammar. If this were actually being presented to a company’s CEO, it would not look very good with punctuation and grammar errors in it.…

    • 745 Words
    • 3 Pages
    Good Essays
  • Good Essays

    FXT2 Task 2 Follow Up

    • 799 Words
    • 3 Pages

    2. Outline the other attacks mentioned in the scenario that were not noticed by the organization.…

    • 799 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Egt1 Task 1

    • 406 Words
    • 2 Pages

    In this paper I am going to define a few common economic terms and explain their relationships to other economic terms. I will also explain how profit maximizing firms determine their optimal level of output and how a profit maximizing firm will react to different levels of marginal revenue. Marginal revenue is the extra revenue that will be made by a firm when the firm sells one additional unit of a product. Total revenue is simply the sum of a firm 's sales of a specified quantity of a particular product. So, while marginal revenue is telling how much extra money selling each additional product will make a firm, total revenue is telling how much the firm will make by selling a given quantity. Marginal cost is the what it will cost a firm to produce one more unit of product. Total cost is the total economic cost a firm incurs for producing a given quantity of a certain product. Profit is simply the a firm 's total revenue after the firm pays for its operating costs, and profit maximization is the the course of action that a firm takes to determine how much they will produce and what they will charge per unit of production in order to provide the firm with the greatest possible profit in either the long run or the short run time frame of a firm. A profit-maximizing firm determines its optimal level of out put by finding the point where marginal cost is equal to marginal revenue. Meaning that, when the cost of producing an additional, or extra, unit of product is equal to the amount of extra revenue. This point is the peak of the firm 's profit maximizing potential. An additional unit of product after this point will only result in costing the firm money, rendering marginal revenue as zero or negative. If a profit maximizing firm 's marginal revenue is greater than marginal cost, the firm will continue adding another unit of product to production as long as marginal revenue is greater than or equal to marginal cost. If a profit-maximizing firm 's…

    • 406 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    It240 Appendix F

    • 1093 Words
    • 5 Pages

    |Pointing devices |An input device, such as a mouse, joystick, or trackball, with which one can move|…

    • 1093 Words
    • 5 Pages
    Good Essays
  • Satisfactory Essays

    FXT2 Task 1

    • 1206 Words
    • 7 Pages

    -- Document all hardware associated with ECP/DRP and its readiness as well keep ECP/DRP up to date.…

    • 1206 Words
    • 7 Pages
    Satisfactory Essays
  • Good Essays

    EGT1 Task4

    • 928 Words
    • 4 Pages

    The incentives and opportunities of trading with Korea are substantial. Korean businesses have a tendency in the course of direct contacts to be more complete. Something as simple as Face to face contact or shaking hands with the customers during the negotiation processes is a type of marketing strategy that our selected company uses instead of contracting through email or telephone communications. Contacting potential customers in the Asian market by email or telephone won’t help a company to increase the market share in an Asian market.…

    • 928 Words
    • 4 Pages
    Good Essays
  • Better Essays

    GKE 1 Task 1

    • 1001 Words
    • 5 Pages

    The Nile River was a great contributing factor in the development of early Egypt. It is the country’s longest running river, and runs right through Egypt.…

    • 1001 Words
    • 5 Pages
    Better Essays
  • Powerful Essays

    GKE1 Task 1

    • 1632 Words
    • 5 Pages

    Orlin, (2007, p. 40) inundation season was comprised of intense agricultural work. It lasted three…

    • 1632 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    GKE1 Task 3

    • 717 Words
    • 2 Pages

    After Columbus mistakenly discovered the Americas in 1492, European countries were soon setting out to establish themselves in this new world. Spain was first to establish itself in the new world, using their powerful military and their navy. The new colonies were completely dictated by the king of Spain, such one of his policies allowing colonists to use the native tribes for forced labor. France was the second major power to establish itself. Their main focus was fur trapping and fur trading. The French quickly learned to work with the Native Americans. The few French settlers, who did come to America, were focused on fur trapping and trading. Because of this, most French settlements were either military forts or trading posts. England was the last major European country to come to the Americas. Its first successful colony was Jamestown in 1607. England practiced granting charters to companies or individual wealthy proprietors to establish its new colonies. This caused the English colonies to vary greatly. The colonies in the Chesapeake Bay area focused more material profit and individualism, while colonies in the Massachusetts Bay are focused on religion and communalism.…

    • 717 Words
    • 2 Pages
    Good Essays
  • Better Essays

    Wgu Nvt2 Task3

    • 1605 Words
    • 7 Pages

    Halstead, A.J & R, Gayle.(2009). Interprofessional Issues: Collaboration and Collegiality. In A.J. Halstead & R. Gayle. Issues and Trends in Nursing. Essential Knowledge for Today and Tomorrow (pp.119-133).Sudbury, MA: Jones and Bartlett Publishers…

    • 1605 Words
    • 7 Pages
    Better Essays
  • Good Essays

    GKE Task 1

    • 1146 Words
    • 5 Pages

    settle and grow along the routes. The impact this had on the immigrants wasn’t always…

    • 1146 Words
    • 5 Pages
    Good Essays
  • Good Essays

    GKE1 task 3

    • 808 Words
    • 3 Pages

    Causes of the Russian Revolution 2 - What were the causes of the Russian Revolution? (n.d.).…

    • 808 Words
    • 3 Pages
    Good Essays

Related Topics