Replies: 2 comments 4 replies
-
It is really hard to control the motors at speeds <= 100 degrees per second. If you can add gears or something like that so that the motors are operating between 400 and 800 degrees per second, it might work better. TIP: you can add the gear rations to the motor setup (i.e. Also, the |
Beta Was this translation helpful? Give feedback.
-
When you multitask two What about the following approach?
If you let x and y increase linearly with time, you'd get a straight line, for example. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all, I am working on a pen plotter run by a technic hub and 3 motors. The issue I am coming into right now is that if I multitask 2 motors (x and y to make an angled line) I'm finding that whichever motor has the least distance to travel will run to its target then stop while the other is still moving which results in something of a "bent line". So for ease of explanation, lets say the coordinate has a longer X travel than it does a Y travel. So the if I run the X and the Y motors at the same speed the Y motor hits target first and the X motor keeps going until it reaches its own target. I wrote some script to evaluate the travel distance for both motors, scaling down the speed for Y motor so it reaches its target at the same time as the X motor. I then realized it very much needed a minimum speed. I wrote a separate program to simply run each motor at reducing speeds until I found a minimum that it would run smoothly. So I put in the minimum speeds (different per motor for some reason) and if the calculated speed comes out lower than minimum, it then sets the minimum for that motor, and then evaluates an increased speed for the longer travel to sync the timing again.
This doesn't seem to work. I'm either getting right angles or bent lines and I have no idea why. See below for my code, I removed 99% of the coordinate points for brevity, its 200 lines of data that I've auto generated with a python script on my computer. See below for a picture of what I'm getting out of the machine with some red lines to indicate a rough idea of where the angled lines should be where instead I'm getting 2 segement lines.
Beta Was this translation helpful? Give feedback.
All reactions