#linuxcnc Logs

Apr 05 2020

#linuxcnc Calendar

02:10 AM Deejay: moin
03:06 AM Tom_L: morning
03:06 AM XXCoder: yo
03:08 AM Tom_L: what's up?
03:09 AM XXCoder: not a lot
03:09 AM XXCoder: just discovery that I probably killed something on machine lol
03:09 AM XXCoder: old laser diode dont even turn on now.
03:10 AM XXCoder: not sure if its laser diode or board
03:10 AM Tom_L: work machine or your laser?
03:12 AM XXCoder: laser
03:13 AM Tom_L: you gonna try your first board?
03:15 AM XXCoder: it would turn on old diode (orginial issue i replaced board for) hmm can test in a bit
03:23 AM XXCoder: it didnt turn on
03:24 AM XXCoder: ponentally the new board on machine should be fine still
03:24 AM XXCoder: for some strange reason old one decided to not work anymore
05:14 AM jymmmm: XXCoder: I thought you could fire the laser directly without using that board?
05:14 AM XXCoder: new one yeah
05:14 AM XXCoder: old one nope
05:14 AM jymmmm: k
05:15 AM XXCoder: its dead, jim
05:18 AM jymmmm: target practice XXCoder
05:19 AM XXCoder: lol
05:19 AM XXCoder: try to hit that remaining eye eh
05:19 AM jymmmm: go grab the .22 and have at it
05:20 AM XXCoder: hah
05:27 AM rmu|w: pcw_mesa: i got this 7c80 sample board lying around for quite some time and onyl just now came to actually test/use it. it seems to initialize (CR56 is on for a fraction of a second after powering up, then it is off, CR57 is off, CR58 is on), but i can't talk to it via spi
05:30 AM rmu|w: pcw_mesa: mesaflash says "Unexpected cookie at 0100..0110:\n00000000 00000000 00000000\nNo 7I90 board found"
05:35 AM rmu|w: pcw_mesa: is it possible this sample board has some non-spi firmware flashed?
05:54 AM rmu|w: pcw_mesa: i think it is possible to use a raspberry pi as jtag dongle and program spartan 6 chips
05:55 AM XXCoder: by essentally emulating it?
05:56 AM rmu|w: XXCoder: no, access the JTAG interface of the FPGA
05:57 AM XXCoder: cool
05:57 AM rmu|w: i don't have proper jtag interface and i don't want to mess with xilinx tools if it can be avoided
05:58 AM SpeedEvil: Don't you pretty much have to if you want to develop code for the FPGA?
05:58 AM rmu|w: i don't want to develop, just check what is in there and flash proper current bitfile
05:59 AM rmu|w: which is not possible with mesaflash if FPGA doesn't talk to me via spi
06:01 AM rmu|w: in theory i could flash the backup-eeprom on a 7i90 with 7c80 bitfile and transplant the chip if all else fails
06:01 AM jthornton: morning
06:01 AM XXCoder: yo
06:17 AM rmu|w: seems i have to convert the bit file into xsvf... :(
06:37 AM rmu|w: or not. openocd seems to support xilinx xc6s devices and programming bit-files into them
07:05 AM Tom_L: SpeedEvil, there are a couple boards out there that will do jtag with 3rd party software
07:06 AM Tom_L: https://tomverbeure.github.io/2019/09/15/Loading-a-Spartan-6-bitstream-with-openocd.html
07:06 AM Tom_L: https://github.com/sifive/xc3sprog/tree/master/bscan_spi
07:08 AM Tom_L: https://www.aliexpress.com/item/32923720300.html
07:08 AM Tom_L: won't work with webpack but does with one of those above
07:15 AM Tom_L: https://www.ebay.com/itm/Xilinx-Platform-USB-Download-Cable-Jtag-Programmer-FPGA-CPLD-C-Mod-XC2C64A/152863432227?hash=item23975ede23:g:5WgAAOSwzbxaWMag
07:15 AM Tom_L: those work with webpack impact
07:15 AM Tom_L: rmu|w, it will do some devices but not all
07:27 AM Tom_L: rmu|w, one guy's notes on it: https://polprog.net/rozne1/ircjunk/fpga/notes.txt
07:47 AM unterhaus_: I thought there were better examples of people's setup on the wiki
07:51 AM unterhaus_: limit switches/home switches that part of design. I am thinking of separate home and limit switches because of the mechanical design of my mill
07:52 AM unterhaus_: I have a bp series II cnc with box ways so the table weight is not inconsequential
09:04 AM jymmmm: good morning
09:05 AM jymmmm: Hmmm, tmobile and sprint merge, they are upgrading the towers
10:19 AM unterhaus_: I wish someone would upgrade their tower near our house
12:53 PM Loetmichel: re at home. One Ender3 printer calibration later. Funny how its easy if you have done 4 of those and hard for one that just bought that thing.. less than 3 hours including a couple of test prints and it runs close to perfect where it didnt finish a single print beforehand ;)
01:06 PM Rab: Well then.
01:06 PM Rab: oops, wrong channel
01:24 PM MrHindsight is now known as CaptHindsight
02:12 PM unterhaus_: OT, but universal g code sender is a pain to set up. Anyone can recommend a different g code sender for grbl?
02:12 PM CaptHindsight: what is a g-code "sender"?
02:13 PM CaptHindsight: sender vs getter vs maker sort of thing?
02:13 PM Tom_L: downloader
02:15 PM unterhaus_: it's a UI front end for grbl
02:16 PM Tom_L: not for a printer?
02:16 PM unterhaus_: I am just using grbl to drive some stepper motors
02:17 PM unterhaus_: probably eventually write my own front end
02:18 PM Tom_L: printer front end won't do?
02:18 PM unterhaus_: I have no idea, I was asking for recommendations
02:20 PM Tom_L: https://forum.v1engineering.com/t/grbl-vs-marlin-for-milling/6624
02:22 PM Tom_L: https://all3dp.com/2/best-cnc-software-for-arduino/
02:22 PM Tom_L: https://www.cnczone.com/forums/general-laser-engraving-cutting-machine-discussion/380802-firmware-grbl-smoothieware-marlin-g2core.html
02:22 PM Tom_L: one of those might shed some light..
02:24 PM CaptHindsight: has anyone ever cleaned up the comments in Marlin?
02:25 PM CaptHindsight: it was written in some kind of reverse upside down perversion of English
02:25 PM CaptHindsight: and Logic
02:26 PM unterhaus_: I dug into it enough to figure it out
02:26 PM CaptHindsight: double and triple negatives
02:26 PM CaptHindsight: yes, wastes everyones time
02:26 PM unterhaus_: don't remember that, but nothing surprises me
02:27 PM CaptHindsight: winner of the obfuscated comments contest
02:27 PM unterhaus_: I figured out that even if you use core-xy it still does all the accel limits on x and y
02:27 PM unterhaus_: which was the problem with the system I was helping with
02:28 PM unterhaus_: linuxcnc has the same problem, but since it's not just one big file, linuxcnc is harder to fix
02:30 PM unterhaus_: there are very few benefits to having all the source in one file, but this was one of them
02:30 PM unterhaus_: marlin is lightning fast though
02:53 PM rmu|w: Info : JTAG tap: xc6s.tap tap/device found: 0x24001093 (mfg: 0x049 (Xilinx), part: 0x4001, ver: 0x2)
02:53 PM rmu|w: looks promising
02:56 PM pcw_home: If you are programming a Mesa card via jtag, the easiest way is to program the FPGA (not the flash) and then program the flash via mesaflash
02:58 PM rmu|w: pcw_home: i have this 7c80 sample board from about a year ago. did only now try to use it, it seems to initialize, but doesn't respond on spi
02:59 PM CaptHindsight: pcw_home: I noticed that some has a spratan 6 card that talks to mitsibishi motor controls, have you looked at having this work on your cards?
03:00 PM pcw_home: rmu|w: does the FPGA get initialized?
03:00 PM CaptHindsight: pcw_home: http://yurtaev.com/
03:00 PM rmu|w: yes, CR56 blinks for a fraction of a second, CR58 is on, CR57 is off
03:01 PM CaptHindsight: https://github.com/yur7aev/linuxpnp
03:01 PM pcw_home: CaptHindsight: Yes, I have seen that but not open source AFAIK
03:01 PM CaptHindsight: pcw_home: oh i thought i saw source files :(
03:02 PM pcw_home: not firmware AFAIK
03:02 PM CaptHindsight: ok, checking now and i don't see any
03:02 PM CaptHindsight: nevermind
03:02 PM unterhaus_: not sure I should be happy the mint isos have been pulled
03:03 PM pcw_home: rmu|w Unfortunately I suspect you have a first prod version card that has a PCB error
03:03 PM rmu|w: pcw_home: i don't have proper JTAG interface, using openocd and raspberry pi gpio
03:03 PM CaptHindsight: https://github.com/yur7aev/linuxpnp/tree/master/configs/pnp
03:03 PM CaptHindsight: just hal and ini files
03:03 PM rmu|w: pcw_home: any way to check it? and/or fix/botch it?
03:03 PM pcw_home: The 7C80 will very likely have the correct SPI firmware
03:04 PM pcw_home: rmu|w Yes I have a patch board
03:05 PM rmu|w: is it something complicated? i can do (limited) rework of pcbs
03:05 PM CaptHindsight: pcw_home: TurBoss has a opencv widget now, so this should be working soon for vision based alignment for PnP
03:05 PM pcw_home: 1/32" power plane board that mounts to bottom of 7C80, I can mail you one
03:05 PM CaptHindsight: working on it again later today
03:06 PM CaptHindsight: openCV for offset and rotation
03:07 PM rmu|w: pcw_home: my last order is already on its way and awaiting customs clearing.... if it's not too complicated i could fix it myself i think
03:07 PM rmu|w: no need to bother the post office in these times
03:09 PM pcw_home: Its a bad error = no plane connections on RPI connector (if you have plane connections you have a proto board)
03:09 PM pcw_home: plane= 5V, GND
03:09 PM rmu|w: i can power the FPGA board from the 5v on the pi
03:10 PM rmu|w: at least the LEDs light up
03:11 PM pcw_home: If the 5V is connected on the 40 pin. you have a proto so its OK power wise
03:12 PM pcw_home: _but_ I think theres a patch needed on the 40 pin connector (2 adjacent pins shorted)
03:14 PM pcw_home: I will look at the proto ucf file to see what that patch is but I need to do our weekly virus Russian roulette (grocery shopping) so it will have to be in a couple hours
03:14 PM pcw_home: bbl
03:14 PM rmu|w: at your convenience, i'm not in a hurry. thanks
03:14 PM rmu|w: and good luck ;)
03:35 PM unterhaus_: since the death of mint ISOs, should I install a current debian and then install from packages?
03:35 PM unterhaus_: the website seems awfully reticent to make a recommendation
03:39 PM Deejay: gn8
03:42 PM unterhaus_: If I install the stretch ISO, I can upgrade, correct?
05:05 PM pcw_home: rmu|w on proto boards, you need to short RPI GPIO8 to RPI GPIO25 (40 pin header pins 22 to 24)
05:07 PM rmu|w: ok will try
05:07 PM pcw_home: and use firmware built for SPICS on RPI GPIO25 (that firmware should be loaded), if not i will send you a bitfile
05:08 PM pcw_home: #NET "COM_SPICS" LOC ="P12" | IOSTANDARD = LVTTL; # proto RPIO8 ope
05:08 PM pcw_home: n shorted to RPIO25
05:08 PM pcw_home: NET "COM_SPICS" LOC ="P132" | IOSTANDARD = LVTTL; # prod RPIO8
05:08 PM pcw_home: commented out statement is for proto
05:12 PM rmu|w: *grabbing iron*
05:15 PM rmu|w: heureka, it's working
05:15 PM rmu|w: thank you very much
05:18 PM pcw_home: NP I should have patched it
05:20 PM pcw_home: other issue with Proto is parallel expansion connector pin 1 is a no connect (fixable but a bit bit harder)
05:23 PM pcw_home: glad its working but beware, any distribution bitfiles will fail so dont use standard dist bitfiles
05:26 PM pcw_home: I could make firmware that would run on both proto and prod (logical and the /CS pins) but since there are only 3 protos in existence , maybe not...
05:27 PM rmu|w: i think i will manage if i need an updated firmware, did it some time back with the 7i90
05:30 PM Rab: unterhaus_, I upgraded the Stretch ISO to Buster, and installed the test RTAI and LinuxCNC 2.8.0-pre packages...working so far.
05:32 PM pcw_home: rmu|w also the latest 2.9 makes the hm2_rpspi driver get along better with mesaflash
05:34 PM _unreal_: https://www.necn.com/multimedia/us-charges-3-in-alleged-plots-related-to-china/2224377/
06:06 PM unterhaus_: Rab, thanks. I am just installing the mint iso for now, not sure I'm going to use this comp for linuxcnc
06:07 PM unterhaus_: debian makes me cranky
06:08 PM unterhaus_: how are you supposed to do admin on debian? Root account?
06:28 PM sparq: sudo, usually
06:29 PM sparq: Though I'm not sure I undersand what you mean :-)
06:32 PM Rab: And sudo bash, if you really want to feel like root.
06:40 PM JavaBean: or just sudo -s
06:41 PM XXCoder: just dont do sudo beer
06:41 PM XXCoder: it'll turn into root beer
06:42 PM JavaBean: root beer isn't THAT bad
06:51 PM Tom_L: better than corona
06:54 PM Tom_L: pcw_home, after changing the encoder to quad mode all the axis are reversed :(
06:54 PM XXCoder: theres always something worse
06:54 PM Tom_L: i'm sure i can find the fix...
06:57 PM JavaBean: hobby?
06:57 PM * JavaBean headdesks with the realization that he isn't talking in the room he thought he was
07:06 PM pcw_home: Tom_L swap A/B or change the encoder scale sign
07:07 PM Tom_L: right, thanks
07:13 PM XXCoder: lol if yiu guys ever wondered how thick sharpie lines are.
07:13 PM XXCoder: https://youtu.be/46DBNUfhATo
07:14 PM * JavaBean watched that video moons ago, congrats XXCoder for watching TOT.... one of the best youtubers!!!
07:23 PM XXCoder: JavaBean: latest is pretty cool
07:26 PM JavaBean: most of his vidia's are
07:27 PM * SpeedEvil is watching starship assembly vids.
07:28 PM SpeedEvil: Insane pace.
07:34 PM sync: XXCoder: about as much as one would expect
07:42 PM unterhaus_: that super precision 2d level is really cool, never seen one of those before
08:15 PM _unreal_: ve7it, I just finished getting all of the wires soldered finally
08:16 PM ve7it: let the smoke out!
08:16 PM _unreal_: So I now have my supply power breakout board, done. my serial interface board done, 3 servo boards 100% done
08:17 PM _unreal_: still trying to figure out how I want to interface the motor wires?
08:17 PM _unreal_: I may just use a terminal block
08:17 PM _unreal_: For that
08:18 PM XXCoder: unterhaus_: yeah
08:18 PM _unreal_: ve7it, blows me away
08:18 PM _unreal_: I'm using parts I've been saving for 20 years
08:18 PM _unreal_: heh
08:19 PM XXCoder: SpeedEvil: no link?
08:25 PM ve7it: _unreal_, yes.. a terminal block would be good
08:47 PM XXCoder: 3d pen art
08:47 PM XXCoder: love em https://youtu.be/rHvQQ8OBpSc
08:52 PM _unreal_: ve7it, I just started milling a 4th board
08:52 PM _unreal_: as of like 3 seconds ago
08:52 PM _unreal_: I have the parts so I may as well have 4 controllers in the controller box
09:13 PM _unreal_: I think My super cheap spindle motor is starting to produce some run out
09:13 PM _unreal_: :/
09:14 PM _unreal_: Oh well wouldnt take anything to order a new one :)
09:14 PM _unreal_: It did cost me what $15 or so... lol
09:42 PM Tom_L: ok got my ballscrews dialed in pretty close now
09:42 PM XXCoder: awesome
09:42 PM Tom_L: over 15" it's dead nuts in X
09:43 PM Tom_L: best i could check anyway
09:43 PM Tom_L: fudging the step scale numbers to get them as close as possible
09:44 PM Tom_L: i'll set up and check Y tomorrow
09:44 PM Tom_L: but it should be real close now as well
09:52 PM XXCoder: plan to recheck x after adjusting y?
09:53 PM Tom_L: shouldn't need to
09:54 PM Tom_L: Z was different because it is on a 3:1 reduction
10:01 PM XXCoder: cool
10:02 PM Tom_L: i aligned 123 block up and checked with a last word indicator. no glass scales here to check with
10:03 PM XXCoder: yeah should be enough to get it quite close
10:03 PM XXCoder: good 123? not rusty one you use for cup stand? ;)
10:03 PM Tom_L: measured the blocks ahead of time with 2 differnt methods
10:04 PM * JavaBean uses his 123blocks to level the table
10:05 PM XXCoder: java I once read about guy who borrowed precision qa blocks, qa guy was wondering why it wasnt returned
10:05 PM XXCoder: turns out that guy used it to fix table wobble
10:05 PM XXCoder: its not regular blocks, its what they use to check other blocks
10:05 PM XXCoder: $100+ each block, plus certification each
10:05 PM Tom_L: in a temp controlled environment...
10:06 PM Tom_L: i got a 1" i use for my mic
10:06 PM JavaBean: meh, 123blocks are cheaper than that... and work just as well to keep the table right
10:06 PM XXCoder: apparently they wanted exact size shim lol
10:06 PM XXCoder: pretty dumb and cost company few hundred bucks'
10:07 PM Tom_L: XXCoder, well the box it came from probably had a variety to choose from :D
10:07 PM XXCoder: once it was used as shim it lost its precision and certification
10:07 PM Tom_L: my bud had a lab come out every so often and re'certify his
10:07 PM Tom_L: he had rounds and square
10:09 PM XXCoder: we dont use certifcated blocks and pins
10:09 PM XXCoder: we just use tools to measure em, tools must be certificated
10:25 PM CaptHindsight: somebody asked me how the Amish will know about the virus
10:30 PM gregcnc: Amish have plenty of outside interaction
10:33 PM Tom_L: yeah, they hide alot of it
10:33 PM CaptHindsight: somebody said first they get a little hoarse
10:34 PM CaptHindsight: then a little buggy
10:43 PM rue_mohr: pff
11:08 PM justan0theruser is now known as justanotheruser