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/02.hero/shields/spe-shield/tutorials/getting-started/spe-getting-started.md
+32-9Lines changed: 32 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,10 @@
1
+
---
2
+
title: 'Getting Started With the Arduino SPE Shield'
3
+
difficulty: beginner
4
+
tags: [Getting Started]
5
+
description: 'This tutorial will give you an overview of the core features of the SPE Shield.'
6
+
author: 'Pedro Lima'
7
+
---
1
8
Learn how to establish Single Pair Ethernet (SPE) communication using the Arduino® UNO SPE Shield, enabling industrial IoT connectivity with minimal wiring complexity.
2
9
3
10
## Overview
@@ -6,17 +13,17 @@ The Arduino® UNO SPE Shield brings industrial-grade Single Pair Ethernet (10BAS
6
13
7
14
In this guide, you'll learn how to set up your first SPE network, understand the fundamentals of 10BASE-T1S communication, and implement both point-to-point and multidrop network configurations.
8
15
9
-

16
+

10
17
11
18
## Hardware and Software Requirements
12
19
13
20
### Hardware Requirements
14
21
15
22
- Arduino® UNO SPE Shield
16
23
- Compatible Arduino board:
17
-
- Arduino® UNO R4 WiFi (recommended)
18
-
- Arduino® UNO R4 Minima
19
-
- Arduino® UNO R3
24
+
Arduino® UNO R4 WiFi (recommended)
25
+
Arduino® UNO R4 Minima
26
+
Arduino® UNO R3
20
27
- USB cables for programming
21
28
- Twisted pair cable for SPE connection
22
29
@@ -110,7 +117,7 @@ A screw connector for powering the board and Shield assembly is provided with tw
110
117
111
118
## Termination Jumpers:
112
119
113
-
### SPI Termination Jumper:
120
+
### SPE Termination Jumper:
114
121
115
122
To enable or disable the onboard termination resistors for the SPE bus there are two pairs of contact you can bridge.
116
123

@@ -119,7 +126,7 @@ These are necessary always in the edge nodes both when using a multidrop or poin
119
126
### RS-485 Termination Jumper:
120
127
121
128
The same principle applies to the RS-485 connector however in this case there is only a single jumper that needs to be bridged.
122
-

129
+

123
130
124
131
## First Use of Your Arduino UNO SPE Shield
125
132
@@ -140,11 +147,11 @@ The shield can be powered through multiple sources:
140
147
141
148

142
149
143
-
## Simple broadcast Example
150
+
## Simple Broadcast Example
144
151
145
152
This example demonstrates a simple broadcast communication system between multiple nodes on an SPE network. Each node can broadcast messages to all other nodes, and automatically responds with "pong" when it receives a "ping" message. This creates an interactive network where you can test connectivity and response times between different devices.
146
153
147
-

154
+

148
155
149
156
### Hardware Setup
150
157
@@ -372,6 +379,22 @@ void showHeartbeat() {
372
379
}
373
380
```
374
381
382
+
### SPI/RS-485 Network Example
383
+
384
+
This example demonstrates a hierarchical control system where a central SPE controller manages multiple Arduino Opta boards through gateway nodes. The system uses SPE (Single Pair Ethernet) for the main network backbone and RS-485 for connecting to end devices, combining the benefits of modern Ethernet with the reliability of industrial serial communication.
385
+
386
+
The architecture consists of three layers: a central control node that issues commands, gateway nodes that translate between SPE and RS-485 protocols, and Opta boards that execute the actual control operations. This design allows for scalable industrial automation where multiple Opta boards can be distributed across a facility while being managed from a single control point.
387
+
388
+
### Central Control Node (Server)
389
+
390
+
The central control node (Node 7) acts as the command center of the system, sending LED control commands to specific Opta boards through their associated gateway nodes. Operating on the SPE network, this node provides a simple serial interface where operators can type commands like "LED 3" to toggle specific LEDs on remote Optas.
The gateway nodes serve as protocol translators between the SPE network and RS-485 devices. Each gateway consists of an Arduino board with an SPE shield, where the board's hardware serial port (Serial1) connects to the RS-485 transceiver on the shield. These nodes receive UDP packets from the SPE network, extract the command data, and forward it to the RS-485 bus.
@@ -384,7 +407,7 @@ When an Opta board responds via RS-485, the gateway captures the response and se
384
407
In Progress
385
408
```
386
409
387
-
### Opta RS-485 interface
410
+
### Opta RS-485 Interface
388
411
389
412
The Arduino Opta boards represent the end devices in this system, receiving commands via RS-485 and executing the requested actions. Each Opta configures pins 2-13 as digital outputs and listens for specific command formats on its serial interface. The boards can process three types of commands: reading individual pin states, writing to specific pins, or reading all pin states at once.
0 commit comments