Comments (9)
from core.
Oops, likely typo on my part. WIll commit a fix.
It will be great if you can verify that setting the current works as I do not have a MKS board for testing.
from core.
According to the MKS SBASE board schematic, it would also be more accurate if the current setting factor was 100.45f instead of 113.0f.
cmd [1] = (uint8_t) min (255.0f, roundf (current * 100.45f));
However, the current adjustment functionality works correctly. Nice work with the software, Terjeio
from core.
The Marlin driver uses 106.7 as the factor (AFAICT). The schematic I have specifies two different values for Rsense depending on the driver version (DRV8824 vs DRV8825) and R11 = 20K (with an asterix meaning that this might be different on the board?) in the BOM so for me it it is impossible to tell what is correct. So I'll change it to 100.45. I must say I am a bit curious about how you arrived at that factor though.
from core.
Yes, the R11 in my board (DRV8825) is exacty 20K. The Vref impedance in the DRV8825 is superior at 1M1 ohms, then, the Vpot drain current (at the cursor) is negligible. There are 4 50K potenciometers in parallel and with the R1 they are forming a voltage divisor to obtain 1.269 volts as reference for the 4 potenciometers. Applying electronic mathematics, the value for the potenciometer is Value=100.45 *Imotor.
I have measured it on my board with a voltmeter and the theory exactly matches the result.
from core.
it's good to be curious ...
from core.
from core.
An other correction. Sorry
No problem.
I wonder if the factor should be multiplied with sqrt(2) to set the RMS value as it looks like the current from Equation 1 (in chapter 8.3.2) in the datasheet is the peak current. The Trinamic driver code I've seen does that. However, the Marlin documentation for digipots does not help in making that clear, not even for the Trinamic setting which I assume is the RMS current...
from core.
Fix committed with your factor.
from core.
Related Issues (20)
- protocol_enqueue_gcode does not set last_error HOT 3
- probe enabled by default HOT 1
- MKS Tinybee cannot connect to the router using STA HOT 3
- Cannot Restore After Feedhold When Issued During Change of Spindle State HOT 10
- Not an issue: Want to know if macro variables are available for $342 to $344. HOT 3
- Tool table offsets are not persistent over power cycle HOT 6
- Joggin unavailable for many commands HOT 3
- Lathe Diameter/Radius offset report issue HOT 1
- kinda vfd support HOT 3
- Macro Issue that I can not figure out. HOT 6
- I noticed that the current Setting_AxisStepsPerMM setting has 5 zeros after the decimal point. Is there any reason for doing this? HOT 2
- regression in websocket init_message caused by commit a912ce4 HOT 1
- Is the data in the driver capabilities list dependably up to date? HOT 2
- set machine origin to 0, or bit3, not working for $22 HOT 5
- octopus max STM32H723 HOT 1
- Not correctly reporting coordinates? HOT 4
- Experiencing issues with ESP32 Blackbox Build HOT 10
- How to limit the maximum output pulse frequency to prevent the user from setting an excessively high pulse rate that could cause grblHAL to crash? HOT 1
- Delta Kinematics: Y axis moves are not executing correctly - Motor duplication? HOT 1
- Syntax error / typo in ngc_expr.c HOT 3
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 core.