1

Can any one help me out that how to start a cycle by just using a push button.

Note: Using Marlin firmware, Arduino Mega, Ramps 1.4

I haven't tried altering the Marlin code (as I am new to coding), I was just thinking of adopting this feature as it will be very easy for CNC DIY maker using Marlin code to run a cycle in a loop.

Greenonline
  • 5,831
  • 7
  • 30
  • 60
  • Way more information required. What have you tired so far and what didn't work? Schematic, code? This is way to broad currently. – Greenonline May 09 '19 at 07:46
  • HI and welcome to SE.3DP btw! :-) – Greenonline May 09 '19 at 08:08
  • 1
    What is a "cycle"? I have no clue what you mean, please explain so we can help you out! Cheers, and welcome! – 0scar May 09 '19 at 09:11
  • 1
    Yes, @0scar raises a good point, what *cycle*, or rather a cycle of what? A print cycle, a batch cycle? I seems like you have a good idea in mind, but it's not all that clear or well explained. Please edit and update your answer. Thanks... :-) – Greenonline May 09 '19 at 09:30
  • @Greenonline, actually in terms of CNC cycle start is very descriptive. – user77232 May 09 '19 at 13:34
  • 1
    @user77232 - OK, but for the non-CNC initiated crowd, I think a brief explanation *might* be useful. – Greenonline May 09 '19 at 13:48
  • Possible duplicate https://3dprinting.stackexchange.com/questions/7713/how-to-make-physical-buttons-send-gcode – Perplexed Dipole May 10 '19 at 12:16

2 Answers2

1

Unless you know the structure of the Marlin firmware pretty well, are good at coding (in C/C++), and are familiar with programming microcontrollers, then I wouldn't attempt to do this, IMHO. Adding new features can cause a number of issues elsewhere in the code and need rigourous planning and testing as well as discussion with the Marlin community.

You could however make a request (i.e. raise an issue) to the Marlin community on Github, however, I would seriously suggest posting to the Marlin forum, on RepRap, first, as random suggestions and issues raised on Github aren't really appreciated, without checking on the forum first...

If you really want to get into coding, then I would suggest buying an Arduino Uno and some components and messing about with those first, as well as visiting our excellent Arduino Q&A site on StackExchange as well as the Arduino forums.

Greenonline
  • 5,831
  • 7
  • 30
  • 60
1

Don't go modifying Marlin to do this unless you're using a 32 bit µC.

You're better off controlling Marlin with OctoPrint and writing/finding a module that allows you to kick off a print when a key is pressed on a connected keyboard or pendant.

Greenonline
  • 5,831
  • 7
  • 30
  • 60
user77232
  • 2,298
  • 9
  • 19