Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
lehrkraefte:sbt:informatik-glf2-22:robotik [2022/11/25 17:39] Olaf Schnürer [Installation MicroPython auf EV3] |
lehrkraefte:sbt:informatik-glf2-22:robotik [2023/01/27 14:17] (current) Olaf Schnürer [Your first robotics program] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOTOC~~ | ||
====== Robotik mit EV3 ====== | ====== Robotik mit EV3 ====== | ||
===== Installation MicroPython auf EV3 ==== | ===== Installation MicroPython auf EV3 ==== | ||
* [[ofi: | * [[ofi: | ||
* [[https:// | * [[https:// | ||
+ | * Connection by WLAN: | ||
+ | * Start the EV3. | ||
+ | * Using the EV3 keyboard, choose " | ||
+ | * Choose WIFI | ||
+ | * Start Scan (and wait until network " | ||
+ | * Select " | ||
+ | * If " | ||
+ | * Else: | ||
+ | * Select " | ||
+ | * Press enter key in empty password field. | ||
+ | * Enter password " | ||
+ | * Select " | ||
+ | * go back with " | ||
+ | |||
+ | ===== In VS Code ===== | ||
+ | |||
+ | * Install "Lego mindstorms EV3 Micropython" | ||
+ | * Make sure to be connected to " | ||
+ | * Open the command palette (Ctrl+Shift+p). Enter " | ||
+ | * Enter IP address as name (click "I don't see my device" | ||
+ | * Enter IP address. | ||
+ | * Switch to Explorer panel (on left side of VS Code). | ||
+ | * Open "EV3 DEV DEVICE BROWSER" | ||
+ | * There should be a green bullet indicating that the connection works. Open to see battery status etc. | ||
+ | |||
+ | ===== Your first robotics program ===== | ||
+ | |||
+ | (using micropython = small version of python) | ||
+ | |||
+ | * New lego icon on left side. Click on the icon and choose to open new project or explore example projects. | ||
+ | |||
+ | * e.g. open example project, see screenshot for sending to device ACHTUNG: EINFACHER WOHL DIREKT Ctrl+F5, LÄDT WOHL AUCH HOCH. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * start by clicking on program, e.g. on '' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | * Can run program autonomously from robot: Press " | ||
+ | |||
+ | |||
+ | |||
+ | ===== See also ===== | ||
+ | |||
+ | * Use Examples from Lego Mindstorms extension (have to change motor ports to A and B and sensor port (Ultrasonic) to S2. | ||
+ | * Achtung: pybrick.pupdevices macht Probleme | ||
+ | |||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* https:// | * https:// | ||