(Optional) A .HEX or .COF file if the simulation model requires a pre-compiled firmware file to run inside Proteus. 3. How to Install the Library in Proteus Follow these steps to add the MLX90614 model to your Proteus Component Library:
You can simulate the MLX90614 infrared temperature sensor in Proteus. This guide will show you how to find, install, and use the library. You will learn to build a working digital thermometer on your computer. What is the MLX90614 Sensor?
Since Proteus does not include the MLX90614 by default, you can find community-contributed library files ( .LIB and .IDX ) on platforms like The Engineering Projects or GitHub .
#include <Wire.h> #include <Adafruit_MLX90614.h> mlx90614 proteus library
Proteus is a popular circuit simulation software that allows designers and engineers to simulate and model their circuits before moving to the hardware implementation phase. The Proteus library for MLX90614 provides a virtual model of the sensor, enabling users to simulate its behavior and test their circuit designs.
while (1) // Read the temperature float temperature = MLX90614_ReadTemperature();
#include #include Adafruit_MLX90614 mlx = Adafruit_MLX90614(); void setup() Serial.begin(9600); Serial.println("MLX90614 Proteus Simulation Test"); if (!mlx.begin()) Serial.println("Error connecting to MLX90614 sensor!"); while (1); void loop() Serial.print("Ambient Temp = "); Serial.print(mlx.readAmbientTempC()); Serial.print(" *C\tObject Temp = "); Serial.print(mlx.readObjectTempC()); Serial.println(" *C"); delay(1000); Use code with caution. Compiling and Exporting the Binary In the Arduino IDE, go to > Export Compiled Binary . Locate the generated .hex file in your sketch folder. Step 5: Running the Simulation Go back to Proteus. (Optional) A
The code below utilizes the standard, widely supported . Ensure you install this via the Arduino Library Manager ( Sketch > Include Library > Manage Libraries... ) before compiling.
: Open the "Pick Devices" window (press 'P') and search for "MLX90614" or "Infrared Sensor". Load HEX File
Select the sensor from the results and click to place it on your workspace. Wiring the Circuit This guide will show you how to find,
In a software simulation environment like Proteus, reproducing this exact SMBus behavior requires a custom .MOD (model) file and a .IDX / .LIB (library library) pairing. A dedicated MLX90614 Proteus library provides:
If you wish to see the serial printouts, pick a from the Proteus Instruments menu and connect its RX pin to the TX pin (Digital Pin 1) of the Arduino.
To use the MLX90614 Proteus library, follow these steps:
Even with the best substitute model, a simulation has limitations. It cannot perfectly replicate the real-world nuances of the MLX90614, such as its susceptibility to electrical noise, the impact of ambient temperature fluctuations, or its precise dynamic response time. Always treat simulation as a critical step for design validation, but plan for thorough testing with physical hardware.
: Verify that you pasted the .LIB and .IDX files into the correct Data\LIBRARY folder path and restarted Proteus. If you want to expand this simulation project, let me know: