Project

General

Profile

Support #950

Updated by Daniel Curtis over 3 years ago

This is a guide in setting up an Arduino Uno on Arch Linux to flash the Marlin 3D printer firmware on an Ender 3. 

 h2. Flash Bootloader 

 h3. Setup Environment 

 * Open the Arduino IDE on your computer. 
 * Go to +File -> Examples -> ArduinoISP+ and select *Arduino ISP* and open it up. 
 * Go to +Tools -> Manage libraries+ and install the *U8glib* Library. 

 h3. Install Sanguino: 

 * Go to +File -> Preferences+ 
 * In the _Additional Boards Manager URLs_ field, add https://raw.githubusercontent.com/Lauszus/Sanguino/master/package_lauszus_sanguino_index.json 
 * Click the *OK* button. 
 * Go to +Tools -> Board -> Boards Manager+ 
 * Click *Install* on _Sanguino by Kristian Sloth Lauszus_ 

 h3. Flash ArduinoISP 

 * Plug in Arduino Uno 
 * Go to +Tools -> Board -> AVR Boards+ and select *Arduino Uno* as the board 
 * Go to +Tools -> Board -> Port+ and select */dev/ttyACM0* (or appropriate port) 
 * Click *Upload* 

 Select the Sanguino board from the menu, which you should have added. 
 Open your Ender 3’s control box and wire it up to the Arduino as follows: 


 |_. Ender |_. Arduino | 
 |MISO|MISO| 
 |5V|5V| 
 |SCK|SCK| 
 |MOSI|MOSI| 
 |RESET|Pin 10| 
 |GND|GND| 

 !https://project.altservice.com/attachments/download/270/pinout.webp! !pinout.webp! 

 *NOTE*: If a blue light flashes on the Creality board then it is wired correctly 

 * Click on the tools tab and click ‘Burn bootloader’. Success will show ‘Output bootloader burned successfully’. 
 * Unplug your Dupont connectors from the Ender 3, put the cover back on the board and screw it on. 
 * Now unplug your Arduino from the computer. 


 h2. Installing Marlin Firmware 

 !https://project.altservice.com/attachments/download/270/uno.webp! !uno.webp! 

 * Download the latest version of Marlin firmware. 
 * Unzip the folder and navigate to the example configurations folder, which is in the Marlin folder. Select the folder that says Ender 3 in example configurations and copy all the files there back into the Marlin folder. When it asks if you want to overwrite what is already there, click ‘yes’. 
 * Scroll down to the marlin.ino file and click to open it in the Arduino IDE. 
 * You are now ready to upload. If you wish to add bilinear bed leveling, go to the next step. Otherwise, make sure you have the printer plugged in via USB, the port is correct and the board is Sanguino. Then click the upload button. If that completes in the shell you are finished. 
 * Unplug the printer from the computer and plug it into the power socket. Be aware the printer may take longer to boot up than usual. 


 h2. Resources 

 * https://all3dp.com/2/ender-3-with-marlin-how-to-install-marlin-firmware-on-your-ender-3/ 
 * https://forum.arduino.cc/index.php?topic=625108.0

Back