Comments (20)
Hi Robert, it seems you have given a lot of thought and work on your machine.
I can see that the encoder being on the output shaft can compensate gearbox backslash but that may also introduce instabilities in the system.
If the motor does not stop once reaching the final location can be a sign that proportional gain is too high. You can try lowering that.
Also, for manual adjustment remember you can use the Arduino IDE serial monitor to send various commands like a new proportional gain value. While you do that the system will also respond to step and direction pins. Initially set D0, I0 and P0.1 to see how it goes. Try manually adjusting them to get a good response (if possible, as I mentioned backslash on the gearset might give you hell).
If when lifting Z everything goes bad that might be caused by the power supply not delivering enough current. Just a guess.
from dcservo.
OMG! that was a unexpected fast response:)
I am powering my milling machine from my Off grid Photovoltaic system, from the batteries more exact, that s 600amp hours on 24v.
I am gonna give it a try with P0.1,I0,D0 see what happens.(everything slowed down:-) )
I can see what u mean with the encoder after the gearbox, backlash is what I had in mind:) and I made sure that the gearbox from each motor diddnt have any noticable play on it
I uploaded 2 videos to google drive with videos of the pid tuning tool and z axis erratic behaviour
https://drive.google.com/open?id=1jRwQhsOKyt0WeZdFfnS9Pzzm7uZ7SPew
What are your toughts on z going down smooth and when lifting z all axes going crazy?
Thank you.
from dcservo.
Well, if powered from batteries I guess juice is plenty (only if a too thin cable is used lack of power might be an issue).
from dcservo.
calbe is 4mm(diameter) silver coated they are rated at 70 amps, but the machine goes crazy only when i lift z:))) when i move x or y everything works well, check the video out when i lower z everything is smooth, when i lift z movement is not linear at all
from dcservo.
I saw the videos, Z axis up is surely creating some noise that seems to affect the rest, I do not see why noise and activation seems quite different than when going down. It may well be the motor's dead zone. Something I have not yet addressed in my project.
from dcservo.
coud it be encoder related( i have 2 adjustable resistors i think that s what they are called in english)
from dcservo.
hmm, gonna try to change the motor see what happens:)
from dcservo.
from dcservo.
gonna try that too
from dcservo.
Thank you very much for taking the time to help me out, i really diddnt expect such a fast and helpful response:D
from dcservo.
It is the least I could do considering the love you have put to the project
from dcservo.
Thank you 4 the kind words Misan:)
I have removed the z axis letting the motor run freely, and the erratic behaviour stops but starts as soon as i apply a little bit of force on the motor (bad brushes maybe) taking into account that these motors are from a salvage yard:) gonna put a new motor in, see what happens would ceramic capacitors on the motor leads help in filtering the ripple that is going on there?
from dcservo.
also tried switching polarity to the motor, same result, diffrent direction lmao
from dcservo.
from dcservo.
actually the z motor wich has screw and nut for movement requires the least torque, the other axes require 5 nm just to start moving
from dcservo.
Hello misan, i managed to get everything working, the noise was coming from a motor winding wich was tied to ground, fixed it, now I am still stuch at the PID tuning tool not displayng graph correctly:(( How can I fix that?
from dcservo.
from dcservo.
Thank you very much, i am gonna try that, i l let u know how it works.
from dcservo.
what step time and step pulse time do u recommend in ns?
from dcservo.
@PaulRobert1 I expect step pulse time longer than 1uS. Not sure about the minimum acceptable time though.
from dcservo.
Related Issues (20)
- Motion profile on a UNO HOT 1
- Can I use this for a reversible AC motor? HOT 3
- ESP8266 NODEmcu V2 connection issue HOT 8
- Drift HOT 19
- Code Modification HOT 4
- Step multiplier HOT 5
- modification of code to use Sparkfun monster shield HOT 2
- Free nano shield blueprint HOT 16
- BLDC FOC controller HOT 2
- Cant understand code HOT 1
- ISR error HOT 1
- Any plans to port to ESP32 ? HOT 8
- Help with open collector encoder. HOT 3
- arduino mega HOT 2
- can i use this code for stepper close loop HOT 1
- 2 pin IR phototransiator in place of 3 pin Receivers with ATTiny85 HOT 3
- the problem is failure HOT 2
- BTS7960 HOT 1
- Direction in ATTiny85 HOT 4
- It posible to use for bldc or pmsm? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dcservo.