In this project we will simulate a servo motor with a potentiometer. The library that we installed with the simulator is available in the Arduino IDE. By adding the ‘#include <ServoSim.h>’ code we will include the library for the simulator to it. The library will communicate with the Arduino Simulator thought the serial USB port.
Select the used inputs and outputs on the simulator, in this case we will use the servo motor on digital pin 9 and a potentiometer on analog pin A0. Drag the parts into the workspace and connect the Arduino with the COM port in the simulator.