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
Copy file name to clipboardExpand all lines: content/hardware/08.edu/solution-and-kits/alvik/tutorials/getting-started-mblock/getting-started-mblock.md
+31-28
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ tags:
7
7
author: "Gaia Castronovo"
8
8
---
9
9
10
-

10
+

11
11
12
12
Welcome to your first steps with Alvik, your companion for exploring robotics and programming. In this guide, we'll walk you through setting up your Alvik and starting your journey with block based language.
13
13
@@ -18,6 +18,19 @@ When unboxing Alvik, you should find the following items:
18
18
- Alvik robot
19
19
- USB-C® cable (located under the cardboard tray)
20
20
21
+
## Update Firmware with Alvik Updater
22
+
23
+
Updating the firmware on your Alvik ensures it has the latest features, bug fixes, and performance improvements. Regular updates help maintain compatibility with the mBlock software and ensure optimal performance of your robot.
5.**A pop-up window will appear** prompting you to select the COM port. Choose the correct port and confirm.
32
+
6. Once connected, click the "Update" button and wait for the process to complete.
33
+
21
34
## Preparing Your Environment
22
35
23
36
During the installation process, you may **need to install additional drivers**, that require access to the **administrator login password** to your OS.
@@ -37,7 +50,7 @@ You can use a computer with different operating systems like:
37
50
38
51
For a quick start, you can use the *mBlock web version*. Scroll down on the [download page](https://mblock.cc/pages/downloads) to download the correct **mLink driver** for your **operating system**.
39
52
40
-

53
+

41
54
42
55
After downloading, install the **drivers**. This small software helps your computer communicate with the robot. When prompted, simply click "INSTALL."
43
56
@@ -51,21 +64,21 @@ Please [download the software](https://mblock.cc/pages/downloads), then double-c
51
64
52
65
If you're using a *Windows* or *Mac* computer, scroll down the page and click the appropriate button. For *Chromebook* or *Linux* users, the process is slightly different.
53
66
54
-

67
+

55
68
56
69
### Windows
57
70
58
71
To install mBlock on Windows:
59
72
60
73
1. Click the "Download for Windows" button, wait for the download to finish, and find the file in your Downloads folder.
2. Double-click the downloaded file and click "YES" when prompted. Follow the on-screen instructions to complete the installation.
65
78
66
79
3. Install the **drivers**: a window will appear asking you to click "INSTALL."
67
80
68
-

81
+

69
82
The driver installation window may occasionally open in the background. If this happens, look for the computer icon in your taskbar and click it to proceed.
70
83
71
84
If you encounter an installation error, click 'UNINSTALL' and then 'INSTALL' again. Once the drivers are installed, close the driver window manually by clicking the 'X'. Afterward, complete the mBlock installation.
@@ -77,7 +90,7 @@ To install mBlock on macOS:
77
90
1. Click on the "Download for Mac" button on the [Download page](https://mblock.cc/pages/downloads), wait for the download to finish, and find the file in your Downloads folder.
78
91
2. Double-click the downloaded file to mount the `.dmg` file. Then, drag the Panda icon to the Applications folder.
79
92
80
-

93
+

81
94
82
95
3. Open the Applications folder, locate the mBlock app, and open it. The first time you open the software, right-click (or Control-click) on the app and select "Open" from the dropdown menu.
83
96
@@ -87,7 +100,7 @@ If you're using a **Chromebook** ([read the full guide here](https://support.mak
87
100
88
101
To find the "mLink - mBlock web version driver" and download the appropriate file for your operating system.
89
102
90
-

103
+

91
104
92
105
## Connect the Robot to mBlock
93
106
@@ -97,50 +110,39 @@ To program Alvik, start by opening the mBlock software if you haven’t already.
97
110
98
111
***To ensure a proper connection and protect the robot's battery, always turn off the robot before connecting it to your computer; it may not appear if left on.***
99
112
100
-

113
+

101
114
102
115
**2.** <ahref="https://ide.mblock.cc">Open mBlock</a>. In the `Device` section, add Alvik as a programmable board by clicking the `+ Add` button, then selecting Alvik from the robot list.
103
116
104
-

117
+

105
118
106
119
**3.****Connect the programming cable** to your computer and the Arduino Nano ESP32.
107
120
108
121

109
122
110
123
**4.** Locate the robot's **on/off switch** and slide it to the **ON** position.
111
124
112
-

125
+

113
126
114
127
**5.** Establish the connection to **mBlock** clicking on the **Connect** button.
**6.** Click the **Connect** button in the pop-up window.
119
132
120
133
In the connect window, select the **Serial Port**, in Windows you might see something like COM4 (or another number), while on other operating systems, it could be something like `/dev/tty.[yourSerialPortName]`. mBlock typically detects the correct port automatically, but if you encounter any issues, make sure the selected port is the right one.
5.**A pop-up window will appear** prompting you to select the COM port. Choose the correct port and confirm.
135
-
6. Once connected, click the "Update" button and wait for the process to complete.
136
-
137
139
## Blocks
138
140
139
-
Explore mBlock to start programming Alvik. You'll find a list of visual blocks in the center of the interface. Each block represents a command Alvik can execute, divided into **different colored folders by action kind**.
141
+
Explore mBlock to start programming your Alvik. In the center of the interface, you’ll find a list of visual blocks, each representing a command that Alvik can execute. These blocks are grouped **into color-coded categories based on the type of action** they perform.
140
142
141
-
When you're creating a sequence of commands for Alvik you **always need to start by stating the initial event**:
143
+
When you're creating a sequence of commands for Alvik you **always need to start by stating the initial event**:
142
144
143
-

145
+

144
146
145
147
*`When Alvik starts` - the code will be executed the moment you turn ON Alvik.
146
148
@@ -168,7 +170,7 @@ On the top of Alvik you can also find **8 buttons**, that let you operate the ro
168
170
169
171

170
172
171
-
The goal of our first program is to make the LEDs flash when you press a button on Alvik:
173
+
The goal of **our first program** is to make the LEDs flash when you press a button on Alvik:
172
174
173
175
1. Navigate to the `Events` folder and drag the command `When button [ok] is pressed` to the coding area on the right.
174
176
@@ -194,9 +196,10 @@ Inside a loop block called `forever` , use the command `if < > then { } else
194
196
195
197
Alvik needs time to read the distance sensor therefore we need to avoid executing the loop block `forever` too fast. To fix this, add a **small delay** (about 0.1 seconds) with the block `wait ( )`. This won’t change much in behavior but will give Alvik **enough time to read the sensor**.
196
198
197
-
We'll also use two other kind of blocks: `Motor`contains all actions to control Alvik's wheels and inside the folder `Distance Sensors` the blocks to control the Time of Flight sensor.
199
+
We'll also use two other types of blocks: the `Motor`blocks contain all the actions needed to control Alvik's wheels, while the `Distance Sensors`folder holds the blocks for controlling the Time of Flight sensor.
198
200
199
201
### Next Steps
200
202
203
+
* For more in depth block-based guided projects with STEAM topics [visit the course page](https://courses.arduino.cc/block-based-coding-robotics).
201
204
* If you want to learn more about how Alvik is built or which functions you can use to program it, visit the documentation in the [Docs space for Alvik](https://docs.arduino.cc/hardware/alvik/) and follow the respective [Alvik's User Manual](https://docs.arduino.cc/hardware/alvik/user-manual) to know more about how to build incredible projects with your robot!
202
205
* If you want to follow step-by-step guided projects following an educational approach to learn MicroPython and robotics topics with Alvik, follow the [Explore Robotics in MicroPython](https://courses.arduino.cc/explore-robotics-micropython/) course.
0 commit comments