run current

im totally new to this Macro adjusting. its my first RatOs running printer: after adjusting my belt tention- my run and holt current is not enough to do a sensorless homing. where do i find those adjustments and how do i save them? thanks in advance! das ganze ist für mich komplett neu: ich habe das problem, dass die runn und holt currents für das sensorelss homing nicht mehr reichen, da ich die riemenspannung an meinem v3.1 500 erhöht habe. wo finde ich die macros und wie speicher ich diese? danke im voraus
No description
125 Replies
rival-black
rival-blackOP2y ago
if this is a readf only- how do i find the adjustable?
miklschmidt
miklschmidt2y ago
This doesn't look like the most recent version of RatOS? What version are you on?
miklschmidt
miklschmidt2y ago
this looks several years old. RatOS v1 reached end of life at the start of last month. I recommend you update to V2. See: https://os.ratrig.com/changelog#ratos-v20
rival-black
rival-blackOP2y ago
i will never be able to get it running again alone but thanks for pointing it out i have absolutely no understanding how this works- it looks so stupid but i thgink someone had adeep thought about it and is able to explain to me how it works 3.5 hours later im totally lost
miklschmidt
miklschmidt2y ago
So first of all, if this is all completely new to you, do not use sensorless homing. Second of all, a reinstall (while carefully reading the RatOS documentation and following all the step by step instructions) would do you good and help you understand how things work. Are you using a second hand printer you didn't set up yourself?
rival-black
rival-blackOP2y ago
thanks for the reply! everything "worked" as i got it used in germany. it was stressfull but i managed to get it "printing". the quality of those prints where soo bad that i needed to start changing things. i started wich checking alighnment and a bolt check. that helped a lot. than mid printing a test cube added belt tention. that helped a ton- now thint looked like a print and not a birds nest. first layer was on point and the extrudermotor finally got the right current. after this print i wanted to repet it with different pressure advace settings but homing did not work anymore cuse its getting its max current by just movig so it thinks it got to a mechanical stop. (0.39A) after the wrong homing (its just not home but the process is done) i can move freely with the RATOS buttons and everything sounds and feels normal. than i asked for help to adjust that run and hold current for sensorless homing. someone pointed out after sharing screenshots that i am still on v1- so he recomended to update to the current V2.0.1 ...i dont know if its a language barrier or something else going on but i dont get the new IP adress after flashing ne new firmware onto my 32 gb SD for the PI. and here i am, figuring out why and what went wrong cause nothing works. im currently downloding a different file from the assets on github and reflash that file onto the SD with balena etcher.
miklschmidt
miklschmidt2y ago
Did you read the documentation?
No description
rival-black
rival-blackOP2y ago
yes i do read it- all the time but its not working like it shoukld *should ...or- more likely- i messed up one step?!
miklschmidt
miklschmidt2y ago
@carbonarne Are you not seeing the hotspot?
rival-black
rival-blackOP2y ago
correkt sometimes i see it but than i can not enter the rasberry pasword
miklschmidt
miklschmidt2y ago
What do you mean?
rival-black
rival-blackOP2y ago
i dont see the network apearing how can i better discribe?! a red small LED next to the mini USB port is constant on and a green one flashing from time to time
miklschmidt
miklschmidt2y ago
this is normal It might take a few minutes Which raspberry pi model are you using?
rival-black
rival-blackOP2y ago
the standart one
miklschmidt
miklschmidt2y ago
That doesn't mean anything. Is it a 3 or a 4, how many gb memory, etc
rival-black
rival-blackOP2y ago
a few moments is 9 hours? 32 gb
miklschmidt
miklschmidt2y ago
No obviously that doesn't exist
rival-black
rival-blackOP2y ago
how do i find out the type
miklschmidt
miklschmidt2y ago
It'll say on the pi itself
rival-black
rival-blackOP2y ago
on the SD kart model b v 1.2? ah 3
miklschmidt
miklschmidt2y ago
No description
rival-black
rival-blackOP2y ago
rasberry pi 3 model B V 1.2 thanks!!
miklschmidt
miklschmidt2y ago
Okay so that should work just fine
rival-black
rival-blackOP2y ago
it worked
miklschmidt
miklschmidt2y ago
What device are you using to join the wifi network?
rival-black
rival-blackOP2y ago
mobile phone previously
miklschmidt
miklschmidt2y ago
So you're connected to the hotspot now?
rival-black
rival-blackOP2y ago
now its not working anymore *no
miklschmidt
miklschmidt2y ago
What do you mean it's not working anymore?
rival-black
rival-blackOP2y ago
i tried to update with 2023-04-11-RatOS-v2.0.1-raspberry-rpi32.img its not shoing the network enzwhere anywhere
miklschmidt
miklschmidt2y ago
So your phone isn't showing a "RatOS" wifi network?
rival-black
rival-blackOP2y ago
correct
miklschmidt
miklschmidt2y ago
How is your pi powered?
rival-black
rival-blackOP2y ago
and usually my laptop finds this network as wich wich its not anymore
miklschmidt
miklschmidt2y ago
The images are tested on Pi 3's and Pi 4's, so if it isn't working, it's something on your end.
rival-black
rival-blackOP2y ago
i think so cause its red led is on and sometimes the green one i thoght so i just wanted to point that out just in case
miklschmidt
miklschmidt2y ago
I asked how not if
rival-black
rival-blackOP2y ago
ah sorry
miklschmidt
miklschmidt2y ago
Wifi can be unstable if you're not providing it enough power
rival-black
rival-blackOP2y ago
via a dedicated USB 5v 2500ma
miklschmidt
miklschmidt2y ago
That should be enough Are you close to your printer when you try to connect?
rival-black
rival-blackOP2y ago
20cm
miklschmidt
miklschmidt2y ago
Okay, so it's not because the signal is weak at least. May i ask where you're from?
rival-black
rival-blackOP2y ago
if i pull the sd card the green LED is flashing nrthern germany
miklschmidt
miklschmidt2y ago
If you do that while its powered you break things
rival-black
rival-blackOP2y ago
ok so than i broke it
miklschmidt
miklschmidt2y ago
I'd suggest you try #german-support it might be easier to get help in german We have a lot of very capable german members here who will be able to help you better At the very least your sd card is corrupted, you would have to reflash. Do not plug/unplug things ever while powered on. Except for USB devices
rival-black
rival-blackOP2y ago
ok so ill try to reflash the SD first how can is link this conversatuion to the german forum? (im new to dicord)
miklschmidt
miklschmidt2y ago
No description
rival-black
rival-blackOP2y ago
wich etcher schould work?
No description
miklschmidt
miklschmidt2y ago
First one
rival-black
rival-blackOP2y ago
there we got one mistake ok ill do again
rival-black
rival-blackOP2y ago
so just be save
No description
rival-black
rival-blackOP2y ago
i took the 1.08gb version to flash onto the SD in the Pi... is that correct? (i used the wrong Etcher but anyway
miklschmidt
miklschmidt2y ago
You want this one.
No description
miklschmidt
miklschmidt2y ago
Sounds like thats the one you got
rival-black
rival-blackOP2y ago
No description
rival-black
rival-blackOP2y ago
ok so that was right than
miklschmidt
miklschmidt2y ago
this is likely a dead SD card Probably because you just yanked it out of the pi while it was powered
rival-black
rival-blackOP2y ago
propably new sd works but i have only saved the printer cfg
miklschmidt
miklschmidt2y ago
That's fine, you can use that as a reference when filling in the new printer.cfg (do not copy it over)
rival-black
rival-blackOP2y ago
No description
rival-black
rival-blackOP2y ago
i got another sd card to work and got to the point of initilizing
miklschmidt
miklschmidt2y ago
Have you gone through the configurator? Ie. have you configured wifi and flashed the board via the configurator at this point?
rival-black
rival-blackOP2y ago
Unable to parse option 'pid_Kd' in section 'heater_bed'
No description
rival-black
rival-blackOP2y ago
rival-black
rival-blackOP2y ago
i have started to look deeper into getting it to run but stranded here
miklschmidt
miklschmidt2y ago
this is usually because you made a syntax error before or after. Let me check Yeah
[heater_bed]
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114

# ADXL345 resonance testing configuration
#[resonance_tester]
#probe_points:
# 100,100,20 # 200mm printer
# 150,150,20 # 300mm printer
# 200,200,20 # 400mm printer
250,250,30 500mm printer
[heater_bed]
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114

# ADXL345 resonance testing configuration
#[resonance_tester]
#probe_points:
# 100,100,20 # 200mm printer
# 150,150,20 # 300mm printer
# 200,200,20 # 400mm printer
250,250,30 500mm printer
rival-black
rival-blackOP2y ago
yes thia is what reddit and the configurator help site said
miklschmidt
miklschmidt2y ago
This is wrong Cant just have random coordinates floating there, you want the section and parameter name uncommented as well
[heater_bed]
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114

# ADXL345 resonance testing configuration
[resonance_tester]
probe_points:
# 100,100,20 # 200mm printer
# 150,150,20 # 300mm printer
# 200,200,20 # 400mm printer
250,250,30 500mm printer
[heater_bed]
control: pid
pid_Kp: 22.2
pid_Ki: 1.08
pid_Kd: 114

# ADXL345 resonance testing configuration
[resonance_tester]
probe_points:
# 100,100,20 # 200mm printer
# 150,150,20 # 300mm printer
# 200,200,20 # 400mm printer
250,250,30 500mm printer
rival-black
rival-blackOP2y ago
so how?
miklschmidt
miklschmidt2y ago
this
rival-black
rival-blackOP2y ago
without the space in front?
miklschmidt
miklschmidt2y ago
space?
rival-black
rival-blackOP2y ago
ah i see
miklschmidt
miklschmidt2y ago
👍
rival-black
rival-blackOP2y ago
was looking for the difference in your and my version its the # before probe points
miklschmidt
miklschmidt2y ago
and [resonance_tester] both are very important [resonance_tester] is the section probe_points is the parameter 250,250,30 is the value
rival-black
rival-blackOP2y ago
i dont have a resonance tester though
No description
miklschmidt
miklschmidt2y ago
5160's?
rival-black
rival-blackOP2y ago
yes
miklschmidt
miklschmidt2y ago
Oof.. this is regarded as advanced usage, so this is gonna be rough for a beginner.
rival-black
rival-blackOP2y ago
i did not realy understand where to change what
miklschmidt
miklschmidt2y ago
Advanced Stepper Configuration | RatOS
RatOS V1.1 introduced modularized stepper and driver configuration, this can be used for more fine grained control of your steppers. In your printer.cfg you might have noticed a section like this:
miklschmidt
miklschmidt2y ago
you can't use these two lines:
# UNCOOLED TMC 2209 + LDO-42STH48-2504AC
[include RatOS/printers/v-core-3/tmc2209.cfg]
[include RatOS/printers/v-core-3/speed-limits-basic.cfg]
# UNCOOLED TMC 2209 + LDO-42STH48-2504AC
[include RatOS/printers/v-core-3/tmc2209.cfg]
[include RatOS/printers/v-core-3/speed-limits-basic.cfg]
You need to implement those yourself.
rival-black
rival-blackOP2y ago
different drivers is hard to do you say? ok lets try together for some time
miklschmidt
miklschmidt2y ago
Furthermore, there is no config for extruder motors on 5160 because thats a pretty bad idea
rival-black
rival-blackOP2y ago
what?!
miklschmidt
miklschmidt2y ago
Yeah, low current motors on 5160's is gonna result in poor microstepping because the sense resistors are so low that the currentscaler has to go below 16
rival-black
rival-blackOP2y ago
but aren't they included?! where should i put them?
miklschmidt
miklschmidt2y ago
You cannot include these, they're for 2209's
rival-black
rival-blackOP2y ago
i try to run 2A ... it worked befor
miklschmidt
miklschmidt2y ago
Everything in RatOS is optimised for the most common combination of hardware, it's made for beginners. You've made a very non-beginner choice and gone with 5160's What extruder are you running 2A on !?
rival-black
rival-blackOP2y ago
hahaha i feel that no extruder is 0.35a
miklschmidt
miklschmidt2y ago
yes Which is shit on 5160's
rival-black
rival-blackOP2y ago
or somethink like that
miklschmidt
miklschmidt2y ago
You want a 2209 for your extruder
rival-black
rival-blackOP2y ago
ah i see
rival-black
rival-blackOP2y ago
sorry for a copy version and not a downloaded one... this was my printer cfg when it ran
miklschmidt
miklschmidt2y ago
[include RatOS/extruders/orbiter.cfg]
#[include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor
[include RatOS/extruders/orbiter.cfg]
#[include RatOS/extruders/orbiter-1004.cfg] # Use this with the LDO-36STH20-1004AHG motor
You want to comment the orbiter config out. You're gonna have to configure it yourself.
[include config/printers/v-core-3/tmc5160.cfg]
[include config/printers/v-core-3/tmc5160.cfg]
This doesn't exist
rival-black
rival-blackOP2y ago
step by step... iom still looking what to do with those 2 lines
miklschmidt
miklschmidt2y ago
neither does this: [include config/boards/btt-skr-pro-12-5160/config.cfg] Looks like you've modified RatOS on your old installation
rival-black
rival-blackOP2y ago
so i have to write one my self for teh tms5160
miklschmidt
miklschmidt2y ago
Indeed
rival-black
rival-blackOP2y ago
*tmc i see
miklschmidt
miklschmidt2y ago
You can copy the tmc2209 config, replace the tmc2209 sections with 5160, etc
rival-black
rival-blackOP2y ago
yes thought so now i know ehy i am struggeling
miklschmidt
miklschmidt2y ago
Yeah :/
rival-black
rival-blackOP2y ago
and nothing wanted to work out of the box
miklschmidt
miklschmidt2y ago
Yep, hardware isn't supported so it's a bunch of manual work well, some of the hardware
rival-black
rival-blackOP2y ago
i rund the skr pro 1.1 current update only supports 1.2 errors as well i dont know what else gets fuked up by that
miklschmidt
miklschmidt2y ago
There shouldn't be any issue with that
rival-black
rival-blackOP2y ago
ok just saying
miklschmidt
miklschmidt2y ago
Should be fine You just need to sort out the 5160's
rival-black
rival-blackOP2y ago
i was afraid to klick on 1.2 ok and all the other stuff you said ill do it tomorrow cause its midnight
miklschmidt
miklschmidt2y ago
I don't remember the exact difference between 1.1 and 1.2, but i believe the pin out is the same and the mcu is the same So you should be good
rival-black
rival-blackOP2y ago
woukld you mind to summerise what i have to do?! create the 51 folder and marco comands... what else?
miklschmidt
miklschmidt2y ago
All you need to do is: * Replace the extruder driver with a tmc2209. Or * Make a config for the orbiter: ( ie, adapt https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/steppers/ldo/36sth20-1004ahg/24v-0.7a-e.cfg and https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/extruders/orbiter.cfg (you don't need the 2209 section in orbiter.cfg) and * Replace
[include RatOS/printers/v-core-3/speed-limits-basic.cfg]
[include RatOS/printers/v-core-3/tmc2209.cfg]
[include RatOS/printers/v-core-3/speed-limits-basic.cfg]
[include RatOS/printers/v-core-3/tmc2209.cfg]
with 5160 equivalents. You don't need to do any of this in separate files, you can do all of it in the user overrides section so it's easy to copy paste next time you reinstall.
GitHub
RatOS-configuration/steppers/ldo/36sth20-1004ahg/24v-0.7a-e.cfg at ...
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
GitHub
RatOS-configuration/extruders/orbiter.cfg at v2.x · Rat-OS/RatOS-co...
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
miklschmidt
miklschmidt2y ago
For sensorless homing you need to 1) copy this: https://github.com/Rat-OS/RatOS-configuration/blob/v2.x/templates/sensorless-homing-tmc2209.cfg and change tmc2209 references to tmc5160. 2) Change driver_SGTHRS to the 5160/2130 equivalent (See the klipper documentation on sensorless homing) in the sensorless-homing-tmc5160 config you just made. 3) Change diag_pin to diag1_pin in the sensorless-homing-tmc5160 config you just made 4) add variable_driver_type_x: "tmc5160" and variable_driver_type_x: "tmc5160" under [gcode_macro RatOS] in the sensorless-homing-tmc5160 config you just made. (see: https://os.ratrig.com/docs/configuration/macros#homing) 5) Include the sensorless homing config in the homing section in printer.cfg and comment out the physical endstop includes. 6) Tune currents and sensitivity for sensorless homing (see the variables in [gcode_macro RatOS] for homing currents)
GitHub
RatOS-configuration/templates/sensorless-homing-tmc2209.cfg at v2.x...
The RatOS modular klipper configuration. Contribute to Rat-OS/RatOS-configuration development by creating an account on GitHub.
Configuring RatOS Macros | RatOS
RatOS comes with a bunch of flexible predefined macro's that can be customized via variables and macro hooks.
rival-black
rival-blackOP2y ago
thank you!!! what dose "not exist" mean? is it missing in the cprinter.cfg or in the folders behind it?
rival-black
rival-blackOP2y ago
No description
miklschmidt
miklschmidt2y ago
It means the file does not exist. Do not modify the RatOS folder. If you want to make separate files, put them next to printer.cfg
rival-black
rival-blackOP2y ago
back on it if a file dose not exist- means i can add it kinda like a folder next to the the printer cfg- right?
rival-black
rival-blackOP2y ago
any advice how to find that pin?
No description
rival-black
rival-blackOP2y ago
we have tried to include a custom file a do a [include] comand

Did you find this page helpful?