You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you haven't done so already, you need to install MicroPython on your Arduino board. The easiest way is to install it using the [MicroPython Installer](https://labs.arduino.cc/en/labs/micropython-installer).
31
+
To follow this tutorial, you will need to install MicroPython on your Arduino board. The easiest way is to install it using the [MicroPython Installer](https://labs.arduino.cc/en/labs/micropython-installer).
To program Modulinos using MicroPython you must first install the Modulino Package. It's where all the code, necessary to interact with the Modulinos is being stored.
42
-
43
-
The easiest way of installing it is using `mpremote`.
44
-
45
-
***If this is your first time using `mpremote`, check out the [Getting Started article]().***
46
-
47
-
Once you have everything set up, run:
41
+
***More details on installing MicroPython on your board are available in the [MicroPython Installation guide]().***
This will install all necessary packages on your Arduino board.
45
+
To program Modulinos using MicroPython we must first install the Modulino package. It's where all the code, necessary to interact with the Modulinos is being stored.
46
+
47
+
There are two ways of installing a package:
48
+
- Through a terminal
49
+
-
50
+
51
+
### Terminal Installation
52
+
53
+
The easiest way of installing it is using `mpremote`. Currently, we will need a version of Python installed on our computer.
54
+
55
+
1. Open a terminal, and write the following line:
56
+
```bash
57
+
pip install mpremote
58
+
```
59
+
This will install `mpremote`, which makes it possible to install packages on our board via your computer.
60
+
2. With `mpremote` installed, we need to run the following command to identify our board's serial port:
4. Great job. We have now installed the Modulino package on your board!
81
+
82
+
**Troubleshooting:**
83
+
- Make sure your board is connected to your computer.
84
+
- Make sure it is **not** connected in the Arduino Lab for MicroPython, as this might disturb the connection.
85
+
- If you are unable to run `mpremote`in the terminal, this means it is not installed.
86
+
- If you are unable to run `python`in the terminal, make sure you have installed Python (you can download and install it [here](https://www.python.org/downloads/))
87
+
- If you have installed Python and it is still not working, try running `python3` and `pip3` instead.
88
+
- If you installed Python while having the terminal open, try closing the terminal and re-opening it.
89
+
- If you run `mpremote` and there's no board appearing in the list, try re-installing the firmware on your board as it might have failed during installation.
56
90
57
91
## MicroPython Labs
58
92
59
-
Let's verify that everything was installed and is working correctly. Go to [MicroPython Labs](https://lab-micropython.arduino.cc/) and click on the connect icon in the top left corner.
93
+
We can now verify that everything was installed correctly. Go to [MicroPython Labs](https://lab-micropython.arduino.cc/) and click on the connect icon in the top left corner.
60
94
61
95

62
96
@@ -70,18 +104,16 @@ You should see a folder called `lib` and a file called `boot.py`. Go ahead and p
If you see this, it means the package has been installed successfully. If you want to to go even deeper, you can open the modulino folder and have a look at the individual Modulino packages. Don't worry, you don't have to understand what those files mean exactly to continue.
74
-
75
-
## First Sketch
76
-
77
-
Copy the following line to the MicroPython Labs Editor and press "Run".
78
-
79
-
```python
80
-
print("Hello, World!")
81
-
```
82
-
83
-
You should see "Hello, World", being printed in the commandline.
107
+
If you see this, it means the package has been installed successfully.
84
108
85
109
## Next Steps
86
110
87
-
Now that you have successfully installed everything it's time to program your first Modulino.
111
+
Now that you have successfully installed everything it's time to program your first Modulino. Below are links to the documentation forall Modulinos. They are also accessiblein the side menu at [Arduino Docs - MicroPython](https://docs.arduino.cc/micropython/), under "Modulinos".
0 commit comments