When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
1 messages · Page 1 of 1 (latest)
When your question is answered use !solved to mark the question as resolved.
Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.
Your loop condition after the 1-second delay is wrong, you want && instead of commas
for (angle1=90, angle2=90; angle1<=130 && angle2>=50; angle1++, angle2--){
@wise lagoon Has your question been resolved? If so, run !solved :)
servo motors can draw a lot of current, i'd try an external power source for the servos
You do NOT want to run the motor with just an output pin!! The pin is best used to energize a relay. You do not want the load directly on the pin. Damage to the pin can result. If you are using a kit it should come with a relay.
Depending on what board you are using, an UNO for example can handle 7-12 volts. a NANO is 3.3 volts.
quit pinging me
You need to look up the documentation for the board.
Skyward is correct. You may need an external source. Especially if you are using USB as power source to the board.
You can power the UNO with USB . The output pin will close a relay. The motor's power passes through the relay. The relay acts as a switch providing external power to the motor through the relay.
Sorry typo I meant
Skeward as in theSkeward. The guy above.
Read up on this. It is a relay that can handle 5vdc.
As you can see there are different voltages. 5,12,24
It only takes a small amount of current to close the relay allowing a much larger voltage to pass to the load(motor).
The UNO can deliver the current to close the relay. It cannot deliver the current to drive the motor.
You need a voltage supply for the motor.
Getting the motor to move is the first step and doesn't require code. Code is used to control when the motor turns on and off.
I suggest a power supply.
This will take 120vac in and give you 5vdc.
With something like this, you can power multiple motors.