Trying to do a mini project with just my uno and a microservo SG90. Only problem is the servo isn’t moving. I can hear something going on towards the bottom of the servo, but it doesn’t move. This sound is like an electrical hum. Any solutions or do I need to buy a new one?
Did you miss the request to use code tags when posting the sketch ? You will, of course, read the advice from the following link to which you were directed when you joined the forum
In my experience the easiest way to tidy up the code and add the code tags is as follows
Start by tidying up your code by using Tools/Auto Format in the IDE to make it easier to read. Then use Edit/Copy for Forum and paste what was copied in a new reply. Code tags will have been added to the code to make it easy to read in the forum thus making it easier to provide help.
The code did not originate from Arduino. See the first comment in it. It is probably not the problem but it does worry me that the comments don't match the code. That is never an indication of good code