SlideShare une entreprise Scribd logo
1  sur  44
Télécharger pour lire hors ligne
Εργαστήριο Lego Mindstorms
1
Nikhil Nanivadekar
@nikhilnanivade
6-7 Αυγούστου 2016
2
Πώς δουλεύει στο EV3
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
}  Επεξεργαστής TI Sitara AM1808
◦  ARM9, 300Mhz
}  Μνήµη 64MB RAM / 16MB Flash
}  Ψηφιακο-αναλογικός µετατροπέας
}  4 Θύρες Κινητήρων
}  4 Θύρες Αισθητήρων
}  Bluetooth / USB
}  MicroSD
3
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
4
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
5
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
6
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Ηχητικά κύµατα
Υψηλής συχνότητας
Τρόποι µέτρησης και παρουσίας
7
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
8
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
9
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
}  Κάρτα Micro SD (> 2GB)
}  Συµβατός προσαρµογέας WIFI
◦  NetGear WNA1100
◦  EDIMAX EW-7811Un
}  Linux (ή εικονική µηχανή Linux)
}  Για περισσότερες λεπτοµέρειες:
Δηµιουργήστε την κάρτα SD
http://sourceforge.net/p/lejos/wiki/Home/
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 1: Εγκαθίσταται λάθος οδηγός προγράµµατος, οπότε χρειάζεται να
το διορθώσετε από τον Διαχειριστή Συσκευών (Device Manager)
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
11
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 2: Στο Διαχειριστή Συσκευών (Device Manager), αναζητήστε τη
συσκευή EV3 RNDIS κάτω από Network Adapters > USB Ethernet/RNDIS
Gadget.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: : http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
12
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 3: Κάντε διπλό-κλικ και επιλέξτε την καρτέλα Drivers.
Επιλέξτε Update driver… για να αλλάξετε οδηγό προγράµµατος.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
13
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 4: Επιλέξτε Browse my computer for driver software.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
14
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 5: Κάντε κλικ στο Let me pick from a list of device drivers
on my computer.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
15
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 6: Αποεπιλέξτε το κουτί Show compatible hardware. Στη
λίστα Manufacturer, επιλέξτε Microsoft Corporation (στα Windows 8,
επιλέξτε Microsoft). Στη λίστα Network Adapter, επιλέξτε Remote NDIS
Compatible Device. Κάντε κλικ στο Next.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
16
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 7: Τα Windows νοµίζουν ότι δεν γνωρίζουµε τι κάνουµε,
αλλά εµείς ξέρουµε, οπότε επιλέξτε Yes.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
17
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
Βήµα 8: Όταν ολοκληρωθεί η εγκατάσταση, κάντε κλικ
στο Close.
Έπαινος στην οµάδα ev3dev για τα στιγµιότυπα εικόνων και το άρθρο: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
18
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
}  Εκκινήστε το Eclipse
}  Επιλέξτε "Preferences"
}  Επιλέξτε leJOS EV3
}  Αλλάξτε το όνοµα του
τούβλου στη διεύθυνση
IP address του τούβλου
σας
◦  (default is 10.0.1.1)
19
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
}  Επιλέξτε "File" > "New" >
"Project…"
}  Επιλέξτε LeJOS EV3 Project
20
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
}  Δηµιουργήστε µια νέα κλάση
("File" > "New" > "Class")
}  Δώστε ένα πακέτο (package)
(π.χ. sample)
}  Δώστε της ένα όνοµα (π.χ.
LCDTest)
21
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
public	class	EV3FirstProgram	{	
				public	static	void	main(String[]	args)	{	
								LCD.clear();	
								LCD.drawString("First	EV3	Program",	0,	5);	
								Button.waitForAnyPress();	
								LCD.clear();	
								LCD.refresh();	
				}	
}	
Πηγή: http://www.slideshare.net/steveonjava/devoxx4kids-lego-workshop?ref=http://steveonjava.com/java-lego-workshop-4-kids/
23
Δηµιουργία της Βάσης του
ανελκυστήρα
24
Δηµιουργία της Βάσης του
ανελκυστήρα
25
Ενίσχυση Βάσης
26
Κατασκευή των πυλώνων
Πλαϊνή όψη
Άνω όψη
27
Κατασκευή Πυλώνων
Επαναλάβετε για την άλλη πλευρά
28
Κατασκευή Πυλώνων
Επαναλάβετε για κάθε πλευρά
29
Κατασκευή Πυλώνων
Επαναλάβετε για κάθε πλευρά
30
Κατασκευή Πυλώνων
Επαναλάβετε για κάθε πλευρά
31
Κατασκευή Άνω Μέρους
32
Ολοκλήρωση κατασκευής
33
Ολοκλήρωση κατασκευής
34
Κατασκευή του ανελκυστήρα
35
Συνδέστε τον ανελκυστήρα µε την
υπόλοιπη κατασκευή
Μικρό νήµα
36
Κατασκευάστε την τροχαλία
37
Συνδέστε την τροχαλία
Τυλίξτε το νήµα γύρω από τον άξονα του κινητήρα
38
}  Θύρα A – Τροχαλία
◦  Τροχαλία
39
Άνω όψη Πλάγια όψη
40
public	class	Elevator	{	
				public	static	void	main(String[]	args)	{	
								NXTRegulatedMotor	pulleyMotor	=	Motor.A;	
								//	Move	up	
								pulleyMotor.rotate(360	*	2);	
								pulleyMotor.rotate(180);	
	
								//	Move	down	
								pulleyMotor.rotate(-360	*	2);	
								pulleyMotor.rotate(-180);	
				}	
}	
41
public	class	Elevator	{	
				public	static	void	main(String[]	args)	{	
								NXTRegulatedMotor	pulleyMotor	=	Motor.A;	
								Button.waitForAnyPress();	
								//	Move	up	
								pulleyMotor.rotate(360	*	2);	
								pulleyMotor.rotate(180);	
								Button.waitForAnyPress();	
								//	Move	down	
								pulleyMotor.rotate(-360	*	2);	
								pulleyMotor.rotate(-180);	
				}	
}	
42
public	class	Elevator	{	
				public	static	void	main(String[]	args)	{	
								NXTRegulatedMotor	pulleyMotor	=	Motor.A;	
								Key	upButton	=	Button.UP;	
								upButton.waitForPress();	
								pulleyMotor.rotate(360	*	2);	
								pulleyMotor.rotate(180);	
								Key	downButton	=	Button.DOWN;	
								downButton.waitForPress();	
								pulleyMotor.rotate(-360	*	2);	
								pulleyMotor.rotate(-180);	
				}	
}	
43
}  Μπορείς να γράψεις ένα
πρόγραµµα που να:
1.  Μετακινεί τον ανελκυστήρα πάνω
2.  Μετακινεί τον ανελκυστήρα πάνω
3.  Χρησιµοποιεί οποιοδήποτε κουµπί
για να κινήσει τον ανελκυστήρα
4.  Χρησιµοποιεί το πάνω κουµπί για
να µετακινήσει τον ανελκυστήρα
πάνω και το κάτω κουµπί για να
µετακινήσει τον ανελκυστήρα
κάτω
44

Contenu connexe

En vedette

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

JCrete4Kids 2016 - Elevator with Lego MX - presentation greek