Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
connect_sevenswitch_to_ramps [2016/05/02 21:41] – created Traumflug | connect_sevenswitch_to_ramps [2023/10/30 23:53] (current) – external edit (unknown user) | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Connect a SevenSwitch to a RAMPS ====== | ====== Connect a SevenSwitch to a RAMPS ====== | ||
- | One of the oddities of the RepRap community is the heated bed connector | + | One of the oddities of the RepRap community is the heated bed circuitry |
- | Anyways. One of the solutions to work around this situation is to use a [[SevenSwitch]] to do the hard work. Here we show how to connect this switch to a RAMPS and how to tweak the popular firmwares to work with the new switch instead of the old one. | + | Anyways. One of the solutions to work around this situation is to use a [[http:// |
+ | |||
+ | ===== Finding a Signal Pin ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | First step is to find an appropriate signal pin on the RAMPS. " | ||
+ | |||
+ | Some vendors solder in pins there already, others don't. If there are none, you have to do this yourself. Standard 0.1" spaced pins are fine. Another option is to solder the signal wire directly into the board. | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | There are 4 signal pins available for interfacing in the servo section: D4, D5, D6 and D11. Each of them works equally well. Connecting more than one SevenSwitch is possible, too. | ||
+ | |||
+ | ===== Wiring ===== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | The above picture shows how things get together: | ||
+ | |||
+ | * Thin lines are signal wires which draw negligible current, so one can use thin wires. Typically used wire is 0.14\_mm² or AWG\_35. | ||
+ | * The green line is the signal wire. Voltage on this one turns the switch on and off. | ||
+ | * Thick lines mean wires carrying substantial current, so it needs thick wires. Required thickness depends on the current going to the heated bed; using a 1.5\_mm² (AWG\_15) wire is almost always sufficient. For a little extra bed power, many use 2.5\_mm (AWG\_11) size. | ||
+ | * Dismantling an old power cable meant to connect a 110/ | ||
+ | * As well, chopping the cable from any old electrical device that connects to a wall outlet is a cheap way to obtain such wires. | ||
+ | * Power supply doesn' | ||
+ | * Polarisation of these two wires going to the heated bed doesn' | ||
+ | * Do not connect the heated bed, yet. Without the bed connected there are no currents flowing, so nothing can overheat. The green LED will show wether the switch is working. | ||
+ | |||
+ | ===== Firmware Modification ===== | ||
+ | |||
+ | One obvious task left is to tell the firmware which pin to use to switch the heated bed. How to do this depends a bit on the used firmware. | ||
+ | |||
+ | There are several pin naming schemes in use. This table shows different names for the same pin. Teacup Firmware allows two names, each of them works equally well: | ||
+ | |||
+ | ^RAMPS ^ [[https:// | ||
+ | ^ D4| | ||
+ | ^ D5| | ||
+ | ^ D6| | ||
+ | ^ | ||
+ | |||
+ | ==== Teacup ==== | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | Launch Configtool, go to the board panel, then to the heater panel, then mark the line for the bed and click on //Modify//. Select the new pin, click on //Save//, build and upload the firmware. | ||
+ | |||
+ | ==== Marlin ==== | ||
+ | |||
+ | For the actual code, depending on which version of RAMPS you have there will be a '' | ||
+ | #define HEATER_BED_PIN | ||
+ | We will use pin D4 for the new SevenSwitch. This will need to be changed to: | ||
+ | #define HEATER_BED_PIN | ||
+ | Or whatever pin you decide to use. Once this is done, from within the Arduino software, go to the corresponding pins file and confirm the changes. After that you can upload the firmware and proceed to testing. | ||
+ | ===== Why not ... ===== | ||
+ | |||
+ | Some people tend to try connecting a SevenSwitch a different way. Let's elaborate on this. | ||
+ | |||
+ | ==== ... using D8, the original heated bed connector? ==== | ||
+ | |||
+ | Using D8 is a possible, but poor choice for several reasons: | ||
+ | |||
+ | * D8 is switched by a high current MOSFET, which is like using a truck for transporting a single cookie. There' | ||
+ | * Due to being behind a MOSFET, signal on D8 is inverted. Without firmware modification, | ||
+ | * There are better uses for this output, e.g. for driving a fan, lighting, heaters, whatever draws less than 10\_amps and has no coil inside. | ||
+ | * If the RAMPS is operated with 24\_volts, it'll destroy the SevenSwitch' |
connect_sevenswitch_to_ramps.1462218074.txt.gz · Last modified: 2018/05/27 16:10 (external edit)