The Best Way To Hold Material To My CNC Machine

Поделиться
HTML-код
  • Опубликовано: 11 апр 2024
  • In which I make an electromagnet. ...then make a bunch more.
    Arceye's project:
    forum.linuxcnc.org/18-compute...
    I posted all the code for this on my website:
    cranktown.city/projects/elect...
    support me on Patreon!
    / cranktowncity
    outro music by a friend of mine, check him out!
    / badamericansofficial
  • ХоббиХобби

Комментарии • 213

  • @Deveyus
    @Deveyus 2 месяца назад +115

    This man gonna have a heart attack when he learns about arrays and loops >.>

    • @IMainMako
      @IMainMako 2 месяца назад +30

      And functions 😂

    • @cranktowncity
      @cranktowncity  2 месяца назад +34

      I think I just did lol

    • @Dan-vq4pz
      @Dan-vq4pz 2 месяца назад +5

      Don't forget the beloved switch statement too, that's what I was thinking when I saw the pages of ifs

    • @ericbarnes8
      @ericbarnes8 2 месяца назад +5

      And getting chat gpt to write them for you

    • @Deveyus
      @Deveyus 2 месяца назад +3

      @@ericbarnes8 AI-based assistants are cool, but a dangerous tool to be used with care.

  • @pseudomemes5267
    @pseudomemes5267 2 месяца назад +103

    Holy shit my favorite shed yeti

  • @zzzzzzzzzzzzzzzzzzzzzznyf
    @zzzzzzzzzzzzzzzzzzzzzznyf 2 месяца назад +148

    How tf does this man doesnt have even 50k subs?, Such a underated channel

    • @nolongeraplanet3620
      @nolongeraplanet3620 2 месяца назад +6

      100k+ subs

    • @klausnielsen1537
      @klausnielsen1537 2 месяца назад +7

      So true!! I thought he would be at 1 mill plus in the first year when i had seen his first few vids. I love his work, his videos and the humor. His projects are also different and interesting both in application and execution. 🤔

    • @arcrad
      @arcrad 2 месяца назад +4

      ​@@klausnielsen1537 Agree completely. It's a damn shame.

    • @niqhtt
      @niqhtt 2 месяца назад

      RUclips going down the shit hole with 30sec short brainless vdeos

    • @DOntTouCHmYPaNDa
      @DOntTouCHmYPaNDa 2 месяца назад +1

      I agreeeeeeeeee

  • @LunaticCharade
    @LunaticCharade 2 месяца назад +24

    "if you got alot of repetative code to write, with changing values".. Functions mate, you want to write a function!
    void check_electromag(int x, int y, int pinnumber)
    {
    // put actual code here
    }
    And you have a list of magnets, so you can define them in a list, then you can check all of them in a loop, calling this function.
    struct electromag_s{int x, int y, int pin}
    const int num_mags = 30;
    electromag_s maglist[num_mags];
    for(int i; i< num_mags;i++)
    {
    check_electromag(maglist[i].x, maglist[i].y, maglist[i].pin);
    }
    Well done either way, being persistent always gets results

    • @0xbaadf00d
      @0xbaadf00d 2 месяца назад +2

      MIND THE BAR

    • @LunaticCharade
      @LunaticCharade 12 дней назад

      @@0xbaadf00d 0xcafebabe
      Also, this is a tip - and a compliment. I'm congizant that we have different perceptions and this formulation might be perceived as criticism. My hope is that it's also helpful enough and close to reality enough that it's perceived as helpful either way.

  • @rubixmaster5567
    @rubixmaster5567 2 месяца назад +29

    My dad and I watch every one of your videos. I have absolutely no idea how you don't have over 100K subscribers yet

  • @dav1dsm1th
    @dav1dsm1th 2 месяца назад +28

    Now you just need to model the magnet coordinates back in your CAM software - so you can layout your cut paths to miss as many magnets as possible 🙂 Thanks for the videos.

    • @TimoNoko
      @TimoNoko 2 месяца назад +1

      "Liniar Aktuator" moves the piece sideways and then does those critical cuts.

    • @dav1dsm1th
      @dav1dsm1th 2 месяца назад

      @@TimoNoko Even more complicated. I love it.

  • @AlbertFilice
    @AlbertFilice 2 месяца назад +8

    So satisfying to watch the pieces drop off as the gantry approached. Nice work! Keep it up!

  • @droko9
    @droko9 2 месяца назад +25

    For the code, you should add each XY coordinate to an array, then all you'd need to do is loop through the array checking them against the position of the plasma head. So you'd have something like:
    currentHeadX = 1
    currentHeadY = 2
    numberOfMagnets = 4
    magnetLocations = [
    [1, 2],
    [3, 4],
    etc...
    ]
    for(i = 0; i < numberOfMagnets; i++){
    if(magnetLocations[i][0] is close to currentHeadX and magnetLocations[i][1] is close to currentHeadY){
    turnOffMagnet(i)
    }
    }
    Cus then you don't need to repeat the same block of code 24 times lol

    • @cranktowncity
      @cranktowncity  2 месяца назад +13

      Oh god how embarassing hahaha that's where I get when I overthink it

    • @Sven_Dongle
      @Sven_Dongle 2 месяца назад

      Actually thats incorrect, it looks like he needs a 3 dimensional array since he is checking XY[i] he can substitute coord[c0][c1][i]

    • @richdecibels
      @richdecibels 2 месяца назад +3

      ​@@cranktowncity bro it's not embarrassing there's a million dudes who can code better than you but almost none of them can work with steel and build epic machines like you can, don't worry about it.

    • @LanceThumping
      @LanceThumping 2 месяца назад

      @@Sven_Dongle I don't think you're correct here. He needs either a 2D array with [x,y] being one dimension and magnet number being the other. Or a 1D array with each the coordinate pairs in a single object for each magnet. (Either would be effectively equivalent)
      Hell, he could also use one big 2D array of X, Y with each element being a 0 for no magnet or 1 for magnet.
      Either way, I don't see him needing a 3D array at all.

    • @StopBuggingMeGoogleIHateYou
      @StopBuggingMeGoogleIHateYou 2 месяца назад

      Use an array of structs:
      ```
      typedef struct {
      int x;
      int y;
      int pin1;
      int pin2;
      int pin3;
      } magnet;
      magnet magnets[24] = {
      { 4, 3, 32, 33, 34 },
      // ...
      };
      for(int i = 0; i < 24; ++i) {
      if (((Xpos > (magnets[i].x - deviation)) && (Xpos < (magnets[i].x + deviation))) && ((Ypos > (magnets[i].y - deviation)) && (Ypos < (magnets[i].y + deviation)))) {
      digitalWrite(magnets[i].pin1, LOW);
      } else {
      digitalWrite(magnets[i].pin1, HIGH);
      }
      }
      ```

  • @37gang37
    @37gang37 2 месяца назад +4

    This channel is puur gold entertainment. perfect balance of just winging it and skill 😂

  • @vitaliiheleta9695
    @vitaliiheleta9695 2 месяца назад +1

    We all need to write some comments and press like it, so that others saw this masterpiece. Some stupid videos got millions of views, but creative and smart ones got none. Humanity is doomed

  • @carlnelson3893
    @carlnelson3893 2 месяца назад +3

    I still remember 30 years ago when I discovered how to program with re-useable subroutines, I had made a tic tac toe program in visual basic 1.0 and it was 3 pages long, then I figured out that I could just call one "engine" and slap into the parameters the variable and bam, the program was half a page, thrilling! lol

  • @Nobody-Nowhere
    @Nobody-Nowhere 2 месяца назад +31

    My comment in the video, im practically famous now.

  • @TheElbarfo
    @TheElbarfo 2 месяца назад +5

    Firing the electromagnets with the relays will eventually fry the contacts because of HV coil kickback. The remedy is to use reversed biased diodes on each relay output. It will suppress the kickback, and is fairly easy to wire. I'd use at least 100V diode but you may want to measure the kickback to se if it's higher.

    • @ShivaTD420
      @ShivaTD420 2 месяца назад +1

      I've had huge problems with this myself. The kickback gives voltages that are almost unbelievable resulting in 300amp spikes from a tiny 3v relay!.
      Snubbers, ferrite core chokes or your flyback diode suggestion is a must for reliable long term operation of a relay system. Up voting so cranky t, can get something in to prevent it.

  • @Homme_Pur
    @Homme_Pur 2 месяца назад +1

    Petition to rename it the "Pain Bird"

  • @petrdobes4808
    @petrdobes4808 2 месяца назад +1

    Other simple solution could be to use some neodymium magnets attached to some pneumatic cylinders, that would pull the magnets away from the surface when needed. Bunch of cheap ali-ex spring loaded cylinders and 3/2 valves would do the magic. This way the magnets would be a little bit mor protected from the plasma burner because of the distance and you would also have the holding power during power outage. Btw thanks for all the great content.

    • @CraftAero
      @CraftAero 16 дней назад

      Even the cheapest pneumatic cylinders would need heat resistant plumbing and individual solenoids rapidly driving up the cost.
      Also, the neodymium magnets will ALWAYS be on and would collect alarming amounts of swarf. They would not be able to "re-engage" after the cutting head passes.

  • @loligesgame
    @loligesgame 2 месяца назад +1

    You probably should put some reverse diodes across those coils, the back emf they create when switching off can burn out the relays rather fast.

  • @chrisjames6349
    @chrisjames6349 2 месяца назад

    Very clever mate! Nice work!

  • @zach4505
    @zach4505 2 месяца назад +1

    Amazing work, inspiring and motivating.

  • @memejeff
    @memejeff 2 месяца назад

    Amazing video. Great job. Really great to see that everything worked out well.

  • @fenton9620
    @fenton9620 2 месяца назад

    Love your builds man, keep doing what you're doing!

  • @Vikingwerk
    @Vikingwerk 2 месяца назад +1

    Always a great feeling when a project works out!

  • @Rouverius
    @Rouverius 2 месяца назад

    Great to see the CNC up and running again!

  • @alex4alexn
    @alex4alexn 2 месяца назад

    this is such an awesome project, looks great and amazing execution

  • @jovkniemozna
    @jovkniemozna 2 месяца назад

    i was looking the video like... nice project and stuff, then i saw the side cnc table and my jaw dropped... SAVAGE

  • @greenberetwoodworks6458
    @greenberetwoodworks6458 Месяц назад

    Awesome work!

  • @zeffofx
    @zeffofx 2 месяца назад

    Good job on the wiring on that box!

  • @almosthuman4457
    @almosthuman4457 2 месяца назад

    another fun project. thanks for inviting us into your shop.

  • @user-kz8tw4vj7z
    @user-kz8tw4vj7z 2 месяца назад +3

    Dinger time! Cool magnet system

  • @blip_bloop
    @blip_bloop 2 месяца назад +1

    Amazing work!

  • @BloodyMobile
    @BloodyMobile 2 месяца назад +2

    3:00 spoke like a fellow man who has been graced with enlightment. Meaning yeah, math's really cool, /if/ you figure out how to use it. Before that, it's just "magic".
    4:58 when you design a part and forget an offset... shift happens as we programmers say.

  • @cho4d
    @cho4d 2 месяца назад +1

    your code is fine. i mean i could critique it for a while but it is understandable and not weird... and you're not a programmer so that's a huge win imo

  • @dj1NM3
    @dj1NM3 2 месяца назад

    That was pretty neat that it seemed to work in the end.

  • @medivalone
    @medivalone 2 месяца назад +1

    You should bring this to open sauce

  • @quadmcjellydrone7909
    @quadmcjellydrone7909 2 месяца назад

    Another great video. Thanks 👍

  • @riverfrontww
    @riverfrontww 2 месяца назад +1

    your projects are awesome, Dig the channel!

  • @chaseweeks2708
    @chaseweeks2708 2 месяца назад

    Easy fix for the bouncing wire on the winding machine: superglue some felt pads to the inside of the jaws of a clothes pin or clip for a bag of chips (something without a ton of pressure) and just clip that onto the wire as it goes into the guide. Should keep steady pressure regardless of what the spool is doing.

  • @jordanbennett6461
    @jordanbennett6461 2 месяца назад +1

    The combo of programming, science, engineering. This is amazing work dude!

  • @Clemens878
    @Clemens878 2 месяца назад

    One of the best channels on YT. You deserve much more followers.

  • @newmonengineering
    @newmonengineering 2 месяца назад +1

    Best to use some thicker wire for strong magnets, but another thing you can do which is harder but does add to the magnetism is wind the wire top to bottom and then stretch it to the top and wind to the bottom each layer. This causes more of the coil to be in the same direction, it's hard to get right but it makes a huge difference compared to each layer going the opposite direction. Just my experience

  • @scottbernetich4104
    @scottbernetich4104 2 месяца назад +1

    WOAHHHHH freaking love these

  • @user-rk6pb9hk2d
    @user-rk6pb9hk2d 2 месяца назад

    I'm amazed by the detail you go into many of these projects and the wiring! I've done projects for years and have not gotten to the neatness you did with the control box! Keep on making greatness!

  • @envisionabetterlife4346
    @envisionabetterlife4346 2 месяца назад +2

    golly bud, i forgot about radioshack... what a cruel world

  • @Whobghilee
    @Whobghilee 2 месяца назад +2

    Love all your vids. Not sure why it took so long for YT to recommend you to me

  • @gacherumburu9958
    @gacherumburu9958 2 месяца назад

    Great idea! 👍

  • @ivprojects8143
    @ivprojects8143 Месяц назад +1

    your videos are so unique and awesome haha

  • @ferriswhitehouse1476
    @ferriswhitehouse1476 2 месяца назад

    new cranktown city wooya woo ya wooya 👏👏👏

  • @fnsfabrications6844
    @fnsfabrications6844 2 месяца назад

    Nice dude. I gotta get back to my plasma table rebuild.

  • @storbytronics
    @storbytronics 2 месяца назад

    The awesome garage gremlin returns!

  • @ibrahimkocaalioglu
    @ibrahimkocaalioglu 2 месяца назад +1

    Piece of art in electronics. Congratulations. Later you add 24 more to cover smaller parts.

  • @herzogsbuick
    @herzogsbuick 2 месяца назад +1

    amazing, i have the same straight edge!

  • @PreciousUzor-vw7qy
    @PreciousUzor-vw7qy 2 месяца назад

    I love this guy

  • @Dan-vq4pz
    @Dan-vq4pz 2 месяца назад

    I KNEW those giant relay boards with opto isolators were good for something! Killed it with the wiring on that control enclosure!

  • @JMassengill
    @JMassengill 2 месяца назад +2

    Impressive build. Ta Da for sure.

  • @Yuriel1981
    @Yuriel1981 2 месяца назад +1

    That Baja Blast epoxy looks delicious...... lol

  • @yutub561
    @yutub561 2 месяца назад

    whoa BEAUTIFUL cabling in the box man, thats amazing. you should also invest in some control cables so you can reduce the numbers of free wires. helps manage multiple devices easier
    man this was such a cool video. you deserve so much more exposure. this is one of the coolest projects ive seen

  • @twardnw
    @twardnw 2 месяца назад +1

    hellyeah, Friday drop!

  • @user-yk6ei8gi7o
    @user-yk6ei8gi7o 2 месяца назад +1

    That was one of the most original videos I've watched on u tube in for ever. Great job. Won't be long before the big CNC companies are stealing this idea

  • @mfx1
    @mfx1 2 месяца назад

    I'd consider making the magnets moveable using permanent magnets to place them anywhere so you can mount them where cuts won't be made wherever possible then automatically scan and learn their positions with a Hall effect sensor on the head or a simpler option would be sacrificial replaceable surface plates for the magnets which can easily be replaced when they get cut up too badly. Both methods have pro's and cons.

  • @ianrwin
    @ianrwin 2 месяца назад +1

    Damn this is cool, I was waiting for the "ya that turned out to be too complicated so I'm gonna use X" and it just never happened. I wonder if you could just have a template that locates your magnets in your designs so they don't get run over by the plasma

  • @abdelghanisiradj3026
    @abdelghanisiradj3026 2 месяца назад +1

    Man, this is the Eid video. I missed you, man 💪🥳

  • @ahbushnell1
    @ahbushnell1 2 месяца назад +3

    Put a reverse diode on your magnets. That will prevent arcing on your relays and having a short life. 1N4007.

  • @Basement-Science
    @Basement-Science 2 месяца назад +2

    It looked like the outer casing of the electromagnets and the end plates are too thin to be efficient. Ideally you want the cross section of the magnetic field's path to be the same everywhere along the path, meaning your outer tubing should have the same cross section as the part in the middle, and the end cap should actually be even thicker because the relevant cross section in there is actually a cylinder (geometry is fun lol).
    Of course they will work as they are, just telling you this in case you make some more or want to make stronger ones at some point.
    Great content as usual :)

  • @Nobe_Oddy
    @Nobe_Oddy 2 месяца назад +1

    GREAT JOB BRO!!! I am THROUGHLY IMPRESSED!!!! Between this, the wire winding machine, and the icicle making machine I have to say that you're programming skills are dayum guud!!!!! As long as you know how to look up the code for what you want to do then the hardest part is knowing what it is you need the controller to do and how to do it..... (as in knowing that you want the electromagnets to turn on/off when the cutter head is near/over them, and that you should use the x,y coordinates to do this ) but you can probably be able to get some AI that can do- microcontroller code to write most of it for you...... but like I said, the hardest part is knowing what you need the microcontroller to do and AI can write the code to make it do those things :)
    (I hope I make sense lol)

  • @elkneto4334
    @elkneto4334 2 месяца назад +1

    man dude how awesome, great job.. almost TOO professional tho

  • @Dawn.Collins
    @Dawn.Collins 2 месяца назад

    I guess this electromagnet is really "attracting" a lot of attention!

  • @herzogsbuick
    @herzogsbuick 2 месяца назад

    the cranktown city sing this song, doodaa, doodaa

  • @daylen577
    @daylen577 2 месяца назад

    I feel like you could make those magnets last a lot longer if you add a linear actuator to each to pull them back just enough for the laser to not hit it, but at the same time that'd add another 24 moving parts you don't *really* need

  • @Rawstock92
    @Rawstock92 2 месяца назад

    (To stabilize your wire spool on the winder …) Couple of 3d printed cone-end-sleeves for your wire spool? Between the wire nut and the spool? Probably a name for it …

  • @SciCynicalInventing
    @SciCynicalInventing 2 месяца назад

    If you were to cut a 1/2 inch thick slice of some solid steel round bar and cut a lot of slits into one face of it with a cut off wheel and basically use that as the shield for the electromagnets I wonder if it would still allow the magnetic field to have plenty of grip on the plate while also providing space for the plasma jet and smoke somewhere to go via the slits and grooves. I once did something similar to what you did and my problem was always the plasma jet just melting everything and because of crap backfiring into the nozzles it ruined a lot of tips too. Keep up the great videos my dude.

  • @arcrad
    @arcrad 2 месяца назад +1

    New crankerton video fuck yeah

  • @KX36
    @KX36 2 месяца назад +2

    there's a thing in programming that will take care of your ecks why problem, and that thing is called functions.

  • @jeffpkamp
    @jeffpkamp 2 месяца назад

    The wiring job was very nice.
    100% use a for loop and an array for your arduino code. You could have written that whole thing in about 5 lines :).

  • @rjm842
    @rjm842 2 месяца назад

    Awesome!
    The only thing I see being maybe an issue is that when there’s a power outage it would disengage and drop the sheet. If you ever did something on the heavy side, might be worth having some corner restraints for the sheet?
    Cool video. Love watching your process mate

  • @GoPaintman
    @GoPaintman 2 месяца назад +1

    I love the ingenuity. But you could totally use a for loop and a 2 dimensional array for each magnet.

  • @TeslaFactory
    @TeslaFactory 2 месяца назад +1

    @5:40 missed opportunity for rotary welding mount side project...

  • @RokasSondaras
    @RokasSondaras 2 месяца назад +1

    great video as always. Exited to see new uploads. My inner programmer is screaming at the screen because of your code for arduino. :D. Would gladly help on that front. BTW do you have thc? I finished building my diy plasma machine and used simple THC SD controller.

  • @JohnJaggerJack
    @JohnJaggerJack 2 месяца назад +2

    Great project man, but i'd like to know what is your plan when the plasma eventually passes over one of those magnets, melts the living days out of it and short-circuits to the steel frame?

  • @LoganGuerra
    @LoganGuerra 2 месяца назад

    Hell yeah, magnets!

  • @williansanabria1019
    @williansanabria1019 2 месяца назад +1

    Ufff que vago tan monstro el mejor de todos la más plena verdad

  • @DerekWoolverton
    @DerekWoolverton 2 месяца назад +1

    Your x3y1 and x3y2 are both defined to 38. I've got a *much* shorter version of all this code if you want it.

  • @tracybowling1156
    @tracybowling1156 2 месяца назад

    That had to be a bit tricky and repetitive. But man, it looks nice, and it'll help you a bunch in the long run!

  • @RGCbaseace
    @RGCbaseace 2 месяца назад

    AWESOME

  • @mariushalvorsen2037
    @mariushalvorsen2037 2 месяца назад

    Im impressed😯😃😃

  • @AndrewLeCain
    @AndrewLeCain 2 месяца назад

    I probably would have gone with a magnet on the Y axis and reed switches to disable the whole row to save on coding but this is definitely better!

  • @vincentpaynecole
    @vincentpaynecole 2 месяца назад

    Electromagnets are a little beyond my usual wheelhouse, but I wonder if you could have the cores extend further past the housing, so that as they get hit with plasma you might be able to re-sueface them a few times.

  • @Ihsees91
    @Ihsees91 2 месяца назад +2

    Half of your magnetic lines may be going through the steel-"lid" of your magnet :(
    Great project though, must've taken ages to do repeat every step 24 times 😳💪

  • @alttabby3633
    @alttabby3633 2 месяца назад

    Dinger time! 👍

  • @DuckshotProductions
    @DuckshotProductions 2 месяца назад

    To fucking cool and we got a Ed's mumbles cameo

  • @pete3897
    @pete3897 2 месяца назад +1

    Ever considered just building things to suit the roll of ECW in the size it came from the shop instead of winding it off their spool and onto yours? :)

  • @custos3249
    @custos3249 2 месяца назад

    Lol the sass. About time, though there are still problems. Still have a dropage issue. Don't forget to use tabs rather than always doing a full depth of cut.

  • @plasmaman9592
    @plasmaman9592 2 месяца назад +1

    Last time I used a magnetic ground clamp thing it disrupted the plasma field so bad that it made the kerf about 3/8" wide and when closest to the magnet it stopped cutting out when on top of the steel leaving gouges.

  • @ewasteredux
    @ewasteredux 2 месяца назад +1

    Great job. I want one. Let me know when you have a kit ready for purchase.... yes, joking but still cool!

  • @noaho7074
    @noaho7074 2 месяца назад

    Was wondering if you could do a budget breakdown on cost of materials and parts

  • @laurahaaima1436
    @laurahaaima1436 2 месяца назад +2

    With some help you are a true gemnius..

  • @wookiefable
    @wookiefable 2 месяца назад

    nice

  • @scottbernetich4104
    @scottbernetich4104 2 месяца назад +2

    Get Lathered ⚡️

  • @ScamstinCrew
    @ScamstinCrew 2 месяца назад

    A function could save you some of the repetition in the code. But if it aint broke dont fix it. One thing i saw was the plate buckle some when one of them released in the end while it cut the top to bottom. Dont know the solution or if its worth digging into. If the cut was satisfactory then id ognore it. Thinner plate like your were cutting tends to go crazy at the best of times thicker plate will have less of an issue (it will also have a firmer hold).

  • @H34...
    @H34... 2 месяца назад

    What happens when the plasma cuts over/through one of these though? The slats under a usual plasma cutter are consumables, i get the feeling these will end up being consumablized as well unfortunately. There are off the shelf electromagnets, I see them all the time on aliexpress. They're build just like yours but with a threaded hole usually for mounting. Might be useful when it comes to replacing these, since they seem like a lot of work to make.

  • @LanceThumping
    @LanceThumping 2 месяца назад

    I wonder if you could put replaceable aluminum caps over the magnets to protect them.

  • @sirnearlyheadlesnick
    @sirnearlyheadlesnick 2 месяца назад

    Dang best get your ducks in. a row for when those Big Boy Tool Companies be banging down your door for your IT Property Rights to add to their machines.. Always Mind Blown as to your Skills and Projects Directions and Dificulty levels one Maning it out of your garage with out a budget big up salute