FPGA SPI Emulator for Real-Time UAV Sensor Simulation

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current hardware-in-the-loop (HWIL) simulations for unmanned aerial vehicles (UAVs) struggle to accurately emulate digital sensors communicating over clocked serial buses like SPI, as software-based emulations are too slow to replicate the real-time response of digital sensors, which is crucial for true-to-life simulations.

Innovation Solution

A programmable logic device-based emulator that holds device configuration information and dynamic data from a simulation model, with a decode mechanism to select response data from registers, enabling it to respond in real-time like actual digital sensors, thus accurately simulating digital sensor communication over SPI.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If software-based emulation is used to simulate digital sensors, then the system complexity is reduced and ease of manufacture is improved, but the response speed becomes too slow to replicate real-time sensor behavior

Engineering Contradiction:
Improveease of emulation setupVSAvoidresponse speed
Core Design Contradiction:
Ease of manufactureVSSpeed

Solution Approach 1:

The patent replaces software-based emulation with a hardware-based SPI emulator implemented using a Field-Programmable Gate Array (FPGA). This substitution of hardware for software eliminates the timing delays inherent in software execution while maintaining the flexibility and programmability of software solutions. The FPGA device provides real-time response capabilities matching actual digital sensors, yet retains ease of configuration through programmable logic.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

2Speed

If hardware-based SPI emulation is implemented using FPGA, then the response speed matches real sensors, but the device complexity and manufacturing cost increase

Engineering Contradiction:
Improveresponse speedVSAvoidemulator hardware complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent implements a universal SPI emulator design that can emulate multiple different digital sensor types through programmable configuration. The FPGA device contains configurable logic that can be programmed to replicate the behavior of various SPI sensors (accelerometers, gyroscopes, magnetometers, etc.), eliminating the need for separate hardware emulators for each sensor type. This multi-functionality reduces overall system complexity despite the advanced hardware capability.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Solution Approach 2:

The patent utilizes the reconfigurable nature of FPGA devices to change operational parameters through software configuration rather than hardware modification. The emulator can be programmed with different sensor response characteristics, data formats, and timing parameters to match various real sensor behaviors. This parameter flexibility achieves real-time response speeds while maintaining ease of adaptation to different sensor types without increasing physical complexity.

Inventive Principle:
Principle #35Parameter changes

3Ease of operation

If SWIL simulation is used, then testing can be performed on PC-based workstations with simple programming, but the timing differs significantly from real autopilot timing due to clock speed differences

Engineering Contradiction:
Improveprogramming simplicityVSAvoidtiming accuracy
Core Design Contradiction:
Ease of operationVSReliability

Solution Approach 1:

The patent replaces PC-based software timing with hardware-based timing using the FPGA device. The emulator generates SPI clock signals and data transitions at precise timing intervals that match real sensor behavior, independent of the host PC's processing speed. This hardware timing mechanism ensures that the autopilot receives sensor data with accurate timing characteristics, making the simulation reliable for timing-critical testing while the PC handles high-level simulation logic.

Inventive Principle:
Principle #28Mechanics substitution (Replace mechanical system)

Data Source

PatentUS10417360B2True hardware in the loop SPI emulation
Publication Date: 2019.09.17 4596286 MANITOBA INC
  • US10417360B2 patent drawing
  • US10417360B2 patent drawing
  • US10417360B2 patent drawing

AI summary

An emulator for emulating at least one digital device communicating over a clocked serial bus, the emulator is provided. The emulator comprises a programmable logic device holding device configuration information and data for the at least one emulated digital device; a communication mechanism for exchanging data between the at least one emulated digital device and a host device; and a decode mechanism that selects response data from the one or more registers.