Looking for a simulator for Arduino

'm new to Adruino. I'm looking to learn to simulate my code offline before I actually build a live project. is there a way to do this offline simulation ?

Simulating a microprocessor is not always very useful because the simulator cannot mimic the real behaviour of external hardware, poor connections, accidentally incorrect connections etc.


There are a few but quite often they are incomplete in some way.
Arduino themselves do NOT have such a simulator available to users.

Often it is better to have the hardware in front of you and use that.

Could you take a few moments to Learn How To Use The Forum.
Other general help and troubleshooting advice can be found here.
It will help you get the best out of the forum in the future.

I removed your other post as there was not detail to it.