Topic 3: Robotics & autonomous systems
Summary of Topic 3: robot operating systems and drone swarm control, the Internet of Military Things (IoMT), LoRa/Mesh networks for areas without signal coverage, and programming an SOS Beacon–Receiver
This topic is part of thecontent on programming artificial intelligence (AI) on drones, robots and advanced IoT devices . It raises the content from controlling a single drone in Topics 1 and 2 to coordinating multiple robots and drones simultaneously, and extends the scope from AI-based vision to long-range wireless communications that are practical in rescue missions and military operations. This part elaborates on each subtopic with reference to sources on drone swarm technology and wireless communications, and links the content to the actual source code prepared for the workshop in this topic
The content is divided into two main parts: Module 05 on robot operating systems and swarms, and a second part on the Internet of Military Things, which concludes with hands-on programming of real communication devices
Module 05: Robot operating systems and swarms
This module extends knowledge from controlling a single drone in the previous topics to coordinating multiple drones simultaneously, a technology that plays an increasingly important role in surveillance, search and rescue, and modern military operations
Lecture and practice in basic manual swarm control (Manual Basic Control)
This part begins by laying the conceptual foundation of the Drone Swarm, meaning a group of autonomous drones that work in coordination in a way inspired by animal behaviour in nature, such as flocks of birds or schools of fish. Swarm control systems in real use today are often designed as a hybrid of centralised and decentralised control: the operator only sets the overall mission objectives, while the artificial intelligence system manages the details of movement and coordination between individual drones itself. Swarm coordination relies on three basic rules called Separate, Align and Cohere, meaning keeping a distance from one another to avoid collisions, moving in the same direction, and keeping the group cohesive so it does not scatter, as shown in Figure 2 (Maris-Tech, Drone (UAV) Swarm Technology: Transforming Military Potential)
Figure 2: Hybrid swarm control architecture and the Separate-Align-Cohere coordination principles
Another distinctive feature of drone swarms is inter-drone communication, which often relies on a secure mesh network to exchange data peer-to-peer between drones without depending on a single central control station. This feature allows a swarm to continue its mission even when GPS satellite signals are jammed or partially lost, which links well back to the content on cyber threats in Topic 1. In practice, drone swarms are widely applied in intelligence gathering, wide-area surveillance, battlefield strategy and tactical support, increasing operational coverage, reducing risk to personnel and multiplying mission support capability compared with using a single drone. Practising Manual Basic Control at this stage is therefore a necessary first step to familiarise readers with the dynamics of flying multiple aircraft simultaneously before moving on to more complex workshop activities next
Workshop: Activities and missions for robot operating systems and swarms
This workshop is divided into two consecutive parts. The first is a hands-on activity on robot operating systems and swarms in general, in which readers try commanding multiple drones to move in coordination according to the principles learned. The second applies these principles to simulated missions closer to real situations, such as assigning a group of drones to divide areas of responsibility for patrolling or jointly searching for a target. Activities of this kind train two important skills at once: programming skills to define group behaviour, and mission management skills that require a view of the whole system rather than any single drone, which are essential for personnel who will work in defence technology in the future. Several types of swarm missions are commonly practised in this way, from flying in a fixed formation for demonstrations or wide-angle photography, to dividing search areas without overlap between drones to improve patrol efficiency, and training the swarm to automatically reconfigure its flight pattern when one drone fails or drops out of the network. This reflects the robustness of a system designed not to fail entirely because of a problem at a single point, a highly valuable property in high-risk missions
Internet of Military Things
This subtopic shifts the focus from controlling drone movement to communications and data connectivity, another pillar of modern defence technology, and content directly linked to the source code prepared for readers to program hands-on at the end of this topic
Basic IoT concepts for rescue missions and military operations
This part introduces the concept of the Internet of Military Things, or IoMT, sometimes called the Internet of Battlefield Things, or IoBT, which is the application of Internet of Things technology to security and combat contexts. The system consists of four interconnected main components: sensors and monitoring devices distributed across the area of operations; networked vehicles and drones; wearable devices for soldiers that integrate vital-sign sensors and location data; and a command and control system that brings all the data together. The main benefits of this system include real-time situational awareness from surveillance sensor networks, efficient base management, logistics tracking and predictive maintenance, and connecting individual soldiers to the central network (COM4, IoT Connectivity in Defence: Inside the Internet of Military Things). In the context of rescue missions, the same concept is adapted to connect detection devices, emergency communication equipment and rescue teams in areas where normal communications infrastructure may be destroyed or inaccessible, which is the origin of the technology covered in the next subtopic. However, the more devices are connected, the wider the cyber attack surface discussed in Topic 1 becomes. IoMT system designers must therefore always consider data security and signal encryption alongside the benefits of connectivity, a principle readers have encountered since Module 01 in Topic 1, as shown in Figure 5
Figure 5: The four main components of IoMT, field sensors, vehicles/drones, soldier wearables and individual connectivity, connected to the command and control system
Introduction to wireless communication technologies for areas without signal coverage: LoRa and Mesh Network basics
This part goes deeper into the communications technology at the heart of rescue missions and operations in remote areas, namely LoRa, short for Long Range, a radio technology that can transmit small amounts of data over distances of several kilometres with very low power consumption. It operates on frequency bands that do not require a specific licence and allows devices to run for days or weeks on a single battery. These properties make LoRa highly suitable for field devices that must operate for long periods without a charging source. When LoRa is combined with a Mesh network architecture, the result is a system in which each device connects to several neighbouring devices, and messages are relayed or “hop” from one device to the next in turn until they reach the destination. If any path is lost, the system automatically finds a new route, making the network highly resilient, as shown in Figure 3 (NodakMesh, What Is a LoRa Mesh Network? The Beginner’s Guide)
Figure 3: Hop-by-hop message relaying in a LoRa Mesh network from the source node to the destination
The most important strength of LoRa Mesh is its ability to operate fully without depending on any external infrastructure, whether mobile phone signals, Wi-Fi networks or even satellites. It is therefore highly suitable for use in mountainous areas, deep forests or disaster areas where normal communications infrastructure has been destroyed. It also supports end-to-end data encryption for security and has no monthly fees because it does not depend on any network operator. All these properties explain why LoRa technology was chosen as the core of the device that readers will program in the next workshop
Hands-on device programming: transmitter (Beacon) and receiver (Receiver)
This closing workshop brings together all the knowledge from Topics 1 to 3 in a tangible project, namely the LoRa SOS Relay Demo system, which simulates an emergency request for help in an area without mobile phone signal. The system consists of two devices working as a pair. The first is the Beacon , or transmitter, which reads the SOS button and position coordinates from an external GPS module, then packs all the data and transmits it via an SX1262 LoRa chip on 923 MHz, a frequency band that the NBTC permits for use in Thailand. The second is the Receiver , or receiver, which receives the SOS data and coordinates sent by the Beacon and outputs them through the Serial port so that the sos_live_map.py script running on a laptop connected via a USB cable can display the data on a live map through the map.html file in real time. The architecture of the whole system is shown in Figure 4
Figure 4: Architecture of the LoRa SOS Beacon–Receiver system that readers program hands-on in the final workshop
In practice, readers will work with two pre-prepared Arduino source files, LoRa_SOS_Beacon_SX1262.ino and LoRa_SOS_Receiver_SX1262.ino , and must install four key libraries through the Arduino IDE: RadioLib for controlling the LoRa chip, XPowersLib for managing the AXP2101 power management chip on the T-Beam V1.2 board used in the workshop, TinyGPSPlus for parsing raw data from the GPS module into readable coordinates, and an OLED display driver library for the Beacon board, which has a built-in display. An important technical caution is that boards using the SX1262 and SX1276 LoRa chips differ slightly: the SX1262 has an additional signal pin called BUSY but lacks the DIO0 pin used by the SX1276, so readers must choose the code file that matches the chip on their own board, as summarised in Figure 6. There is also a note on GPS operation: the receiver must be outdoors or near a window with a view of the sky to acquire satellite signals, and the first power-up may take from 30 seconds to several minutes before a position fix is obtained. If the user presses the SOS button before the GPS has acquired a signal, the system will still transmit the distress signal as normal, but without coordinates attached, and it will be flagged as position not yet found. Editing and uploading these two code files yourself is therefore a practical culmination that fully integrates the hardware knowledge from Topic 1, the programming from Topic 2 and the wireless communications just learned in this topic
Figure 6: Differences in signal pins between the SX1262 and SX1276 chips, with the four libraries that must be installed before uploading the code
From a software engineering perspective, each file has a “detailed comments” version that explains every statement line by line for those without prior programming background; the actual code works exactly the same as the standard version, differing only in the amount of explanatory commentary. The Beacon side still enables the power circuit to the board's original GPS port even though it has switched to a permanently soldered external GPS module, which causes no harm to the circuit. The Receiver side does not need its own GPS module because it receives the coordinates sent from the Beacon directly over LoRa, and since this board has no OLED display fitted, the code omits all display control. Readers check reception results via the Serial Monitor of the Arduino IDE or via the live map page mentioned above instead. Although these details may seem like minor technical points, they reflect the embedded system design mindset of carefully considering the limitations of each piece of hardware, a skill readers will apply further in developing other IoT and robotics projects in the future
Overall summary of Topics 1–3
Figure 7: From a single drone (Topic 1) to AI programming (Topic 2) to swarm coordination and wireless communications (Topic 3)
Looking back across Topics 1 to 3, a systematically designed and continuous learning pathway can be seen. Topic 1 lays the foundations in cybersecurity, aviation law and the aerodynamics of a single drone. Topic 2 advances to programming autonomous flight control and applying artificial intelligence for Computer Vision so that drones can see and make decisions. Topic 3 extends the scope from a single drone to coordinating swarms of multiple drones, concluding with long-range wireless communications through LoRa technology that is practical in rescue and security missions. All this knowledge combines into a complete overview of modern intelligent drone systems, from hardware, programming and artificial intelligence to communication networks, which are core skills important for developing personnel in modern defence technology and rescue
Bibliography
-
Maris-Tech. (n.d.). Drone (UAV) Swarm Technology: Transforming Military Potential. Retrieved from https://www.maris-tech.com/blog/drone-swarm-its-impact-at-the-military-scene-maris-tech/
-
NodakMesh. (n.d.). What Is a LoRa Mesh Network? The Beginner’s Guide. Retrieved from https://nodakmesh.org/blog/what-is-lora-mesh-network
-
COM4. (n.d.). IoT Connectivity in Defence: Inside the Internet of Military Things. Retrieved from https://www.com4.no/en/blog/iot-connectivity-in-defence-inside-the-internet-of-military-things
Note: Content derived from the original course schedule file (module topics, time slots and activity formats) does not cite external sources. The content on the Beacon–Receiver system architecture is based on the source code LoRa_SOS_Beacon_SX1262.ino and LoRa_SOS_Receiver_SX1262.ino , which are internal teaching materials of the project, not external sources. Other in-depth explanations expanded from the topics in the schedule cite the sources above as indicated in the text