Need Help! 4 axis cnc diy hotwire cutter (raspberry pi?)


Results 1 to 2 of 2

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

  1. #1
    Registered
    Join Date
    Aug 2016
    Location
    Philippines
    Posts
    3
    Downloads
    0
    Uploads
    0

    Default 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).



    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()



    Similar Threads:


  2. #2
    Registered
    Join Date
    May 2006
    Location
    Australia
    Posts
    84
    Downloads
    0
    Uploads
    0

    Default 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



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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

4 axis cnc diy hotwire cutter (raspberry pi?)

4 axis cnc diy hotwire cutter (raspberry pi?)