RS232 Serial Connector
UART Serial Communication
RS232 Data Frame: Start Bit → Data Bits → Parity Bit → Stop Bit(s)
RS232 devices must use identical communication settings.
| Parameter | Example |
|---|---|
| Baud Rate | 9600 bps |
| Data Bits | 8 |
PC / Microcontroller
Modem / Device
| Pin No. | Abbreviation | Full Form / Function |
|---|---|---|
| 1 | CD | Carrier Detect |
| 2 | RXD | Receive Data |
| 3 | TXD | Transmit Data |
| 4 | DTR | Data Terminal Ready |
| 5 | GND | Signal Ground |
| 6 | DSR | Data Set Ready |
| 7 | RTS | Request To Send |
| 8 | CTS | Clear To Send |
| 9 | RI | Ring Indicator |
Typical RS232 Communication between DTE and DCE
Hardware and Software Flow Control
| Method | Signal |
|---|---|
| Hardware | RTS / CTS |
| Software | XON / XOFF |
MAX232 converts TTL voltage levels to RS232 voltage levels.
D-Sub Connectors: DB9 and DB25 (Male and Female)
| Connector | Pins |
|---|---|
| DB9 | 9 |
| DB25 | 25 |
| Feature | RS232 | UART |
|---|---|---|
| Definition | Communication standard | Hardware module for serial communication |
| Voltage Level | ±3V to ±15V | TTL/CMOS (0–3.3V or 0–5V) |
| Signal Type | Standardized interface | TX and RX logic signals |
| Distance | Up to 15 m (typical) | Short PCB connections |
| Converter Required | No | Needs MAX232 to connect to RS232 |
Key Point: UART generates serial data, while RS232 defines how that data is electrically transmitted.
RS232 remains widely used in industrial systems.
Level shifters are required for microcontroller interfaces.
RS232 console cable used for configuring networking equipment.
USB Hub expands the number of available USB ports
USB Type-A Connector Pinout
USB Host automatically detects connected devices.
| USB Version | Maximum Speed |
|---|---|
| USB 1.1 | 12 Mbps |
| USB 2.0 | 480 Mbps |
| Common USB Device Classes | |
|---|---|
| 🖥 | Display |
| 🌐 | Communication |
| 🎵 | Audio |
| 💾 | Mass Storage |
| ⌨️ | Human Interface Devices (HID) |
USB devices are automatically identified and classified.
Ethernet operates at the Physical and Data Link Layers.
RJ45 Ethernet Connector
Ethernet Frame and MAC Address
CSMA/CD Medium Access Mechanism
TCP/IP Protocol Stack
MODM7AE70 ARM Cortex M-7 Embedded IoT Development Kit
Common Wireless Communication Technologies
Wireless communication between embedded devices
Wireless technologies use different regions of the electromagnetic spectrum.
Infrared communication requires a clear line of sight.
TV remote controls commonly use Infrared (IR) communication.
| Layer | Purpose |
|---|---|
| IrPHY | Physical transmission of infrared light. Defines optical signals, modulation, transmission speed, and receiver sensitivity. |
| IrLAP | Provides reliable link access, device discovery, connection establishment, addressing, and error recovery between two IrDA devices. |
| IrLMP | Manages multiple logical connections, service discovery, and communication between applications over the infrared link. |
| Higher Layers | Application protocols such as IrCOMM, OBEX, printing, synchronization, and file transfer use the services provided by lower layers. |
IR Sensor Module
| Pin | Description |
|---|---|
| VCC | Power Supply Input |
| GND | Ground |
| OUT | Digital Output |
IR Sensor Pinout
Object Detection using Reflected IR Light
| Component | Function |
|---|---|
| IR LED | Emits Infrared Light |
| Photodiode | Receives Reflected IR Light |
| LM358 | Comparator |
| Preset Potentiometer | Adjust Detection Distance |
| LED | Detection Indicator |
Components of an IR Sensor Module
Working Principle of an IR Sensor Module
IEEE 802.11 WLAN Architecture
Wireless Access Point (Wi-Fi Hotspot)
| Term | Description |
|---|---|
| Station (STA) | Any device connected to a Wireless LAN (WLAN). Examples include laptops, smartphones, printers, and wireless access points. |
| Wireless Access Point (WAP) | A wireless router that connects wireless stations to the wired network. |
| Client | A wireless device such as a laptop, computer, smartphone, printer, or IoT device that connects to an Access Point. |
| Access Point (AP) | Acts as a station that provides communication between the wireless medium and the distribution system. |
Stations, Clients and Access Point
| Term | Description |
|---|---|
| Distribution System (DS) | Interconnects multiple Basic Service Sets (BSSs) to create an Extended Service Set (ESS). |
| Frame | The MAC Protocol Data Unit (MAC PDU) transmitted over the wireless medium. |
| SSID | Service Set Identifier (Network Name). Devices must use the same SSID to communicate within a WLAN. |
| Portal | Gateway connecting the wireless LAN to external networks such as Ethernet or the Internet. |
Distribution System connecting multiple BSSs
| Term | Description |
|---|---|
| SDU | Service Data Unit (SDU) is the input data received by a protocol layer before processing. |
| PDU | Protocol Data Unit (PDU) is the output of a protocol layer containing data and protocol-specific headers. |
| Network Interface Controller (NIC) | Hardware interface (network card) that enables a device to connect to a wired or wireless network. |
| OSI Layer | PDU Name |
|---|---|
| Application | Message |
| Transport | Segment (TCP) / Datagram (UDP) |
| Network | Packet |
| Data Link | Frame |
| Physical | Bits |
IEEE 802.11 defines multiple physical layer technologies for wireless communication.
| Technology | Frequency / Medium | Data Rate |
|---|---|---|
| Diffused Infrared (IR) | 850–950 nm | 1–2 Mbps |
| Direct Sequence Spread Spectrum (DSSS) | 2.4 GHz ISM Band | 1–2 Mbps (Up to 7 channels) |
| Frequency Hopping Spread Spectrum (FHSS) | 2.4 GHz ISM Band | 1–2 Mbps |
The Industrial, Scientific and Medical (ISM) band (2400–2483.5 MHz) is an unlicensed radio spectrum, allowing wireless devices to operate without government licensing.
| Standard | Frequency | Maximum Data Rate | Typical Range |
|---|---|---|---|
| 802.11b | 2.4 GHz | 22 Mbps | 100 m |
| 802.11a | 5 GHz | 54 Mbps | 100 m |
| 802.11g | 2.4 GHz | 54 Mbps | 100 m |
The 802.11 MAC layer adds a header to IP packets for wireless transmission. Wi-Fi frames use up to 4 MAC addresses to handle complex routing between access points.
| Generation | IEEE Standard | Release Year | Frequency | Max Data Rate | Key Technologies |
|---|---|---|---|---|---|
| Legacy | 802.11b / a / g | 1999–2003 | 2.4 / 5 GHz | 11 – 54 Mbps | DSSS, OFDM |
| Wi-Fi 4 | 802.11n | 2009 | 2.4 / 5 GHz | 600 Mbps | MIMO (4x4), 40 MHz Channels, Frame Aggregation |
| Wi-Fi 5 | 802.11ac | 2013 | 5 GHz | 3.46 Gbps | MU-MIMO, 256-QAM, 80/160 MHz Channels, Beamforming |
| Wi-Fi 6 / 6E | 802.11ax | 2019 / 2021 | 2.4 / 5 / 6 GHz | 9.6 Gbps | OFDMA, 1024-QAM, Target Wake Time (TWT for IoT) |
| Wi-Fi 7 | 802.11be | 2024 | 2.4 / 5 / 6 GHz | 46 Gbps | 320 MHz Channels, 4096-QAM (4K-QAM), Multi-Link Operation (MLO) |
An RTOS guarantees that tasks finish within strict deadlines. For AI (like self-driving cars), getting the answer on time is just as important as getting it right.
Running AI on tiny microcontrollers requires specialized engines like TensorFlow Lite Micro that sit right on top of the RTOS kernel.
| RTOS OS | Type | Target AI Hardware |
|---|---|---|
| FreeRTOS | Microkernel | ESP32-S3, STM32, Cortex-M |
| Zephyr RTOS | Modular RTOS | Nordic nRF5340, RISC-V |
| QNX Neutrino | POSIX Microkernel | NVIDIA Drive Orin, Automotive AI |
| VxWorks | Hard RTOS | Aerospace, Robotics Edge AI |
In an RTOS, every recurring AI task is defined by three simple variables:
| Parameter | Rate Monotonic (RM) | Earliest Deadline (EDF) |
|---|---|---|
| Priority | Static (1 / Period) | Dynamic (Closest Deadline) |
| Max CPU Util. | ~69.3% ($N \to \infty$) | 100% (Optimal) |
| Overhead | Low (Fast $O(1)$ array) | High (Queue re-sorting) |
| Overload | Predictable (Low priority drops) | Domino effect (Cascade failures) |
| RTOS Support | FreeRTOS, VxWorks, QNX | Linux (SCHED_DEADLINE) |
Because neural networks take a long time to run, standard RTOS scheduling isn't enough. We use clever AI tricks to guarantee deadlines: