Electronics
Controller
I want a 32-bits controller board for the printer. One on which I can choose my own motor driver boards. I found RAMPS-FD 1.0, a cheap RAMPS-based board that can be piggybacked on a 32 bits Arduino Due board. You can not use a normal RAMPS board with an Arduino Due, because the Due runs on 3.3 instead of 5 volt. After buying the RAMPS-FD I found out that this 1.0/1.2 version of the board is not safe to use. More information here:
http://reprap.org/wiki/RAMPS-FD. Because now that I have the Arduino Due, I started looking for another board that piggybacks the Arduino Due. I found the RADDS (RepRap Arduino-Due Driver Shield) 1.5 board.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgJznLckApnxHYIwNjq6uZahuYleMrN15goxSZoryWHRk6w-XXYx5QcewAD0kFI77qkRsadfBhf2YzidRw5u8Xtl2lEwvJbIdsNIPuOfea_6ztCfaMQq6UVYxOpXACpMDg0Uj8AdTeGgVw7/s400/RADDS_Wiring.png) |
Figure 2: RADSS wiring |
Power supply unit (PSU)
Because of the heated bed, a beefy PSU is needed that can provided enough amps. I choose a 24 volt, 15 ampere LED strip PSU (360 Watt). 24 Volt because it does heat up the hotend and bed faster. Connect the PSU to the two print screw terminals of the RADDS board in the upper right en left corner, see figure 2.
Mounting the PSU to the frame
Looking for a way to mount the PSU, I came across these brackets on thingiverse to mount the PSU inside the base triangle, underneath the heated bed. After printing the brackets and mounting the PSU I found out that there is not much room left. I started looking for designs that keep the PSU on the outside of the printer frame. These brackets were just what I was looking for. Too bad they did not fit my PSU. I designed a parametric version of these brackets using OpenSCAD. You can create your own version of it in Thingiverse Costumizer.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRTFauqwWtQRIU-OCLEgYFrlLBa0U6AacYTH8podP32_3ypiGia-tScYVbqDRvlLKQDZ1_OBN3YpsAZ_WXZDMG54p_80j80PeUUWaXrz4RKC8o0G_jzQ_zQDvEXbmQNi04XDbXfue3YJ4q/s400/d3a87a5ad4ec9d0600bb101edc939265_display_large.jpg) |
The PSU mounted to the Z-tower of the frame |
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEji5QAqNwRQr1-YNS0Gs5520pIGekMb2Ya5mh_BTMGxYMjCxQPaC4lhbo8nAjP8l2Gei40AOOTTQ6dk-HqHk92j2Zko44gT80HeE2w1IjVIVWNbGo7DnRlcb97gpUiGmVSn8ZPhKyRhIbEf/s400/d200249e6083b9671d0fcff20ef61aa3_display_large.jpg) |
Closeup for the PSU mounted to the frame |
Wiring the PSU to mains and adding a switch and fuse
To wire the PSU to mains I found a PSU inlet and switch on thingiverse that I liked, but it needed some adjustments. Luckily the OpenSCAD files were provided, so I was able to do that. The good thing about this mains inlet unit, is that it also contains a switch and a fuse.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitUaxOHSDghYZ2VlaeFFqk3WWpPpO47eTcv0Ivdt5jrUrRsfhMAEGZOkbN4dry9e3FLC2ISViP2wCV9fBiMYW6Y41Ww1cC2Zw5WYge5VafWMh99kDptZHTSiUlkLyJog7M-ZTs3XPeYKx5/s400/eed61919005e4dfc82767917ddf5dcbb_display_large.jpg) |
PSU inlet and switch |
Endstops
Normally closed
I have the wires mounted such that the circuit is closed when the switch is not pressed. Pressing the switch opens the circuit. The advantage of this solution is that in the event of a broken wire/connection the motor won't move, because the controller detects an open circuit. When I had chosen the other option, in case of a broken circuit, the motor would run, but won't stop at the endstop switch. My switch has the outer most connections for normally closed.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhCQ6Y_zIu8OfkDpPS5jwygQX8vB55fkdCAlzYWrSH3nn6_eRiKckhb31_bB5rcH3w_TKEc2Ep2t5O-oaJYl5n1XprCah7W221lelNkuHyRFgeNrOQkc-Xl1SZnrDIT5Rys_9xUzAennRRw/s400/IMG_5343.jpg) |
Figure 4: endstop switch on endstop holder |
Endstop wiring
Connect the endstop wires to the controller board between Signal and GND. Make sure to enable the pull up resistors on the controller board. In the drawing below you find the position of the X, Y and Z endstops. Connect to X, Y and Z-max on the controller board.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdxfddTrfTZFrhWqol4ldrrJFsJHNyz_KVNqqx6qYNCnxtMDj5RA88CEPYxHlTjXQ0ptOjUmuichlS0y4Ye5Hl50YEXHLHek0j4rDu8AtxNPWQ-NUo7SV3zX0DQq40s0nGr54TlQqOKPwX/s400/xyz.jpg) |
Figure 5: position of the X, Y and Z-endstop. |
Endstop configuration in the firmware
I use Repetier firmware. The endstops can be configured using the Repetier webpage:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizmjdTDwotW45j9LF68Hs8y_rNU_5pj-j1d9Q2nOMu3KPvOTPMf8frduOR8vgilLsEYbSKN0v5nq6T9I6-O1mwklx73URdR51GlPJJznAKWf3voAWuRt8zSezdyhfb619O7hqsOExHwRnn/s400/repetier+endstop+configuration.jpg) |
Figure 6: Repetier endstop configuration. Click to enlarge. |
Endstop tesing
After everything is connected and the firmware uploaded, the endstops can be tested:
- Connect to the printer (using Proterface for example)
- Send M119 command.
- Firmware should report back status "0" or "open".
- Engage the endstop by pressing the switch.
- Send M119 again.
- Firmware should report "1" or "triggered" or "closed".
Crosstalk
Twist the endstop wires (as well as the motor wires) to reduce crosstalk. Crosstalk can cause false readings of the endstop data.
Resouces:
http://reprap.org/wiki/Endstop
http://reprap.org/wiki/G-code#M119:_Get_Endstop_Status
Motors
X,Y and Z motor
I bought Wantai 42byghw811 stepper motors at RepRapWorld.
The order of connecting the wires for the Wantai motors is (figure 7):
Twist the motor wires to reduces crosstalk.
Microstep configuration
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhmi-ASj1ezETcj_4Cavc_ZtnVUlbUL8kzU4VJ9fwpEeZWL-paGUYbK79bQN1IGGiWFVFy-Dez9AVxSzt20OfSqLVMgpL17t-FpISTZc3d3DAfMIPO7-ip4nzGFBNqcsObHbWoPy24pWfUK/s400/IMG_20160327_155435.jpg) |
Figure 7: connecting the X, Y and Z stepper motor |
Extruder motor
Motor drivers
My Prusa I2 has motor drivers based on the A4988 chip. This board has a maximum microstepping resolution of 1/16-step.
For this printer I bought stepper drivers based on the DRV8825 chip. That has a maximum microstepping resolution of 1/32-step.
Note that the X, Y and Z stepper driver boards have to be mounted with the potentiometer on the left for the A4988 based boards, and on the right for the DRV8825 based boards.
The board for the extruder has to be paced 180 degrees rotated on the RAMPS FD.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhwivXjbm4ISuPX14cw6pT-KySuuy7ZaHcoQYAtEyNd7UZ2v2wJW5T7p4B1OYLev-uedjdJd3tvFB2o6d02imu-ueRdLVnyj_ItPeIY3iYrahTwZh4QsnU6w97xOpt9grnEQKR0NVrQZsqo/s400/IMG-20160320-WA0000.jpg) |
Figure 8: steppers divers based on DRV8825 chip |
Cooling
All extruder outputs (D9, D10 and D11) on the RAMPS FD are inverted in the firmware. That is why you cannot use them easily for a cooling fan. Use the extra MOSFET outputs (D12 and D2 for that purpose).
More information in these posts:
http://forums.reprap.org/read.php?267,459760
https://github.com/repetier/Repetier-Firmware/issues/277
Hotend fan
The hotend always needs to be on. So connect it PSU.
Object fan
The object fan needs to be on for materials like PLA, except for the first layer. This fan needs to be managed be the controller board.
http://reprap.org/wiki/G-code#M106:_Fan_On
M106 Set Fan Speed to S and start <PWM Value[S 0-255]>
M107 Turn Fan off
firmware:
#define FAN_BOARD_PIN -1
Fan for the controller board
For now I don't have a fan for the controller board itself. The motor driver board get hot, I have read that this is normal.
Heating
Hotend
The hotend is connected to D9
Heated bed
I have an solid state relais (opto 22) in my salvaged parts box which I plan to use for the heated bed. Not yet connected.