587,172 active members*
3,265 visitors online*
Register for free
Login
IndustryArena Forum > CNC Electronics > CNC Machine Related Electronics > FPGA based cnc controller / routing pcb
Results 1 to 11 of 11
  1. #1

    FPGA based cnc controller / routing pcb

    I am just finishing an FPGA design. It's a basic board with sram, flash rom, sd card, sound codec, +more. It will run a version on ucLinux. It is primarily intended for something else, but I was thinking of using it later as a reference design for cnc control.

    If you were to design a dream board for cnc that includes the G-code interpreter and all...would it be with an FPGA (perhaps running linux) or would a cheaper solutions such as an Atmel AVR be more suiting. Maybe a blackfin? The nice thing about the FPGA over AVR is being able to design the stepper or servo PWM in hardware. This is purely opinion but I am interested in a good brainstorming discussion on this.

    Initially my cnc machine is controlled by laptop and a amplifier board i bought off ebay. But eventually I would like my machine to be more self contained. I would like to be able to send files to it over the network or usb, and be able to recall programs saved to its memory. I also want a joystick type remote that has digital rotary dials for manually moving the machine and digital read out. All possible with the board I am making.

    Second, for those routing pros: In my current FPGA design I have a pcb routing conundrum(??). It's a 4 layer board and I have 3 power supplies. 3v, 2.5 and 1.2. The 3v is is the primarily used supply so it takes the power plane. 1.2v is FPGA core supply only. 2.5v is Vaux provided by a linear reg and will probably be disabled in most of my applications. Good practise tell me not to split the ground and power planes with traces. But I also want to keep my 1.2v (and my Vaux if possible) lines short. So do I route on the power plane my other supplies or route these supplies on the signal plane? I am leaning towards routing them on the bottom layer even though I have them routed on the power planes in the pics. In any case, I will put bypass caps on each 1.2v pin so this should supply the fpga core well with a low impedance source. (bypass caps are not all there in the pics.)

    In my pic I dont like how the power lines split the power plan down the middle...if it happened to be at the edge of the board I wouldnt think much of it...but I am thinking of current loop distances.

    I have read a really enlightening book on high speed pcb design but I guess I am still a little on the fence.

    Colin
    Attached Thumbnails Attached Thumbnails board3d.gif   power.gif   top-bottom.gif  

  2. #2
    Join Date
    Sep 2004
    Posts
    1207
    Layout looks quite pro to me. Some good design rules:
    http://circuitcalculator.com/wordpre...ed-pcb-design/

    Are you planning to have these machine assembled? If yes, then it is probably cheaper to use only single side SMD's despite of larger PCB area.

  3. #3
    Thanks for the feedback. This is more of a reference design then any particular use, so I am going low quantity and self assembly. When I go larger qty I would probably be using smaller area. I also really wanted to use the BGA FPGA so that I can go up to 1M gate count if I ever needed it, but the risk of having a problem under the BGA and not knowing if it is design flaw or solder flaw didnt appeal to me. I may still go BGA later when I know the design is good.

    In my design my expansion bus is really the Flash ROM signals plus a few others like system clock, more CS lines, etc. but I have all the signals routed to the expansion header then to the flash rom to eliminate making any unintentional antennas or requiring termination.

    So you dont think those two thick lines splitting my power plane nearly in half will cause any problems?

    C

  4. #4
    Oh yes, also, what pcb house do you use?

    Thanks,
    C

  5. #5
    Join Date
    Sep 2004
    Posts
    1207
    Connect power layer by few traces across the split on other layers. Traces don't have to be thick because only high frequencies will pass thru the smallest inductance path. DC will go around the split on the smallest resistance path.

    In the last order I used Pcbcart.

  6. #6
    I did some rearranging last night because I couldnt sleep. I managed to get those power rails as poly pours on the signal layers. I think this looks the best upon reflection. It provides a low resistive path to the fpga, I will have decouping caps also.

    Thanks,
    C

  7. #7
    Join Date
    Nov 2005
    Posts
    72
    Reading your tread it look like you want to make similar functionality cnc controller board, have a look at my tread.

    http://www.cnczone.com/forums/showthread.php?t=26465
    past two months there are no new info, because my new Cyclone III in 256BGA package board is not ready yet.

    What fpga processor core will you use ?? is it MicroBlaze™ ?
    and did you thought about software, what features will it have and so on.. ???

    I counted that your board has 60pin connector, could be enough for controller, but you never know until you start to build it and then you will see how much you really need.

  8. #8
    I may turn this board into a cnc controller board, but I am not sure yet. I have been progressing a lot with emc2 (linux) and I now have an all solid state pentium with a 2GB CompactFlash card and Wireless Ethernet, Media Card Reader, etc running EMC2. Though it is much larger than my 3"x3" fpga board, my need for a cnc controller has somewhat diminished!

    After making my first cuts and evaluating the whole cnc'ing process. I realize there is much yet to do. I want to remake my Z-axis, stiffen up my machine more, add digital read out and manual input controls. A lot of this I can do with off the shelf components and since I only want one cnc machine this is the cheaper solution for sure! (My fpga baord was intended for other projects anyway, so its not wasted.)

    Also, I have been learning advanced g-code, including flow control such as loops/if's, etc, and getting just to where emc2 has me now, would require a lot of programming and effort. So I am left with asking myself "Why go there?" when I am so close now to start cutting parts and making money! ...and robots for my plan of global domination!

    If I do use my fpga board I will simply wire it for usb or network connectivity to a remote emc2 computer. The board would then just house the real-time portions and I would write hal (emc hal!) modules to support it. The board would also be the IO for DRO and manual input controls. I think the EMC2 project could use such a "plug-and-play" board that controls steppers/servos, DRO and controls. The Mesa board can do it too, but there would still be some more circuitry required for it and its not so plug-and-play.

  9. #9
    Join Date
    Sep 2004
    Posts
    1207

  10. #10
    Join Date
    Apr 2013
    Posts
    0
    Hi Colin
    I have read Your thread. I have very similar project. We can also change our experiencis.
    Please see to : Hard&Software FPGA/VHDL
    The description of my FPGA development is on this side also in english, unfortunally are all other sites in german. This will need any time to
    translate it.

    best regards
    Anton

  11. #11
    Join Date
    Apr 2013
    Posts
    0
    Hi Colin
    I am working on very similar project like You. We can exchange our experiencis.
    Please see : Neue Seite 1
    Only this site is in english, unfortunaly are all other in german, I am workinng on it, this will need any time.
    Best regards
    Anton

    P.S. I hope in this case is ok with my posts to You

Similar Threads

  1. building FPGA motion controller
    By Episs in forum CNC Machine Related Electronics
    Replies: 89
    Last Post: 04-11-2011, 11:56 AM
  2. New low cost CNC Controller, USB, Windows XP based!
    By bert_eding in forum News Announcements
    Replies: 13
    Last Post: 10-25-2009, 09:14 PM
  3. Assembling Gecko based controller
    By walter in forum Gecko Drives
    Replies: 17
    Last Post: 07-19-2005, 10:30 PM
  4. Dsp Based mini cnc controller
    By cncadmin in forum News Announcements
    Replies: 0
    Last Post: 01-05-2005, 01:59 PM
  5. PC Based Hardware Controller Kit Needed
    By pmartin223 in forum CNC Machine Related Electronics
    Replies: 6
    Last Post: 06-13-2004, 04:28 PM

Posting Permissions

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