a5:programmable-power-supply-control

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
a5:programmable-power-supply-control [2018/07/05 15:46] aeketa5:programmable-power-supply-control [2020/12/25 02:13] (current) – external edit 127.0.0.1
Line 4: Line 4:
 The changes shown here require knowledge in the field of Arduino, Marlin firmware and electrical engineering and can overwhelm normal users. Also, I would like to point out possible dangers that exist in certain interventions. All adjustments have been checked for function.  The changes shown here require knowledge in the field of Arduino, Marlin firmware and electrical engineering and can overwhelm normal users. Also, I would like to point out possible dangers that exist in certain interventions. All adjustments have been checked for function. 
  
-**Difficulty: Professional** (No more warnings. Professionals know when to unplug the mains)+**Difficulty: __Professional or Electrician__** (No more warnings. Professionals know when to unplug the mains)
  
 **What is this about?** \\  **What is this about?** \\ 
Line 61: Line 61:
  
  
-=== Customize the Marlin firmware ===+==== Customize the Marlin firmware ====
  
-In the Arduino IDE open the **A5 Custom Community Firmware** (see article here in WIKI).\\+In the Arduino IDE open the **A5 Custom Community Firmware** (see [[a5:firmware|article here]] in WIKI).\\
 __ __
 The following adjustments are made in the "**Configuration.h**" file:__ The following adjustments are made in the "**Configuration.h**" file:__
Line 145: Line 145:
  
 I had developed a complex special housing for the momentary switch and the solid state relay, in which the circuit should find its place. This would look like this: I had developed a complex special housing for the momentary switch and the solid state relay, in which the circuit should find its place. This would look like this:
 +
 {{:a5:aetek:ssr_pow_01.jpg}} {{:a5:aetek:ssr_pow_01.jpg}}
 +
 Electrically everything worked wonderfully. Unfortunately I noticed a problem after assembling the A5. The measurement of the available space above the momentary switch upper edge was wrong. The Y-gantry does not have enough room to move because the housing of the momentary switch was too high.\\ Electrically everything worked wonderfully. Unfortunately I noticed a problem after assembling the A5. The measurement of the available space above the momentary switch upper edge was wrong. The Y-gantry does not have enough room to move because the housing of the momentary switch was too high.\\
 \\ \\
Line 181: Line 183:
 AETEK Firmware:\\ AETEK Firmware:\\
 {{:a5:aetek:20180702-03_aetek_jgaurora_a5_custom_lcd_firmware_v3.02.zip}} \\  {{:a5:aetek:20180702-03_aetek_jgaurora_a5_custom_lcd_firmware_v3.02.zip}} \\ 
 +{{:a5:aetek:20180714-02_aetek_jgaurora_a5_custom_lcd_firmware_v3.02.zip}} Fix Filament Out Detection\\
  
 +After the successful update of the MKS display firmware it should now look like this:\\
 +{{:a5:aetek:ssr_tft_01.jpg}}
 +\\
 +\\
 +This concludes work on the A5 printer. The A5 can now be completely assembled. LOL
 +\\
 +\\
 +\\
  
 +==== Use New Functions ====
 +The new features can be used in two ways.
 +  - Operation using the MKS Touch Display
 +  - Operation via software (GCODES)
  
 +=== Operation using the MKS Touch Display ===
 +The purpose of the effort is computerized power off. 
 +As mentioned in the beginning, it makes no sense to switch off the A5 immediately after touching the switch-off icon. The 3D printer should only be disconnected from the mains if the hot end temperature is not more than 45 ° C. In general, the hot end will initially have a much higher temperature after printing. The normal operating temperature when printing is significantly higher than 45 ° C \\
 +The A5 only turns off when it receives a command to do so. If you touch the Power Off Icon on the MKS Touch Display, the A5 waits until the above condition is fulfilled and then switches itself off. This indicates a certain time (usually in minutes range). Therefore, do not expect any direct response from touching the power off icon.
 +It looks like nothing is happening, but then the 3D printer turns itself off.\\
 +The MKS Display Mainboard sends GCODES to the MKS GEN_L 1.0 mainboard. These commands are part of the Marlin firmware and will be explained later. For now I would like to point out a peculiarity when using the power off icon on the MKS display.
 +If the printer is cold and you touch the power off icon, then you would think that the A5 would now switch off immediately. It is different. The reason for this is the way the GCODE works. The room temperature is hopefully below 45 ° C, for example 25 ° C. Then, when you touch the Power Off Icon, the Hot End heats up to 50 ° C (because of over shoot) and then waits until the Hot End temperature drops to 45 ° C. Only then does the A5 turn off.\\
 +While the GCODE is waiting for the 45 ° C to be reached, you can change the display content via the "Back" -> "Heat" icon. The current hot-end temperature will be displayed. Marlin includes a buffer for several GCODE commands. After touching the Power Off icon you should not start many actions on the MKS display, otherwise the command to switch off in the buffer could be overwritten. To be sure, you can touch the Power Off Icon again. The power down command is then sent again to Marlin.\\ 
 +\\
 +//Note: If the room temperature is above 44°C, the A5 will never turn off after touching the Power Off Icon.//
 +\\
 +\\
 +**Summary:**
 +  * Switching off is not immediate, but always time-delayed.
 +  * With the "BACK" -> "Heat" icon, the current hot-end temperature can be displayed without affecting the switch-off command.
  
 +\\
 +\\
  
 +=== Operation via software (GCODES) ===
  
 +GCODES can be sent directly to the A5 via USB, e.g. [[:pronterface|Pronterface]]. \\
 +There is also the option to send stored GCODES from a storage device, such as USB stick or SD card. \\
 +Which GCODES are of interest for this project?\\
 +<sub>Source: http://marlinfw.org</sub>\\
  
 +__**M81 - Power Off**__ \\
 +Turn off the main power supply. This also shut down the electronics.\\
 +//Usage: M81//  \\
 +Attention! This command immediately turns off the A5 without waiting for the hot end to cool down.\\
  
 +__**M85 - Inactivity Shutdown**__ \\
 +Use this command to set a maximum period of time for the machine to be inactive (without moves). If the machine is idle for longer than the set period, the firmware will shut everything down and halt the machine.\\
 +//Usage: M85 S<seconds>\\  
 +Example: Turn off the A5 after 30 minutes without moving axles\\
 +M85 S1800    // \\
  
-More content is coming soon...\\ +__**M109 - Wait for Hotend Temperature **__ \\ 
-{{:a5:aetek:}} +This command sets the hot end temperature and **waits** for the target temperature to be reached before proceeding. If the temperature is set with R then M109 will also wait for the temperature to go down.\\ 
-ssr_tft_01.jpg+//UsageM109 R<temp>// \\ 
 +ExampleWait for a Hot End temperature of 45°C\\ 
 +//M109 R45// \\ 
 +\\ 
 +\\ 
 +__**Application proposals**__\\ 
 +Every modern slicer program, such as Simplyfy 3D, Cura, Slic3R, etc., has the ability to define a START and END GCODE block. Among other options you can also enter commands for the control of the power supply. \\
  
  
 +\\
 +Example: Simplyfy 3D\\
 +<code>
 +;STARTING GCODE START --- Simplyfy 3D ----------------------------------------------
 +M85 S2700 ;Power OFF Machine if no movement for 45 minutes.
 +M140 S[bed1_temperature];Set Bed Temperature + Continue
 +M109 S120 ;Prepare Hotend for Homing Z. Set Hotend Temp 120C + WAIT
 +G28         ;Home X Y Z Axis\\
 +G1 Z100 F5000         ;Lift Z to clean the Nozzle
 +M190 S[bed1_temperature];Set Bed Temperature + Wait
 +G1 Z10 F5000 ;Z down to 10mm
 +M109 S190 ;Set Hotend Temperature + Wait
 +G92 E0         ;Reset Extruder 
 +M109 S180 B250 F1 ;Autotemp on 180...250C  
 +;STARTING GCODE END ---------------------------------------------------------------- 
 +</code>
 +Power OFF Machine if no movement for 45 minutes: Normally, this case will not occur because the axes are constantly in motion during printing. If the user stops the printer but forgets to turn it off, the A5 will turn itself off after 45 minutes to save energy.\\
  
 +\\
 +<code>
 +;ENDING GCODE START -----------------------------------------------------------------
 +G92 E0         ;Reset Extruder
 +G1 X0 Y300 Z320 E-3 F4000 ;Quick move Nozzle away while retracting 3mm Filament
 +M104 S0         ;Turn hotend off
 +M140 S0 ;Turn heatbed off
 +M109 R45 ;Cooldown and wait to reach 45C
 +M84         ;Disable steppers 
 +M81         ;Power off
 +;ENDING GCODE END -------------------------------------------------------------------
 +</code>
 +At the end of the printing process, the 3D printer waits until the hot end has cooled to 45°C and then shuts itself off.\\
  
 +\\
  
 +----
  
- +\\ 
- +//Status: 5. July 2018: Documentation complete//
- +
- +
- +
-//Status: 5. July 2018: Documentation in progress//+
a5/programmable-power-supply-control.1530769593.txt.gz · Last modified: 2020/12/25 02:13 (external edit)