I would like to know how to program my arm so it will have power when the arm goes up and downwards in EasyC, as the program I have now will most likely burn out the motors because it always has power…
I also would want power on the drive train too if you could help me with that too?
Let me know if you need to take a look at my EasyC programming file!
I’m a little bit confused by what you are asking. So you want to have power sent to the motors to keep it at a certain height at certain time, but not another? Correct?
Unless you have a mechanical way of holding the arm up, you will need a power sent to the motors to keep the arm up.
On the other hand, if you are saying that you want to have no power sent to the motors only while the arm is down, then you would need a potentiometer to read the height, and then if the potentiometer on the arm is below x value, set the motors to 0.
Yes, I want the arm to have power when going downwards so it won’t be pushed down easily. How do I program the potentiometer? I want the arm to stop at the top and want two certain buttons for upwards power and downwards power.
In summary, PID is calculating a number and it will then send the number to the motors as an output. It bases its numbers off of the current error (distance from the target, like the height you want to go to versus the height you are currently at), the previous error, and the estimated future error - correct me if I’m wrong anybody.
This sounds like it is what you want to do correct?