# Simulator for Mac

**URL:** <https://forum.arduino.cc/t/simulator-for-mac/1129960>\
**Category:** General Guidance\
**Created:** [May 23, 2023, 3:57am UTC](https://forum.arduino.cc/t/simulator-for-mac/1129960 "2023-05-23T03:57:27Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![DaveX](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/davex/32/751443_2.png) [@DaveX](https://forum.arduino.cc/u/DaveX)\
**Post date:** [July 16, 2023, 7:56pm UTC](https://forum.arduino.cc/t/simulator-for-mac/1129960/17 "2023-07-16T19:56:51Z")

</div>

If you are trying to simulate external devices under the control of an arduino, consider simulating their physics and effects within the Arduino with a separate function called inside loop().

> [@PID with simulated heater or motor](https://forum.arduino.cc/t/pid-with-simulated-heater-or-motor/1093539/1):
>
> I wrote an example PID simulation for the PID\_RT library. In the sketch code, it simulates a heater similar to the extruder block on a 3D printer so you can experiment with a PID with standardized, (simulated) hardware and see how it responds. I'm not discussing how to tune the parameters, since that depends greatly on your system and is well covered elsewhere in places specific to your system. I'm trying to demonstrate that: The default kP=2, kI=5, kD=1 PID parameters do respond to a stan…

If you can simulate the device under control well enough, it makes it easier to write and test your control code.

---

_[View the full topic](https://forum.arduino.cc/t/simulator-for-mac/1129960)._
