dzach wrote:Spent the day trying to debug my Marlin settings.....
This is the result:... Looks good!
Enraged wrote:how do you log the temperature?
frob wrote:Wow excellent work! this will benefit everyone here i think.
Me for sure, i was also having trouble getting the extruder temp right, i may have been experiencing the same problem ,
i'll try this as soon as my Hadron is rebuilt (probably next weekend)
proc rec usb {
if {[chan gets $usb data] < 0} return
incr ::cnt
lassign $data ok T _ B _ _
lassign [split $T :] _ T
lassign [split $B :] _ B
if {$T ne ""} {
set res [expr {([clock milli] - $::t0)/1000.0}]\t$T\t$B
puts $::out $res
# puts $res
if {$::cnt >= 100} {
puts $res
set ::cnt 0
}
} else {
puts $data
}
}
proc ask {{stop 0}} {
puts $::usb M105
after 100 ask
}
proc stop {} {
foreach a [after info] {
puts "Stopping $a"
after cancel $a
}
chan close $::usb
chan close $::out
}
proc start {{dev /dev/ttyACM0}} {
set ::usb [open $dev RDWR]
chan config $::usb -buffering line -blocking 0 -mode 115200,n,8,1
chan event $::usb read [list rec $::usb]
set ::out [open temperatures.txt w+]
set ::t0 [clock milli]
after 2000 ask
}
start
# set temperature commands with:
# puts $usb "M104 S200"
# switch off heater with
# puts $usb "M104 S0"
Enraged wrote:For reference, here is what mine is set too currently:
//J Head
#define DEFAULT_Kp 20.18
#define DEFAULT_Ki 0.69
#define DEFAULT_Kd 197.48
// CuHotE V1
#define DEFAULT_Kp 21.24
#define DEFAULT_Ki 0.05
#define DEFAULT_Kd 2324.5
Users browsing this forum: No registered users and 52 guests