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
@@ -471,7 +476,7 @@ Now you can open the Arduino Lab for MicroPython, connect Alvik and open the exa
471
476
472
477
Open the example called `bender.py`, launch it and see on your display the image of Bender's robot.
473
478
474
-
<!--
479
+
<!--
475
480
## Julian Proposal
476
481
477
482
## What is Alvik
@@ -526,16 +531,152 @@ Alvik have two controllers
526
531
527
532
### Line Follower
528
533
534
+
## Updating Alvik
535
+
536
+
### Updating Alvik's Brain (Nano ESP32)
537
+
538
+
It may happen that you used your Nano ESP32 for other projects than Alvik, or you need to replace it. In order to make your Nano ESP32 work with Alvik, there are few steps needed:
539
+
540
+
1. Install the micropython bootloader on it following [this guide](https://docs.arduino.cc/micropython/basics/board-installation/).
541
+
542
+
2. Download the Alvik micropyton libraries
543
+
544
+
1. Alvik micropython libraries from the [Alvik repository](https://github.com/arduino/arduino-alvik-mpy/tree/main)
545
+
2. ucPack libraries from the [ucPack repository](https://github.com/arduino/ucPack-mpy/tree/main)
546
+
547
+
3. Unzip both of the downloaded libraries in a single "Alvik" folder, open the Arduino Lab for MicroPython, go to the "files" tab and set the path to the unzipped folder on the Arduino Lab for Micropython
548
+
549
+

550
+
551
+
4. Make sure your Alvik is OFF, connect it to your computer and then, turn it ON
552
+
553
+

554
+
555
+
5. Connect your Alvik to the Arduino Labs for micropython and open the "lib"
556
+

557
+
558
+
6. Select the "Arduino-alvik" and move it inside the "lib" folder in your Alvik.
559
+

560
+
561
+
7. Go back to the main folder and select the "ucPack-mpy-main" folder and move it next to the arduino_alvik inside the "lib" folder in your Nano ESP32.
562
+

563
+
564
+
8. Now go back to the main root of the files system on the Nano ESP32. Then in your local folder navigate to the examples folder once there, select the following files and move them to the main folder of the ESP32.
565
+
566
+
1. demo.py
567
+
2. hand_follower.py
568
+
3. line_follower.py
569
+
4. main.py
570
+
5. touch_move.py
571
+
572
+

573
+
574
+
With this last step, your Nano ESP32 has been set up with the Alvik out of the box experience and is ready to be used.
575
+
576
+
### Updating Alvik's Body (STM32)
577
+
578
+
1. Download the [pre-compiled firmware](https://github.com/arduino-libraries/Arduino_AlvikCarrier/releases/latest) from the [Alvik Carrier GitHub reposiitory](https://github.com/arduino-libraries/Arduino_AlvikCarrier)
579
+
580
+
This step will download a "firmware_x_x_x.bin" file, save it in your Alvik folder
581
+
582
+
2. Connect your Alvik to the Computer and to the Arduino Labs for Micropython. Then, go to the files tab and navigate to the folder where you stored the "firmware_x_x_x.bin"
583
+

584
+
585
+
3. Let's move now the "firmware_x_x_x.bin" to the main root.
586
+

587
+
588
+
4. Turn ON your alvik, go to the Editor tab and tun the following commands by typing them and clicking on the "Play" button
589
+
590
+
```
591
+
from arduino_alvik import update_firmware
529
592
530
-
## Alvik First Use
593
+
update_firmware('./firmware_1_0_0.bin')
594
+
```
531
595
532
-
### Update Alvik's body
596
+

597
+
598
+
After executing these commands, there will be updates of the process on the prompt, once the process finishes, the firmware of your alvik will be updated.
533
599
534
-
### Update Alvik's brain
535
-
- Update ESP32 Micropython Firmware
536
-
- Update Alvik's Library
537
600
### Hello Alvik! Your first program!
538
601
602
+
Alvik is intended to be programmed with MicroPyton. We recommend you to install the [Arduino Lab for MicroPython](https://labs.arduino.cc/en/labs/micropython) editor.
603
+
604
+
Now that all the previous steps have been set, let's see how to create custom programs for Alvik to move forward until detecting an object in front of it, Alvik will detect it, dodge it and continue on its way.
605
+
606
+
607
+
**1. **Create an Alvik folder in your computer and set it as the path of the Arduino Lab for MicroPython IDE
608
+
609
+

610
+
611
+
**2. **Create a new file "obstacle_avoider.py" in your local folder
**4. **Connect Alvik to your PC using the cable included in the box, under the tray.
661
+
662
+

663
+
664
+
***Make sure that Alvik is OFF before connecting it to your computer.***
665
+
666
+
**5. **Once Alvik is connected to the PC, connect it to the Arduino Lab for MicroPython and open the _main.py_ file in the Alvik folder. Once the file is opened let's replace the `import demo` statement by `import obstacle_avoider`.
667
+
668
+

669
+
670
+
***If you want to go back to the out of the box experience where you could select between reg, green and blue programs, you only need to modify the _main.py_ again replacing the `import obstacle_avoider` statement by `import demo`***
671
+
672
+
**6. **The last step is to move the _obstacle_avoider.py_ file from the local repository to Alvik's memory.
673
+
674
+

675
+
676
+
You are now all set, disconnect Alvik from the computer, put some obstacles around Alvik, turn it ON and see how Alvik detects them and turns to avoid them.
0 commit comments