#linuxcnc Logs

Apr 10 2019

#linuxcnc Calendar

12:40 AM _abc_: Hi, this is off topic, I need to compare features for linuxcnc and mach3: linuxcnc does not easily permit dialing in a Z correction (offset) while paused in a program, then continue. Does Mach3 have a feature like this? I mean, pause program, adjust cutter height on Z+0.05 or such, then continue? Or is there an active MDI/jog dial/data entry possibility in Mach3 when paused?
01:13 AM _abc_: Hi, this is off topic, I need to compare features for linuxcnc and mach3: linuxcnc does not easily permit dialing in a Z correction (offset) while paused in a program, then continue. Does Mach3 have a feature like this? I mean, pause program, adjust cutter height on Z+0.05 or such, then continue? Or is there an active MDI/jog dial/data entry possibility in Mach3 when paused?
03:24 AM Deejay: moin
03:59 AM pink_vampire: hi Deejay
04:14 AM XXCoder: heys
04:14 AM pink_vampire: hi
04:15 AM pink_vampire: i need name17 motor, and i have only name 23
04:16 AM XXCoder: named 17 eh ;)
04:16 AM XXCoder: kidding. theres plenty on ebay and aliexpress though dunno which is best
04:17 AM pink_vampire: i will take one from the 3d printer
04:25 AM jelly-home is now known as jelly
04:56 AM Tom_L: morning
04:57 AM pink_vampire: morning
05:04 AM XXCoder: morning
05:18 AM jthornton: morning
05:39 AM Jin^eLD: hi
05:41 AM pink_vampire: hi hi
05:41 AM XXCoder: hey
05:41 AM Jin^eLD: been a while :)
05:42 AM SpeedEvil: hey
05:43 AM XXCoder: pink_vampire: when i got survey for black 3.0, i added 2 lit (blue and green very bright glow in dark powder) and pinkest pink
05:43 AM XXCoder: latter just because I wanted to see it in person
05:43 AM XXCoder: impossible to see how it's like in videos etc
05:44 AM pink_vampire: sounds interesting!
05:44 AM XXCoder: yeah.
05:45 AM XXCoder: its cheap 4 usd lol
05:45 AM XXCoder: for paint its pretty expensive but eh i dont care
05:46 AM pink_vampire: i don't want to start with because I LOVE pink!
05:48 AM XXCoder: lol
05:49 AM XXCoder: its glow powders that im curious. its probably same stuff as stuff crunch uses in his glow fili
05:51 AM XXCoder: unfortunately kickstaretr addons dont have superbase which I will need inn order to turn those glow in dark powders into paint.
05:51 AM XXCoder: pink one just add water
05:51 AM XXCoder: i will need to order base from their website later
06:03 AM pink_vampire: how much there is in the green lit?
06:03 AM XXCoder: how much of what?
06:04 AM pink_vampire: oz
06:04 AM XXCoder: if its amount, then its 50 grams
06:04 AM pink_vampire: for how much?
06:04 AM XXCoder: 10 pounds
06:04 AM XXCoder: roughly 12 usd?>
06:04 AM pink_vampire: so about 2 oz?
06:05 AM XXCoder: yeh glow in dark stuff is quite expensive
06:05 AM XXCoder: pinkest pink is same amount for just 3 pounds
06:05 AM XXCoder: er 4 pounds I mean
06:05 AM pink_vampire: https://www.ebay.com/itm/1KG-BULK-AQUA-Glow-in-the-Dark-Powder-Glow-Pigment-Whosale-Resale/323613567335?epid=1372891060&hash=item4b58df2967:g:ZHsAAOSw9eVXVHkN
06:05 AM XXCoder: thats cheap stuff
06:06 AM * Loetmichel wonders if there is some H3-"glo powder" that would fit a 3dprinters nozzle
06:06 AM XXCoder: if this powder is similiar with crunch's glow in dark stuff, then it really gloows
06:06 AM Loetmichel: maybe like the micro-ballon epoxy filler stuff
06:06 AM XXCoder: Loetmichel: crunch's glow in dark filiment
06:07 AM Loetmichel: XXCoder: nope, i meant self illuminating by decaying tritium
06:07 AM XXCoder: ahh fancy stuff
06:07 AM pink_vampire: "phosphorescence" is the ingredient that make it glow in the dark
06:07 AM XXCoder: pink_vampire: btw offical site https://www.culturehustleusa.com/collections/powders
06:07 AM pink_vampire: just get pure crystal of phosphorescence
06:08 AM Loetmichel: like those fishing rod vials that are used to see where you throw the hook/see the sinker move
06:08 AM XXCoder: they also have eco glitter. no plastic.
06:08 AM pink_vampire: https://www.culturehustleusa.com/collections/powders/products/the-big-pink-500g-worlds-pinkest-pink-powdered-paint
06:08 AM Loetmichel: pink_vampire: phosphorescece is just the physics term for "afterglow", not actually a substance.
06:09 AM pink_vampire: Loetmichel: after i had some hope...
06:13 AM * Loetmichel would like to get his hands on some radium paint... but i doubt thats allowed any more.
06:13 AM Loetmichel: was pretty popular back in the 40ties though ;)
06:13 AM pink_vampire: why
06:13 AM Loetmichel: because its radioactive
06:14 AM pink_vampire: O_o
06:14 AM Loetmichel: and NOT in a glass vial that effectively blocks the radiation
06:14 AM XXCoder: should not to be too radioactive but yeah
06:14 AM XXCoder: after mess like radioactive water, radioactive brushes, etc etc
06:14 AM Loetmichel: they used that to paint dials in aircrafts and clocks back in the days
06:14 AM XXCoder: it got shut down hard
06:15 AM XXCoder: https://en.wikipedia.org/wiki/Luminous_paint#Radium
06:16 AM XXCoder: seems unsafe enough that its certainly banned
06:16 AM XXCoder: too bad would love top have something permently glow
06:16 AM Loetmichel: pink_vampire: radium paint was basically phosphor paint (the glow in the dark ingridient) with radium dust mixed in as an "activator" for the phosphor
06:16 AM Loetmichel: so it emitted light all the time, not just when "charged" by light because of said radioactive decay engergy
06:17 AM pink_vampire: https://www.youtube.com/watch?v=WPQ__b27jyM
06:17 AM XXCoder: there is Promethium but half-life is just 2.5 years
06:18 AM XXCoder: I suppose it is useful enough as long as can re-apply
06:18 AM XXCoder: its only beta so it cant even get out of glow in dark paint its mixed in
06:19 AM Loetmichel: XXCoder: sounds promising... but i think its very rare so expensive?
06:21 AM weenerdog: howdy howdy
06:22 AM XXCoder: no luck finding ources
06:22 AM XXCoder: hey
06:22 AM weenerdog: sup
06:23 AM XXCoder: checked ebay no luck
06:24 AM pink_vampire: https://www.youtube.com/watch?v=vbJvURlSU44 LOLLLLLL
06:24 AM XXCoder: lol
06:25 AM XXCoder: it works apparently.
06:25 AM Loetmichel: i would have used some leftover half horse AC motor...
06:26 AM Loetmichel: but if the kitchen aid works it works ;)
06:27 AM XXCoder: https://www.youtube.com/watch?v=WPQ__b27jyM nice!
06:29 AM weenerdog: I would love one of the old kitchenaid mixers like that.
06:30 AM pink_vampire: I have one
06:31 AM pink_vampire: I need the pinkest pink to re paint it to the correct color
06:33 AM weenerdog: i need metalflake purple to redo an old craftsman toolchest for my gf.
06:34 AM weenerdog: she got it at an estate sale for $20 for her craft shit, wants purple. lol. whut baby wants baby gets i guess...
06:35 AM XXCoder: pink_vampire: can arylic based paint be used there?
06:36 AM weenerdog: i gotta go to the nearest bigger small town anyhow today, might stop at sherwin williams and ax them
06:36 AM XXCoder: nooo not the ax
06:36 AM pink_vampire: enamel or powder coat i think is the way to go
06:36 AM weenerdog: nah man. enamel for that. kitchenaids are too cool.
06:37 AM XXCoder: yeah i doubted arylic would work there
06:37 AM weenerdog: its like a bridgeport for yummy things
06:37 AM weenerdog: that should be their new ad slogan
06:38 AM Loetmichel: tool chests: use powder coat
06:38 AM Loetmichel: no paint will withstand tools thrown it
06:38 AM XXCoder: is there flakey purple powdercoat?
06:38 AM weenerdog: nah its for her crafting junk.
06:38 AM XXCoder: you know, shiny flakes in paint
06:44 AM weenerdog: hm... harbor freight has a powder coating rig. the reviews are actually not bad.
06:45 AM weenerdog: at $75 i might try it out for yucks
06:45 AM pink_vampire: https://www.layitlow.com/forums/23-paint-body/234452-purple-flake-post-some-pics.html
06:46 AM XXCoder: fancy color
06:47 AM Loetmichel: XXCoder: i know that there are "coarse metallic" powder coats
06:47 AM Loetmichel: dont know about glimmer flakes though
06:48 AM Loetmichel: pink_vampire: that looks acutally gorgeous
06:48 AM XXCoder: indeed
06:48 AM weenerdog: i could do my frankenbushhog (old bombproof covington deck with fabricobbled mounts for bushhog gearbox) in purple
06:49 AM Loetmichel: i saw a honda bike once with a red flake in that "coarseness"... made me wanting a bike in that specific pain for quite a bit of my youth
06:49 AM Loetmichel: you know that "ruby red" tone.
06:57 AM pink_vampire: Loetmichel: how do you set your Z 0?
07:00 AM jthornton: https://matrix.org/_matrix/media/v1/download/matrix.org/GgDlqFPChMjbApXPsfBbTcgn
07:01 AM jthornton: clean parts are a must for powder coating
07:07 AM Loetmichel: pink_vampire: touching the material with the rotating tool
07:09 AM Loetmichel: weenerdog: are you chuckE2009?
07:09 AM Loetmichel: :-)
07:37 AM pink_vampire: I need help with getting back the limit switches
07:38 AM pink_vampire: i know i need to add something in the hal file
07:39 AM pink_vampire: i got a normally close switch connect to pin 10 in parport 0
08:08 AM pink_vampire: jthornton:
08:19 AM jthornton: what do you want to connect it to?
08:21 AM julien is now known as Guest46693
08:35 AM pink_vampire: just a limit switch
08:37 AM JT-Shop: you have it connected to the limit switch...
08:40 AM pink_vampire: I'm soldering the wires right now
08:44 AM JT-Shop: what do you want the limit switch connected to in linuxcnc?
08:46 AM pink_vampire: to pin 10 in LPT 0, it is for the X axis
08:54 AM JT-Shop: you do that with wires...
09:03 AM * jthornton tosses the baton out into the crowd and heads for town
11:29 AM fragalot: 'sup
11:53 AM Loetmichel: *MAAAN* i am getting REALLY forgetful lately. Made myself a bottle of carbonated water in the kitchen, put some cherry syrup in... wife calls from the bedroom. So i put down the bottle somewhere, did the thing my wife called for... 2min later: "where did i put the bottle?" *cue 20min(!) search in all rooms* "ah, there it is. IN THE BATHROOM?!?"
12:07 PM _abc_: .
12:08 PM _abc_: I asked this morning, if linuxcnc has a drop in compatible plugin to be able to do G54 manipulation while paused (not stopped). I found something in the docs, it is not conclusive if it works with 2.7. Does it?
12:08 PM _abc_: Specifically this: http://linuxcnc.org/docs/html/config/moveoff.html
12:33 PM _abc_: Guys, what's wrong with the channel heh? Weekday? Everyone working for the man? Evening here, yesterday it was as quiet as it is now.
12:42 PM gloops: people are in and out - or maybe logged on but doing something else, probably hand coding a curving hexagonal cut
12:42 PM gloops: or on pronhub
12:43 PM Loetmichel: _abc_: some people have to work ;)
12:43 PM gloops: ive been finishing my hares https://ibb.co/G2dkRX4
12:44 PM _abc_: Loetmichel: just came back from such an activity?
12:44 PM * Loetmichel has access to his home computer from work
12:44 PM Loetmichel: so i am always here
12:44 PM _abc_: Loetmichel: tried to run linuxcnc over vnc?
12:44 PM gloops: its a downward spiral, if its quiet people dont bother staying - it gets quieter
12:44 PM Loetmichel: but yes, i am done with work for today
12:44 PM _abc_: Loetmichel: for when you have the flu and stay home :)
12:45 PM Loetmichel: _abc_: https://www.youtube.com/watch?v=9u_ChO1AKYY
12:45 PM Loetmichel: does that answer the question?
12:45 PM Loetmichel: ;)
12:45 PM _abc_: Yeah. What camera server setup?
12:46 PM _abc_: Loetmichel:
12:46 PM Loetmichel: VLC on the LinuxCNC PC ;)
12:46 PM Loetmichel: it lags half a second or so though
12:46 PM _abc_: sure
12:47 PM _abc_: Not a problem.
12:47 PM Loetmichel: for mp4 encoding
12:47 PM _abc_: Record everything so you can see what crashed the tool :)
12:48 PM _abc_: I really need to get axis/ui sim compnents going on my desktop, I have failed to get that to work so far. Another day.
12:49 PM Rab: _abc_, I've also done it with X forwarding over SSH. Performance might be a little better than VLC.
12:49 PM fragalot: camcorder pointed at the screen with the cnc in the background ist he way to do it
12:49 PM fragalot: bonus points if neither is in focus
12:50 PM Rab: fragalot, if you can't focus on both, splitting the difference seems obvious.
12:51 PM fragalot: Rab: Exactly :D
12:53 PM Rab: _abc_, I've seen your questions, but I don't have any answers to contribute. It's possible your requirements form an edge case which most people don't encounter.
12:57 PM Rab: _abc_, FWIW, I've done the same thing you're trying to do, but with a very old payware controller (FlashCut CNC). I was engraving a supposedly level plane (die cast box top), noticed the tool was digging in, and stopped to add a height offset. I don't remember if I was able to continue from there--I think I had to rerun the job.
12:58 PM fragalot: could you use a variable for the tool offset?
12:58 PM Rab: But it struck me as a very primitive workflow, and I bought a spring-loaded engraving tool.
12:59 PM _abc_: fragalot: you can't edit anything in paused mode
12:59 PM fragalot: I see
12:59 PM Loetmichel: _abc_: i dont need to record it to know what is responsible for a crash. its ALWAYS me ;)
12:59 PM Rab: fragalot, that software let me type in arbitrary numbers for relative machine coordinates. So I subtracted e.g. .005" from the Z axis zero. I guess that's a no?
12:59 PM fragalot: Rab: I have no idea. :-)
01:00 PM _abc_: My current hack is: STOP printing (stop at a suitable place), adjust Z using G54 Zas-needed; then RUN from current line (where it was when I pressed stop). This line is marked in the gui gcode listing.
01:00 PM _abc_: But the link I pasted should do exactly what is needed: http://linuxcnc.org/docs/html/config/moveoff.html
01:00 PM _abc_: Question: is anyone using it, and does it work well with 2.7?
01:00 PM Rab: _abc_, that means you have to watch the job the whole time, hoping to catch the added height before the tool breaks, right
01:00 PM _abc_: Aside: what emulator are you using to run 2.7 in? qemu? vbox?
01:01 PM _abc_: In sim mode
01:01 PM _abc_: Rab: of course.
01:01 PM _abc_: Rab: well you do this only for engraving normally, no need in other settings
01:01 PM Rab: _abc_, considered either a spring-loaded toolholder, or a pre-job height probing routing?
01:02 PM Rab: s/routing/routine
01:02 PM Loetmichel: Rab: i used VLC for the USB webcam, and VNC for the linuxCNC desktop because the office machine is win7, not linux
01:02 PM Loetmichel: so i couldnt forward the x server
01:02 PM _abc_: Rab: does not help. I do among other things pcb engraving, that usually has 0.1 or 0.2mm deep engraving. The boards are sometimes crap and need adjustment.
01:03 PM Rab: Loetmichel, I believe there are X servers for Windows, but that sounds like a totally reasonable solution.
01:03 PM _abc_: Loetmichel: install x server for windows, Xming
01:03 PM _abc_: But vnc does it. You may want to look into tightvnc if bandwidth is the limit, or into uncompressed vnc if the problem is system load.
01:03 PM Loetmichel: what really surprised me that an old 3ghz core2 duo can cope with with VNC AND recoding a 640*480 mjpeg video to mp4 and streaming it
01:04 PM Loetmichel: without any hickups or linuxCNC complaints about jitter and stuff ;)
01:04 PM _abc_: Loetmichel: you can save a lot of load by slowing down the video frame rate
01:04 PM _abc_: Don't need 100 fps for the cnc supervision, 10fps is okay.
01:04 PM fragalot: 120fps 8K
01:04 PM _abc_: RGBY
01:04 PM Loetmichel: _abc_: the endoscope cam could only do 25fps anyway ;)
01:04 PM fragalot: might need some additional lighting
01:05 PM _abc_: fragalot: yes, always. And from the right direction, it is tricky to shoot shiny metal
01:05 PM Rab: _abc_, PCB probing isn't theoretical: https://github.com/hase-berlin/pcbGcodeZprobing
01:05 PM Loetmichel: you can see it in the second part of the video, the black cylinder plugged into the dust "hood" around the mill bit
01:06 PM Rab: I think renesis has done it, maybe he's around.
01:06 PM Rab: renesis, beep
01:15 PM gregcnc: _abc_ if the common solution of z height mapping for PCB isn't suitable, you may consider external offsets
01:22 PM _abc_: gregcnc: the item I linked, Moveoff, is not suitable?
01:22 PM _abc_: And, again, what emulator are you running to run the whole linucnc 2.7 image? Please?
02:38 PM _abc_: Again, is there a file to download for this component yes/no? http://linuxcnc.org/docs/html/config/moveoff.html -- it makes mention of hookup_moveoff.tcl -- is that a thing? I can't find such a file.
02:38 PM _abc_: https://github.com/LinuxCNC/linuxcnc/blob/master/lib/hallib/hookup_moveoff.tcl found via google. Is anyone really using this?
02:39 PM fragalot: not I.
02:53 PM rmu: _abc_: http://linuxcnc.org/docs/devel/html/motion/external-offsets.html
02:55 PM _abc_: Yeah it seems like he does Rab
04:13 PM Deejay: gn8
04:34 PM _unreal_: hello
04:34 PM _unreal_: ok
04:34 PM _unreal_: I at this point need to figure out how to start getting things setup?
04:35 PM _unreal_: I want to use the GPIO pins for the linuxcnc
04:45 PM skunkworks: what device is this?
05:01 PM _unreal_: hi sorry
05:01 PM _unreal_: tinkerboard
05:03 PM _unreal_: skunkworks, https://forum.armbian.com/topic/10007-tinker-board-current-rtos-working-free-offer/
05:03 PM _unreal_: I posted the RT patches. I now have linuxcnc BUILT.
05:03 PM _unreal_: I need to get linuxcnc working with the GPIO
05:04 PM _unreal_: not sure how to do it I've never really messed with linuxcnc
05:04 PM _unreal_: I'm use to mach3
05:12 PM rmu: _unreal_: you got rt preempt on the tinkerboard running?
05:12 PM rmu: _unreal_: i have some strangeness where the screen will flicker every 5 seconds
05:13 PM rmu: _unreal_: what kind of CNC machine do you have? steppers?
05:17 PM _unreal_: yes rmu
05:17 PM _unreal_: rmu, what res?
05:17 PM _unreal_: and what LCD I've had the same issues
05:18 PM _unreal_: as to the cnc i'm building it. will be a moving gantry mill
05:18 PM _unreal_: rmu, ?
05:19 PM rmu: _unreal_: hp 19" with weird resolution, i think 1440x900
05:19 PM rmu: _unreal_: i think it won't make much sense to generate steps on the tinkerboard, that means you need some kind of additional step generator
05:20 PM rmu: _unreal_: i experimented with mesa 7i90 but got sidetracked, you would have to adapt either hm2_spi driver or write a separate one in the spirit of hm2_rpspi
05:21 PM _unreal_: what linux build?
05:21 PM _unreal_: ubuntu, fedora, armbian, mint?
05:24 PM rmu: armbian
05:28 PM _unreal_: do you have RT working?
05:28 PM _unreal_: and if so for which build
05:29 PM _unreal_: ?
05:31 PM andypugh: _unreal_: Do you have any info on how the GPIO is driven?
05:33 PM andypugh: There is a HAL driver for the Beagle Bone Black GPIO: http://linuxcnc.org/docs/devel/html/man/man9/hal_bb_gpio.9.html
05:33 PM _unreal_: I dont know jack about it
05:33 PM _unreal_: I'm just learning
05:33 PM _unreal_: and I dont know off hand how to setup linuxcnc I have not used it
05:34 PM _unreal_: I just built it last night
05:34 PM andypugh: Well, I think that’s the easy part done :-)
05:34 PM _unreal_: what is?
05:34 PM andypugh: Building LinuxCNC and the kernel
05:35 PM _unreal_: took me a almost 2 months to get the kernel built
05:35 PM _unreal_: finding the right patch
05:35 PM andypugh: (I was teasing, but accessing the GPIO might be a puzzle too)
05:35 PM _unreal_: and linuxcnc took me about 4 hours. do to all of the dependencies
05:35 PM _unreal_: likely I have not gotten that far and I dont know what to look for.
05:35 PM _unreal_: where the settings are how to start up linuxcnc exactlly
05:35 PM _unreal_: it pops up with an ODD menu and I'm not sure what to click on
05:36 PM _unreal_: one sec Ill start it up
05:37 PM _unreal_: ok so I get the welcome to linuxcnc menu, with a HUGE list on the left side, sample configurations, sim, axis etc...
05:37 PM _unreal_: not sure what to click?
05:37 PM andypugh: Which one do you fancy looking at first?
05:38 PM _unreal_: like I have any idea
05:38 PM rmu: _unreal_: i will try to boot the system up tomorrow, it is half past midnight around here, frankly i don't remember the details
05:38 PM _unreal_: 6 here
05:38 PM _unreal_: south florida
05:38 PM andypugh: sim/axis/vismach/5axis/bridgemill/5Axis is fun
05:39 PM _unreal_: rmu, so you are or are trying to do linuxcnc with tinker?
05:39 PM rmu: _unreal_: the problem is that you can expect to run a 1khz loop with acceptable jitter, but that won't be fast enough to generate stepper signals
05:39 PM _unreal_: andypugh, I dont know the exact difference, I'm assuming those are PREset's?
05:39 PM _unreal_: rmu, do you have RT
05:39 PM rmu: _unreal_: yes, but with additional HW
05:39 PM _unreal_: a FULL preempt RT kernel?
05:39 PM rmu: _unreal_: yes, full rt preempt kernel
05:40 PM rmu: and an annoying screen flicker issue that is not there with the stock kernel ;)
05:40 PM _unreal_: then thats got to be a software issue, I mean a 486 33mhz laptop running turbocnc can run a cnc machine just fine
05:41 PM _unreal_: rmu the flicker is likely the HZ setting being worng
05:41 PM _unreal_: I have a 1024x600 LCD and its not supported at all. I'm running 1024x768
05:41 PM _unreal_: and its a little streached
05:41 PM rmu: the 486 33mhz laptop doesn't run a multiuser multitasking operating system
05:41 PM _unreal_: correct
05:42 PM andypugh: _unreal_: What are your latency test results like?
05:42 PM _unreal_: I dont know yet dont even know how to
05:42 PM _unreal_: if there is a quick command I'll test
05:42 PM rmu: higher frequencies may be possible with an approach like xenomai or rtai but i don't know if that is available for the tinkerboard or even the tinkerboard S
05:42 PM andypugh: applications - > CNC -> Latency-test
05:43 PM _unreal_: andypugh, I built it its not installed, its running from directory
05:43 PM rmu: surely it is a software issue, but there is no guarantee that can be solved in a finite (useful) timeframe
05:43 PM andypugh: rmu: I know it’s not a tinkerboard, but my PC here has a 3000nS latency on the base thread with preempt-rt
05:43 PM _unreal_: found the latency-test script running now
05:44 PM andypugh: Try the “latency-histogram” command then
05:44 PM _unreal_: ok its giving numbers
05:44 PM rmu: andypugh: i think my tinkerboard is about 50000
05:44 PM rmu: 50000 to 100000 or so
05:44 PM _unreal_: what numbers are you looking for?
05:44 PM andypugh: max-jitte
05:44 PM _unreal_: for servo or base?
05:44 PM andypugh: Both
05:44 PM _unreal_: max servo is 22870
05:44 PM andypugh: Fair
05:45 PM _unreal_: thread is 25450
05:45 PM andypugh: Not brilliant, but usable.
05:46 PM _unreal_: So my jitter is HALF that of yours RMU
05:46 PM _unreal_: and I have services I can shut down as well
05:46 PM andypugh: runnning a 50kHz base thread, 200 steps per rev x4 microsteppping is still 3000rpm at the stepper, and you won’t make a stepper move that fast
05:47 PM rmu: _unreal_: check with a webbrowser running and a kernel compile in the background
05:47 PM _unreal_: andypugh, I'm not likely to need 3000k
05:47 PM _unreal_: WHY THE FUCK would I have that stuff running on a tinkerboard that is to be dedicated to being a cnc controller
05:47 PM andypugh: rmu: Though doing both those while machining would be unusual :-)
05:47 PM rmu: _unreal_: you won't but it will give worst case figures
05:48 PM andypugh: But you do need to “stress” the system a bit to see how reliable your latency numbers are
05:49 PM _unreal_: I agree but I'd consider runnning a demo tooling path with a very indepth gcode that will build a sizable 3d image in the viewer as a heavy load
05:49 PM _unreal_: running additional software and running linuxcnc does not make sense
05:49 PM rmu: those ARM SOCs have the nasty habit of doing things "on their own" if they get hot or detect the wrong phase of the moon
05:49 PM Tom_itx: run glxgears
05:49 PM _unreal_: rmu, i'm sure
05:50 PM _unreal_: Tom_itx, ?
05:50 PM Tom_itx: as part of a load test
05:50 PM _unreal_: ok GLXGEARS is running
05:51 PM _unreal_: servo is 42370 base is 3175
05:51 PM _unreal_: I have also done no tuning or anything or adjusted any priorites
05:52 PM rmu: one thing to try out is isolating the realtime stuff on one cpu core
05:52 PM rmu: with isolcpus kernel command line
05:52 PM rmu: (and keep the non-realtime-stuff on the other cores)
05:53 PM _unreal_: huh?
05:53 PM _unreal_: I have no idea how to do that
05:53 PM _unreal_: huh
05:53 PM rmu: whatever the name of the bootmanager, it has a way to pass parameters to the kernel
05:53 PM rmu: via some config.txt in /boot or some such
05:53 PM _unreal_: I'm getting different numbers when starting and stopping latency test
05:54 PM _unreal_: now I'm getting servo 9454 and base 28958
05:54 PM _unreal_: yes 9454
05:54 PM _unreal_: ls
05:54 PM rmu: you need to keep it running for some hours and look at max numbers
05:56 PM rmu: do a kernel compile in the background and some websurfing on google maps 3d stuff, that will simultanously work the disk graphics and network subsystems, if numbers stay low it will be unlikely you will have problems
05:58 PM _unreal_: ahhhh??? now I think this latency test is having some issues? because its showing 30,000,000 range and htop show's almost zero cpu ussage
05:58 PM _unreal_: and it just crashed
05:59 PM _unreal_: I dont trust the latency timer script
05:59 PM rmu: that would have ruined your work piece ;)
05:59 PM _unreal_: hum plot and hystrogram do not load
05:59 PM _unreal_: ok now its showing numbers like it did the first time I ran it
06:00 PM rmu: _unreal_: https://github.com/arne48/armbian_build
06:01 PM _unreal_: What that?
06:01 PM _unreal_: ubuntu 16
06:01 PM _unreal_: my build is based on 18
06:03 PM _unreal_: rmu, very interesting, I googled those exact things and google never showed me something like that link. now google is showing me lots of RT kernel build links
06:03 PM _unreal_: M'FF'ER
06:04 PM Tom_itx: it was good experience
06:05 PM rmu: thats just the build environment, and it also works on bionic IIRC
06:06 PM _unreal_: so rmu your talking about isolating the RT to one core how would one go about doing that?
06:08 PM rmu: find out how the tinker board is booting and where to put kernel command lines
06:08 PM _unreal_: uboot
06:08 PM _unreal_: ?
06:08 PM rmu: then add something like "isolcpus=3" on it, that would isolate core 3 and prevent any "normal" tasks running there
06:08 PM rmu: linuxcnc will detect that and bind the realtime stuff to that core
06:09 PM rmu: you could also do it manually with taskset, cpuset and similar commands
06:09 PM _unreal_: and likely improve my decent scores more? I asume
06:10 PM rmu: improve and make them stable
06:10 PM _unreal_: having 2 keyboards in front of me is not a good thing
06:13 PM _unreal_: ok so how would I go about getting the GPIO's to work with linuxcnc and setup? they make work already with the DEFAULT hal? I have no idea.
06:14 PM _unreal_: make=may
06:16 PM andypugh: I think taht you will need HAL driver. And I don’t think one exists.
06:16 PM rmu: _unreal_: are you fluent in C?
06:16 PM andypugh: How is the GPIO accessed “normally”?
06:16 PM andypugh: Have you found any article on using the GPIO?
06:16 PM rmu: there is a generic GPIO api in linux
06:16 PM rmu: you can even access it via /sys
06:17 PM rmu: manipulate pins from shell skripts via files
06:17 PM andypugh: Hmm, no reason to expect that to be thread-safe thought.
06:17 PM _unreal_: I dont know exctly
06:18 PM _unreal_: thread safe?
06:18 PM rmu: what do you mean with thread safe
06:18 PM rmu: concurrent access from different programs to you stepper pins won't make much sense ;)
06:18 PM _unreal_: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?RaspberryPi
06:19 PM andypugh: Code running in the realtime threads in HAL has to be non-blocking (amongst other things)
06:19 PM rmu: https://www.kernel.org/doc/html/v4.15/driver-api/gpio.html
06:20 PM rmu: i found this from 2008: https://sourceforge.net/p/emc/mailman/message/19768696/
06:21 PM _unreal_: not sure how relavent 2k8 and GPIO is
06:21 PM _unreal_: :)
06:22 PM andypugh: Well, that LinuxCNC HAL driver from Michael Buesch is definitely worth a try
06:22 PM Rab: https://tinkerboarding.co.uk/wiki/index.php/GPIO#GPIO_API
06:23 PM andypugh: (I would definitely try that _before_ trying anything else)
06:23 PM andypugh: Ideally you would be avoiding any external APIs
06:23 PM rmu: https://github.com/arne48/tinkerboard_io
06:24 PM _unreal_: andypugh, which is the michael buesch
06:25 PM andypugh: This one: https://sourceforge.net/p/emc/mailman/message/19768696/
06:25 PM _unreal_: oh a few posts down
06:26 PM andypugh: Try to get that file as raw text, then save it as src/hal/drivers/hal_linux_gpio.c
06:26 PM _unreal_: andypugh, ok so how would I go about compiling that?
06:26 PM andypugh: You can try compiling it with halcompile.
06:27 PM _unreal_: hum
06:27 PM _unreal_: not sure if I have halcompile
06:27 PM _unreal_: checking
06:28 PM _unreal_: dont have cant locate
06:29 PM andypugh: Have you done the . ./scripts/rip-environment?
06:30 PM andypugh: <tests> Yes, you need to do that in the terminal that you are halcompiling in
06:30 PM _unreal_: huh?
06:31 PM andypugh: You are running a run-in-place linuxCNC that you compiled yourself?
06:31 PM _unreal_: I'm not sure what scripts/rip-enviro is
06:31 PM _unreal_: andypugh, currently YES
06:31 PM _unreal_: I"d rather an installed setup BUT
06:31 PM Tom_itx: remember that scripts you ran yesterday to get linuxcnc to run?
06:31 PM _unreal_: untill its fully working no point to instal
06:31 PM Tom_itx: it's similar
06:31 PM andypugh: Then you neeed to run the rip-environment script in the terminal first
06:32 PM _unreal_: ok. so what is the command
06:32 PM andypugh: . ./scripts/rip-environment
06:32 PM andypugh: (yes, really, dot space dot slash)
06:32 PM Tom_itx: morse code?
06:33 PM andypugh: Or maybe . ../scripts/rip-environenment. It rather depends where you are in the tree
06:36 PM Tom_itx is now known as Tom_L
06:36 PM _unreal_: http://paste.ubuntu.com/p/XCYJZST4nT/
06:36 PM _unreal_: oh . space
06:36 PM _unreal_: ok I ran it did nothing?
06:36 PM _unreal_: what did it do?
06:36 PM _unreal_: tinker@tinkerboard:~/Downloads/linuxcnc/scripts$
06:36 PM _unreal_: so home/tinker/Dowloads.....
06:37 PM _unreal_: so its a manipulative script :))
06:38 PM rmu: the dot tells the shell to source the file after the space
06:38 PM _unreal_: rmu, you've seen my shell ya?
06:38 PM rmu: ?
06:38 PM _unreal_: :) have you seen my "base ball"
06:39 PM andypugh: _unreal_: Now does halcompile do anything?
06:39 PM _unreal_: https://photos.google.com/share/AF1QipNjUL9VJW4BIh58ZOHM6jOWS10l43lfzL_nr7FMD-YXm_o6hG63BfTN2Rv6ch6C_Q?key=OVV0UTBXUmF0NXNSR2NKVzdoaFhxQzVTbDI5V3JB
06:39 PM _unreal_: rmu, you will like
06:39 PM _unreal_: andypugh, checking
06:40 PM andypugh: Try halcompile -h
06:40 PM _unreal_: halcompile -
06:40 PM _unreal_: fuck
06:40 PM andypugh: Then halcopile —install hal_linuxgpio.c
06:40 PM _unreal_: yes
06:41 PM _unreal_: is linuxgpio.c relating to that weblink?
06:41 PM andypugh: Yes
06:41 PM andypugh: hal_linux_gpio.c
06:41 PM _unreal_: ?
06:41 PM _unreal_: oh becausre of the name or some other past task?
06:41 PM andypugh: That file that you just saved in src/hal/drivers
06:41 PM _unreal_: file?
06:42 PM _unreal_: I have not saved any files
06:42 PM andypugh: Why not?
06:42 PM andypugh: I told you to!
06:42 PM andypugh: Bha!
06:42 PM rmu: *lol*
06:42 PM rmu: it's really a shell
06:42 PM andypugh: What is?
06:43 PM _unreal_: LOL my base ball
06:43 PM _unreal_: "something about marry"
06:43 PM _unreal_: rmu, you get it ya?
06:43 PM andypugh: Oh, I thought you meant Halrun...
06:43 PM * _unreal_ rolls eyes
06:43 PM _unreal_: rmu, you like?
06:43 PM _unreal_: andypugh, https://photos.google.com/share/AF1QipNjUL9VJW4BIh58ZOHM6jOWS10l43lfzL_nr7FMD-YXm_o6hG63BfTN2Rv6ch6C_Q?key=OVV0UTBXUmF0NXNSR2NKVzdoaFhxQzVTbDI5V3JB
06:44 PM _unreal_: I have the molds so I build and sell them now and then
06:44 PM andypugh: Yes seen it. But it’s nearly 1am here and I would rather you got on with compiling this GPIO driver
06:45 PM _unreal_: :)k
06:45 PM rmu: seems brexit is postponed till halloween
06:45 PM _unreal_: ok so you want me to hal_linux_gpio.c make a file and copy paste the C
06:45 PM _unreal_: into it
06:46 PM rmu: it's late here. i'm off to bed. good luck!
06:46 PM _unreal_: ok later, rmu you like my shel?
06:46 PM _unreal_: shell
06:46 PM _unreal_: andypugh, I was up till 2 last night getting linuxcnc built
06:47 PM _unreal_: what folder do I put the C file?
06:48 PM andypugh: Bear with me, I think that the trick is to save the whole email as a .patch file
06:48 PM _unreal_: What?
06:48 PM _unreal_: lol
06:48 PM andypugh: The it will put everything in the right place
06:48 PM _unreal_: nothing like email headers in patch files
06:49 PM andypugh: No, that’s fine. We sued to do that all the time before githib
06:49 PM _unreal_: look right? http://paste.ubuntu.com/p/wW3nFNV7Mc/
06:50 PM _unreal_: I guess I drop that file here http://paste.ubuntu.com/p/wW3nFNV7Mc/
06:50 PM _unreal_: fuck
06:50 PM _unreal_: tinker@tinkerboard:~/Downloads/linuxcnc/src/hal/drivers$
06:51 PM _unreal_: dont I need # or // before lines 1 and 2
06:51 PM _unreal_: nano hal_linux_gpio.c
06:52 PM _unreal_: @#$
06:52 PM andypugh: Save that in linuxcnc-dev as gpio.patch
06:53 PM _unreal_: I didnt build or download linuxcnc-dev
06:53 PM _unreal_: just linuxcnc
06:53 PM andypugh: So, where did you put the source code?
06:53 PM andypugh: (And do you have git/)
06:54 PM _unreal_: sigh stupid / /download/linuxcnc
06:54 PM _unreal_: I did the GIT of linuxcnc not linuxcnc-dev
06:54 PM _unreal_: same with building
06:55 PM _unreal_: according to the website emc2/src/hal/drivers/hal_linux_gpio.c
06:55 PM _unreal_: so I assume SRC/HAL/DRIVERS which are there
06:55 PM _unreal_: ok so its in with all of the .c files
06:57 PM andypugh: Yes, but that’s a patch file, not straigh C code
06:58 PM _unreal_: ? ok...
06:58 PM andypugh: So, where is your linuxcnc source code directory? (if you follow the normal instructions you would have git-cloned it into a folder called linuxcnc-dev)
06:59 PM _unreal_: oen sec
06:59 PM _unreal_: one sec
06:59 PM andypugh: if you go into the root of that directory and type “git” what happens?
07:01 PM andypugh: <grabs a bowl of ceral because 1am is too late to cook dinner….>
07:01 PM _unreal_: https://github.com/LinuxCNC/linuxcnc
07:01 PM _unreal_: Thats what I gitted
07:01 PM _unreal_: I gitted it
07:02 PM andypugh: I have no idea what you mean by that
07:02 PM _unreal_: That is the github of linuxcnc that I downloaded and built'
07:02 PM andypugh: How did you download it? git clone>
07:02 PM andypugh: ?
07:03 PM _unreal_: git clone
07:03 PM andypugh: Right, so, you have git,
07:03 PM _unreal_: yes
07:03 PM _unreal_: lol my daughter just goes, 10yo, daddy you type fast
07:03 PM andypugh: So, save that file as gpio.patch in the root of your git clone directory f linuxcnc
07:04 PM _unreal_: ok
07:04 PM andypugh: Now the command (which wont work :-) is
07:04 PM andypugh: git am --patch-format=mbox gpio.patch
07:05 PM _unreal_: ok its now called patch
07:05 PM _unreal_: ?
07:06 PM _unreal_: am apply a series of patches from mailbox
07:06 PM _unreal_: so you want me to try that command from the root linuxcnc directory?
07:06 PM andypugh: Yes
07:07 PM andypugh: Then when it doesn’t work, use git am —abort
07:07 PM _unreal_: wtf it wont let me pastebin it
07:08 PM _unreal_: andypugh, msg
07:09 PM _unreal_: same error tell me who you are
07:10 PM _unreal_: git config --global user.name "Your Name"
07:10 PM _unreal_: just did that
07:10 PM _unreal_: still same error
07:10 PM _unreal_: tell me who you are
07:12 PM andypugh: try
07:12 PM andypugh: patch < gpio.patch
07:12 PM _unreal_: gpio.patch? do you want me to rename the file bcause its currently named after the example from that weblink
07:12 PM * Tom_L wonders if andypugh is this dedicated to his day job
07:13 PM _unreal_: I'm not thats for DAMN sure
07:13 PM _unreal_: the company I work for needs me not theother way around :)
07:14 PM _unreal_: I get a no such directory with the patch < command
07:14 PM _unreal_: I'm in the base directory
07:14 PM _unreal_: tinker@tinkerboard:~/Downloads/linuxcnc$
07:15 PM andypugh: where is the patch file/
07:15 PM andypugh: ?
07:15 PM _unreal_: tinker@tinkerboard:~/Downloads/linuxcnc$
07:15 PM andypugh: And that is where you are runnning the command?
07:15 PM _unreal_: yes
07:15 PM _unreal_: wtf pastebin is not working
07:15 PM andypugh: And you are using the actual file name that you saved it under?
07:16 PM _unreal_: yes
07:16 PM _unreal_: hal_linux_gpio.patch
07:18 PM Tom_L: use paste.ubuntu.com
07:18 PM Tom_L: or paste.debian.com
07:18 PM andypugh: I see the problem, I think.
07:19 PM andypugh: The patch path is emc2/src/hal….
07:20 PM andypugh: OK, so this is now more trouble than it is worth.
07:20 PM _unreal_: there is a lot of EMC2 references
07:21 PM _unreal_: I mean a quick find and replace and I can change all of those to linuxcnc
07:21 PM _unreal_: --- emc2.orig/src/Makefile.inc.in 2008-07-03 23:49:25.000000000 +0200
07:21 PM _unreal_: +++ emc2/src/Makefile.inc.in 2008-07-03 23:49:56.000000000 +0200
07:21 PM andypugh: _Manually_ make that file into 1) a C file of the driver and then madify Makefile and Makefile.inc approximately as specifiec by the patch
07:22 PM andypugh: So, all the lines beginning with + end up either in a new file or an existing file
07:23 PM andypugh: And then you add a reference to it to the Makefiles (as inted by the patch file)
07:23 PM andypugh: Then run “make” again to recompile LinuxCNC (it will only compile the changed / new files)
07:26 PM _unreal_: ya thats a little over my head in regards to the HOWTO
07:26 PM _unreal_: i'm thinking its late for you
07:26 PM _unreal_: and I need to make din for my daughter
07:26 PM _unreal_: its getting late for her
07:26 PM _unreal_: thanks for the help so far. I need to go be daddy for a bit
07:29 PM andypugh: Well, I have just found a hal_linux_gpio.c file in the linuxcnc root folder that looks like good C. I don’t know why it is in the wrong place, but it’s a starting point
07:31 PM andypugh: And it (nearly) compiles with halcompile —install.
07:31 PM andypugh: (and the reason it doesn’t might well be that there is no GPIO target on this architecture)
07:31 PM andypugh: Goodnight
07:32 PM andypugh: I will be away from home until after Easter now.
07:32 PM andypugh: But I will be working / living in a hotel next week, so will probably be online a lot being bored.
07:46 PM SpeedEvil: https://imgur.com/gallery/Aah0sZO When bowl is life.
07:49 PM ziper: wonder what the tool is
07:50 PM SpeedEvil: Some sort of scraper perhaps.
07:50 PM tiwake: the finger removing express tool
08:03 PM andypugh: _unreal_: rmu: https://tinkerboarding.co.uk/forum/archive/index.php/thread-831-2.html
08:05 PM andypugh: Second post, by Ecce. That is how HAL would address the tinkerboard GPIO (and is very similar to the RPi driver in Machinekit (hal_gpio.c). use mmap to memory-map the GPIO registers and then write directly to those addresses in C coder.
08:10 PM Tom_L: jthornton, after i got the pc's all lined out last night i took a quick look at your threadmill app
08:10 PM Tom_L: you added quite a bit of py behind the forms
08:11 PM Tom_L: wish i knew more about python
08:30 PM ziper: _unreal_, hey, how do they make parts like this https://imgur.com/gallery/qQhXpFy
08:30 PM ziper: smooth on both sides
08:31 PM gregcnc: closed mold?
08:41 PM ziper: how does that work when the part isnt a uniform thickness?
08:47 PM _unreal_: ziper, looking
08:48 PM _unreal_: if its smooth on both sides it was prob a 2 part mold
08:49 PM _unreal_: and judging by the large solid color area in the corner filled with resin only in the corner
08:49 PM _unreal_: Tough being a single or 2 part mold does not matter, you only need one half and the other can always be sanded and refinsehd
08:51 PM _unreal_: ziper, ?
08:51 PM ziper: yes
08:52 PM ziper: think that might actually be filler in the corner?
08:52 PM ziper: how do they make a mold like that?
08:58 PM _unreal_: :)
08:58 PM _unreal_: same way I make a mold like this https://photos.google.com/share/AF1QipNjUL9VJW4BIh58ZOHM6jOWS10l43lfzL_nr7FMD-YXm_o6hG63BfTN2Rv6ch6C_Q?key=OVV0UTBXUmF0NXNSR2NKVzdoaFhxQzVTbDI5V3JB
08:58 PM _unreal_: make a "finished product surface" and make a mold off of it, then you have your mold to make your part
08:59 PM _unreal_: So what is the shape you need to make
09:02 PM _unreal_: ziper, ?
09:03 PM _unreal_: hello?
09:09 PM ziper: sorry, I was printing something
09:09 PM ziper: _unreal_, but that is only a 1 part mold, right?
09:10 PM _unreal_: heh I read that fast as painting something
09:10 PM _unreal_: I was like your whaa?
09:10 PM _unreal_: are you talking about my mold?
09:11 PM ziper: yes
09:11 PM _unreal_: 2 part
09:11 PM _unreal_: but its a female mold
09:12 PM _unreal_: What is the shape you need?
09:12 PM ziper: basically, a flattened and elongated donut
09:12 PM _unreal_: so you need a FLAT shape or a donut shape?
09:13 PM ziper: a flat donut
09:13 PM _unreal_: like a shallow donut?
09:13 PM _unreal_: do you have a picture or drawing?
09:13 PM renesis: rab: scroll is confusing, lots of questions
09:13 PM ziper: i can model it in a few minutes
09:13 PM renesis: what did i do?
09:13 PM _unreal_: dman you renesis What did you do.....
09:13 PM _unreal_: hummmmm.