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

125 Replies
fascinating-indigoOP•2y ago
if this is a readf only- how do i find the adjustable?
This doesn't look like the most recent version of RatOS? What version are you on?
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
Changelog | RatOS
RatOS V2.0
fascinating-indigoOP•2y 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
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?
fascinating-indigoOP•2y 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.
Did you read the documentation?

fascinating-indigoOP•2y 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?!
@carbonarne Are you not seeing the hotspot?
fascinating-indigoOP•2y ago
correkt
sometimes i see it but than i can not enter the rasberry pasword
What do you mean?
fascinating-indigoOP•2y 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
this is normal
It might take a few minutes
Which raspberry pi model are you using?
fascinating-indigoOP•2y ago
the standart one
That doesn't mean anything.
Is it a 3 or a 4, how many gb memory, etc
fascinating-indigoOP•2y ago
a few moments is 9 hours?
32 gb
No obviously
that doesn't exist
fascinating-indigoOP•2y ago
how do i find out the type
It'll say on the pi itself
fascinating-indigoOP•2y ago
on the SD kart
model b v 1.2?
ah 3

fascinating-indigoOP•2y ago
rasberry pi 3 model B V 1.2
thanks!!
Okay so that should work just fine
fascinating-indigoOP•2y ago
it worked
What device are you using to join the wifi network?
fascinating-indigoOP•2y ago
mobile phone previously
So you're connected to the hotspot now?
fascinating-indigoOP•2y ago
now
its not working anymore
*no
What do you mean it's not working anymore?
fascinating-indigoOP•2y ago
i tried to update with 2023-04-11-RatOS-v2.0.1-raspberry-rpi32.img
its not shoing the network enzwhere
anywhere
So your phone isn't showing a "RatOS" wifi network?
fascinating-indigoOP•2y ago
correct
How is your pi powered?
fascinating-indigoOP•2y ago
and usually my laptop finds this network as wich wich its not anymore
The images are tested on Pi 3's and Pi 4's, so if it isn't working, it's something on your end.
fascinating-indigoOP•2y 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
I asked how not if
fascinating-indigoOP•2y ago
ah sorry
Wifi can be unstable if you're not providing it enough power
fascinating-indigoOP•2y ago
via a dedicated USB 5v 2500ma
That should be enough
Are you close to your printer when you try to connect?
fascinating-indigoOP•2y ago
20cm
Okay, so it's not because the signal is weak at least.
May i ask where you're from?
fascinating-indigoOP•2y ago
if i pull the sd card the green LED is flashing
nrthern germany
If you do that while its powered you break things
fascinating-indigoOP•2y ago
ok so than i broke it
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
fascinating-indigoOP•2y ago
ok
so ill try to reflash the SD first
how can is link this conversatuion to the german forum?
(im new to dicord)

fascinating-indigoOP•2y ago
wich etcher schould work?

First one
fascinating-indigoOP•2y ago
there we got one mistake
ok ill do again
fascinating-indigoOP•2y ago
so just be save

fascinating-indigoOP•2y 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
You want this one.

Sounds like thats the one you got
fascinating-indigoOP•2y ago

fascinating-indigoOP•2y ago
ok so that was right than
this is likely a dead SD card
Probably because you just yanked it out of the pi while it was powered
fascinating-indigoOP•2y ago
propably
new sd works
but i have only saved the printer cfg
That's fine, you can use that as a reference when filling in the new printer.cfg
(do not copy it over)
fascinating-indigoOP•2y ago

fascinating-indigoOP•2y ago
i got another sd card to work and got to the point of initilizing
Have you gone through the configurator? Ie. have you configured wifi and flashed the board via the configurator at this point?
fascinating-indigoOP•2y ago
Unable to parse option 'pid_Kd' in section 'heater_bed'

fascinating-indigoOP•2y ago
fascinating-indigoOP•2y ago
i have started to look deeper into getting it to run but stranded here
this is usually because you made a syntax error before or after. Let me check
Yeah
fascinating-indigoOP•2y ago
yes thia is what reddit and the configurator help site said
This is wrong
Cant just have random coordinates floating there, you want the section and parameter name uncommented as well
fascinating-indigoOP•2y ago
so how?

fascinating-indigoOP•2y ago
without the space in front?
space?
fascinating-indigoOP•2y ago
ah i see
👍
fascinating-indigoOP•2y ago
was looking for the difference in your and my version
its the # before probe points
and [resonance_tester]
both are very important
[resonance_tester]
is the section
probe_points
is the parameter
250,250,30
is the valuefascinating-indigoOP•2y ago
i dont have a resonance tester though

5160's?
fascinating-indigoOP•2y ago
yes
Oof.. this is regarded as advanced usage, so this is gonna be rough for a beginner.
fascinating-indigoOP•2y ago
i did not realy understand where to change what
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:
you can't use these two lines:
You need to implement those yourself.
fascinating-indigoOP•2y ago
different drivers is hard to do you say? ok lets try together for some time
Furthermore, there is no config for extruder motors on 5160 because thats a pretty bad idea
fascinating-indigoOP•2y ago
what?!
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
fascinating-indigoOP•2y ago
but aren't they included?! where should i put them?
You cannot include these, they're for 2209's
fascinating-indigoOP•2y ago
i try to run 2A ... it worked befor
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 !?
fascinating-indigoOP•2y ago
hahaha i feel that
no extruder is 0.35a
yes
Which is shit on 5160's
fascinating-indigoOP•2y ago
or somethink like that
You want a 2209 for your extruder
fascinating-indigoOP•2y ago
ah
i see
fascinating-indigoOP•2y ago
sorry for a copy version and not a downloaded one... this was my printer cfg when it ran
You want to comment the orbiter config out. You're gonna have to configure it yourself.
This doesn't exist
fascinating-indigoOP•2y ago
step by step... iom still looking what to do with those 2 lines
neither does this:
[include config/boards/btt-skr-pro-12-5160/config.cfg]
Looks like you've modified RatOS on your old installationfascinating-indigoOP•2y ago
so i have to write one my self for teh tms5160
Indeed
fascinating-indigoOP•2y ago
*tmc
i see
You can copy the tmc2209 config, replace the tmc2209 sections with 5160, etc
fascinating-indigoOP•2y ago
yes thought so
now i know ehy i am struggeling
Yeah :/
fascinating-indigoOP•2y ago
and nothing wanted to work out of the box
Yep, hardware isn't supported so it's a bunch of manual work
well, some of the hardware
fascinating-indigoOP•2y 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
There shouldn't be any issue with that
fascinating-indigoOP•2y ago
ok just saying
Should be fine
You just need to sort out the 5160's
fascinating-indigoOP•2y ago
i was afraid to klick on 1.2
ok
and all the other stuff you said
ill do it tomorrow cause its midnight
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
fascinating-indigoOP•2y ago
woukld you mind to summerise what i have to do?!
create the 51 folder and marco comands... what else?
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 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.
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.
fascinating-indigoOP•2y ago
thank you!!!
what dose "not exist" mean? is it missing in the cprinter.cfg or in the folders behind it?
fascinating-indigoOP•2y 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
fascinating-indigoOP•2y 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?
fascinating-indigoOP•2y ago
any advice how to find that pin?

fascinating-indigoOP•2y ago
we have tried to include a custom file a do a [include] comand