Devoxx4Kids Lego Workshop

Stephen Chin
Stephen ChinJava Evangelist at Oracle
Devoxx4Kids
Lego Kids Workshop
Stephen Chin
Java Community Manager
JavaOne Content Co-Chair
@steveonjava
LeJOS
How it works on the EV3
The Heart of the EV3
> TI Sitara AM1808
 ARM9, 300Mhz
> 64MB RAM / 16MB Flash
> Analog to Digital Converter
> 4 Motor Ports
> 4 Sensor Ports
> Bluetooth / USB
> MicroSD
EV3 Motors
EV3 Sensors
Color and Light Sensor
High frequency
sound waves
Measuring mode Vs Presence Mode
Ultrasonic Sensor
Infrared Sensor
Remote Control
Getting Started with LeJOS
> Micro SD Card (> 2GB)
> Compatible WIFI adapter
 NetGear WNA1100
 EDIMAX EW-7811Un
> Linux (or a Linux VM)
> Details here:
Creating Your SD Card
http://sourceforge.net/p/lejos/wiki/Home/
Lego Duke Segway
Windows USB Connection
Step 1: The wrong driver gets installed, so we need to fix this in the
Device Manager
13Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 2: In Device Manager, find your EV3’s RNDIS device. It is
under Network Adapters > USB Ethernet/RNDIS Gadget.
14Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 3: Double-click it and select the Drivers tab. Click Update
driver… to change the driver.
15Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 4: Select Browse my computer for driver software.
16Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 5: Click Let me pick from a list of device drivers on my computer.
17Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 6: Uncheck the box that says Show compatible hardware. In
the Manufacturer list, pick Microsoft Corporation (in Windows 8,
pick Microsoft). In the Network Adapter list, pick Remote NDIS
Compatible Device. Then click Next.
18Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 7: Windows thinks we don’t know what we are doing, but really
we do, so click Yes.
19Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Windows USB Connection
Step 8: When it is done installing, click Close.
20Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
Eclipse Setup
> Open Eclipse
> Go to "Preferences"
> Click on leJOS EV3
> Change the brick name to
the IP address of your brick
 (default is 10.0.1.1)
21
Creating a New LeJOS Project
> Go to "File" > "New" > "Project…"
> Choose a LeJOS EV3 Project
22
Create a Class File
> Create a new class ("File" > "New"
> "Class")
> Give it a package (e.g. sample)
> Give it a name (e.g. LCDTest)
23
Simple LeJOS Application
public class EV3FirstProgram {
public static void main(String[] args) {
LCD.clear();
LCD.drawString("First EV3 Program", 0, 5);
Button.waitForAnyPress();
LCD.clear();
LCD.refresh();
}
}
Stephen Chin
tweet: @steveonjava
blog: http://steveonjava.com
nighthacking.com
Real Geeks
Live Hacking
NightHacking Tour
Hacking Time!
Parts you will need Step 1
Assemble Brace
Step 2 Completed Brace
Assemble Brace
Parts you will need Step 1
Build Base
Step 2 Completed Base
Build Base
Motor parts Snap them on partially
Assemble Motor
Take motor and base And connect them like this
Assemble Motor
Foot parts Step 1
Add a Foot
Step 2 Add the Foot to the Base
Add a Foot
Assembled Foot and Base
Add a Foot
Lock parts Partially insert the red attachers
Add a Lock
Attach the lock Push down the red attachers to secure
Add a Lock
Tower parts Step 1 – push the rod all the way through
Construct the Tower
Step 2 Attach the Tower to the Base
Construct the Tower
Completed Tower
Construct the Tower
Fan Motor parts Step 1
Build the Fan Motor
Completed Fan Motor
Build the Fan Motor
Light Sensor parts Step 1
Construct the Light Sensor
Completed Light Sensor
Construct the Light Sensor
Fan Blade parts Step 1
Assemble the Fan Blades
Fan Blade, Light Sensor, and Fan Motor Completed Fan
Assemble the Fan
Assembled Wind Turbine
46
Wind Turbine Wiring
> Port A – Medium Moto
 Power Fan
> Port B – Large Motor
 Rotate Wind Turbine
> Port 1 – Light Sensor
 Track Ambient Light
47
Gear Box parts Step 1
EC: Gear Box Construction
Completed Fan with Gear Box
EC: Gear Box Construction
Making the Wind turbine turn
public class WindTurbine {
public static void main(String[] args) {
EV3MediumRegulatedMotor fan =
new EV3MediumRegulatedMotor(MotorPort.A);
fan.setSpeed(1500);
fan.setAcceleration(150);
fan.backward();
Delay.msDelay(10000);
}
}
Making the Tower spin
public class WindTurbine {
public static void main(String[] args) {
EV3LargeRegulatedMotor base =
new EV3LargeRegulatedMotor(MotorPort.B);
base.setSpeed(80);
base.rotateTo(-90);
base.rotateTo(90);
}
}
Checking the Ambient Light
public class WindTurbine {
public static void main(String[] args) {
EV3ColorSensor light =
new EV3ColorSensor(SensorPort.S1);
float[] sample = new float[1];
SensorMode mode = light.getAmbientMode();
mode.fetchSample(sample, 0);
LCD.drawString("Light = " + sample[0], 0, 4);
Delay.msDelay(5000);
}
}
Putting it all together…
> Can you write a program that will:
1. Rotate the fan in a circle
2. Check the ambient light while rotating
3. Move back to the brightest angle
4. Spin the fan
http://commons.wikimedia.org/wiki/Wind_generator#mediaviewer/File:Eolienne_et_centrale_thermique_Nuon_Sloterdijk.jpg
Stephen Chin
tweet: @steveonjava
blog: http://steveonjava.com
nighthacking.com
Real Geeks
Live Hacking
NightHacking Tour
Safe Harbor Statement
The preceding is intended to outline our general product
direction. It is intended for information purposes only, and
may not be incorporated into any contract. It is not a
commitment to deliver any material, code, or functionality,
and should not be relied upon in making purchasing
decisions. The development, release, and timing of any
features or functionality described for Oracle’s products
remains at the sole discretion of Oracle.
1 of 54

Recommended

Java on Raspberry Pi Lab by
Java on Raspberry Pi LabJava on Raspberry Pi Lab
Java on Raspberry Pi LabStephen Chin
3.2K views23 slides
Oracle IoT Kids Workshop by
Oracle IoT Kids WorkshopOracle IoT Kids Workshop
Oracle IoT Kids WorkshopStephen Chin
36.1K views99 slides
Raspberry Pi Gaming 4 Kids (Devoxx4Kids) by
Raspberry Pi Gaming 4 Kids (Devoxx4Kids)Raspberry Pi Gaming 4 Kids (Devoxx4Kids)
Raspberry Pi Gaming 4 Kids (Devoxx4Kids)Stephen Chin
38.6K views43 slides
JCrete Embedded Java Workshop by
JCrete Embedded Java WorkshopJCrete Embedded Java Workshop
JCrete Embedded Java WorkshopStephen Chin
2.8K views74 slides
RetroPi Handheld Raspberry Pi Gaming Console by
RetroPi Handheld Raspberry Pi Gaming ConsoleRetroPi Handheld Raspberry Pi Gaming Console
RetroPi Handheld Raspberry Pi Gaming ConsoleStephen Chin
2.8K views68 slides
JavaFX and WidgetFX at SVCodeCamp by
JavaFX and WidgetFX at SVCodeCampJavaFX and WidgetFX at SVCodeCamp
JavaFX and WidgetFX at SVCodeCampStephen Chin
2.3K views35 slides

More Related Content

What's hot

Knock, knock, who is there? Doze. by
Knock, knock, who is there? Doze.Knock, knock, who is there? Doze.
Knock, knock, who is there? Doze.Yonatan Levin
1.6K views89 slides
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJS by
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJSBringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJS
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJSRobert Nyman
12.2K views67 slides
Instrucciones by
InstruccionesInstrucciones
InstruccionesDuvan Romero
152 views1 slide
Unit 5 Project - Babeli by
Unit 5 Project - BabeliUnit 5 Project - Babeli
Unit 5 Project - BabeliLianna Babeli
189 views7 slides
The java swing_tutorial by
The java swing_tutorialThe java swing_tutorial
The java swing_tutorialsumitjoshi01
1.3K views342 slides
Gamelog by
GamelogGamelog
GamelogLuke Summers
222 views7 slides

What's hot(12)

Knock, knock, who is there? Doze. by Yonatan Levin
Knock, knock, who is there? Doze.Knock, knock, who is there? Doze.
Knock, knock, who is there? Doze.
Yonatan Levin1.6K views
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJS by Robert Nyman
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJSBringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJS
Bringing the Open Web & APIs to 
mobile devices with Firefox OS - SpainJS
Robert Nyman12.2K views
The java swing_tutorial by sumitjoshi01
The java swing_tutorialThe java swing_tutorial
The java swing_tutorial
sumitjoshi011.3K views
Lightweight Multiplayer HTML5 Games with PubNub by PubNub
Lightweight Multiplayer HTML5 Games with PubNubLightweight Multiplayer HTML5 Games with PubNub
Lightweight Multiplayer HTML5 Games with PubNub
PubNub675 views
ธีระศักดิ์ ขำแห้ว เลขที่ 9 by Pop Areerob
ธีระศักดิ์ ขำแห้ว เลขที่ 9ธีระศักดิ์ ขำแห้ว เลขที่ 9
ธีระศักดิ์ ขำแห้ว เลขที่ 9
Pop Areerob212 views
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures by Jussi Pohjolainen
Creating Asha Games: Game Pausing, Orientation, Sensors and GesturesCreating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Creating Asha Games: Game Pausing, Orientation, Sensors and Gestures
Jussi Pohjolainen1.1K views

Similar to Devoxx4Kids Lego Workshop

IT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers by
IT Essentials (Version 7.0) - ITE Chapter 3 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 3 Exam AnswersITExamAnswers.net
4.1K views15 slides
PICDriver by
PICDriverPICDriver
PICDriverJohn Dunbar
106 views28 slides
How to Hack Edison by
How to Hack EdisonHow to Hack Edison
How to Hack EdisonShotaro Uchida
7.7K views48 slides
Mikrotik® MPLS/VPN Lab Part 1 by
Mikrotik® MPLS/VPN Lab Part 1Mikrotik® MPLS/VPN Lab Part 1
Mikrotik® MPLS/VPN Lab Part 1Kaveh Khosravi
9K views30 slides
Mikrotik Network Simulator (MUM Presentation Material 2013) by
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)Rofiq Fauzi
51.3K views27 slides
Nt1210 Project 6-1 by
Nt1210 Project 6-1Nt1210 Project 6-1
Nt1210 Project 6-1April Davis
2 views51 slides

Similar to Devoxx4Kids Lego Workshop(20)

IT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers by ITExamAnswers.net
IT Essentials (Version 7.0) - ITE Chapter 3 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
ITExamAnswers.net4.1K views
Mikrotik Network Simulator (MUM Presentation Material 2013) by Rofiq Fauzi
Mikrotik Network Simulator (MUM Presentation Material 2013)Mikrotik Network Simulator (MUM Presentation Material 2013)
Mikrotik Network Simulator (MUM Presentation Material 2013)
Rofiq Fauzi51.3K views
Network Automation Tools by Edwin Beekman
Network Automation ToolsNetwork Automation Tools
Network Automation Tools
Edwin Beekman547 views
Mikrotik Network Simulator (MUM Presentation Material 2013) [COPY] by Mahadiputra S
Mikrotik Network Simulator (MUM Presentation Material 2013) [COPY]Mikrotik Network Simulator (MUM Presentation Material 2013) [COPY]
Mikrotik Network Simulator (MUM Presentation Material 2013) [COPY]
Mahadiputra S1K views
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon... by Hackito Ergo Sum
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
[HES2013] Hacking apple accessories to pown iDevices – Wake up Neo! Your phon...
Hackito Ergo Sum3K views
SR-IOV+KVM on Debian/Stable by juet-y
SR-IOV+KVM on Debian/StableSR-IOV+KVM on Debian/Stable
SR-IOV+KVM on Debian/Stable
juet-y13.2K views
Esp8266 v12 by handson28
Esp8266 v12Esp8266 v12
Esp8266 v12
handson2859 views
Usb to ethernet converter by johnlaw827
Usb to ethernet converterUsb to ethernet converter
Usb to ethernet converter
johnlaw827218 views
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable by juet-y
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/StableSR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
SR-IOV, KVM and Emulex OneConnect 10Gbps cards on Debian/Stable
juet-y5.9K views
Switch From Windows For Linux by Erika Morris
Switch From Windows For LinuxSwitch From Windows For Linux
Switch From Windows For Linux
Erika Morris4 views
Lab Handson: Power your Creations with Intel Edison! by Codemotion
Lab Handson: Power your Creations with Intel Edison!Lab Handson: Power your Creations with Intel Edison!
Lab Handson: Power your Creations with Intel Edison!
Codemotion2K views
Internet of things the salesforce lego machine cloud by andyinthecloud
Internet of things   the salesforce lego machine cloudInternet of things   the salesforce lego machine cloud
Internet of things the salesforce lego machine cloud
andyinthecloud1.4K views
Quick Installation Guide EWS500AP English by EnGenius Europe
Quick Installation Guide  EWS500AP EnglishQuick Installation Guide  EWS500AP English
Quick Installation Guide EWS500AP English
EnGenius Europe271 views
MOAC 70-687 - Configuring Windows 8.1 MLO WorksheetLab 10Confi.docx by raju957290
MOAC 70-687 - Configuring Windows 8.1 MLO WorksheetLab 10Confi.docxMOAC 70-687 - Configuring Windows 8.1 MLO WorksheetLab 10Confi.docx
MOAC 70-687 - Configuring Windows 8.1 MLO WorksheetLab 10Confi.docx
raju9572908 views
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable by juet-y
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/StableSR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
SR-IOV, KVM and Intel X520 10Gbps cards on Debian/Stable
juet-y14.8K views
Quick Installation Guide EWS650AP English by EnGenius Europe
Quick Installation Guide EWS650AP EnglishQuick Installation Guide EWS650AP English
Quick Installation Guide EWS650AP English
EnGenius Europe317 views

More from Stephen Chin

DevOps Tools for Java Developers v2 by
DevOps Tools for Java Developers v2DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2Stephen Chin
1.4K views36 slides
10 Ways Everyone Can Support the Java Community by
10 Ways Everyone Can Support the Java Community10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java CommunityStephen Chin
280 views16 slides
Java Clients and JavaFX: The Definitive Guide by
Java Clients and JavaFX: The Definitive GuideJava Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive GuideStephen Chin
435 views32 slides
DevOps Tools for Java Developers by
DevOps Tools for Java DevelopersDevOps Tools for Java Developers
DevOps Tools for Java DevelopersStephen Chin
344 views22 slides
Java Clients and JavaFX - Presented to LJC by
Java Clients and JavaFX - Presented to LJCJava Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJCStephen Chin
372 views32 slides
JavaFX on Mobile (by Johan Vos) by
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)Stephen Chin
3.2K views19 slides

More from Stephen Chin(20)

DevOps Tools for Java Developers v2 by Stephen Chin
DevOps Tools for Java Developers v2DevOps Tools for Java Developers v2
DevOps Tools for Java Developers v2
Stephen Chin1.4K views
10 Ways Everyone Can Support the Java Community by Stephen Chin
10 Ways Everyone Can Support the Java Community10 Ways Everyone Can Support the Java Community
10 Ways Everyone Can Support the Java Community
Stephen Chin280 views
Java Clients and JavaFX: The Definitive Guide by Stephen Chin
Java Clients and JavaFX: The Definitive GuideJava Clients and JavaFX: The Definitive Guide
Java Clients and JavaFX: The Definitive Guide
Stephen Chin435 views
DevOps Tools for Java Developers by Stephen Chin
DevOps Tools for Java DevelopersDevOps Tools for Java Developers
DevOps Tools for Java Developers
Stephen Chin344 views
Java Clients and JavaFX - Presented to LJC by Stephen Chin
Java Clients and JavaFX - Presented to LJCJava Clients and JavaFX - Presented to LJC
Java Clients and JavaFX - Presented to LJC
Stephen Chin372 views
JavaFX on Mobile (by Johan Vos) by Stephen Chin
JavaFX on Mobile (by Johan Vos)JavaFX on Mobile (by Johan Vos)
JavaFX on Mobile (by Johan Vos)
Stephen Chin3.2K views
Confessions of a Former Agile Methodologist (JFrog Edition) by Stephen Chin
Confessions of a Former Agile Methodologist (JFrog Edition)Confessions of a Former Agile Methodologist (JFrog Edition)
Confessions of a Former Agile Methodologist (JFrog Edition)
Stephen Chin31.4K views
Raspberry Pi with Java (JJUG) by Stephen Chin
Raspberry Pi with Java (JJUG)Raspberry Pi with Java (JJUG)
Raspberry Pi with Java (JJUG)
Stephen Chin4.2K views
Confessions of a Former Agile Methodologist by Stephen Chin
Confessions of a Former Agile MethodologistConfessions of a Former Agile Methodologist
Confessions of a Former Agile Methodologist
Stephen Chin4.4K views
Internet of Things Magic Show by Stephen Chin
Internet of Things Magic ShowInternet of Things Magic Show
Internet of Things Magic Show
Stephen Chin2.7K views
Zombie Time - JSR 310 for the Undead by Stephen Chin
Zombie Time - JSR 310 for the UndeadZombie Time - JSR 310 for the Undead
Zombie Time - JSR 310 for the Undead
Stephen Chin2.5K views
OpenJFX on Android and Devices by Stephen Chin
OpenJFX on Android and DevicesOpenJFX on Android and Devices
OpenJFX on Android and Devices
Stephen Chin43.3K views
Java 8 for Tablets, Pis, and Legos by Stephen Chin
Java 8 for Tablets, Pis, and LegosJava 8 for Tablets, Pis, and Legos
Java 8 for Tablets, Pis, and Legos
Stephen Chin4.1K views
Devoxx4Kids NAO Workshop by Stephen Chin
Devoxx4Kids NAO WorkshopDevoxx4Kids NAO Workshop
Devoxx4Kids NAO Workshop
Stephen Chin38.7K views
Raspberry Pi Gaming 4 Kids - Dutch Version by Stephen Chin
Raspberry Pi Gaming 4 Kids - Dutch VersionRaspberry Pi Gaming 4 Kids - Dutch Version
Raspberry Pi Gaming 4 Kids - Dutch Version
Stephen Chin16.8K views
Raspberry pi gaming 4 kids by Stephen Chin
Raspberry pi gaming 4 kidsRaspberry pi gaming 4 kids
Raspberry pi gaming 4 kids
Stephen Chin15.7K views
Mary Had a Little λ (QCon) by Stephen Chin
Mary Had a Little λ (QCon)Mary Had a Little λ (QCon)
Mary Had a Little λ (QCon)
Stephen Chin3K views
Raspberry Pi à la GroovyFX by Stephen Chin
Raspberry Pi à la GroovyFXRaspberry Pi à la GroovyFX
Raspberry Pi à la GroovyFX
Stephen Chin4.5K views
LUGOD Raspberry Pi Hacking by Stephen Chin
LUGOD Raspberry Pi HackingLUGOD Raspberry Pi Hacking
LUGOD Raspberry Pi Hacking
Stephen Chin1.8K views

Recently uploaded

Ransomware is Knocking your Door_Final.pdf by
Ransomware is Knocking your Door_Final.pdfRansomware is Knocking your Door_Final.pdf
Ransomware is Knocking your Door_Final.pdfSecurity Bootcamp
66 views46 slides
Business Analyst Series 2023 - Week 4 Session 7 by
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7DianaGray10
42 views31 slides
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...ShapeBlue
60 views62 slides
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueShapeBlue
25 views13 slides
Kyo - Functional Scala 2023.pdf by
Kyo - Functional Scala 2023.pdfKyo - Functional Scala 2023.pdf
Kyo - Functional Scala 2023.pdfFlavio W. Brasil
418 views92 slides
Data Integrity for Banking and Financial Services by
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial ServicesPrecisely
29 views26 slides

Recently uploaded(20)

Business Analyst Series 2023 - Week 4 Session 7 by DianaGray10
Business Analyst Series 2023 -  Week 4 Session 7Business Analyst Series 2023 -  Week 4 Session 7
Business Analyst Series 2023 - Week 4 Session 7
DianaGray1042 views
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P... by ShapeBlue
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
Developments to CloudStack’s SDN ecosystem: Integration with VMWare NSX 4 - P...
ShapeBlue60 views
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue by ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlueCloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
CloudStack Managed User Data and Demo - Harikrishna Patnala - ShapeBlue
ShapeBlue25 views
Data Integrity for Banking and Financial Services by Precisely
Data Integrity for Banking and Financial ServicesData Integrity for Banking and Financial Services
Data Integrity for Banking and Financial Services
Precisely29 views
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T by ShapeBlue
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&TCloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
CloudStack and GitOps at Enterprise Scale - Alex Dometrius, Rene Glover - AT&T
ShapeBlue38 views
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit... by ShapeBlue
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
Transitioning from VMware vCloud to Apache CloudStack: A Path to Profitabilit...
ShapeBlue40 views
Igniting Next Level Productivity with AI-Infused Data Integration Workflows by Safe Software
Igniting Next Level Productivity with AI-Infused Data Integration Workflows Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Igniting Next Level Productivity with AI-Infused Data Integration Workflows
Safe Software317 views
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院 by IttrainingIttraining
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
【USB韌體設計課程】精選講義節錄-USB的列舉過程_艾鍗學院
PharoJS - Zürich Smalltalk Group Meetup November 2023 by Noury Bouraqadi
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi139 views
NTGapps NTG LowCode Platform by Mustafa Kuğu
NTGapps NTG LowCode Platform NTGapps NTG LowCode Platform
NTGapps NTG LowCode Platform
Mustafa Kuğu28 views
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De... by Moses Kemibaro
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Don’t Make A Human Do A Robot’s Job! : 6 Reasons Why AI Will Save Us & Not De...
Moses Kemibaro27 views
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates by ShapeBlue
Keynote Talk: Open Source is Not Dead - Charles Schulz - VatesKeynote Talk: Open Source is Not Dead - Charles Schulz - Vates
Keynote Talk: Open Source is Not Dead - Charles Schulz - Vates
ShapeBlue84 views
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R... by ShapeBlue
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
Setting Up Your First CloudStack Environment with Beginners Challenges - MD R...
ShapeBlue37 views
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue by ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlueElevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
Elevating Privacy and Security in CloudStack - Boris Stoyanov - ShapeBlue
ShapeBlue70 views
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT by ShapeBlue
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBITUpdates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
Updates on the LINSTOR Driver for CloudStack - Rene Peinthor - LINBIT
ShapeBlue66 views

Devoxx4Kids Lego Workshop

  • 1. Devoxx4Kids Lego Kids Workshop Stephen Chin Java Community Manager JavaOne Content Co-Chair @steveonjava
  • 2. LeJOS How it works on the EV3
  • 3. The Heart of the EV3 > TI Sitara AM1808  ARM9, 300Mhz > 64MB RAM / 16MB Flash > Analog to Digital Converter > 4 Motor Ports > 4 Sensor Ports > Bluetooth / USB > MicroSD
  • 7. High frequency sound waves Measuring mode Vs Presence Mode Ultrasonic Sensor
  • 10. Getting Started with LeJOS > Micro SD Card (> 2GB) > Compatible WIFI adapter  NetGear WNA1100  EDIMAX EW-7811Un > Linux (or a Linux VM) > Details here: Creating Your SD Card http://sourceforge.net/p/lejos/wiki/Home/
  • 12. Windows USB Connection Step 1: The wrong driver gets installed, so we need to fix this in the Device Manager 13Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 13. Windows USB Connection Step 2: In Device Manager, find your EV3’s RNDIS device. It is under Network Adapters > USB Ethernet/RNDIS Gadget. 14Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 14. Windows USB Connection Step 3: Double-click it and select the Drivers tab. Click Update driver… to change the driver. 15Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 15. Windows USB Connection Step 4: Select Browse my computer for driver software. 16Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 16. Windows USB Connection Step 5: Click Let me pick from a list of device drivers on my computer. 17Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 17. Windows USB Connection Step 6: Uncheck the box that says Show compatible hardware. In the Manufacturer list, pick Microsoft Corporation (in Windows 8, pick Microsoft). In the Network Adapter list, pick Remote NDIS Compatible Device. Then click Next. 18Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 18. Windows USB Connection Step 7: Windows thinks we don’t know what we are doing, but really we do, so click Yes. 19Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 19. Windows USB Connection Step 8: When it is done installing, click Close. 20Credit to the ev3dev team for the great screen captures and writeup: http://www.ev3dev.org/docs/tutorials/connecting-to-the-internet-via-usb/?tabs-0=windows-7-8
  • 20. Eclipse Setup > Open Eclipse > Go to "Preferences" > Click on leJOS EV3 > Change the brick name to the IP address of your brick  (default is 10.0.1.1) 21
  • 21. Creating a New LeJOS Project > Go to "File" > "New" > "Project…" > Choose a LeJOS EV3 Project 22
  • 22. Create a Class File > Create a new class ("File" > "New" > "Class") > Give it a package (e.g. sample) > Give it a name (e.g. LCDTest) 23
  • 23. Simple LeJOS Application public class EV3FirstProgram { public static void main(String[] args) { LCD.clear(); LCD.drawString("First EV3 Program", 0, 5); Button.waitForAnyPress(); LCD.clear(); LCD.refresh(); } }
  • 24. Stephen Chin tweet: @steveonjava blog: http://steveonjava.com nighthacking.com Real Geeks Live Hacking NightHacking Tour Hacking Time!
  • 25. Parts you will need Step 1 Assemble Brace
  • 26. Step 2 Completed Brace Assemble Brace
  • 27. Parts you will need Step 1 Build Base
  • 28. Step 2 Completed Base Build Base
  • 29. Motor parts Snap them on partially Assemble Motor
  • 30. Take motor and base And connect them like this Assemble Motor
  • 31. Foot parts Step 1 Add a Foot
  • 32. Step 2 Add the Foot to the Base Add a Foot
  • 33. Assembled Foot and Base Add a Foot
  • 34. Lock parts Partially insert the red attachers Add a Lock
  • 35. Attach the lock Push down the red attachers to secure Add a Lock
  • 36. Tower parts Step 1 – push the rod all the way through Construct the Tower
  • 37. Step 2 Attach the Tower to the Base Construct the Tower
  • 39. Fan Motor parts Step 1 Build the Fan Motor
  • 40. Completed Fan Motor Build the Fan Motor
  • 41. Light Sensor parts Step 1 Construct the Light Sensor
  • 43. Fan Blade parts Step 1 Assemble the Fan Blades
  • 44. Fan Blade, Light Sensor, and Fan Motor Completed Fan Assemble the Fan
  • 46. Wind Turbine Wiring > Port A – Medium Moto  Power Fan > Port B – Large Motor  Rotate Wind Turbine > Port 1 – Light Sensor  Track Ambient Light 47
  • 47. Gear Box parts Step 1 EC: Gear Box Construction
  • 48. Completed Fan with Gear Box EC: Gear Box Construction
  • 49. Making the Wind turbine turn public class WindTurbine { public static void main(String[] args) { EV3MediumRegulatedMotor fan = new EV3MediumRegulatedMotor(MotorPort.A); fan.setSpeed(1500); fan.setAcceleration(150); fan.backward(); Delay.msDelay(10000); } }
  • 50. Making the Tower spin public class WindTurbine { public static void main(String[] args) { EV3LargeRegulatedMotor base = new EV3LargeRegulatedMotor(MotorPort.B); base.setSpeed(80); base.rotateTo(-90); base.rotateTo(90); } }
  • 51. Checking the Ambient Light public class WindTurbine { public static void main(String[] args) { EV3ColorSensor light = new EV3ColorSensor(SensorPort.S1); float[] sample = new float[1]; SensorMode mode = light.getAmbientMode(); mode.fetchSample(sample, 0); LCD.drawString("Light = " + sample[0], 0, 4); Delay.msDelay(5000); } }
  • 52. Putting it all together… > Can you write a program that will: 1. Rotate the fan in a circle 2. Check the ambient light while rotating 3. Move back to the brightest angle 4. Spin the fan http://commons.wikimedia.org/wiki/Wind_generator#mediaviewer/File:Eolienne_et_centrale_thermique_Nuon_Sloterdijk.jpg
  • 53. Stephen Chin tweet: @steveonjava blog: http://steveonjava.com nighthacking.com Real Geeks Live Hacking NightHacking Tour
  • 54. Safe Harbor Statement The preceding is intended to outline our general product direction. It is intended for information purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or functionality, and should not be relied upon in making purchasing decisions. The development, release, and timing of any features or functionality described for Oracle’s products remains at the sole discretion of Oracle.