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
extended-salmon
extended-salmon13mo ago
if this is a readf only- how do i find the adjustable?
miklschmidt
miklschmidt13mo ago
This doesn't look like the most recent version of RatOS? What version are you on?
miklschmidt
miklschmidt13mo 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
extended-salmon
extended-salmon13mo 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
miklschmidt13mo 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?
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
Did you read the documentation?
No description
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
@carbonarne Are you not seeing the hotspot?
extended-salmon
extended-salmon12mo ago
correkt sometimes i see it but than i can not enter the rasberry pasword
miklschmidt
miklschmidt12mo ago
What do you mean?
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
this is normal It might take a few minutes Which raspberry pi model are you using?
extended-salmon
extended-salmon12mo ago
the standart one
miklschmidt
miklschmidt12mo ago
That doesn't mean anything. Is it a 3 or a 4, how many gb memory, etc
extended-salmon
extended-salmon12mo ago
a few moments is 9 hours? 32 gb
miklschmidt
miklschmidt12mo ago
No obviously that doesn't exist
extended-salmon
extended-salmon12mo ago
how do i find out the type
miklschmidt
miklschmidt12mo ago
It'll say on the pi itself
extended-salmon
extended-salmon12mo ago
on the SD kart model b v 1.2? ah 3
miklschmidt
miklschmidt12mo ago
No description
extended-salmon
extended-salmon12mo ago
rasberry pi 3 model B V 1.2 thanks!!
miklschmidt
miklschmidt12mo ago
Okay so that should work just fine
extended-salmon
extended-salmon12mo ago
it worked
miklschmidt
miklschmidt12mo ago
What device are you using to join the wifi network?
extended-salmon
extended-salmon12mo ago
mobile phone previously
miklschmidt
miklschmidt12mo ago
So you're connected to the hotspot now?
extended-salmon
extended-salmon12mo ago
now its not working anymore *no
miklschmidt
miklschmidt12mo ago
What do you mean it's not working anymore?
extended-salmon
extended-salmon12mo ago
i tried to update with 2023-04-11-RatOS-v2.0.1-raspberry-rpi32.img its not shoing the network enzwhere anywhere
miklschmidt
miklschmidt12mo ago
So your phone isn't showing a "RatOS" wifi network?
extended-salmon
extended-salmon12mo ago
correct
miklschmidt
miklschmidt12mo ago
How is your pi powered?
extended-salmon
extended-salmon12mo ago
and usually my laptop finds this network as wich wich its not anymore
miklschmidt
miklschmidt12mo 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.
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
I asked how not if
extended-salmon
extended-salmon12mo ago
ah sorry
miklschmidt
miklschmidt12mo ago
Wifi can be unstable if you're not providing it enough power
extended-salmon
extended-salmon12mo ago
via a dedicated USB 5v 2500ma
miklschmidt
miklschmidt12mo ago
That should be enough Are you close to your printer when you try to connect?
extended-salmon
extended-salmon12mo ago
20cm
miklschmidt
miklschmidt12mo ago
Okay, so it's not because the signal is weak at least. May i ask where you're from?
extended-salmon
extended-salmon12mo ago
if i pull the sd card the green LED is flashing nrthern germany
miklschmidt
miklschmidt12mo ago
If you do that while its powered you break things
extended-salmon
extended-salmon12mo ago
ok so than i broke it
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
No description
extended-salmon
extended-salmon12mo ago
wich etcher schould work?
No description
miklschmidt
miklschmidt12mo ago
First one
extended-salmon
extended-salmon12mo ago
there we got one mistake ok ill do again
extended-salmon
extended-salmon12mo ago
so just be save
No description
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
You want this one.
No description
miklschmidt
miklschmidt12mo ago
Sounds like thats the one you got
extended-salmon
extended-salmon12mo ago
No description
extended-salmon
extended-salmon12mo ago
ok so that was right than
miklschmidt
miklschmidt12mo ago
this is likely a dead SD card Probably because you just yanked it out of the pi while it was powered
extended-salmon
extended-salmon12mo ago
propably new sd works but i have only saved the printer cfg
miklschmidt
miklschmidt12mo ago
That's fine, you can use that as a reference when filling in the new printer.cfg (do not copy it over)
extended-salmon
extended-salmon12mo ago
No description
extended-salmon
extended-salmon12mo ago
i got another sd card to work and got to the point of initilizing
miklschmidt
miklschmidt12mo ago
Have you gone through the configurator? Ie. have you configured wifi and flashed the board via the configurator at this point?
extended-salmon
extended-salmon12mo ago
Unable to parse option 'pid_Kd' in section 'heater_bed'
No description
extended-salmon
extended-salmon12mo ago
extended-salmon
extended-salmon12mo ago
i have started to look deeper into getting it to run but stranded here
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo ago
yes thia is what reddit and the configurator help site said
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo ago
so how?
miklschmidt
miklschmidt12mo ago
this
extended-salmon
extended-salmon12mo ago
without the space in front?
miklschmidt
miklschmidt12mo ago
space?
extended-salmon
extended-salmon12mo ago
ah i see
miklschmidt
miklschmidt12mo ago
👍
extended-salmon
extended-salmon12mo ago
was looking for the difference in your and my version its the # before probe points
miklschmidt
miklschmidt12mo ago
and [resonance_tester] both are very important [resonance_tester] is the section probe_points is the parameter 250,250,30 is the value
extended-salmon
extended-salmon12mo ago
i dont have a resonance tester though
No description
miklschmidt
miklschmidt12mo ago
5160's?
extended-salmon
extended-salmon12mo ago
yes
miklschmidt
miklschmidt12mo ago
Oof.. this is regarded as advanced usage, so this is gonna be rough for a beginner.
extended-salmon
extended-salmon12mo ago
i did not realy understand where to change what
miklschmidt
miklschmidt12mo 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
miklschmidt12mo 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.
extended-salmon
extended-salmon12mo ago
different drivers is hard to do you say? ok lets try together for some time
miklschmidt
miklschmidt12mo ago
Furthermore, there is no config for extruder motors on 5160 because thats a pretty bad idea
extended-salmon
extended-salmon12mo ago
what?!
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo ago
but aren't they included?! where should i put them?
miklschmidt
miklschmidt12mo ago
You cannot include these, they're for 2209's
extended-salmon
extended-salmon12mo ago
i try to run 2A ... it worked befor
miklschmidt
miklschmidt12mo 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 !?
extended-salmon
extended-salmon12mo ago
hahaha i feel that no extruder is 0.35a
miklschmidt
miklschmidt12mo ago
yes Which is shit on 5160's
extended-salmon
extended-salmon12mo ago
or somethink like that
miklschmidt
miklschmidt12mo ago
You want a 2209 for your extruder
extended-salmon
extended-salmon12mo ago
ah i see
extended-salmon
extended-salmon12mo ago
sorry for a copy version and not a downloaded one... this was my printer cfg when it ran
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo ago
step by step... iom still looking what to do with those 2 lines
miklschmidt
miklschmidt12mo ago
neither does this: [include config/boards/btt-skr-pro-12-5160/config.cfg] Looks like you've modified RatOS on your old installation
extended-salmon
extended-salmon12mo ago
so i have to write one my self for teh tms5160
miklschmidt
miklschmidt12mo ago
Indeed
extended-salmon
extended-salmon12mo ago
*tmc i see
miklschmidt
miklschmidt12mo ago
You can copy the tmc2209 config, replace the tmc2209 sections with 5160, etc
extended-salmon
extended-salmon12mo ago
yes thought so now i know ehy i am struggeling
miklschmidt
miklschmidt12mo ago
Yeah :/
extended-salmon
extended-salmon12mo ago
and nothing wanted to work out of the box
miklschmidt
miklschmidt12mo ago
Yep, hardware isn't supported so it's a bunch of manual work well, some of the hardware
extended-salmon
extended-salmon12mo 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
miklschmidt12mo ago
There shouldn't be any issue with that
extended-salmon
extended-salmon12mo ago
ok just saying
miklschmidt
miklschmidt12mo ago
Should be fine You just need to sort out the 5160's
extended-salmon
extended-salmon12mo 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
miklschmidt12mo 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
extended-salmon
extended-salmon12mo ago
woukld you mind to summerise what i have to do?! create the 51 folder and marco comands... what else?
miklschmidt
miklschmidt12mo 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
miklschmidt12mo 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.
extended-salmon
extended-salmon12mo ago
thank you!!! what dose "not exist" mean? is it missing in the cprinter.cfg or in the folders behind it?
extended-salmon
extended-salmon12mo ago
No description
miklschmidt
miklschmidt12mo 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
extended-salmon
extended-salmon12mo 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?
extended-salmon
extended-salmon12mo ago
any advice how to find that pin?
No description
extended-salmon
extended-salmon12mo ago
we have tried to include a custom file a do a [include] comand