+ Post New Thread
Results 1 to 9 of 9
  1. #1
    Full Member level 2
    Points: 1,942, Level: 10
    Achievements:
    7 years registered

    Join Date
    Mar 2012
    Posts
    143
    Helped
    4 / 4
    Points
    1,942
    Level
    10

    To develop 3D printer in PIC controller

    Hi all,
    I found that, 3d printers are developed in atmega controller by the Marlin Software. Can we develop the printer by the help of PIC controllers or any other controllers than atmega/raspi. Please suggest any possible way of doing.

    Thanks,

    •   AltAdvertisement

        
       

  2. #2
    Super Moderator
    Points: 75,593, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,334
    Helped
    3491 / 3491
    Points
    75,593
    Level
    67

    Re: To develop 3D printer in PIC controller

    Hi,

    For sure you can "develop" you own software for any microcontroller you like.

    But maybe you mean "compile":
    Then it may or may not be possible. It depends on how the source code is written.
    In any case it needs a lot of adjustmenst for the different hardware.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



  3. #3
    Advanced Member level 2
    Points: 4,966, Level: 16
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    590
    Helped
    117 / 117
    Points
    4,966
    Level
    16

    Re: To develop 3D printer in PIC controller

    First of all, you have to figure out what is the difference between microcontroller (AtMEGA, PIC) and microprocessor (ARM, Intel, AMD).
    Second, Marlin firmware or GRBL firmware are ment to be motion controllers.
    Third, you have to have good knowledge of programming languages which you intend to use for "developing" your code for motion controller.

    PC, as well as RasPi are computers with microprocessors that are overwhelmed with a lot of different tasks that has to be performed "simultaneously" so they are not good candidates for motion control, but are more than good for GUI front-ends.

    Some motion controllers even do not utilize microcontrollers but utilizes FPGAs for generating Step/Dir pulses for stepper/servo motors.
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.



    •   AltAdvertisement

        
       

  4. #4
    Full Member level 2
    Points: 1,942, Level: 10
    Achievements:
    7 years registered

    Join Date
    Mar 2012
    Posts
    143
    Helped
    4 / 4
    Points
    1,942
    Level
    10

    Re: To develop 3D printer in PIC controller

    Quote Originally Posted by ZASto View Post
    First of all, you have to figure out what is the difference between microcontroller (AtMEGA, PIC) and microprocessor (ARM, Intel, AMD).
    Second, Marlin firmware or GRBL firmware are ment to be motion controllers.
    Third, you have to have good knowledge of programming languages which you intend to use for "developing" your code for motion controller.

    PC, as well as RasPi are computers with microprocessors that are overwhelmed with a lot of different tasks that has to be performed "simultaneously" so they are not good candidates for motion control, but are more than good for GUI front-ends.

    Some motion controllers even do not utilize microcontrollers but utilizes FPGAs for generating Step/Dir pulses for stepper/servo motors.
    Thanks for your reply,

    I know the difference between Controller and processor.

    i asking for how to process a G code comments in PIC controllers like what they did in ATMEGA. is there any tutorials for the executing G_Code comments?

    - - - Updated - - -

    Quote Originally Posted by KlausST View Post
    Hi,

    For sure you can "develop" you own software for any microcontroller you like.

    But maybe you mean "compile":
    Then it may or may not be possible. It depends on how the source code is written.
    In any case it needs a lot of adjustmenst for the different hardware.

    Klaus
    Hi KlausST,
    Basically we can develop anything in the controller, i just new to G-Code comments, i don't know how to start the process in the pic. have you done anything in the G-Codes comment? if anything you have done, please share the idea.



    •   AltAdvertisement

        
       

  5. #5
    Super Moderator
    Points: 29,444, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,780
    Helped
    1109 / 1109
    Points
    29,444
    Level
    41
    Blog Entries
    9

    Re: To develop 3D printer in PIC controller

    What you refer to G codes are nothing less than printhead positioning, inject, and moving instructions which I highly doubt a microcontroller with small internal RAM capacity would be able to handle such as the PIC core you mentioned. Another thing to consider is that a simpler 8-bit microcontroller is capable of decently work only with cartesian printers (x, y, z axes) which you did not specify but perhaps is what you are talking about.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  6. #6
    Full Member level 2
    Points: 1,942, Level: 10
    Achievements:
    7 years registered

    Join Date
    Mar 2012
    Posts
    143
    Helped
    4 / 4
    Points
    1,942
    Level
    10

    Re: To develop 3D printer in PIC controller

    Quote Originally Posted by andre_teprom View Post
    What you refer to G codes are nothing less than printhead positioning, inject, and moving instructions which I highly doubt a microcontroller with small internal RAM capacity would be able to handle such as the PIC core you mentioned. Another thing to consider is that a simpler 8-bit microcontroller is capable of decently work only with cartesian printers (x, y, z axes) which you did not specify but perhaps is what you are talking about.
    Thanks andre,
    I want to make a 3D printers for the fabrication of the plastic parts, i found that in few videos that marlin firmware with AT2560 is working fine, i want to develop the same with our PIC(8/16bit) or renesas controller(RF series). and moreover the AT2560 also a 8bit controller. can we make the printers with PIC24EP512GU814 controller?



  7. #7
    Super Moderator
    Points: 29,444, Level: 41
    andre_teprom's Avatar
    Join Date
    Nov 2006
    Location
    Brazil
    Posts
    8,780
    Helped
    1109 / 1109
    Points
    29,444
    Level
    41
    Blog Entries
    9

    Re: To develop 3D printer in PIC controller

    marlin firmware with AT2560 is working fine, i want to develop the same with our PIC(8/16bit) or renesas controller(RF series). and moreover the AT2560 also a 8bit controller.
    Certainly in this case the microcontroller is acting as a mere slave without locally buffering the contents of the G code, instead, receiving remotely the control commands from the PC side.

    Actually any microcontroller can do that.

    can we make the printers with PIC24EP512GU814 controller?
    Are you wondering if a larger-capacity microcontroller can do this on the same project that you have the source codes for the 8-bit microcontroller? What would be the impediment, or the logic behind the question? If it is related to the syntax difference between local registers and/or compilers, you will really have to deal with some re-engineering.
    --------------------------------------------------------------------------------------------------
    Part of the world that you live in, You are the part that you're giving ( Renaissance )



  8. #8
    Super Moderator
    Points: 75,593, Level: 67
    Achievements:
    7 years registered
    Awards:
    Most Frequent Poster 3rd Helpful Member

    Join Date
    Apr 2014
    Posts
    15,334
    Helped
    3491 / 3491
    Points
    75,593
    Level
    67

    Re: To develop 3D printer in PIC controller

    Hi,

    G Code is rather simple. Almost human readable. The description of the code is available in the internet.

    But in my eyes parsing the G code is the simplest part of your code. Controlling the motors with exact timing will be the bigger challenge.

    Klaus
    Please donīt contact me via PM, because there is no time to respond to them. No friend requests. Thank you.



    •   AltAdvertisement

        
       

  9. #9
    Advanced Member level 2
    Points: 4,966, Level: 16
    Achievements:
    7 years registered
    ZASto's Avatar
    Join Date
    Jan 2008
    Location
    Messy Corner, 44°47'31.56"N, 20°28'9.16"E
    Posts
    590
    Helped
    117 / 117
    Points
    4,966
    Level
    16

    Re: To develop 3D printer in PIC controller

    On Github, you can find source for Marlin, GRBL, if you search a bit more, you can find source for GRBL (6 axes) running on STM32F1xxx, aka. Blue Pill
    "Small" micro is not just a dumb slave (sorry Andre), but has a small buffer and is a fully fledged trajectory planer with a look ahead.

    As for developing code from scratch, OP should first understand how a trajectory planer works. Sources can be found in LinuxCNC (previously EMC2), in GRBL, ...
    Processing G-code commands requires you to understand what each of G-code means (there are also M-codes). Without that knowledge you will not be able to develop a decent motion controller.
    Make no mistake between my personality and my attitude.
    My personality is who I am.
    My attitude depends on who you are.



--[[ ]]--