MCU Simulator Robotic and Embedded System Laboratory
← Open the simulator
Documentation

Parts reference

Every part with its pins, power and how it behaves, made from the simulator itself.

All 48 parts of the simulator, by group, with their pins and the power they get by default with Auto-wire. This list is made from the simulator itself, so it is always complete.

Pin kinds: output needs an output-capable GPIO, input can use any GPIO, analog input (ADC) needs a GPIO with an ADC, input/output needs an output-capable GPIO (a data line in both directions). I2C parts use the board's SDA and SCL pins and have an address; SPI parts use the board's SCK, MOSI and MISO pins and a CS pin of their own.

The parts

Output

PartPinsPower (default)
LEDpin outputGND
NeoPixel WS2812 (strip / ring)DIN outputVCC 5 V, GND
DC motor + L298N driverENA output, IN1 output, IN2 outputVCC 5 V, GND
Stepper 28BYJ-48 + ULN2003IN1 output, IN2 output, IN3 output, IN4 outputVCC 5 V, GND
RGB LEDR output, G output, B outputCOM
Relay moduleIN outputVCC 5 V, GND
Relay module, 4 channelsIN1 output, IN2 output, IN3 output, IN4 outputVCC 5 V, GND
Buzzerpin outputGND
ServoSIG outputVCC 5 V, GND

Input

PartPinsPower (default)
Push button (to GND)pin inputGND
PIR motion sensorOUT inputVCC 5 V, GND
Slide switchSIG inputVCC 3.3 V, GND
Joystick (2 axes + button)VRx analog input (ADC), VRy analog input (ADC), SW inputVCC 3.3 V, GND
Rotary encoder KY-040CLK input, DT input, SW inputVCC 3.3 V, GND
Keypad 4x4R1 input/output, R2 input/output, R3 input/output, R4 input/output, C1 input/output, C2 input/output, C3 input/output, C4 input/outputnone
PotentiometerSIG analog input (ADC)VCC 3.3 V, GND
Reed switch / door sensor (to GND)SIG inputGND
RFID reader RC522 (SPI)SDA/CS output, RST output, SCK, MOSI, MISO SPI busVCC 3.3 V only, GND

Sensor

PartPinsPower (default)
Soil moisture sensorAO analog input (ADC)VCC 3.3 V, GND
Light sensor (LDR module)AO analog input (ADC)VCC 3.3 V, GND
DS18B20 temperature (OneWire)DATA input/outputVCC 3.3 V, GND
MQ-2 gas sensorAO analog input (ADC), DO inputVCC 5 V, GND
IR obstacle sensorDO inputVCC 3.3 V, GND
Flame sensorDO inputVCC 3.3 V, GND
Rain / water sensorAO analog input (ADC), DO inputVCC 3.3 V, GND
Water flow sensor YF-S201OUT inputVCC 5 V, GND
Load cell + HX711DOUT input, SCK outputVCC 3.3 V, GND
GPS module NEO-6M (UART)TX → board RX input, RX ← board TX outputVCC 3.3 V, GND
PZEM-004T AC energy meter (UART)TX → board RX input, RX ← board TX outputVCC 5 V, GND
MH-Z19B CO2 sensor (UART)TX → board RX input, RX ← board TX outputVCC 5 V, GND
DHT11 temperature + humidityDATA input/outputVCC 3.3 V, GND
DHT22 temperature + humidityDATA input/outputVCC 3.3 V, GND
HC-SR04 ultrasonic distanceTRIG output, ECHO inputVCC 5 V, GND
BMP280 temp + pressure (I2C)SDA, SCL (I2C, address 0x76 / 0x77)VCC 3.3 V, GND
MPU6050 accel + gyro (I2C)SDA, SCL (I2C, address 0x68 / 0x69)VCC 3.3 V, GND
BH1750 light (I2C)SDA, SCL (I2C, address 0x23 / 0x5C)VCC 3.3 V, GND
BME280 temp + humidity + pressure (I2C)SDA, SCL (I2C, address 0x76 / 0x77)VCC 3.3 V, GND
AHT20 / AHT10 temp + humidity (I2C)SDA, SCL (I2C, address 0x38)VCC 3.3 V, GND
SHT31 temp + humidity (I2C)SDA, SCL (I2C, address 0x44 / 0x45)VCC 3.3 V, GND
INA219 current + voltage (I2C)SDA, SCL (I2C, address 0x40 / 0x41 / 0x44 / 0x45)VCC 3.3 V, GND
ADS1115 16-bit ADC, 4 inputs (I2C)SDA, SCL (I2C, address 0x48 / 0x49 / 0x4A / 0x4B)VCC 3.3 V, GND

Storage

PartPinsPower (default)
microSD card module (SPI)CS output, SCK, MOSI, MISO SPI busVCC 5 V, GND

Display

PartPinsPower (default)
TFT 1.8" ST7735 128x160 (SPI)CS output, DC/A0 output, RST output, SCK, MOSI SPI busVCC 5 V, GND
TFT 2.8" ILI9341 240x320 (SPI)CS output, DC output, RST output, SCK, MOSI SPI busVCC 5 V, GND
7-segment display TM1637 (4 digits)CLK input/output, DIO input/outputVCC 5 V, GND
LCD 16x2 (I2C)SDA, SCL (I2C, address 0x27 / 0x3F)VCC 5 V, GND
LCD 20x4 (I2C)SDA, SCL (I2C, address 0x27 / 0x3F)VCC 5 V, GND
OLED 128x64 SSD1306 (I2C)SDA, SCL (I2C, address 0x3C / 0x3D)VCC 3.3 V, GND

How the parts behave

The chips are imitated at the level of their registers or signals, so the real Arduino libraries work with them unchanged:

  • I2C sensors and displays answer like the chip (BMP280 and BME280 even with their calibration), so the library computes back exactly the value of the slider.
  • DHT11 / DHT22, DS18B20, HC-SR04, HX711 and TM1637 use their real one-wire, pulse or two-wire protocols (the HC-SR04 echo pulse has the length of the distance).
  • Rotary encoder, flow sensor and keypad make real pulses or matrix signals, so interrupts and the Keypad library work.
  • GPS, PZEM-004T, MH-Z19B talk over UART with their real sentences and frames.
  • RFID RC522 includes MIFARE Classic 1K cards (UID, authentication, reading and writing blocks).
  • Motors: the DC motor on an L298N shows direction and speed; the 28BYJ-48 stepper follows the coil sequence.

Not simulated: resistors, capacitors and other passive parts, currents and voltages (an LED without a resistor does not burn).