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/05.pro-solutions/solutions-and-kits/stella/tutorials/01.user-manual/content.md
+36-88Lines changed: 36 additions & 88 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -251,87 +251,6 @@ The Arduino Stella can be powered through its USB-C port or Qwiic connector for
251
251
252
252
For portable and wireless applications, the Arduino Stella offers two additional power options: the onboard CR2032 battery holder. The CR2032 battery holder allows you to install a +3 VDC coin cell battery, making the board completely wireless for mobile projects. The J-Link connector, while primarily used for debugging purposes, can also serve as a power input when needed.
253
253
254
-

255
-
256
-
257
-
***__Important note__: When using battery power, ensure the correct polarity when inserting the CR2032 battery into the holder. The positive (+) side should face up, away from the PCB, as shown in the image below.***
258
-
259
-

260
-
261
-
***__Warning:__ When using Arduino Stella with USB-C power, remove the CR2032 battery; never power the Arduino Stella from both battery and USB simultaneously. The board is designed to prioritize USB power when connected. Removing the battery when working with USB will extend its life, ensure the most reliable operation and maximize battery lifespan.***
262
-
263
-
### Connecting to Your Computer
264
-
265
-
To program the Arduino Stella, connect it to your computer using a USB-C cable:
266
-
267
-
1. Insert the USB-C connector into the port on the Arduino Stella.
268
-
2. Connect the other end to an available USB port on your computer.
269
-
270
-
Once connected, you should see a power indicator light up on the board, indicating it's receiving power from the USB port.
271
-
272
-
### Nearby World Example
273
-
274
-
Let's use the Arduino Stella to create a real-time distance measurement system using UWB technology. We will implement what we call the `Nearby World` example, which serves as our `Hello World` sketch for UWB technology. This example will verify the Arduino Stella's UWB capabilities and its ability to communicate with UWB-enabled smartphones.
275
-
276
-
***This example sketch leverages Apple's Nearby Interaction protocol and similar UWB implementations on Android devices to establish a communication channel between the Arduino Stella and a UWB-enabled smartphone, allowing precise distance and angle measurements.***
277
-
278
-
#### How It Works
279
-
280
-
The `Nearby Worldc example demonstrates the core functionality of UWB technology through a simple example sketch that can be described in the following key steps:
281
-
282
-
1.**Bluetooth® Low Energy connection setup**: The Arduino Stella broadcasts using Bluetooth Low Energy to make itself discoverable to compatible smartphone apps.
283
-
2.**Configuration exchange**: The Bluetooth Low Energy connection is used to exchange necessary UWB configuration parameters between the Arduino Stella and the smartphone.
284
-
3.**UWB ranging**: Once configured, the actual UWB ranging session begins, providing precise distance measurements.
285
-
4.**Real-time feedback**: Distance data is continuously updated and can be viewed both on the IDE's Serial Monitor and on the smartphone app.
286
-
287
-
This process demonstrates the working principle of many UWB applications, where Bluetooth Low Energy is used primarily for discovery and configuration, while UWB handles the precise ranging.
288
-
289
-
#### Uploading the Sketch
290
-
291
-
First, connect the Arduino Stella to your computer using a USB-C cable, open the Arduino IDE and connect the board to it.
292
-
293
-
***__Important note__: If you are new to the Arduino Stella, ensure you have installed the required board support package by going to Tools > Board > Boards Manager and searching for ### Pinout
294
-
295
-
The full pinout is available and downloadable as PDF from the link below:
When you open the box of the Arduino Stella, you will find the board itself with its distinctive octagonal shape, featuring a USB-C port on one edge. The Arduino Stella is a compact board with dimensions of 38 mm x 38 mm, designed to be easily integrated into various tracking applications.
322
-
323
-
The Arduino Stella comes ready to use, but you may want to add a CR2032 battery if you plan to use it in portable applications that require battery power.
324
-
325
-
### Powering the Board
326
-
327
-
The Arduino Stella can be powered through one of these interfaces:
328
-
329
-
The Arduino Stella can be powered through its USB-C port or Qwiic connector for stationary applications. The USB-C port is the simplest and most common method, providing a stable +5 VDC power source when connected to a computer or wall adapter. The Qwiic connector can also supply power when connecting the board to a system that provides power through the Qwiic bus, enabling integration with other Qwiic-compatible components.
330
-
331
-

332
-
333
-
For portable and wireless applications, the Arduino Stella offers two additional power options: the onboard CR2032 battery holder. The CR2032 battery holder allows you to install a +3 VDC coin cell battery, making the board completely wireless for mobile projects. The J-Link connector, while primarily used for debugging purposes, can also serve as a power input when needed.
334
-
335
254

336
255
337
256
***__Important note__: When using battery power, ensure the correct polarity when inserting the CR2032 battery into the holder. The positive (+) side should face up, away from the PCB, as shown in the image below.***
@@ -368,10 +287,18 @@ This process demonstrates the working principle of many UWB applications, where
368
287
369
288
#### Uploading the Sketch
370
289
371
-
First, connect the Arduino Stella to your computer using a USB-C cable, open the Arduino IDE and connect the board to it.
290
+
**Step 1: Verify Board Selection**
291
+
292
+
Before uploading any code to the Arduino Stella, ensure you have selected the correct board:
293
+
294
+
1. Connect the Arduino Stella to your computer using a USB-C cable
295
+
2. Open the Arduino IDE
296
+
3.**Critical:** Navigate to `Tools > Board > Arduino Mbed OS Stella Boards > Arduino Stella`
297
+
4. Verify the correct port is selected in `Tools > Port`
372
298
373
-
***__Important note__: If you are new to the Arduino Stella, ensure you have installed the required board support package by going to Tools > Board > Boards Manager and searching for `Arduino Mbed OS Stella Boards`.***
299
+
***⚠️ __Important note__: Do not select `Arduino BLE Sense 33`, `Portenta C33` or any other board when programming the Arduino Stella. This will cause compilation errors.***
374
300
301
+
**Step 2: Upload the Sketch**
375
302
376
303
Copy and paste the example sketch below into a new sketch in the Arduino IDE:
377
304
@@ -539,6 +466,8 @@ You should see the distance measurements updating in real-time both on your smar
539
466
540
467
### About the NearbyDemo Example
541
468
469
+
***📋 __Before you begin__: Ensure you have selected `Tools > Board > Arduino Mbed OS Stella Boards > Arduino Stella` in the Arduino IDE. Selecting the wrong board (like `Arduino BLE Sense 33`) will prevent this code from compiling.***
470
+
542
471
The `NearbyDemo` example sketch demonstrates how to implement distance measurement between the Arduino Stella and UWB-enabled smartphones using Apple's Nearby Interaction protocol or compatible Android implementations. This example showcases how Bluetooth® Low Energy is used for initial device discovery and configuration exchange, while UWB handles the precise distance measurements.
543
472
544
473
This example demonstrates the following:
@@ -817,8 +746,16 @@ The event-driven architecture makes it easy to add features without disrupting t
***⚠️ __Important note__: Both devices must have the correct board selected in Arduino IDE before uploading their respective sketches.***
758
+
822
759
The Two-Way Ranging example demonstrates direct UWB communication between two Arduino devices: the Arduino Stella (acting as a Controller/Initiator) and the Portenta UWB Shield (acting as a Controlee/Responder). This example showcases the fundamental distance measurement capabilities of UWB technology in a dedicated device-to-device setup without requiring external UWB-enabled consumer devices such as smartphones.
823
760
824
761
***__Important note__: In UWB communication, the terms "Controller" and "Controlee" refer to specific roles within a ranging session. A __Controller__ (also called an Initiator) is the device that initiates and controls the ranging process, sending the initial signal and managing the timing of exchanges. A __Controlee__ (also called a Responder) is the device that responds to the Controller's signals. These terms are used interchangeably in UWB documentation: Controller/Initiator and Controlee/Responder refer to the same roles. In positioning systems, Controllers/Initiators often correspond to mobile "tags" while Controlees/Responders often serve as stationary "anchors".***
@@ -840,7 +777,9 @@ Some of the real-life applications for this example include:
840
777
-**Access control systems**: Implementing secure entry systems based on precise proximity detection.
841
778
-**Interactive installations**: Enabling position-based interactive exhibits in museums or public spaces
842
779
843
-
Here's the code for the Arduino Stella, which acts as the Controller (Initiator) in this Two-Way Ranging scenario:
780
+
Here's the code for the Arduino Stella, which acts as the Controller (Initiator) in this Two-Way Ranging scenario.
781
+
782
+
**📋 Board Selection Check:** Ensure `Arduino Stella` is selected in the IDE before uploading this code.
844
783
845
784
```arduino
846
785
/**
@@ -983,6 +922,8 @@ void loop() {
983
922
984
923
Here's the code for the Portenta UWB Shield, which acts as the Controlee (Responder) in this Two-Way Ranging scenario:
985
924
925
+
**📋 Board Selection Check:** Ensure `Portenta C33` is selected in the IDE before uploading this code.
926
+
986
927
```arduino
987
928
/**
988
929
Two-Way Ranging Controlee Example for Portenta UWB Shield
@@ -1269,10 +1210,17 @@ First, prepare your devices by following these steps:
1269
1210
1270
1211
Next, upload the appropriate sketches to each device:
1271
1212
1272
-
1. Select "Arduino Portenta C33" as the board type in the Arduino IDE
1273
-
2. Upload the Controlee/Responder sketch to the Portenta C33 board
1274
-
3. Select "Arduino Stella" as the board type
1275
-
4. Upload the Controller/Initiator sketch to the Arduino Stella
0 commit comments