SG 90 servo and Raspberry Pi

Hi everone,

I am looking for some sample code to do the following.

When the raspberry pi boots, I want the servo to go from 0 degrees to 45 anti clockwise and to stop.

I then need another peace of code that can make it spin 90 degrees clockwise and stop.

Any help would be awesome!

1 Like

Hi @BellAmi223613

here you go. This is what i use. :slight_smile:

Would you prefer a different programming language?