Install ev3dev/fi: Difference between revisions

From wikiluntti
(Created page with "Asenna ev3dev")
 
No edit summary
 
(13 intermediate revisions by the same user not shown)
Line 3: Line 3:
=== Ev3dev.org ===
=== Ev3dev.org ===


Download the newest SD card image from https://www.ev3dev.org/downloads/.
Lataa uusin SD-image osoitteesta https://www.ev3dev.org/downloads/.


[[File:Ev3devWebsite.png|thumb|Ev3dev website]]
[[File:Ev3devWebsite.png|thumb|Ev3dev-verkkosivu]]


=== Balena Etcher ===
=== Balena Etcher ===


Write the image to the SD card using [https://www.balena.io/etcher/ Balena Etcher] or some other software.  
Kirjoita image SD-kortille esimerkiksi [https://www.balena.io/etcher/ Balena Etcher]:llä.  


[[File:BalenaEtcher.png|thumb|Balena Etcher is straightforward to use.]]
[[File:BalenaEtcher.png|thumb|Balena Etcher is straightforward to use.]]
=== Connection ===


If Internet connection from the brick is not needed, connecting to the brick is straightforward and easy.
=== Yhteys ===
 
Jos et tarvitse internet-yhteyttä älypalikkaan, sen liittäminen koneeseen on helppoa.


==== Bluetooth ====
==== Bluetooth ====


Establish the Bluetooth connection on computer and brick by pairing. It is very straightforward.
Kytke Bluetooth-yhteys parittamalla koneesi ja älypalikka. Se sujuu suoraviivaisesti.


==== USB cable ====
==== USB-kaapeli ====


Windows will detect your EV3 as a Remote NDIS Compatible Device. . .  
Windows tunnistaa EV3-älypalikan Remote NDIS Compatible Device:nä. . .  


==== Wifi ====
==== Wifi ====
Line 29: Line 30:
=== Visual Studio Code ===
=== Visual Studio Code ===


Install some extensions: the newest ev3dev-browser, and some Python related stuff VS studio needs to install. Connect to the brick by clicking the ''ev3dev device browser'' from down left. See the [https://www.youtube.com/watch?v=zw20vb5YrrA video] (embedded below) how to install and set up ev3dev browser. Note that LEGO's MicroPython extension is not needed. We use Ev3dev Python v2.
Asenna VS Codeen extensionit (liitännäiset), esimerkiksi uusin ev3dev-browser ja Pythoniin liittyviä juttuja, jotka helpottavat VS Code -ohjelmointia. Yhdistä VS Code älypalikkaan klikkaamalla alhaalta ''ev3dev device browser'', katso [https://www.youtube.com/watch?v=zw20vb5YrrA video] (alla) lisätietoja. Huomaa, että LEGOn MicroPython-liitännäistä VS Codeen ei tarvita.


<youtube>zw20vb5YrrA</youtube>
<youtube>zw20vb5YrrA</youtube>


[[File:Vs ev3devbrowser.png|thumb|Connect the brick from down left, then up middle.]]
[[File:Vs ev3devbrowser.png|thumb|Yhdistä älypalikkaan alavasemmalta, sitten ylhäältä keskeltä.]]


The folder in VS Code in be downloaded into VS Code by clicking, and the script can be run from the ''device browser''.
Käsittelemäsi hakemisto (kansio) voidaan klikkaamalla ladata älypalikkaan, josta se saadaan ajettua.


[[File:Vs ev3devbrowser2.png|thumb|Search for the devices.]]
[[File:Vs ev3devbrowser2.png|thumb|Search for the devices.]]


==== Automated launching ====
==== Automaattikäynnistys F5 ====


Add the file launch.json in the .vscode folder, and copy paste the following script in there
Lisää alla oleva launch.json -tiedosto .vscode -hakemistoon:


<syntaxhighlight>
<syntaxhighlight>
Line 56: Line 57:
}
}
</syntaxhighlight>
</syntaxhighlight>
and the program will be downloaded and run by pressing F5.
ja ohjelmasi latautuu automaattisesti älypalikkaan, ja se suoritetaan painamalla F5-nappia.

Latest revision as of 22:56, 22 September 2020

<languages />

Ev3dev.org

Lataa uusin SD-image osoitteesta https://www.ev3dev.org/downloads/.

Ev3dev-verkkosivu

Balena Etcher

Kirjoita image SD-kortille esimerkiksi Balena Etcher:llä.

Balena Etcher is straightforward to use.

Yhteys

Jos et tarvitse internet-yhteyttä älypalikkaan, sen liittäminen koneeseen on helppoa.

Bluetooth

Kytke Bluetooth-yhteys parittamalla koneesi ja älypalikka. Se sujuu suoraviivaisesti.

USB-kaapeli

Windows tunnistaa EV3-älypalikan Remote NDIS Compatible Device:nä. . .

Wifi

Visual Studio Code

Asenna VS Codeen extensionit (liitännäiset), esimerkiksi uusin ev3dev-browser ja Pythoniin liittyviä juttuja, jotka helpottavat VS Code -ohjelmointia. Yhdistä VS Code älypalikkaan klikkaamalla alhaalta ev3dev device browser, katso video (alla) lisätietoja. Huomaa, että LEGOn MicroPython-liitännäistä VS Codeen ei tarvita.

Yhdistä älypalikkaan alavasemmalta, sitten ylhäältä keskeltä.

Käsittelemäsi hakemisto (kansio) voidaan klikkaamalla ladata älypalikkaan, josta se saadaan ajettua.

Search for the devices.

Automaattikäynnistys F5

Lisää alla oleva launch.json -tiedosto .vscode -hakemistoon:

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Download and Run",
            "type": "ev3devBrowser",
            "request": "launch",
            "program": "/home/robot/${workspaceRootFolderName}/hello.py"
        }
    ]
}

ja ohjelmasi latautuu automaattisesti älypalikkaan, ja se suoritetaan painamalla F5-nappia.