#linuxcnc Logs
Feb 01 2025
#linuxcnc Calendar
01:23 AM Deejay: moin
01:40 AM * roycroft is back from his night at the opera
01:40 AM roycroft: i did not run into otis b driftwood, though
04:20 AM memleak: hey Deejay
04:34 AM rifraf: some progress on draw tube https://imgur.com/a/yOyZAM2
04:35 AM rifraf: https://www.youtube.com/shorts/Uir5JdI6EPU
04:59 AM JT-Cave: nice
07:21 AM JT-Cave: n100 maxed out at +-57us for a couple of days now
07:38 AM CloudEvil: :)
09:34 AM lcnc-relay: <captainhindsight_.@> memleak: https://www.nxp.com/products/processors-and-microcontrollers/arm-microcontrollers/general-purpose-mcus:GENERAL-PURPOSE-MCUS The versions that have LPC in the part number
11:43 AM lcnc-relay: <wagon56@> Hey guys, im new to LinuxCNC and the world of CNC in general, ive been trying to get a raspberrypi 5 to work with linuxcnc and been trying to use the GPIO pins to connect stepper drivers, so far i have linuxcnc running a config that should in theory work, when i set up a Watch on the hal_pi_gpio pins in halshow i can see that the pins should be changing state but i cannot measure any changes on the gpio pins themselves, i also get...
11:43 AM lcnc-relay: ... this weird gpiomem error that i for the life of me cannot get rid of, to me it just makes sense that that those are related, can anyone in here help me figure out what im doing wrong? once again newbie here so im not 100% sure what im doing
11:43 AM lcnc-relay: linuxcnc error:
11:43 AM lcnc-relay: HAL_PI_GPIO: can't open /dev/gpiomem: 6 - No such device or address
11:43 AM lcnc-relay: If the error is 'permission denied' then try adding the user who runs LinuxCNC to the gpio group: sudo gpasswd -a username gpio
11:55 AM lcnc-relay: <ccatlett1984@> wagon56@: did you enable spi?
11:55 AM lcnc-relay: <ccatlett1984@> i'm not sure, but think it's needed for the gpio pins
11:56 AM lcnc-relay: <ccatlett1984@> I am running a pi5, but it's talking to a mesa controller, that does all the realtime stuff
11:59 AM lcnc-relay: <wagon56@> ccatlett1984@: just now did that, nothing has changed haha
11:59 AM lcnc-relay: <wagon56@> ccatlett1984@: pretty sure thats my next step but i wont let GPIO pins defeat me, have to get it working before i move on to other boards
12:29 PM Deejay: cya
12:34 PM lcnc-relay: <big_kevin420@> no hes using the rpi GPIO driver, he doesnt need spi
12:43 PM lcnc-relay: <wagon56@> big_kevin420@: thats what i was thinking too, also as far as i know the pi5 wouldnt even work with spi, might be wrong though
12:43 PM lcnc-relay: <big_kevin420@> \as of 2025 it does
12:43 PM lcnc-relay: <wagon56@> ah ok thats cool
01:25 PM rdtsc: wagon56 GPIO on the pi has changed like more than a dozen times since it first came out; a true mess today. Most ppl prefer to use a dedicated break-out-board (requires low latency, moderate performance), or even better, a mesa controller (largely latency-free and high-performance.)
01:27 PM lcnc-relay: <skunkworks8841@> I got the gpio working recently on the rpi
01:27 PM lcnc-relay: <skunkworks8841@> 5
01:28 PM lcnc-relay: <skunkworks8841@> it seemed like there are atleast 2 different ways depending on the os..
01:29 PM rdtsc: Debian is quite a bit different than RaspiOS on the Pi
01:31 PM rdtsc: Sounds like memleak might have a Gentoo working soon also :)
01:35 PM lcnc-relay: <skunkworks8841@> this is what I used last time
01:35 PM lcnc-relay: <skunkworks8841@> https://linuxcnc.org/docs/stable/html/drivers/hal_gpio.html
01:45 PM Tom_L: rdtsc, have you tried flex on a rpi5?
01:46 PM Tom_L: or anybody...
01:53 PM lcnc-relay: <wagon56@> skunkworks8841@: oh wow i havent seen this actually, i only used this other one:
01:53 PM lcnc-relay: https://linuxcnc.org/docs/html/drivers/hal_pi_gpio.html
01:56 PM lcnc-relay: <wagon56@> skunkworks8841@: do you by chance have a config i can use as an example that utilizes this?
02:41 PM lcnc-relay: <skunkworks8841@> wagon56@ I think I just used the examples there...
02:41 PM lcnc-relay: <skunkworks8841@> (I was just running a basic hal file)
02:58 PM lcnc-relay: <wagon56@> I see, thanks man, ill give it a go once I'm back home
03:06 PM Roguish: here's a good one........... https://interestingengineering.com/culture/deepseeks-ai-training-cost-billion
03:11 PM lcnc-relay: <skunkworks8841@> https://photos.app.goo.gl/a1Mxkm4bsRZK6HCY6
03:11 PM lcnc-relay: <skunkworks8841@> is that green or red?
03:11 PM lcnc-relay: <roguish> that would be a green light......definitely not red
03:13 PM lcnc-relay: <skunkworks8841@> ok - I am having a heck of a time getting this drive to output. I am doing something stupid. IT was working before - but now hooked to the mesa analog out it is a no go
03:14 PM lcnc-relay: <skunkworks8841@> The drive enables and I see voltage across the Ref+/Ref- - but no output
03:29 PM lcnc-relay: <skunkworks8841@> oof.. SO you invert the enable on the drive - it seems to enable - but the input doesn't work
03:29 PM lcnc-relay: <skunkworks8841@> I have no clue why that is
03:30 PM lcnc-relay: <skunkworks8841@> The enable light turns green and everything correctly
03:30 PM lcnc-relay: <skunkworks8841@> The second I don't invert the enable on the drive - it will work.
03:36 PM Tom_L: strange
03:49 PM lcnc-relay: <skunkworks8841@> ok - got it.. '
03:50 PM lcnc-relay: <skunkworks8841@> This drive also has separate inhibit pin.. That inverts those too - so I have to ground one of them.
03:50 PM lcnc-relay: <skunkworks8841@> ugh - the lightbulb finally went off
03:52 PM lcnc-relay: <skunkworks8841@> lol - I have 2 and swapped out the drive because I thought I smoked it
03:53 PM lcnc-relay: <skunkworks8841@> but always remember - it is probably something you changed..
04:02 PM rdtsc: Tom, no, don't have a Pi5 yet. Would like to get one though.
04:09 PM lcnc-relay: <skunkworks8841@> what threw me off was that the other inhibit pins don't change the led
04:16 PM Tom_L: ahh
05:21 PM lcnc-relay: <big_kevin420@> ahhh martini and cnc, i feel like a classy machinist today
05:21 PM lcnc-relay: <big_kevin420@> not regular classy like my usual champainge and cnc
05:22 PM lcnc-relay: <big_kevin420@> i feel like blue collar james bond but classy
05:24 PM lcnc-relay: <skunkworks8841@> dirty? I live dirty martinis... The ex and I took a vacation in mexico years ago. We used up all the olive juice at the swim up bar..
05:24 PM lcnc-relay: <big_kevin420@> hell yeaqh dirty, i didnt start making it until confirm i had olive brine
05:25 PM lcnc-relay: <skunkworks8841@> lol.. I need to get the makings for that again
05:25 PM lcnc-relay: <big_kevin420@> but my olives are taller than the brine so i had to eat more, theres likew 7 in here
05:25 PM lcnc-relay: <skunkworks8841@> perfect!
05:25 PM lcnc-relay: <big_kevin420@> i think i used to much vermouth
05:25 PM lcnc-relay: <skunkworks8841@> then you get sustenance
05:25 PM lcnc-relay: <big_kevin420@> anmd i dont prefer boodles i should have used vodka
05:26 PM lcnc-relay: <skunkworks8841@> ? I just assumed they were all with vacka
05:26 PM lcnc-relay: <skunkworks8841@> lol
05:26 PM lcnc-relay: <skunkworks8841@> vadka
05:26 PM lcnc-relay: <big_kevin420@> gin martini is nice also
05:26 PM lcnc-relay: <big_kevin420@> gin or vodka
05:26 PM lcnc-relay: <skunkworks8841@> ah
05:26 PM lcnc-relay: <skunkworks8841@> I should get out more..
05:26 PM lcnc-relay: <big_kevin420@> but it seems i only have boodles gin
05:27 PM lcnc-relay: <big_kevin420@> ohh damn, yeah maybe too much vermouth im not a fan of it
05:27 PM lcnc-relay: <big_kevin420@> i should just drink straight vodka and olive juice
05:27 PM lcnc-relay: <skunkworks8841@> lol - I would have to look up the ratios again
05:27 PM lcnc-relay: <skunkworks8841@> it has been a long time..
05:28 PM lcnc-relay: <big_kevin420@> my moms a pro so i axed her, we used to have martini themed decor
05:28 PM lcnc-relay: <skunkworks8841@> https://photos.app.goo.gl/VtmNVXtsozoT8PNQA
05:29 PM lcnc-relay: <skunkworks8841@> I am getting lazy in my old age.. This is what I am currently drinking
05:29 PM lcnc-relay: <skunkworks8841@> I say it is ok - as Leinenkigles is closing soon
05:30 PM lcnc-relay: <big_kevin420@> ready tio drink cocktail at home on a saturday is lazy, but they are closing coon so its ok
05:30 PM lcnc-relay: <big_kevin420@> my mom put her foot down and said no martini until after your done on the manual milling machine
05:31 PM lcnc-relay: <big_kevin420@> not in so many words but basically that
05:31 PM lcnc-relay: <skunkworks8841@> lol - tough mom
05:31 PM lcnc-relay: <big_kevin420@> sounds like my boss geez
05:31 PM lcnc-relay: <big_kevin420@> but tiny cnc is perfect for drinking
05:31 PM lcnc-relay: <skunkworks8841@> shit - I need to hook up the encoder to the monarch spindle motor
05:32 PM lcnc-relay: <skunkworks8841@> that is why I am drinking in the shop
05:32 PM lcnc-relay: <big_kevin420@> shit these holes dont line up
05:32 PM lcnc-relay: <skunkworks8841@> that is what she said
05:32 PM lcnc-relay: <big_kevin420@> lol
05:32 PM lcnc-relay: <big_kevin420@> i gotta go rework this before the martini kicks in
05:32 PM lcnc-relay: <skunkworks8841@> good luck
05:34 PM lcnc-relay: <skunkworks8841@> the rpi5 has been super stable today since I pulled the latest iso..
05:36 PM lcnc-relay: <big_kevin420@> i prob need to do that buit i dont want to debian
05:36 PM lcnc-relay: <big_kevin420@> the usb turns tio shit if i have kb and usb stick in at the same time
05:39 PM lcnc-relay: <skunkworks8841@> really?
05:39 PM lcnc-relay: <skunkworks8841@> (I am using a wireless keyboard and mouse dongle)
05:40 PM lcnc-relay: <big_kevin420@> same, when they are both on usb3 ports
05:40 PM lcnc-relay: <big_kevin420@> those logitec 400 wirelessthings
05:45 PM lcnc-relay: <skunkworks8841@> probably the same
05:46 PM lcnc-relay: <skunkworks8841@> I have no read errors on the mesa 7i97 all day. So yay
05:46 PM lcnc-relay: <skunkworks8841@> encoder works
05:46 PM lcnc-relay: <skunkworks8841@> need to filter it
05:47 PM lcnc-relay: <big_kevin420@> cmi encoder?
05:48 PM lcnc-relay: <skunkworks8841@> yes - I only use those for rpm feedbac,
05:48 PM lcnc-relay: <skunkworks8841@> back
05:48 PM lcnc-relay: <skunkworks8841@> they are too noisy for actual closed loop control
05:48 PM lcnc-relay: <big_kevin420@> i could never get my index to work with those
05:49 PM lcnc-relay: <skunkworks8841@> this is on the actual spindle motor. belt driven - I will need something on the actual spindle
05:49 PM lcnc-relay: <skunkworks8841@> but - I don't know if I have had issues with the indes
05:49 PM lcnc-relay: <big_kevin420@> hahaha
05:50 PM lcnc-relay: <skunkworks8841@> that was random
05:50 PM lcnc-relay: <big_kevin420@> dont say
05:50 PM lcnc-relay: <skunkworks8841@> ah
05:50 PM lcnc-relay: <skunkworks8841@> lol
05:50 PM lcnc-relay: <big_kevin420@> i changed them eright after to optical ones for my stepper motors and it went flawless
05:51 PM lcnc-relay: <big_kevin420@> need to add one to this new spindle if it cuts the mustard
05:59 PM memleak: rdtsc, i don't know where my pi is to work on it lol
06:19 PM lcnc-relay: <skunkworks8841@> I won't use the capasitive ones for closed loop
06:21 PM lcnc-relay: <big_kevin420@> yeah i saw that thing from jmel after i bought them...
06:22 PM lcnc-relay: <big_kevin420@> is the paraport fast enough for a THCAD?
06:27 PM lcnc-relay: <skunkworks8841@> yes
06:28 PM lcnc-relay: <skunkworks8841@> divide it out
06:30 PM JT-Shop: I remember pestering Peter until he made the thcad :)
06:31 PM JT-Shop: at the time the only torch height controls were complicated and expensive
06:31 PM lcnc-relay: <roguish> ok, cocktail time....... see ya tomorrow......
06:33 PM lcnc-relay: <skunkworks8841@> JT_Shop: Cool!
06:34 PM JT-Shop: I kept telling him it should be easy lol
06:35 PM lcnc-relay: <skunkworks8841@> lol
06:46 PM JT-Shop: I have a prototype thcad in the plasma table IIRC the art work is backwards or something like that
07:03 PM memleak: i feel like the logo for thcad would be a weed leaf
07:07 PM xxcoder: shared in millenium cnc mill discord. interesting https://www.youtube.com/watch?v=phtN679qpEM
07:07 PM xxcoder: 3d printed cnc controller
07:20 PM lcnc-relay: <skunkworks8841@> lol - the monach has a slight belt reduction between the spindle motor and the spinde.. About .95
07:22 PM lcnc-relay: <skunkworks8841@> wondering why the spindle motor encoder rpm didn't match the spindle
07:23 PM xxcoder: interesting
07:25 PM lcnc-relay: <big_kevin420@> when your controller is as big as your cnc machine
07:25 PM lcnc-relay: <big_kevin420@> i know that pain
07:26 PM lcnc-relay: <andypugh@> You generally want no common factors on a gear ratio, even with a belt. That way every bit of the belt sees every bit of both pulleys, and you dont develop periodcity in the wear patterns.
07:27 PM xxcoder: didnt know that
07:32 PM andypugh: Similarly it’s usual to have a “hunting tooth” in a geartrain, so that every gear tooth sees every other gear tooth over time.
07:34 PM lcnc-relay: <andypugh@> Today's project was fitting a new touchscreen to the milling machine, as the old industrial one had died. I couldn't find an exact replacement, so I modelled the profile of a consumer monitor and 3D printed parts to pad it out to suit 2020 extrusion.
07:35 PM lcnc-relay: <andypugh@> https://photos.google.com/share/AF1QipNMfZVtJfdKOhY200ADA4LGL4-NuTLpJIAA07AeVvfd9qUgq65mHA8J2ojHAP_72w/photo/AF1QipOIelQ8ilhhm0wdxyViFcDUZ33k8B6RKwumjVqw?key=aGl1UHg2bGFEc29OODZWNTduOWcxcnBteHRXVFF3
07:36 PM xxcoder: always smart to design around standards
07:36 PM lcnc-relay: <andypugh@> * https://photos.app.goo.gl/knLTyRLCkHyaxBuj7
07:37 PM lcnc-relay: <andypugh@> Yeah, but the only standard for monitors that's relevant here is the VESA mount, and I wanted to use that to hold the PC motherboard (etc).
07:39 PM xxcoder: sure I meant stuff like 2020 so on, so its easier to fix in future, or upgrade etc
07:39 PM xxcoder: if its too bespoken then it would be annoying
07:40 PM lcnc-relay: <big_kevin420@> yeah i make all my controllers the same as andy, but like 1/4 the size
07:42 PM xxcoder: wow very short machinist list this sat
07:43 PM lcnc-relay: <big_kevin420@> https://raw.githubusercontent.com/cakeslob/upload_things/refs/heads/main/LKvG420/20180101_000807.jpg
07:43 PM lcnc-relay: <big_kevin420@> except instead of using something standard, i do it the hardway with a raw screen and make the bezel
07:43 PM xxcoder: fancy lol
07:44 PM lcnc-relay: <big_kevin420@> tedious. its like making iphone cases sometimes. the warpage ohh baby
07:44 PM xxcoder: you made iphone cases?
07:45 PM lcnc-relay: <big_kevin420@> tedious in the same way iphone metal back covers are made
07:45 PM lcnc-relay: <big_kevin420@> i copied the fixturing they use for said covers
07:45 PM lcnc-relay: <big_kevin420@> on some of them
07:45 PM lcnc-relay: <big_kevin420@> https://raw.githubusercontent.com/cakeslob/upload_things/refs/heads/main/LKvG420/20180101_000134.jpg
07:46 PM lcnc-relay: <big_kevin420@> new spindle right now is 22mm offset from previous spindle
07:46 PM lcnc-relay: <big_kevin420@> thats almost 50% of my travel...
07:51 PM lcnc-relay: <andypugh@> I am quite pleased with the flexure-based power button thing built into the frame. The monitor has the buttons on the edge of the bezel, which isn't particularly convenient. https://a360.co/3WGxUwQ
07:52 PM Tom_L: you must have a fair sized printer
07:52 PM bjorkintosh: I was gonna ask, how long did it take to print?
07:53 PM xxcoder: unless its assembly after print type
07:54 PM Tom_L: i see the model broken into 4 pieces
07:56 PM roycroft: i am back from town
07:56 PM roycroft: i drove the pickup down and got a lot done - it's good to be back on track
08:00 PM lcnc-relay: <big_kevin420@> slick foer the button, it looks printed in pices but it looks like at least a 12inch bed
08:10 PM lcnc-relay: <skunkworks8841@> andypugh@ ah - that makes total sense... These are supposily some of the best lathes..
08:11 PM lcnc-relay: <skunkworks8841@> (this one got dumped off a truck - hence why we got it)
08:11 PM lcnc-relay: <skunkworks8841@> I think this might actually work. I have full range of rpm (0 to 2500)
08:16 PM lcnc-relay: <andypugh@> My printer has a 360mm (14") cube. I still had to put the parts diagonally on the bed. Print time was 17 hours.
08:17 PM lcnc-relay: <skunkworks8841@> Great low end torque and crappy high end speed regulation..
08:18 PM lcnc-relay: <andypugh@> Still running the motor-generator-motor setup?
08:19 PM lcnc-relay: <skunkworks8841@> Even the rpm gauge shows it.. up to 1000 rpm the gauge has pretty fine divisions.. over 1000 - they are pretty spaced out.
08:21 PM lcnc-relay: <skunkworks8841@> andypugh@ using the stock motor with a couple amc drives.. one running the amerature and one running the field.. for rpm's above 1000 rpm the field is weakened.
08:22 PM lcnc-relay: <skunkworks8841@> armature
08:22 PM lcnc-relay: <andypugh@> Probably sensible, but running the original setup would be interesting as a retro project.
08:23 PM lcnc-relay: <skunkworks8841@> With the motor generator?
08:23 PM lcnc-relay: <skunkworks8841@> We never had all the parts
08:24 PM lcnc-relay: <skunkworks8841@> Plus the the lathe is always making more noise...
08:26 PM lcnc-relay: <skunkworks8841@> The rpm gauge. https://photos.app.goo.gl/LkWVNSyyfFeH6q6h6
08:29 PM lcnc-relay: <skunkworks8841@> https://photos.app.goo.gl/RAbrDCJDfjf92K1b6
08:40 PM lcnc-relay: <ccatlett1984@> @rdtsc @JT look at this commit, does this look right? if yes, I'll submit the PR.
08:40 PM lcnc-relay: I know the 7c81 will be different since it uses multiple daughterboards.
08:40 PM lcnc-relay: <ccatlett1984@> https://github.com/ccatlett1984/mesact/commit/2462bf4cca0e4175646e76d63c61cadc7cf68bce
08:56 PM Unterhaus_ is now known as unterhausen
08:56 PM lcnc-relay: <ccatlett1984@> https://github.com/jethornton/mesact/compare/master...ccatlett1984:mesact:7c80
08:59 PM Tom_L: heating isn't the answer unless you can maintain the temp while drilling
08:59 PM Tom_L: dunno if you've ever 'heat pressed' bearings but you gotta be on your toes doing that
09:00 PM Tom_L: it cools quick
09:02 PM lcnc-relay: <ccatlett1984@> what about a 28mm drill?
09:02 PM lcnc-relay: <ccatlett1984@> that'd be 1.102 in
09:04 PM Tom_L: it would still have to be brought out to size
09:05 PM Tom_L: .023" isn't an interference fit
09:05 PM lcnc-relay: <ccatlett1984@> yes, but much less material to remove
09:06 PM Tom_L: you still have to have a way to remove it and it doesn't sound like he does
09:06 PM lcnc-relay: <ccatlett1984@> bore hone it
09:07 PM Tom_L: cost for tooling opposed to having a shop do it might be an alternative
09:07 PM lcnc-relay: <ccatlett1984@> agreed
09:22 PM Bleepshop: Drill it to 28mm and then run a brake hone through it for a couple of minutes.
09:24 PM Bleepshop: Then drill a hole next to it for a bolt with a pair of fender washers on either side to trap it in the casting.
09:25 PM Bleepshop: Just in case you get a little 'agressive' with teh hone. LOL
09:29 PM -!- #linuxcnc mode set to +v by ChanServ
09:55 PM lcnc-relay: <captainhindsight_.@> have a custom tool made then treat your machines like crap so >60% of your parts don't pass inspection 🙂
09:55 PM lcnc-relay: <captainhindsight_.@> work for industry
09:57 PM lcnc-relay: <captainhindsight_.@> we have machines that have bearings rolling out of the blocks and they wonder why they can't get better yields
10:35 PM memleak: hey just a quick update, i haven't really been able to get out of bed the past 2 days so i haven't finished the gentoo image up yet, been way too tired
10:35 PM memleak: JT-Shop, did you use pyside6 btw for flexgui?