Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,15 @@ Now you’ve created your first program: Alvik will turn on the left LED for one

![Blink program](assets/blink.gif)

### ToF Sensor Example
## ToF Sensor Example

In this second example Alvik will try to keep a constant distance from an object, moving back and forward accordingly.

<video width="100%" loop autoplay>
<source src="assets/tof-video.mp4" type="video/mp4" />
</video>
<div style="text-align: center;">
<video width="100%" controls="true">
<source src="assets/tof-video.mp4" type="video/mp4"/>
</video>
</div>

Navigate to `Control` commands folder.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ If you're using a **Chromebook**, there is no installable version of the softwar

![Online Lab Micropython](assets/online-lab-micropython.jpg)

Alternatively, on par with other Arduino products, you can also program your Alvik using Arduino IDE and C++. If this is the case you can find setup instructions over at [Setting up Alvik on Arduino IDE](../setting-alvik-arduino-ide/setting-alvik-arduino-ide.md).
Alternatively, on par with other Arduino products, you can also program your Alvik using Arduino IDE and C++. If this is the case you can find setup instructions over at [Setting up Alvik on Arduino IDE](https://docs.arduino.cc/tutorials/alvik/setting-alvik-arduino-ide/).

Now that all the previous steps have been set, let's see how to make Alvik moving across your room while avoiding objects! Let's create custom program for Alvik that:

Expand Down