586,117 active members*
3,488 visitors online*
Register for free
Login
IndustryArena Forum > Other Machines > CNC Wire Foam Cutter Machines > 4 axis cnc diy hotwire cutter (raspberry pi?)
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2016
    Posts
    3

    4 axis cnc diy hotwire cutter (raspberry pi?)

    trying to build a cnc hotwire cutter. i dont know if its possible to just use raspberry pi but i haven't seen any software for it(cnc software). if i had to use arduino, is it possible to directly connect the uln2003 driver on the data port of the arduino? if so, is there a software for it to control the driver for 4 axis cnc cutting? i ask because everytime i search for arduino cnc they always have the cnc shield that you add to the board to control nema stepper motors. i just want to use the 28byj-48 stepper motor(cheap!). im not proficient in python programming or any programming so i would just prefer to download the software necessary and import the airfoil profile to start cutting foams.

    the only sort of programming i did for the python script to run/test the stepper motors was downloaded from a "running stepper motor with raspberry pi" and edit it to suite my needs(ie. the right gpio port. all for 4 stepper motors).

    https://youtu.be/9QOPaNi4q3o

    Code:
    import RPi.GPIO as GPIO
    import time
    
    GPIO.setmode(GPIO.BOARD)
    
    ControlPinX1 = [7,11,13,15]
    ControlPinY1 = [16,18,22,29]
    ControlPinX2 = [31,33,35,37]
    ControlPinY2 = [32,36,38,40]
    
    for pinX1 in ControlPinX1:
        GPIO.setup(pinX1,GPIO.OUT)
        GPIO.output(pinX1,0)
    
    for pinY1 in ControlPinY1:
        GPIO.setup(pinY1,GPIO.OUT)
        GPIO.output(pinY1,0)
        
    for pinX2 in ControlPinX2:
        GPIO.setup(pinX2,GPIO.OUT)
        GPIO.output(pinX2,0)
    
    for pinY2 in ControlPinY2:
        GPIO.setup(pinY2,GPIO.OUT)
        GPIO.output(pinY2,0)
    
    dir1 =[ [1,0,0,0],
                [1,1,0,0],
                [0,1,0,0],
                [0,1,1,0],
                [0,0,1,0],
                [0,0,1,1],
                [0,0,0,1],
                [1,0,0,1] ]
    
    dir2 =[    [0,0,0,1],
                [0,0,1,1],
                [0,0,1,0],
                [0,1,1,0],
                [0,1,0,0],
                [1,1,0,0],
                [1,0,0,0],
                [1,0,0,1] ]
    
    dir0 =[    [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0],
                [0,0,0,0] ]
                
                    
    for cycle1 in range(2560):
            for halfstep in range(8):
    
                for pinX1 in range(4):
                    GPIO.output(ControlPinX1[pinX1], dir1[halfstep][pinX1])
    
                    for pinY1 in range(4):
                        GPIO.output(ControlPinY1[pinY1], dir1[halfstep][pinY1])
    
                        for pinX2 in range(4):
                            GPIO.output(ControlPinX2[pinX2], dir1[halfstep][pinX2])
    
                            for pinY2 in range(4):
                                GPIO.output(ControlPinY2[pinY2], dir1[halfstep][pinY2])
    
                    #time.sleep(0.0000001)
                    
    for cycle2 in range(2560):
            for halfstep in range(8):
    
                for pinX1 in range(4):
                    GPIO.output(ControlPinX1[pinX1], dir2[halfstep][pinX1])
    
                    for pinY1 in range(4):
                        GPIO.output(ControlPinY1[pinY1], dir2[halfstep][pinY1])
    
                        for pinX2 in range(4):
                            GPIO.output(ControlPinX2[pinX2], dir2[halfstep][pinX2])
    
                            for pinY2 in range(4):
                                GPIO.output(ControlPinY2[pinY2], dir2[halfstep][pinY2])
    
                    #time.sleep(0.0000001)
         GPIO.cleanup()


  2. #2
    Join Date
    May 2006
    Posts
    84

    Re: 4 axis cnc diy hotwire cutter (raspberry pi?)

    For Arduino based CNC, check out grbl
    There are a number of simple shileds that are suppoted by grbl. cncshield is one. Available from protoneer's eBay shop or from 3dtek.xyz

Similar Threads

  1. CNC Hotwire Foam Cutter For Sale - where to post?
    By blake374 in forum CNC Wire Foam Cutter Machines
    Replies: 13
    Last Post: 04-02-2014, 03:55 PM
  2. NewCnc hotwire cutter 0 footprint
    By alans in forum News Announcements
    Replies: 0
    Last Post: 05-17-2012, 09:11 PM
  3. Solidworks to HotWire cutter?
    By jlcortes in forum CNC Wire Foam Cutter Machines
    Replies: 3
    Last Post: 12-26-2010, 05:19 AM
  4. Hotwire Foam Cutter
    By paprjam in forum Casting Metals
    Replies: 0
    Last Post: 03-23-2009, 05:45 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •