Skip to content

Commit 806a1ac

Browse files
committed
Distance+pixels
1 parent 236ea55 commit 806a1ac

File tree

2 files changed

+29
-21
lines changed

2 files changed

+29
-21
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,41 @@
11
---
2-
32
title: 'Modulino Distance'
4-
description: 'Get started with using the Modulino Distance'
3+
description: 'Get started with the Modulino Distance using MicroPython'
54
author: 'Hannes Siebeneicher, Sebastian Romero'
65
hero_image: "./hero-banner.png"
7-
86
---
97

10-
This article will show you how to get started with the Modulino Distance and measure the distance to an object.
8+
In this tutorial, we will get started with the Modulino Distance, which can measure the distance to an object.
9+
10+
***Note that the installation of the Modulino package is not covered in this tutorial. For details on how to install this, visit the [MicroPython - Modulino Package Installation tutorial](/micropython/modulinos/installation).***
1111

1212
## Goals
1313

1414
The goals of this tutorial are:
1515

16-
- learn how to connect a Modulino to the Arduino Nano ESP32.
16+
- learn how to connect a Modulino to an Arduino using MicroPython
1717
- learn how to program the Modulino Distance.
1818

1919
## Hardware & Software Needed
2020

21-
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
22-
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined)
23-
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
21+
For this tutorial, we will need the following hardware:
2422
- [Modulino Distance](https://store.arduino.cc/products/plug-and-make-kit)
2523
- [Arduino Nano to QWIIC Connector Carrier]()
24+
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined) or [Arduino Nano RP2040 Connect](https://store.arduino.cc/en-se/products/arduino-nano-rp2040-connect)
25+
26+
We will also need the following software:
27+
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
28+
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
2629

2730
## Connect the Modulino
2831

29-
Before programming it, you need to first connect your Modulino Distance to your Arduino Nano ESP32. Follow the diagram below to connect your Modulino Distance and Nano ESP32.
32+
Before we start programming, we will need to connect our Modulino Distance to our Arduino board. For this we can follow the circuit diagram below:
3033

3134
![Circuit Diagram]()
3235

33-
## Code
36+
## Modulino Distance Code Example
3437

35-
Copy the code below and run it in Arduino MicroPython labs connected to your Arduino Nano ESP32.
38+
Copy the code below and run it in Arduino MicroPython labs, while connected to our board.
3639

3740
```python
3841
from modulino import ModulinoDistance
@@ -43,4 +46,5 @@ distance = ModulinoDistance()
4346
while True:
4447
print(f"📏 Distance: {distance.distance} cm")
4548
sleep_ms(50)
46-
````
49+
```
50+

content/micropython/03.micropython/modulinos/03.modulino-pixels/modulino-pixels.md

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
---
22

33
title: 'Modulino Pixels'
4-
description: 'Get started with using the Modulino Pixels'
4+
description: 'Get started with the Modulino Pixels using MicroPython'
55
author: 'Hannes Siebeneicher, Sebastian Romero'
66
hero_image: "./hero-banner.png"
7-
87
---
98

10-
This article will show you how to get started with the Modulino Pixels and control RGB LEDs.
9+
In this tutorial, we will get started with the Modulino Pixels and control its RGB LEDs.
10+
11+
***Note that the installation of the Modulino package is not covered in this tutorial. For details on how to install this, visit the [MicroPython - Modulino Package Installation tutorial](/micropython/modulinos/installation).***
1112

1213
## Goals
1314

@@ -18,21 +19,24 @@ The goals of this tutorial are:
1819

1920
## Hardware & Software Needed
2021

21-
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
22-
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined)
23-
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
22+
For this tutorial, we will need the following hardware:
2423
- [Modulino Pixels](https://store.arduino.cc/products/plug-and-make-kit)
2524
- [Arduino Nano to QWIIC Connector Carrier]()
25+
- [Arduino Nano ESP32](https://store.arduino.cc/products/nano-esp32?queryID=undefined) or [Arduino Nano RP2040 Connect](https://store.arduino.cc/en-se/products/arduino-nano-rp2040-connect)
26+
27+
We will also need the following software:
28+
- [MicroPython Labs](https://lab-micropython.arduino.cc/)
29+
- [Modulino MicroPython Package](https://github.com/arduino/arduino-modulino-mpy)
2630

2731
## Connect the Modulino
2832

29-
Before programming it, you need to first connect your Modulino Pixels to your Arduino Nano ESP32. Follow the diagram below to connect your Modulino Pixels and Nano ESP32.
33+
Before we start programming, we will need to connect our Modulino Pixels to our Arduino board. For this we can follow the circuit diagram below:
3034

3135
![Circuit Diagram]()
3236

33-
## Code
37+
## Modulino Pixels Code Example
3438

35-
Copy the code below and run it in Arduino MicroPython labs connected to your Arduino Nano ESP32.
39+
Copy the code below and run it in Arduino MicroPython labs, while connected to our board.
3640

3741
```python
3842
from modulino import ModulinoPixels, ModulinoColor

0 commit comments

Comments
 (0)