SERVO Code Simulation

Hey everyone!

I am currently completing a project that requires the use of small SG90 Servo motors.

Is there any simulator and/or application that I can use to see the results of any code from a hardware perspective. For instance, TinkerCad has a simple Arduino simulator that translates code and circuitry into an animation, and I was looking for something similar.

Thank you.

-Dawn

Take a look at wokwi.com/

+1 for wokwi.com

I haven't looked at Tinkercod in some time, I assume there have been improvments.

wokwi is just now the best at what it does, see

Most components have a '?' when you select them that takes you to the documentation for the part and usually some examples code.

a7

Third + for Wokwi. They even managed to simulate the disfunction when you use Neopixels, Servos, and IR in the same sketch, which I consider to be pretty darn good!

Thank you very much for all of your replies - it is greatly appreciated.
I will start using WokWi from here, definitely an upgrade.

-Dawn

Servos without a library.

Arduino Nano, describing pulse width.

ATtiny85

The demo is the best advert for using a library. In many pot positions both servos show jitter, in some rather more than just a little.

I assume this is due to the inability for plain code to properly create the PWM waveform without having a few or more microseconds of variation pulse to pulse.

a7

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.