Lego n n n Lego Technics Lego Dacta

  • Slides: 30
Download presentation
Lego n n n Lego Technics Lego Dacta Control Lab Lego Dacta Robo Lab

Lego n n n Lego Technics Lego Dacta Control Lab Lego Dacta Robo Lab Lego Mindstorms Lego Droids

Walking Dinosaur

Walking Dinosaur

Lego DACTA Control Lab In addition to the familiar building sets seen on toy

Lego DACTA Control Lab In addition to the familiar building sets seen on toy store shelves, the LEGO company produces building sets for a range of machines for use in science and technology education. n At the low end of the product line are the LEGO Technic sets n At the high end is the LEGO DACTA Control Lab that allows construction of computer (PC) controlled machines. n

Lego DACTA Control Lab n Examples are: – a greenhouse that automatically regulates its

Lego DACTA Control Lab n Examples are: – a greenhouse that automatically regulates its temperature using a ventilation system, – a robotic arm, a vending machine, – a PC plotter, and – an automobile on a dynamometer (see Fig. 1).

Fig. 1. LEGO DACTA controller and automated model.

Fig. 1. LEGO DACTA controller and automated model.

Lego DACTA Control Lab n Sophisticated simulations of real-world systems have also been created

Lego DACTA Control Lab n Sophisticated simulations of real-world systems have also been created such as an auto manufacturing line (http: //www. gang. umass. edu/user/sh en/lego/index. html) and various kinds of robots (http: //www. pycckuu. umd. edu/robots /index. html).

Fischertechnik n The Fischertechnik corporation produces a product similar to the LEGOs that have

Fischertechnik n The Fischertechnik corporation produces a product similar to the LEGOs that have also been used in teaching environments (http: //www. cs. utah. edu/~cs 451/).

The LEGO DACTA Control Lab n The Control Lab set includes: – the usual

The LEGO DACTA Control Lab n The Control Lab set includes: – the usual LEGO blocks, – pieces from the Technic sets for building machines (gears, pneumatics, pulleys, etc. ) – computer controllable devices. n These devices include: – lamps, – motors, – sound elements, – touch sensors, – temperature sensors, – light sensors and – angle sensors.

The LEGO DACTA Control Lab The devices are connected to a controller, which in

The LEGO DACTA Control Lab The devices are connected to a controller, which in turn interfaces with a serial port on a personal computer to permit software control of the devices. n The controller is capable of controlling eight input devices and eight output devices. n Communication between the PC and the controller is via a protocol developed by LEGO. n Figure 1 (shown previously) illustrates a LEGO model connected to the controller. n

n Software is used to coordinate the actions of the LEGO devices (motors, sensors,

n Software is used to coordinate the actions of the LEGO devices (motors, sensors, etc. ) in sophisticated models, such as the automobile on a dynamometer, shown in Figure 1. n LEGO ships the Control Lab with a unique version of the Logo programming language for writing the control software (Martin, 1993). n Although Logo is satisfactory for illustrating programming concepts, more sophisticated users may wish to use other programming languages for control purposes, as for instance Visual C++ or Visual Basic.

Davis Creek Elementary Intelligent House Projects 1998 -99 n Davis Creek Elementary's fifth grade

Davis Creek Elementary Intelligent House Projects 1998 -99 n Davis Creek Elementary's fifth grade class has been working on the LEGO Dacta Control Lab Intelligent House Project. n The students use LEGO Dacta Control Lab software to build and program the fan, burgler alarm, garage door, satellite dish, keylock, and photo gate door entry. n The students worked in pairs doing one of the set projects and ended by doing a design of their own with programming. n The pictures below are a sampling of the Intelligent House Projects the eighteen fifth graders did the month of October. n Under the pictures are examples of some of the programs written by fifth grade students.

Home Automation

Home Automation

Doggy Burglar Alarm to doggy waituntil [and (light 5 > 48) (light 5 <

Doggy Burglar Alarm to doggy waituntil [and (light 5 > 48) (light 5 < 52)] talkto "lampa on tone 80 5 tone 90 4 talkto "motorb setright onfor 9 talkto "motorb setleft onfor 9 talkto "lampa off end

Different Design 9 -25 -98 We used the sensor to make noise. When you

Different Design 9 -25 -98 We used the sensor to make noise. When you slide different colors and textures past the sensor the program made different noises. to lc waituntil [light 5 < 90] tone 50 30 waituntil [light 5 < 60] tone 80 30 end to noise repeat 100 [make "n light 5 tone : n 1] end to garage waituntil [light 5 < 90] tone 50 3 tto "motorb setleft onfor 10 wait 70 tone 80 1 wait 1 tone 50 1 waituntil [light 5 < 90] tto "motorb setright onfor 10 tone 80 10 end

Haunted House Ride to pop tto "bones up setpower 4 onfor 3. 2 wait

Haunted House Ride to pop tto "bones up setpower 4 onfor 3. 2 wait 6 tto "bones down onfor 3 end to 2 pop waituntil [touch 4] pop wait 6 pop end to move launch [waituntil [light 5 > 43 ] tto "lamph flash 10 2 ] tto "motore setright onfor 40 2 pop wait 3 tto "motore setleft onfor 40 flash 0 0 stopall end to lighton forever [ifelse light 5 > 42 [tto "lamph on] [tto "lamph off]] end

Easter Bunny

Easter Bunny

What did we learn? n Robotics can bring new excitement to computer classes and

What did we learn? n Robotics can bring new excitement to computer classes and design classes. n Students love robots n It is difficult to build curriculum without kits n Several kits are available, from very simple (preschool) to very complex (University graduate education level).

What did we learn? Robix allows to build various robots. n It allows to

What did we learn? Robix allows to build various robots. n It allows to have deeper curriculum than Lego but less ready material is available n It allows access to the “guts” of software and electronics n Having one kit for a school is enough, you can purchase additional servos for smaller price on WWW and build the rest in class. n

What Did We Learn? There is a variety of methods how robotics can be

What Did We Learn? There is a variety of methods how robotics can be taught in high school n The choice should depend on: n – – teacher’s preferences student interest and quality cost does the school have a mechanical/wood/electrical workshop? – Normal classes/special projects

Robotic Arm by Alex (11) and John Michael (11) n This project will take

Robotic Arm by Alex (11) and John Michael (11) n This project will take the bricks, sort them out by color using a light sensor, then it will use the robotic arm to grab the bricks and put them in the right bins according to their color. n The bricks must be loaded horizontally into the chute or else they will not be able to move. – It might not determine the colors correctly because of an above average intensity light source disturbing the light sensor which scans the blocks. – Do not worry if one of the blocks stops out of view of the light sensor, the backup routine will relocate it right below the sensor.

Input/Output Interface

Input/Output Interface

Dash. Board

Dash. Board

Dash. Board n Right after you load this project, you will see the Input/Output

Dash. Board n Right after you load this project, you will see the Input/Output Interface as shown above. – Click on the Pages menu, then click on Program. You will see lots of buttons and a picture as shown above. – If your robotic arm is not positioned directly above the pickup trough, position it there by clicking on either the Right adjustment or Left adjustment buttons (Right adjustment moves the arm counter-clockwise and Left adjustment moves it clockwise). – If the arm is holding something or is not fully open, press the red Drop button. After you're done positioning it, press the Calibrate button. n To start the project, either click the Start button or depress the external touch sensor. n If you see that it's not functioning properly, click the Emergency Stop button.

Procedures for project – ; start of assembly line routines – to setupfornextuse ;

Procedures for project – ; start of assembly line routines – to setupfornextuse ; after it's done with all the bricks, set it up for next use manright waituntil [angle 5 > -1] movoff end – to manleft ; moves the robotic arm clockwise tto "motora setleft setpower 5 on end – to movoff ; stops the movement of the robotic arm tto "motora off end

Procedures for project – to manright ; moves the robotic arm counter-clockwise tto "motora

Procedures for project – to manright ; moves the robotic arm counter-clockwise tto "motora setright setpower 5 on end – to pickup ; makes the robotic arm grab tto "motorb setright setpower 6 onfor 6 end – to letgo ; makes the robotic arm release tto "motorb setleft setpower 6 onfor 6 end

Procedures for project – to determine ; uses the light sensor to scan what's

Procedures for project – to determine ; uses the light sensor to scan what's under it if and light 7 > 7 light 7 < 13 [make "ptype 2] ; 2 = blue if and light 7 > 14 light 7 < 24 [make "ptype 1] ; 1 = yellow if and light 7 > -1 light 7 < 2 [make "ptype 0] ; 0 = other or nothing end – to bluebin ; makes arm go to the blue bin and release brick manleft waituntil [angle 5 < -50] movoff letgo end

Procedures for project – to btas ; makes arm go to assembly line and

Procedures for project – to btas ; makes arm go to assembly line and pick up brick manright waituntil [angle 5 > -1] movoff pickup end – to yelobin ; makes arm go to wellow bin and release brick manleft waituntil [angle 5 < -61] movoff letgo end

Procedures for project – to preset ; moves the very first block below the

Procedures for project – to preset ; moves the very first block below the light sensor tto "motorc setright onfor 60 end – to advance ; moves the following blocks below the light sensor tto "motorc setright onfor 40 end – to backup ; emergency routine if block isn't in view of light sensor; tto "motorc setleft onfor 15 ; back up for 1. 5 sec. determine ; do a rescan if it's still not good if : ptype = 0 [tto "motorc setright onfor 15] ; forward for 1. 5 sec. ; determine ; then rescan; end

Procedures for project – to initautomaticsequence ; the main routine resetrotation 5 preset determine

Procedures for project – to initautomaticsequence ; the main routine resetrotation 5 preset determine if : ptype = 0 [backup] advance if : ptype = 1 [btas yelobin] if : ptype = 2 [btas bluebin] setupfornextuse end

Your tasks – – Be sure that you obtain the key to the laboratory

Your tasks – – Be sure that you obtain the key to the laboratory Go to the laboratory and be sure that you know what is where Specifically, know what are the tools and where are they located. Learn what is in the library in Industrial Robotics Lab and that you know how to borrow and return books from Anas Al-Rabadi – In Intelligent Robotics Lab, be sure that you know where are the books describing your project: Lynxmotion, Parallax, Stamp Documentation, PIC documentation. n If you are in trouble, ask Mike Levy, Mikhail Pivtoraiko or Bryce Tucker, or any students that are there to help you. – Learn also, on which computer there is the software that you plan to use in your project. Do not remove any software. Notify Bryce about the software that you installed – Learn what are the materials to be used in your project: aluminum, dural, balsa, playwood, plastics (different kinds), rubber, screws, Home Depot components, old kits and Goodwill items to be used. – If you are not sure if you can re-use some item, ask Perkowski n Never remove motors or sensors or any components from other student robots even if you think that they are no longer working on them