Introduction to Robotics Using the Mindstorm EV3 ... - Google Sites

0 downloads 85 Views 957KB Size Report
fails. The robot will be put into a special firmware update mode, but the update won't start. ○ Follow the instruction
Introduction to Robotics Using the Mindstorm EV3 Robot Software

Software options ●





LEGO EV3 software (free or buy) –

Based on LabView (proprietary)



graphical

LeJOS (free) –

Java language for on-brick & remote programming



Text based language

RobotC (buy) –

C style language (proprietary)

Mindstorm Software

Connecting the EV3 ●

USB



Upload programs



Bluetooth



Real-time monitoring



WiFi (dongle needed)



Sensors



programs

Firmware ●





Sits in between the hardware and your programs. Upgrades provide new features or fixes bugs Latest 1.09E





Ensure battery full before you update It takes about 5 minutes to complete the update

Firmware ●



Sometimes the updater fails. The robot will be put into a special firmware update mode, but the update won’t start. Follow the instructions on the screen and it ‘should’ proceed normally.

Real-time monitoring (while connected)

Projects & Programs

Downloading to EV3 ●

Download –



Download & run –



Upload to EV3 Upload to EV3 and start immediately

Run selected blocks –

Upload only selected blocks and run immediately.



Good for debugging

Action Blocks ●

M-motor



Display



L-motor



Sound



Steering (both motors)



LEDs on front



Tank (both motors)

Flow Blocks ●

Start thread



Switch



Wait



Interrupt loop



Loop

Sensor blocks ●

Buttons on front



Timer



Colour/Light



Touch (button)



Gyro



Ultrasonic



Infrared



Energy meter



Rotation (motor)



NXT sound



Temperature



Use NXT sensors with the EV3

Data Blocks ●

Variable



Round



Constant



Compare



Array



Range



Logic (true or false)



Text



Math block



Random

Advanced Blocks ●

File access



Raw sensor value



Data logging



Unregulated motor



Messaging



Invert motor



Bluetooth



Stop



Keep awake



comment

My Blocks ●

Create your own blocks –

Calibration block



Small functions that can be added to programs

Motor Block ●

Rotation type – –

On/off On for: ●

Time, degrees, rotations



Motor ID



Power level



Time/degrees/rotations



What to do at end –

Stop or coast

Loop Block ●

● ●

Whatever blocks are inside, will be run. Give the loop a name The blocks inside will run UNTIL: –

Sensor, timer, count, logic, or



For infinity (default)

Switch Block ●



Make a decision –

Is it black, or white?



Is it closer or further?

Whichever statement is true: –

Do the blocks on that line



Then continue after the switch

Sensor Blocks ●



Configuration options –

Distance units



Colour or light levels

Output is a ‘wire’ that will feed into another block.

Wires Connecting Blocks ●

Using wires to display the distance measured by the Ultrasonic Sensor