Python v2: Difference between revisions

From wikiluntti
(Created page with "<languages /> <translate> Python is a very powerful but programming language for ev3 robots, also. Programming exercises (only five so far but these will give a solid grou...")
 
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 15: Line 15:
The other sensors work similarly; eg. [[gyroscope sensor py v2]] or [[ultrasonic sensor py v2]] (distance meter) are rather easy to employ.
The other sensors work similarly; eg. [[gyroscope sensor py v2]] or [[ultrasonic sensor py v2]] (distance meter) are rather easy to employ.


== Preliminary things ==
== Installing ==


=== SD Card ===
See [[Install ev3dev]].
To set [https://www.ev3dev.org/ ev3dev] running you need a SD card which should be made bootable to [https://www.ev3dev.org/downloads/ ev3dev-stretch]. The installation (copying) can be made using Etcher.  


Connect to your brick. I usually use the USB cable, and it works by plugging.
See the SD card settings and instructions from [https://www.ev3dev.org/docs/getting-started/ ev3dev/getting-started] page.
=== Microsoft Visual Studio ===
MS VS Code combines directly with Ev3 so that the programming can be made on your personal computer but the code is run on the Ev3 brick. Great IDE, though any other can be used as ev3dev is Linux and you can ssh there.
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 is not needed. We use Ev3dev Python v2.
<youtube>zw20vb5YrrA</youtube>


[[Category:Coding]]
[[Category:Coding]]


</translate>
</translate>

Latest revision as of 21:05, 22 September 2020

<languages />

<translate>

Python is a very powerful but programming language for ev3 robots, also.

Programming exercises (only five so far but these will give a solid ground to jump from):

The other sensors work similarly; eg. gyroscope sensor py v2 or ultrasonic sensor py v2 (distance meter) are rather easy to employ.

Installing

See Install ev3dev.

</translate>