ev3 programming basics - the ponytail posse · project* x program x lego mindstorms education ev3...

Post on 30-Jul-2020

7 Views

Category:

Documents

3 Downloads

Preview:

Click to see full reader

TRANSCRIPT

EV3 Programming Basics

Norton LamLego League Co-coordinator

Island Lake Elementary

Programming a Parent

• Forward = two wheels• Turn = one wheel• Think in steps• Reusability• Loops• http://www.legoleaguecoaching.org/2010/09/21/programming-a-

parent/

Motor Tips

• Common sense wiring– Forward = Up– Ports B & C for motors

• Rotations vs. Degrees vs. Seconds

Forward

Turn Left

90 Degrees is not 90 Degrees

Square

Loop

Command Blocking

Command Contingency

Loop with Light Sensor

Wait Until…

Wait Until… Stop

MyBlocks

Comment

Programming Tips• Common sense wiring

– Forward = Up– Ports B & C for motors– Touch sensor on port 1– Light sensor on port 3

• Use seconds only as a contingency• Use landmarks: lines, walls, mission models• View• Calibrate light sensor

– http://www.nxtprograms.com/line_follower/steps.html - Calibrate 3

• Use Wait Until methodology for smooth transitions

Programming Tips cont’d

• Watch the power of the motors• Watch battery power• Comment, comment, comment• MyBlocks• For more tips: http://www.legoleaguecoaching.

org/

• Watch out for lockups

top related