Tell us about yourself!
The only way to do this with a servo motor would be to write a function that segments your angle and then slowly moves the servo to checkpoints along that angle with time delays in between them. A much easier solution would be to use a stepper motor, which are similar to servo motors in that they can move specific amounts to a desired angle if needed, and the way that is done on a stepper motor not only allows but actually necessitates that you set your own specific time intervals. I hope this helped, good luck with either approach! Please feel free to ask any additional questions
I'm confused by your wording, what is an AC servo motor? The servo motor used in this instructable was powered by either 5V or 3.3V DC power supply, and modulated with 3.3V DC PWM pulses. I can provide a circuit diagram for this circuit if you need, but it won't include any more information than which pins connect to which, which can also be found in the text of the instructable.
No, I have noticed the same thing and I’m unsure if it’s fluctuating PWM or main power or some type of mechanical issue, but I’d suggest researching the servo you’re using and whether or not raspberry pi’s typically have stable PWM. Sorry I couldn’t be of more help!
That is certainly a good idea to avoid overloading and possibly causing damage to your RPi, but I checked the current draw and voltage requirements of the servo I was using and made sure it would be okay to use directly from the Pi’s GPIO board. If you are unsure of how to do that, or are using an excessive amounts of servos or other power requirements it’s definitely a good idea to use an external power supply. Just swap the jumpers from where I hooked them up to the 5V and GND pins on the Pi and connect them to the appropriate power source to power your servos instead. Hope this helped!
I'm not familiar with that hat, but Adafruit is typically pretty good about having online tutorials for the libraries their hats contain. I would check there, and if not some RPi forums may have help for you depending on the popularity of the hat. If neither of those works your best bet is to read the libraries included with the hat and figure out how they work. I hope this helped, sorry I didn't know more!
I’m not sure why this would have happened, my only suggestion would be to check the specifications of your motors and make sure they’re compatible with whatever setup you’re using. Other than that I’m afraid I won’t be of much use. I’m sorry if this really broke your servos, I’ve never had any problems like that with it! Best of luck to you :)
Yes, this was done on a Raspberry Pi 3, so it is all correct for that model. If you want to use a later model the only difference might be the python version and therefore some syntax, and the pins might be laid out differently on the Pi so just look up a Pinout diagram for the other model and connect it to the names of the pins I said above and ignore the numbers I said. Hope this helped!
Sorry I missed this comment, but yes depending on the version on python you are coding in sometimes the 0 in front creates an error. The version I wrote in was older, but removing the 0 should fix the issue like popcornpack329 said.
I am not sure, but if you were to use my code as a baseline to define some functions and then find out how to check the current time on a RPi, you could create a constantly looping ‘if’ statement that executed my functions when the time input was equal to your desired times. Like I said, I’ve never done anything like that or researched it, but to my knowledge it should be totally possible. Hope this helped!
Gluing and Fastening PVC
Bending and Forming PVC
Cleaning and Finishing PVC
Intro to Fusion 360: Lamp Design
Preparing a Schematic
PCB Concepts and Materials
Circuit Board Design Class
Tools + Supplies
Servo Motor Control With Raspberry Pi
DC Motor Control With Raspb...
Servo Motor Control With Ra...
How to Write an Instructable
Easy 3D Printing
Chaos( Iron Man 2) Swinging Stick( Pendulum Sticks) Perpetual Motion
Controlling direction and speed of DC motor using Raspberry Pi
How To Make A Drone - For Dummies
3D Printing Class
Raspberry Pi Class
Remote Control Ignition System - How to Make Firework Igniter
Laminar Flow Water Jet Part 2- The lights
Laminar Flow Water Jet for Under $25.