Skip to content

Commit 1955d30

Browse files
Added comments
1 parent 82bdde2 commit 1955d30

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

content/hardware/08.edu/solution-and-kits/alvik/tutorials/user-manual/user-manual.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,10 @@ In this tutorial, you will find useful information to get started, test, and mai
7878
- [Functions](#functions-1)
7979
- [Example Usage](#example-usage-3)
8080
- [LEDs](#leds)
81-
- [Example](#example)
81+
- [Example](#example)
8282
- [Talking with other Machines!](#talking-with-other-machines)
8383
- [WiFi](#wifi)
8484
- [Instructions](#instructions)
85-
- [Code Explanation](#code-explanation)
8685
- [Connecting to Wi-Fi](#connecting-to-wi-fi)
8786
- [Initializing the Robot](#initializing-the-robot)
8887
- [Setting Up the Web Server](#setting-up-the-web-server)
@@ -1076,7 +1075,7 @@ The Arduino Alvik robot comes equipped with two RGB LEDs that can be controlled
10761075
- `green`: Intensity of the green component (0 or 1)
10771076
- `blue`: Intensity of the blue component (0 or 1)
10781077

1079-
### Example
1078+
#### Example
10801079

10811080
Here's an example sketch that cycles through different colors on both LEDs:
10821081

@@ -1126,8 +1125,6 @@ The provided code will:
11261125
3. Connect to the robot's IP address (printed on the console) using a web browser.
11271126
4. Use the web interface to control the robot's movement.
11281127

1129-
### Code Explanation
1130-
11311128
#### Connecting to Wi-Fi
11321129

11331130
The following code connects the ESP32 to a specified Wi-Fi network using the provided SSID and password.
@@ -1354,7 +1351,7 @@ while True:
13541351

13551352
### Sending Commands from Another ESP32 Device
13561353

1357-
The following code can be used on another ESP32 device to send commands to the Alvik robot.
1354+
The following code can be used on another Alvik to send commands to the Alvik robot.
13581355

13591356
```python
13601357
from arduino_alvik import ArduinoAlvik
@@ -1516,10 +1513,12 @@ The servo motors connectors are placed at the back of Alvik, in this tutorial we
15161513
from arduino_alvik import ArduinoAlvik
15171514
import time
15181515

1516+
# Initialize Alvik
15191517
alvik = ArduinoAlvik()
15201518
alvik.begin()
15211519

15221520
while True:
1521+
# Moves servo
15231522
alvik.set_servo_positions(0,0)
15241523
time.sleep(2)
15251524
alvik.set_servo_positions(90,0)

0 commit comments

Comments
 (0)