The simulated component typically mirrors the physical TO-39 package pinout:
Simulating specialized hardware components is a crucial step for engineers and students before moving to physical prototyping. The MLX90614 is a popular contact-less infrared (IR) temperature sensor manufactured by Melexis. Because it uses the I2C (SMBus) communication protocol and specific internal registers, simulating it in Labcenter Electronics Proteus requires a dedicated library file.
The sensor expects a operation (to set the pointer) followed by a Restart and Read operation.
void setup() Serial.begin(9600); Serial.println("MLX90614 Test"); mlx.begin(); // Initialize I2C communication
Once the library is installed, you can build your simulation circuit. For this guide, we will interface the MLX90614 with an Arduino Uno. Component Selection
A real MLX90614 arrived from DigiKey. He wired it to an Arduino Nano, not Proteus. He wrote a quick sketch. The sensor saw his finger from 10cm: 34.2°C. His coffee: 68.5°C. The window: 12.1°C. Real. Perfect. Alive.
return (raw_ir_data * 0.02) - 273.15 + (sin(millis() * 0.001) * 0.1);
Click the folder icon next to the field, navigate to your compiled .hex file, and select it. Click OK .
If the library loads but never responds (always NACK):
The MLX90614 library in the context of Proteus refers to component files (.LIB and .IDX) that allow the software to recognize and simulate this sensor. These files contain essential information about the sensor's pinout, electrical behavior, and communication protocol. However, it's important to note that a true simulation library for the MLX90614 is hard to come by; many available "libraries" are often just component symbols without functional simulation models.
Once the simulation begins running, look closely at the MLX90614 component model in your schematic. Most high-quality Proteus libraries embed small or "Up and Down" toggle arrows right on the body of the graphic component.
#include <Wire.h> #define MLX_ADDR 0x5A
: Connect to the I2C clock pin on your microcontroller (e.g., on Arduino Uno). SDA (Serial Data)
Adding the library is a straightforward process, ensuring the component is available in your window. Step-by-Step Installation:
Connect your components according to standard I2C topologies:
: Ideal for measuring moving machinery, hazardous materials, or medical use cases where physical contact is impossible. 2. How to Install the MLX90614 Proteus Library
Find the installation directory of your Proteus software, usually: C:\ProgramData\Labcenter Electronics\Proteus 8 Professional\Data\LIBRARY . Note: ProgramData is a hidden folder.
The library is useless without correct firmware. Here is how to talk to the virtual sensor.
