LEGO MINDSTORMS EV3 training Ramon Rantsus Heilo Altin
Our partners, sponsors, companies, institutions that care…
LEGO LEGO – “leg godt” – play well Created 1932 – Ole Kirk Christiansen Location: Billund, Denmark 6-th toy producing company in the worl In Estonia 132 schools have robot sets Work is based mostly extracurricular activities Competitions, projects FIRST® LEGO® League Support: NPO Robootika, University of Tartu Mida tähendab LEGO?
EV3 INTRODUCTION
BATTERY Capacity 2050 mAh Charge time – less than four hours Can use AA batteries
SENSORS
MOTOR Built in reducer which enables to reduce speed and increase torque Accuracy (1°)
SCREEN EV3 Name USB connection Wireless connection Battery level 1 – Cancel button 2 – OK button 3 – Navigate Sinihammas aktiveeritud aga pole nähtav ega ühendatud; Aktiveeritud ja nähtav aga pole ühendatud; Aktiveeritud ja ühendatud teise seadmega; Aktiveeritud, ühendatud ja nähtav; WiFi aktiveeritud aga pole ühendatud; Aktiveeritud ja ühendatud
Indicator lights Punane põleb – Käivitumine, uuendamine, sulgemine Punane vilgub – Hõivatud Oranž – Häire, valmisolek Oranž vilgub – Häire, töös Roheline põleb – valmisolek Roheline vilgub – programm töötab
EV3 ports Anduripordid, mootoripordid, kõlar, USB ja SD kaart
Battery Don’t use different batteries Remove batteries if EV3 is not in use for long time Don’t use damaged batteries Don’t charge batteries! Economical use of battery Reduce volume Use sleep mode Switch off bluetooth and WiFi if not needed Don’t hold motors stopped when not needed
PROGRAMMING
PROGRAMMING
PROGRAMMING
MISSION 1 Program robot using controller: 1. Drive straight 5 sec 3. Drive straight until obstacle
MISSION 2 Program robot drive square
Sound pressure decibel SOUND SENSOR Measure sound pressure(volume) decibel Range 0-100 Sound pressure decibel Consequence 160 Physical injuries 90 Loud sound 80 Scream 70 Speech 60 Office/ talking in distance 50 Quiet living room
MISSION 3 Program robot to turn when hands are clapped
MISSION 4 Program robot to turn when sound level changes. Choose NXT Sound Sensor – Change – dB Sound level is yours to select
Touch sensor Works as simple switch Three positions LEGO cross is on the front of the sensor
MISSION 5 Make a program: 1. Drive until obstacle 2. Drive back and turn 3. Drive towards starting point until there is sound
LIGHT SENSOR Receiving diode Lighting diode Includes LED (can be switched off) Enables to measure reflected or ambient light Can measure 7 different colors Receiving diode Lighting diode
MISSION 6 Program robot to drive between to lines: when first line is reached, robot goes back. When rear line is reached, robot goes forward again.
ULTRASONIC SENSOR Range 3-250 cm Includes microprocessor Bigger the object, better it works Accuracy 1 cm Can detect other ultrasonic sensors SIGNAL OBJECT SIGNAL Kaugus kuni 2,5m
MISSION 7 Program robot to stop 30 cm from obstacle
GYRO SENSOR Can detect robot rotation speed and angle Enables to make precise turns and balance robots Angle accuracy ± 3º Max rotation speed 440 º/s Kaugus kuni 2,5m
MISSION 8 Make the robot turn 90° with gyro sensor
MISSION 9 Make the robot to follow line
MISSION 10 Make the robot drive by sound sensor: If sound level is below or equal 50 dB – robot drive straight If sound level is above 50 dB – robot turns right
MISSION 11 – Taxi drive Program robot to drive through model city Driving can be programmed using rotation sensors or outer sensors learned before
MISSION 12 – parallel programming Car burgler alarm: robot makes sound when Robot is touched Robot is approached too close There is loud sound Robot is moved - gyro Every mission is in different branch
MISSION 13 - screen Display smiley face on robot screen! For that we use screen block
MISSION 14 Make a robot that listens surrounding sound. If it is quiet, robot makes happy face. If it is loud, robot makes sad face.
MISSION 14 (Hint) First you may add switch and make it controlled by sound sensor. You can also set the level of sound Next, add blocks what to do if room is quiet Robot makes happy face Robot makes sad face
MISSION 15 Write operation „1+1=2“ to screen Use text block and screen block.
Here is operation 1+1=2 written to screen SOLUTION 15 Here is 1+1 Here is “1+1” and =2 Here is operation 1+1=2 written to screen
MISSION 16 Write operation „14875+36987 =„ to screen Make the robot to calculate answer
SOLUTION 16 Here is everything written on screen Here is calculated 14875+36987 Here is 14875+36987 Here is everything written on screen Here is added“14875+36987” and “=“ and right answer
MISSION 17 - Animation Make a cool cartoon using screen images. Cartoon should be at least 20 sec in length Animation must have point and punch line .
MISSION 18 – Compare blocks Logic Make a robot that follows a human being. If person is standing 30 – 40 cm away, robot waits. If person is further, robot drives towards a person If person is closer, robot increases distance
MISSION 19– Random number Make a robot: Drive until obstacle (touch sensor or sonar) Drive back Turn random time to random direction Start from beginning
Collecting data Demonstration – Collecting data from sound sensor
MISSION 20 – Interrupt loop Following a line with obstacle Robot must follow a black line until there is obstacle and then tries to pass it. Two ways to interrupt a loop: Loop condition is set by distance sensor Use loop interrupt
MISSION 21 – LEGO Space Challenge Solve LEGO Space challenge (group work)
APPROACHES Working in couples Some missions require larger groups In most cases, one student builds a robot, another programs it Usually two school lessons in a row (minimum) Robot is tool for solving problems, not an object
APPROACHES Mission must be personal, have meaning Students encounter interest to solve mission Students face real problems. Solving these problems require knowledge from school lessons. Now this knowledge has a meaning for them because there is a real need for it. Process must be documented and conclusions must be made – reflective learning Teacher is just a coach
APPROACHES– rules in classroom Manual from sample course
APPROACHES GENERAL Discovery learning Individual tutoring Problem based learning Competition based learning
WHAT HAVE WE LEARNT? 4 sensors – touch, sound, light and ultrasonic 4 output ports – motors LEGO EV3 programmable brick Connection: USB, WiFi, Bluetooth