Servomotor has impulse whitout command

Hi! I have a license work to do, a smart irrigation system, I have a problem with the SG90 servo motor, if I put it alone in the code it works without problems, but if I put it together with the other components in arduino it doesn't respond to commands and has a small pulse depending on what delay I have. I would put the code used here, but I don't think it's ok as it's possible to enter plagiarism..:). Can you help me without show my code?.. i try with mills and is doesn't work either

No sorry, all crystal balls take June off so they can recharge.

Welcome to the forum

The Servo library uses a timer on the chip. Could there be interaction between something else running in the sketch ?

There is a Servo library names ServoTimer2 that uses a different timer if you are using an ATmega based board

1 Like

I use a Arduino uno, if is possible can i show my cod in private?

You do not have to post the code for your actual project if you can write a small sketch that shows the problem. More people will see it if you post it here so the chances of getting help will he higher

What other components are you using and what resources of the Uno, such as pins, do they use ?

1 Like

It worked with the ServoTimer2 library.Thank you sooooo much :innocent:

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