#linuxcnc Logs

Sep 17 2018

#linuxcnc Calendar

01:42 AM Deejay: moin
02:48 AM Jin|away is now known as Jin^eLD
02:48 AM Jin^eLD: morning
03:30 AM XXCoder: wow thats long log lol
05:10 AM Tom_L: 71°F Hi 90
05:10 AM Tom_L: summer's just not lettin go yet
05:16 AM jthornton: morning
05:16 AM XXCoder: yo
07:46 AM fdarling: would anyone be able to help me set up Ubuntu 18.04 with a realtime kernel to run LinuxCNC 2.7 from git? (I could also run the master branch too). The issue is there doesn't seem to be much information about the realtime kernel when it comes to 18.04 aka "Bionic"...
07:48 AM fdarling: if you're wondering why I am not just using the LinuxCNC distribution, it's because it's painfully outdated when it comes to drivers for the computers I am running on. I use the non realtime Ubuntu 18.04 on one of my systems, and it works fine with Mesa cards that offload the bulk of the timing problems, but I am trying to set up a parallel port system at the moment
08:17 AM MacGalempsy: mornin =)
08:18 AM -!- #linuxcnc mode set to +v by ChanServ
08:18 AM cradek: fdarling: I think you might be the first to try that. if in your packaging system you have a kernel with -rt in the name it might just work fine if you install and boot that one.
08:19 AM fdarling: cradek: I wasn't able to find a realtime kernel of any sort in the package database, nor a PPA for one
08:19 AM cradek: that sucks
08:20 AM fdarling: it seems odd that I would be the first to try it, Ubuntu is quite popular and 18.04 LTS and 18.10 are the newest releases. I am wondering if there isn't something I am missing, like maybe the realtime stuff was mainlined and must be enabled with a kernel parameter or something
08:20 AM cradek: it would be cool if it was mainlined. I don't know where to look to find out.
08:22 AM cradek: what kernel does that ubuntu use?
08:23 AM fdarling: 4.15.0-33-generic
08:24 AM fdarling: there is also the -lowlatency version, but nothing else besides that
08:27 AM cradek: does your generic kernel now have an option CONFIG_PREEMPT_RT?
08:28 AM cradek: I think you'd see it listed in /boot/config-theversion
08:29 AM fdarling: grep'ing it for CONFIG_PREEMPT yields some results, but not CONFIG_PREEMPT_RT...
08:29 AM fdarling: # CONFIG_PREEMPT is not set
08:31 AM cradek: my much older kernel which I know is preempt-rt has these
08:31 AM fdarling: so I guess the question is, does anyone here have experience building a custom kernel with Ubuntu the "proper" way?
08:32 AM fdarling: I always built my own kernels when running Gentoo, but I know that Ubuntu is a lot more automated with it's upgrades and such, and I'm not sure how to make it aware of me building my own kernel that shouldn't be messed with
08:32 AM fdarling: is PREEMPT_RT suitable for using a parallel port to bit-bang step/dir signals?
08:32 AM fdarling: there was also some mention of RTAI, and I'm confused about the differences
08:33 AM cradek: rtai gives better realtime and is preferred for bit banging, but is not well maintained and harder to build
08:34 AM cradek: whether that slightly better latency matters depends on details like what step rate you need and unknownable-without-testing details about your pc
08:35 AM SpeedEvil: If you're very lucky, you may find someone has posted about your exact config of PC
08:37 AM pcw_home: I am running LinuxCNC (master) on 18.04 here but its slightly busted...
08:37 AM fdarling: busted?
08:37 AM cradek: pcw_home: did you find a preempt-rt kernel?
08:38 AM pcw_home: Built my own
08:38 AM pcw_home: its easy with Preempt-RT, nothing of the trials dealing with RTAI
08:39 AM fdarling: pcw_home: I think for one of my machines I used the LinuxCNC stretch edition that you linked me to
08:40 AM pcw_home: But there are a number of LinuxCNC issues with 18.04 (Debian buster based) that are not fixed yet
08:41 AM fdarling: pcw_home: did the issues have to do with the kernel, or did it have to do with some library version incompatibilities?
08:41 AM pcw_home: You might look at the (looong) mint 18 thread on the forum
08:42 AM pcw_home: not kernel, some are probably library version issues (Python seems to be the main culprit)
08:44 AM pcw_home: others like this error one are just weird:
08:44 AM pcw_home: emc/task/emctask.cc 397: interp_error: EOF in file:/home/peter/linuxcnc-dev/share/axis/images/axis.ngc seeking o-word: o<reset_state> from line: 0
08:44 AM pcw_home: EOF in file:/home/peter/linuxcnc-dev/share/axis/images/axis.ngc seeking o-word: o<reset_state> from line: 0
08:45 AM cradek: that can't be OS related can it??
08:45 AM fdarling: pcw_home: my guess is that due to G-code looping with O-codes or whatever, it's trying to seek in a file and it's failing, so instead it gets an EOF
08:46 AM pcw_home: I dont see how is can but the same (master) source ran on 16.04
08:46 AM fdarling: pcw_home: which is interesting, because the file should be random access usually, unless it's opened in a weird way or being piped or something
08:46 AM cradek: reset_state is not in that file, so maybe you've got some (brokenish) remap in your config?
08:47 AM fdarling: pcw_home: how are you encountering/hunting down these bugs? a test suite? or are you manually running some test cases?
08:47 AM pcw_home: it gets the error on any gcode file as soon as you hit the "toggle emergency stop" button on axis
08:47 AM fdarling: pcw_home: perhaps it's some sort of general memory corruption manifesting as that error message?
08:47 AM pcw_home: I just updated my Ubuntu setup and ran onto them
08:48 AM fdarling: pcw_home: do you know if it's possible to run LinuxCNC under valgrind? or do the Python aspects of it mess that up?
08:48 AM pcw_home: I dont think its memory corruption, the system runs happily 24 (and runs fine after that "error")
08:49 AM pcw_home: The python issues are an old one with numpy I think (image2gcode wont run for example)
08:50 AM pcw_home: nothing really major, all the basics work OK
09:02 AM jelly is now known as [\]
09:02 AM [\] is now known as Guest16629
09:03 AM Guest16629 is now known as jelly
11:22 AM Loetmichel: hmm, any BMW E36 mechanics here by chance? just had a strange effect... had to reset the position of my convertibles canopy again... So i put the jumpstart-box parallel to the battery (because its near death and if the VOltage on the bus falls below 10.5V the roof again forgets where it is)... resetted the roof, driven off... (jumper box in the trunk where the battery is)... and voila: no
11:22 AM Loetmichel: more idle RPM dropping to near stall when lifting the lead foot... what is THAT magic?
11:23 AM Jin^eLD: that's why I drive a car built in 1976 ;)
11:23 AM Loetmichel: Jin^eLD: the BMW is built in 1999
11:24 AM Loetmichel: not THAT much younger :-)
11:24 AM cradek: you had to reboot your car roof
11:24 AM cradek: I find that super funny and I would never buy a convertible :-)
11:24 AM Jin^eLD: Loetmichel: seems young enough to already be full of electronics :)
11:25 AM cradek: last week I was stuck in a plane while they rebooted it to try to get the cockpit screens to work right
11:25 AM Loetmichel: not as much as "modern" cars
11:25 AM Loetmichel: only ECU, ABS controller, Roof controller, Airbag controller
11:25 AM Loetmichel: thats it
11:25 AM Loetmichel: Not even a gearbox controller (its a manual shift)
11:53 AM miss0r|laptop: 'evening
12:12 PM Jin^eLD: hi miss0r
12:15 PM miss0r|laptop: Jin^eLD: Up to anything interresting? I'm back at wiring this box up
12:15 PM Jin^eLD: miss0r: we figured out that we got the CW/CCW shaft directions wrong in our spec (started real life tests with the MH400E), I now swapped the logic and we are about to test :>
12:15 PM Jin^eLD: twitching seems to work fine already
12:16 PM miss0r|laptop: :o
12:16 PM miss0r|laptop: nice
12:19 PM miss0r|laptop: Say hello to your mh400 owner friend from me :)
12:20 PM Jin^eLD: just did, he's a bit stressed right now as I force him to use git :)
12:20 PM miss0r|laptop: :)
12:21 PM Jin^eLD: he says will be interesting to see if you can reuse our stuff for your machine :)
12:22 PM fragalot: hey
12:22 PM fragalot: miss0r: bought me a new 3hp compressor >.>
12:22 PM miss0r|laptop: Indeed. I haven't dug into it in detail yet, as I am still just in the wiring part
12:22 PM miss0r|laptop: hello fragalot
12:22 PM miss0r|laptop: :o nice
12:23 PM Jin^eLD: hi fragalot
12:23 PM miss0r|laptop: sure beats the 1/4hp you had before :D
12:23 PM fragalot: had a 2.5hp with a 6l tank before
12:23 PM fragalot: 3hp with 50l tank now
12:24 PM miss0r|laptop: somehow you made it sounds like it only had 0.25hp
12:24 PM miss0r|laptop: Was it worn out?
12:24 PM fragalot: tank was too small to run any air tools on it
12:25 PM miss0r|laptop: LOL. i see. for some reason I read you replaced a 2.5hp 61 l tank with a 3hp 50l tank
12:25 PM miss0r|laptop: Yeah.. 6->50 is a niceimorovement
12:25 PM fragalot: so the plan now is to parallel them up when I get around to fitting the piping
12:25 PM fragalot: :D
12:25 PM fragalot: 50L is the largest I can fit
12:26 PM miss0r|laptop: twin cylinder?
12:26 PM fragalot: twin cylinder, induction motor (60% DC) with cooling fins on all of the piping
12:26 PM MarcelineVQ: 6l? gosh :(
12:26 PM fragalot: and forced cylinder cooling
12:26 PM fragalot: MarcelineVQ: the 6L jobbo was a nice portable unit
12:27 PM fragalot: I mainly bought that to pump up tires & run nailers
12:28 PM MarcelineVQ: ehe I guess but I think I drink more water than that in summer's day hehe
12:28 PM fragalot: :P
12:28 PM fragalot: for the purposes I got it for, a small tank is very nice
12:28 PM fragalot: because it's up to pressure in less time than it takes me to kneel down & remove the little cap on wheels
12:31 PM Jin^eLD: you'll find that 50l will still fire up way too often when used with tools :P
12:32 PM fragalot: very probably
12:32 PM fragalot: I want a 100L if it comes with the space to put it
12:32 PM Jin^eLD: I also got one because of a price/space+handling ratio
12:32 PM fragalot: this one was €250 so i'm not complaining :P
12:33 PM Jin^eLD: although I was able to find LVLP spray guns where it more or less can keep up
12:33 PM fragalot: I prefer my airless setup
12:33 PM miss0r|laptop: Because I am an idiot, I just realised the 0.25mm^2 wire I bought, apparently is massive.. i.e. no small strands. gah! I must learn to properly read the description
12:33 PM fragalot: miss0r: ha! :D
12:33 PM ziper: i alway hear about the low pressure spray guns
12:33 PM fragalot: those cables do very abruptly get a LOT more flexible if you move them around enough
12:34 PM Jin^eLD: fragalot: what is an "airless setup"? normal brush?
12:34 PM ziper: whats the deal with the high pressure ones??
12:34 PM fragalot: Jin^eLD: high pressure spray, no air needed to create a fan pattern
12:34 PM miss0r|laptop: fragalot: haha, yeah
12:34 PM fragalot: ziper: basically: they work, but cost a lot.
12:34 PM miss0r|laptop: fsck... the grey AND the orange is massive... I'm down to red
12:34 PM Jin^eLD: fragalot: not sure I heard of that, do you have a link?
12:35 PM ziper: I need to spray my boat
12:35 PM ziper: and my car
12:35 PM fragalot: Jin^eLD: just search for airless paint spray system. I've got a tiny handheld graco
12:35 PM Jin^eLD: ziper: I think most common are HVLP, high volume low pressure, they've been around for much longer so all pro-painters use them, probably because they are used to it
12:35 PM fragalot: very low duty-cycle but enough to cover a small room without having to let it cool down
12:36 PM fragalot: Jin^eLD: you have more contol over the spray with HVLP
12:36 PM Jin^eLD: ziper: LVLP is fairly new I think, supposedly use less paint, produce less mist
12:36 PM fragalot: with high-pressure systems you have less control over the droplet size or volume applied
12:36 PM Jin^eLD: fragalot: I am not a pro on that topic, but I'm quite happy with my low volume low pressure gun, results are fine and the compressor can more or less keep up
12:36 PM fragalot: if the viscosity isn't too high we make systems to apply liquids without using air that give you a 1:100 turn-down ratio
12:37 PM fragalot: Jin^eLD: sure :) I just got the airless thing to paint my house interior
12:38 PM Jin^eLD: fragalot: I use it for car body parts/machines, so quite a different application
12:38 PM fragalot: I wouldn't use a high pressure setup for that :-)
12:38 PM Jin^eLD: but I had to pick the gun carefully because of my weak 50l compressor :)
12:38 PM fragalot: :P
12:38 PM Jin^eLD: fragalot: volume...
12:38 PM Jin^eLD: HVLP - high volume, low pressure
12:38 PM Jin^eLD: LVLP - low volume, low pressure
12:39 PM fragalot: I did not know those existed
12:39 PM Jin^eLD: so pressure is low in both cases
12:39 PM Jin^eLD: but the amount of air they need is different
12:39 PM fragalot: apart from airbrush ones
12:39 PM Jin^eLD: HVLP is pretty much standard, been around for ages
12:39 PM Jin^eLD: LVLP is fairly new
12:39 PM fragalot: link,
12:39 PM fragalot: ?
12:39 PM fragalot: do you have to thin the paint more?
12:40 PM Jin^eLD: some say yes, but I did not notice too big of a difference, it just worked well when I thinned it normally
12:40 PM Jin^eLD: I got a rather cheap gun, friend of mine sent it to me from the US, from SprayIt
12:41 PM Jin^eLD: http://www.sprayit.us/spray-guns.html
12:41 PM Jin^eLD: I think this is the kit I have: http://www.sprayit.us/sp-33500k.html
12:43 PM Jin^eLD: and I am really happy with it, actually I was surprised how well it works, especially if you consider its price
12:44 PM Jin^eLD: shipping was insanely expensive though :) luckily it got past customs as a "gift"
12:44 PM fragalot: lucky
12:44 PM Jin^eLD: well I asked him leave paint traces on them so they looked used and he repackaged to some ugly looking box and sent it as a private shipment
12:44 PM Jin^eLD: :)
12:45 PM fragalot: just remembered I have one of those crappy wagner HVLP setups with a turbine
12:45 PM Jin^eLD: in the meantime... miss0r: after I fixed the logic we had swapped in the spec - the gear shifting comp seems to work well
12:53 PM Jin^eLD: he'll now see that he integrates the comp into gmocappy
01:28 PM fragalot: miss0r|laptop: do you have any experience with compressor air intake silencers?
01:28 PM miss0r|laptop: fragalot: Remember, I build a box so silence it. :)
01:28 PM fragalot: :P
01:29 PM fragalot: I don't nkow if I want to make the same box design as I did for the small compressor
01:29 PM miss0r|laptop: Why not?
01:29 PM fragalot: because that thing is HUGE with the 120mm sound damping foam
01:29 PM fragalot: and the intake labyrinth
01:30 PM miss0r|laptop: sure
01:30 PM miss0r|laptop: :)
01:30 PM miss0r|laptop: Then come up with an alternate design?
01:30 PM * fragalot kinda wants to see what simple high quality mufflers would do sound-wise
01:30 PM miss0r|laptop: (worth noting is the massive sound difference on cars using the regular plastic encased filters vs. "open" filters
01:31 PM miss0r|laptop: )
01:31 PM miss0r|laptop: i.e. open filters make alot of noise. The ones on a compressor is closed filters; but they are so craptacularly made, it sounds like an open one
01:32 PM fragalot: yea the ones that came with it are worthless in every single sense of the word
01:32 PM fragalot: tiny inlet hole, tiny surface area, tiny amount of plastic used
01:32 PM miss0r|laptop: :D
01:33 PM fragalot: so i'm hoping to find a decent large sized ones or two
01:54 PM diverdude: If my steppermotor moves X mm at 1 pulse for full stepping, does it then move X/2 mm at half stepping and 1/4 for 25% stepping etc.? Is this always linear?
01:55 PM diverdude: miss0r: Hi, are you here ? :)
01:55 PM miss0r|laptop: I'm gonna go ahead and say meh
01:56 PM miss0r|laptop: In theory that is what you get. But because theres always imperfections inside a stepper, you can't completely count on it
01:56 PM fragalot: diverdude: if you do not take friction and imperfections into account.. yes.
01:58 PM diverdude: i see
01:59 PM XXCoder: diverdude: microstepping precision works for first few doubles but then it does not. it starts drifting a little and position gets average
01:59 PM Rab: diverdude, the stepper is engineered such that it will try to do that, within its performance envelope. But you must provide suitable conditions for it to succeed: current, step rate, etc.
01:59 PM miss0r|laptop: diverdude: don't let us confuse you. Your math is correct. just don't expect 100% accuracy when steppeing 1/32 of a step
02:00 PM miss0r|laptop: (with each step, that is)
02:01 PM diverdude: yeah ok that makes sense
02:02 PM diverdude: the thing is that my motors make A LOT of noise and do very large steps when i do full stepping. It would by nice to have less noisy and smaller steps....but i guess then it also runs really slow
02:03 PM XXCoder: use microstepping to tune your steppers
02:03 PM XXCoder: just dont go past 8
02:03 PM XXCoder: some can 16 I think but yeah
02:07 PM gloops: you cant always hit a tolerance bracket by adjusting the motors alone, also consider the gearing
02:11 PM gloops: pondered this for my A/indexing axis, where step angles and accuracy suddenly get real
02:12 PM diverdude: XXCoder: mmm mine can do 12800 : https://www.lightobject.com/3MD560-Leadshine-Compatible-3-Phase-84A-1-axis-Stepping-Motor-Driver-P836.aspx
02:13 PM diverdude: XXCoder: i guess that corresponds to 64
02:13 PM XXCoder: yep lol
02:14 PM XXCoder: like I said above...
02:16 PM gloops: 20cm blank, 200 step motor on A, at the cutting surface 1 step = a staggering 3.1mm
02:22 PM JT-Shop: anyone have a simple formula to calculate the end point of a line perpendicular to a line with the two end points and the length of the perpendicular line?
02:22 PM JT-Shop: well at the mid point of the line defined by the end points
02:26 PM miss0r|office: fragalot: Status for this nights controller build: https://imgur.com/a/4oID3xW
02:27 PM gloops: well theres a right angle, so pythagorus JT-Shop?
02:27 PM JT-Shop: ok let me look that up
02:28 PM JT-Shop: I kept coming up with slope and stuff
02:28 PM miss0r|office: :)
02:28 PM miss0r|office: JT-Shop: THe controller is nearing completion: https://imgur.com/a/4oID3xW
02:28 PM fragalot: JT-Shop: a² = b² + c² where a is the "long" side with no square angles
02:28 PM XXCoder: miss0r that looks fanastic
02:29 PM JT-Shop: looking good
02:29 PM miss0r|office: Thanks
02:29 PM gloops: you need some information about the triangle more than the right angle
02:29 PM XXCoder: no sapenetti so far. lol
02:29 PM miss0r|office: Although, I do think fantastic is a bit over the top, XXCoder ;)
02:29 PM JT-Shop: I have the same screwdriver as the one on the left
02:29 PM XXCoder: not when you see mine. :P
02:29 PM diverdude: miss0r|office: nice, what is this for?
02:29 PM fragalot: miss0r|office: neat job with that angle bracket for the connectors
02:30 PM miss0r|office: diverdude: This is the new controller for my maho 500c. I'm replacing the old philips 432
02:30 PM fragalot: miss0r|office: also - get a cable tube to go to the lid you savage :P
02:30 PM JT-Shop: fragalot: that does not give me the XY coordinates of the end of the perpendicular line
02:30 PM diverdude: miss0r|office: wow...that looks like a strong machine
02:30 PM JT-Shop: which is what I need
02:31 PM miss0r|office: fragalot: hehe. for that I have some spiraled tube. But I still need to wire the buttons up there, before I add it ;)
02:31 PM fragalot: miss0r|office: where does that moxa go?
02:31 PM miss0r|office: diverdude: Don't forget heavy. its heavy too
02:31 PM gloops: you need another angle or length of 1 side
02:31 PM fragalot: JT-Shop: add in basic line formula's and substitute?
02:31 PM miss0r|office: fragalot: On someone elses machine
02:32 PM fragalot: JT-Shop: alternatively, sketch out in CAD & measure :D or is this for a software project that needs it over & over?
02:32 PM diverdude: miss0r|office: i guess that one can run quite fast
02:32 PM miss0r|office: diverdude: hehe, not realy. its from '86. and the spindle is only a 400rpm one
02:33 PM JT-Shop: yea a software project
02:33 PM fragalot: 400????
02:33 PM miss0r|office: +0
02:33 PM fragalot: :D
02:33 PM miss0r|office: fragalot: you know dis :)
02:33 PM Tom_L: JT-Shop my kid had to figure that out for his competetion...
02:33 PM fragalot: that's slower than my '68 schaublin
02:33 PM fragalot: :d
02:33 PM Tom_L: it's all foggy to me now though
02:34 PM Tom_L: we did verify it with cad
02:34 PM miss0r|office: diverdude: but I *CAN* move all axis at 5000mm/min. Which by todays standards is toad speed
02:34 PM XXCoder: toad speed? slowass? or fasy
02:35 PM miss0r|office: toad.. slow but not quite turtle...
02:35 PM miss0r|office: (i meant to say turtle) :D
02:35 PM XXCoder: lol ok
02:35 PM fragalot: JT-Shop: mind sketching out exactly what you have, and what you need? I may be bored enough to have a more detailed look :P
02:35 PM gloops: sohcahtoa may help
02:35 PM JT-Shop: give me a minute
02:35 PM Tom_L: basically you have T right?
02:35 PM miss0r|office: fragalot: Y U NO start looking at my gear comp ? :D
02:36 PM Tom_L: and want the bottom point of the T
02:36 PM fragalot: miss0r|office: Jin^eLD has more experience with that than I do :D
02:36 PM miss0r|office: fragalot: Yeah, but he is already cought up in a project :)
02:36 PM miss0r|office: you are, and I quite: "Bored"
02:36 PM miss0r|office: :D
02:36 PM fragalot: and you haven't yet provided the truth tables and state diagrams
02:37 PM miss0r|office: I thought you could use your wizard skills to do that yourself?
02:37 PM fragalot: whilst I probably could
02:37 PM miss0r|office: :D
02:37 PM miss0r|office: hehehe
02:37 PM fragalot: :D
02:37 PM miss0r|office: I'll call it a night. See you around
02:38 PM fragalot: cya
02:46 PM JT-Shop: fragalot: https://paste.ubuntu.com/p/dtDDcbHb8J/
02:48 PM JT-Shop: https://paste.ubuntu.com/p/f3mj5wmSpS/
02:48 PM JT-Shop: I added the cad generated end point for the perpendicular line
02:49 PM fragalot: JT-Shop: Right. gimme a moment :)
02:49 PM fragalot: i'm thinking for the slope it's easy, it's just perpendicular to your existing one
02:50 PM fragalot: and since starting point, length, and slope are known
02:50 PM XXCoder: JT-Shop: slope equation is y=mx+b m is slope (which is 1) and b is y-intercrypt
02:50 PM fragalot: what XXCoder said
02:50 PM JT-Shop: yea I read that a bunch of times but didn't understand what I was reading
02:50 PM JT-Shop: all I could grasp is m = slope of the first line
02:51 PM XXCoder: let me change it a little: m = slope of line is (X0 - X10) / (Y0 - Y10) = 1
02:51 PM JT-Shop: yea got that part
02:51 PM JT-Shop: https://imagebin.ca/v/4G2y18uku7qb
02:51 PM JT-Shop: that's the image of the lines
02:52 PM XXCoder: yeah so with slope you want opposite slope so that turns to -1
02:52 PM JT-Shop: XXCoder: here is what I have so far https://paste.ubuntu.com/p/f3mj5wmSpS/
02:53 PM XXCoder: dammit cant recall next step
02:53 PM XXCoder: too tired
02:53 PM * JT-Shop never learned the next step the math teacher was too cute to study
02:55 PM fragalot: JT-Shop: writing a little python script to work it out
02:55 PM fragalot: gimme a minute :)
02:55 PM JT-Shop: cool
03:05 PM Tom_L: you solve for the triangle given any 2 factors
03:06 PM Tom_L: angle or length
03:06 PM fragalot: JT-Shop: got it
03:06 PM Tom_L: the machinist handbook has formulas also
03:08 PM fragalot: JT-Shop: https://paste.ubuntu.com/p/5y5DKMvpGV/
03:08 PM fragalot: at least.. that's my take on it
03:09 PM JT-Shop: thanks
03:10 PM fragalot: it's up for optimisation, but i figured i'd leave in the pathway how I got there
03:10 PM fragalot: :P
03:10 PM JT-Shop: what would you change to have the perpendicular line on the other side?
03:10 PM fragalot: length * -1
03:10 PM JT-Shop: yea I like a step by step code first
03:12 PM XXCoder: python dont have support for -(variable) opcode?
03:12 PM XXCoder: ie -x
03:13 PM fragalot: probably
03:13 PM fragalot: I prefer to spell out 0-x or x * -1 depending on what's faster on that platform
03:14 PM fragalot: more obvious what you want to do
03:14 PM XXCoder: cool
03:15 PM JT-Shop: hmm I'm not getting the opposite side https://paste.ubuntu.com/p/nmBvHbjQDT/
03:16 PM fragalot: JT-Shop: what are you expecting the opposite side to be?
03:16 PM pink_vampire: hi
03:16 PM JT-Shop: oh wait lol same numbers but reversed
03:16 PM JT-Shop: sorry
03:16 PM fragalot: JT-Shop: :-)
03:18 PM XXCoder: nice
03:18 PM XXCoder: hey pink
03:20 PM JT-Shop: fragalot: works perfect thanks for the code and the help
03:20 PM fragalot: no problem, thanks for the patience
03:21 PM JT-Shop: I will study the cosine and sine in the morning :)
03:22 PM fragalot: I may have gotten those backwards, but the output is correct :D
03:24 PM JT-Shop: this is what I'm working on atm https://github.com/jethornton/position-logger/tree/master/pyqt4
03:34 PM fragalot: anything involving a GUI is beyond me. :)
03:34 PM * fragalot likes his low level bare metal tinkering
03:44 PM Deejay: gn8
04:19 PM joshua is now known as Guest82868
04:23 PM rob_h: if you dont know the input excitation voltage and frequency on a resolver, is there away to find it out?
04:25 PM homicdlbrainiac: Hey guys, what's the best way to connect HAL components across different machines?
04:26 PM homicdlbrainiac: So say I have a Raspberry Pi and I want to use it for Trajectory generation/HMI, etc and use a uC for hard-RT tasks
04:26 PM homicdlbrainiac: is NML the right way?
04:36 PM pink_vampire: homicdlbrainiac: i'm not sure
04:36 PM pink_vampire: what is "uC"?
04:36 PM homicdlbrainiac: sorry, uC == microcontroller
04:37 PM homicdlbrainiac: I am wondering if NML is more meant to have high level processes kick off some of the lower ones, but not really shuttle the signals from HAL components
04:37 PM homicdlbrainiac: still trying to wrap my head around it all
04:44 PM JT-Shop: what are you trying to do?
04:45 PM andypugh: rob_h: For frequency you can start with a signal generator and a scope and see where you get a nice sine wave and linear response. Voltage probably comes down to current and heating limits.
04:46 PM andypugh: homicdlbrainiac: Can I ask why? CNC works perfectly adequately with soft realtime.
04:46 PM rob_h: thanks, ill give it ago when i get 5mins
04:46 PM andypugh: If you put all the realtime on the uC then LinuxCNC isn’t really doing very much.
04:47 PM homicdlbrainiac: Yes, it's an experiment of sorts
04:47 PM homicdlbrainiac: Just trying to understand linuxCNC better by trying to re-create it
04:47 PM homicdlbrainiac: but also in a way that might have worked in 80s hardware
04:48 PM Jin^eLD is now known as Jin|away
04:48 PM homicdlbrainiac: so basically have a CPU for running the UI/HMI
04:48 PM homicdlbrainiac: and a CPU for each axis controller
04:48 PM homicdlbrainiac: or rather joint controller
04:48 PM andypugh: It looks like NML is (approximatrly) the layer to intercept. Have you seen the diagrams here? http://linuxcnc.org/docs/2.7/html/code/code-notes.html
04:48 PM homicdlbrainiac: Yes I have, sometimes I see question marks like "?NML"
04:49 PM homicdlbrainiac: I am having to work on this in spurts
04:49 PM homicdlbrainiac: life is a bit chaotic, so it does make it hard to wrap my head around it all
04:49 PM andypugh: This is a bit like what Machinekit are doing, they run some stuff on a Beagle Bone, some in the PRU on the Beaglebone and HMI on a separate machine.
04:49 PM homicdlbrainiac: yeah exactly
04:50 PM homicdlbrainiac: I am putting together a real linuxCNC machine too
04:50 PM homicdlbrainiac: I got a parallel port and dedicated PC going now
04:50 PM andypugh: So Machinekit and Machinetalk might be what you want. But then the TP would have to run on your uC, so you might as well be using Mach3 and a Smoothstepper...
04:51 PM homicdlbrainiac: yeah I want the TP/trajectory generator to run on its own CPU
04:54 PM homicdlbrainiac: Of course I want to pull this off in a way that still works with everything on the same CPU as well
04:55 PM homicdlbrainiac: but would be nice to be able to have it work like I was describing it too
04:55 PM andypugh: I just mounted my fancy new vice: https://photos.google.com/search/_tra_/photo/AF1QipO9_hJccSUE44rpDW9JlHuzTUbDKWjqsmTgBZTL
04:55 PM andypugh: Actually, this link is probably better. https://photos.app.goo.gl/HvX6wMymjKmsRzop6
04:56 PM homicdlbrainiac: Damn that's a beefy vice
04:56 PM andypugh: I am not sure what that style isn’t more common. It seems like it should keep the jaws a lot more parallel.
04:57 PM andypugh: I was admiring it in Germany and the chap just gave it to me!
04:57 PM Tom_L: i need chaps like that around here :)
04:59 PM andypugh: List price is scary: https://shop.eisen-pfeiffer.de/Article/09047
05:01 PM Tom_L: about like a regular kurt vise
05:02 PM andypugh: Aye, but the Kurt is a machine vice.
05:03 PM andypugh: That said, the overall design is a lot like a machine vice.
05:03 PM Tom_L: yeah
05:03 PM andypugh: This Abwood, for example: https://www.ebay.co.uk/itm/362145993261
05:06 PM homicdlbrainiac: gotta run, kids running amok.
05:06 PM _unreal_: Sweet My pendent showed up today
05:06 PM homicdlbrainiac: thanks for letting me pick ur guys brain again
05:07 PM _unreal_: https://www.amazon.com/gp/product/B06X6HF32W/ref=oh_aui_detailpage_o08_s00?ie=UTF8&psc=1
05:08 PM andypugh: Looking for Abwoods led me to https://goo.gl/maps/jxFK3oELM7T2 Noce to see that it still exists. An Aladdin’s Cave of second hand tooling.
05:19 PM Tom_L: you could probably spend a couple paychecks there ehh
05:22 PM andypugh: Possibly more. They are not especially inexpensive.
06:14 PM CaptHindsight: maybe someone will come along to rewrite machinekit with comments
06:15 PM CaptHindsight: and get software stepping working the microcontrollers in the i.mx8
06:17 PM CaptHindsight: http://linuxgizmos.com/files/nxp_imx8_block.jpg has two integrated micros like the PRU's in the BBB
06:18 PM CaptHindsight: but unlike the BBB has open drivers for the GPU
06:29 PM Rab: CaptHindsight, have any favored i.MX8 boards? I see a few out there, not sure which ones have GPIO expansion. This one seems to, if it's ever released: https://www.wandboard.org/news/preorder-your-i-mx8m-community-board-with-advanced-video-and-audio-capabilities-today/
06:37 PM CaptHindsight: https://www.compulab.com/products/computer-on-modules/cl-som-imx8-nxp-i-mx-8-system-on-module-computer/#diagram
06:38 PM CaptHindsight: http://variwiki.com/index.php?title=VAR-SOM-MX8
06:38 PM CaptHindsight: https://www.solid-run.com/nxp-family/imx8-som/imx8-som-specifications/
06:39 PM CaptHindsight: https://www.toradex.com/computer-on-modules/apalis-arm-family/nxp-imx-8
06:41 PM CaptHindsight: for a CNC controller I'd want HDMI, SATA, USB and the GPIO from the mcu's and ethernet or PCIe
06:42 PM CaptHindsight: SATA over USB could be an option ifn there is enough RAM
06:46 PM CaptHindsight: Rab: if the imx8 works I'd probably buy them out the backdoor as chips and make my own boards
08:19 PM pink_vampire: someone here use hsm?
08:47 PM _unreal_: Tom_L, are you in canada?
08:50 PM Tom_L: no
09:17 PM CaptHindsight: _unreal_: in need of a Canadian?
09:43 PM _unreal_: CaptHindsight, me naaa
11:03 PM pink_vampire: one part is done!
11:04 PM pink_vampire: 5 more to go..
11:05 PM Tom_L: http://tom-itx.no-ip.biz:81/~webpage/rue/encoder/encoder_batch.jpg
11:05 PM Tom_L: mine are too
11:06 PM Tom_L: gotta sand the tab off
11:08 PM pink_vampire: just put them on a rod with washer and nut at the end and finish on the lathe.
11:08 PM pink_vampire: one pass clean all
11:10 PM Tom_L: thought about that but i don't have a 5mm bolt handy
11:11 PM Wolf__: 10-32 should work
11:12 PM pink_vampire: it is just a cap, you can even back press it with the tailstock
11:30 PM pink_vampire: 4 parts to go..