<blockquote>
  <p>How does Marlin know that the heated bed pins are controlling a relay now instead of a bed directly, and therefore should limit their current output?</p>
</blockquote>

<p>Marlin does not (need to) know this. Simply put, all Marlin does is switch on/off the <em>voltage</em> at the heated bed output. The amount of current that will flow is a function of the voltage and the device connected. If you connect a heated bed to a 12&nbsp;V voltage, a high current will flow. If you connect your relay to 12&nbsp;V, only a small current will flow.</p>

<blockquote>
  <p>In other words- I am worried that if I just drop in the relay, it will burn up since the board still thinks it needs to supply high current to the bed.</p>
</blockquote>

<p>You do not need to worry about this. Your question is essentially equivalent to this: "<em>if I replace my 100W incandescent lightbulb with a 1W LED one, do I need to replace the light switch in the wall?</em>" The switch (i.e., your printer board/Marlin) does not care what load is connected to it, so long as it does not exceed the <em>maximum</em> rated current.</p>

CC BY-SA 4.0
2019-11-08T23:19:50.363Z
haha indeed. thanks for clarifying. also if lightswitches had microcontrollers and thousands of lines of (optional) code I would probably be equally careful about not hooking them up wrong too.
cds333
CC BY-SA 4.0
2019-11-09T00:04:21.377Z
Doesn't the firmware use PID tuning to control the bed temperature though? Would that not have an effect on the relay if it wasn't set up just right?
cds333
CC BY-SA 4.0
2019-11-11T11:56:49.807Z
@cds333 It does, but that's the case irrespective of how you drive each heated bed. You would definitely wan't to re-PID-tune after the change.
towe
CC BY-SA 4.0
2019-11-08T06:47:10.113Z
2019-11-08T08:54:51.157Z
2019-11-08T08:54:51.157Z
Tom van der Zanden
<p>There are two current parameters which you are looking at in your instructions for the solid state relay. The first one (the 25mA) is for the <em>control</em> circuit. This is how much amperage the device itself will draw when in operation. The second is for the <em>load</em> circuit. This is the max amperage which can pass through the device.</p>

<p>Your <a href="https://pickercomponents.com/pdf/Relays/PCS15.pdf" rel="nofollow noreferrer">instruction sheet</a> shows the device having the ability to work at 10A, 15A, 20A, 25A, or 40A. These are different ratings for the same style of device. When you purchase the device, you'd need to specify which amperage rating you'd want your device to be at. They use the same spec sheet for all five flavors, because they are basically the same thing with the one exception, which is the amp rating.</p>

CC BY-SA 4.0
2019-11-08T06:21:26.560Z
It is the 40A version, but I understand the operation of the load side of the relay. What I need to know is do I have to do anything in Marlin to inform the board that it is controlling a relay instead of the stock DC-powered heated bed?
cds333
CC BY-SA 4.0
2019-11-08T16:34:16.220Z
@cds - Your question doesn't really specify that, but no, you don't need to tell Marlin anything. It is just an internal switch within the code which tells the relay to turn on. It is providing power to the relay, just as though it would provide power to the heating element. It can provide up to enough power to power a DC bed, but the relay will only use what it needs, which is the 25mA, to energize the circuit.
Pᴀᴜʟsᴛᴇʀ2
CC BY-SA 4.0
2019-11-08T00:44:26.170Z
2019-11-08T16:30:46.853Z
2019-11-08T16:30:46.853Z
Pᴀᴜʟsᴛᴇʀ2
<p>According to the instructions I have read, you use the same output on the printers mainboard to control a 110&nbsp;V heated bed with a solid state relay, as you do to power the 12/24&nbsp;V heated bed that comes with the printer. </p>

<p>The relay's datasheet states that its max input current is 25&nbsp;mA, obviously a 12/24&nbsp;V heated bed would draw a lot more than that.</p>

<p>How does Marlin know that the heated bed pins are controlling a relay now instead of a bed directly, and therefore should limit their current output?</p>

<p>In other words: I am worried that if I just drop in the relay, it will burn up since the board still thinks it needs to supply high current to the bed.</p>

CC BY-SA 4.0
2019-11-07T23:49:54.460Z
I would bet the low figure you are seeing is the relay's draw (how much power it takes to energize it) and not the amount of power going through it to power the bed. There's a separate rating for that.
Pᴀᴜʟsᴛᴇʀ2
CC BY-SA 4.0
2019-11-08T00:39:34.650Z
@Paulster2 Ok I hooked it up to a DC power supply and limited it to 25mA, it draws around 17mA at 24V with nothing else hooked up to the circuit.
cds333
CC BY-SA 4.0
2019-11-08T00:43:47.103Z
@Paulster2 http://pickercomponents.com/pdf/Relays/PCS15.pdf It definitely says "max input current", and the word draw is not present unfortunately. Perhaps you can make better sense of this.
cds333
<heated-bed><wiring>
How to switch firmware from 12 V heated bed to 110 V SSR heated bed?
cds333
# How to switch firmware from 12 V heated bed to 110 V SSR heated bed?

(Asked by: username_0 on 2019-11-07)

According to the instructions I have read, you use the same output on the printers mainboard to control a 110 V heated bed with a solid state relay, as you do to power the 12/24 V heated bed that comes with the printer.

The relay's datasheet states that its max input current is 25 mA, obviously a 12/24 V heated bed would draw a lot more than that.

How does Marlin know that the heated bed pins are controlling a relay now instead of a bed directly, and therefore should limit their current output?

In other words: I am worried that if I just drop in the relay, it will burn up since the board still thinks it needs to supply high current to the bed.

**Tags:** heated-bed, wiring
> **Comments:**
> **username_1**: I would bet the low figure you are seeing is the relay's draw (how much power it takes to energize it) and not the amount of power going through it to power the bed. There's a separate rating for that.  
> **username_0**: @Paulster2 Ok I hooked it up to a DC power supply and limited it to 25mA, it draws around 17mA at 24V with nothing else hooked up to the circuit.  
> **username_0**: @Paulster2 http://pickercomponents.com/pdf/Relays/PCS15.pdf It definitely says "max input current", and the word draw is not present unfortunately. Perhaps you can make better sense of this.  

---

## 2 answers

### Answer by username_2 on 2019-11-08. Score: 1

> How does Marlin know that the heated bed pins are controlling a relay now instead of a bed directly, and therefore should limit their current output?

Marlin does not (need to) know this. Simply put, all Marlin does is switch on/off the *voltage* at the heated bed output. The amount of current that will flow is a function of the voltage and the device connected. If you connect a heated bed to a 12 V voltage, a high current will flow. If you connect your relay to 12 V, only a small current will flow.

> In other words- I am worried that if I just drop in the relay, it will burn up since the board still thinks it needs to supply high current to the bed.

You do not need to worry about this. Your question is essentially equivalent to this: "*if I replace my 100W incandescent lightbulb with a 1W LED one, do I need to replace the light switch in the wall?*" The switch (i.e., your printer board/Marlin) does not care what load is connected to it, so long as it does not exceed the *maximum* rated current.

> **Comments:**
> **username_0**: haha indeed. thanks for clarifying. also if lightswitches had microcontrollers and thousands of lines of (optional) code I would probably be equally careful about not hooking them up wrong too.  
> **username_0**: Doesn't the firmware use PID tuning to control the bed temperature though? Would that not have an effect on the relay if it wasn't set up just right?  
> **username_3**: @cds333 It does, but that's the case irrespective of how you drive each heated bed. You would definitely wan't to re-PID-tune after the change.  

---

### Answer by username_1 on 2019-11-08. Score: 0

There are two current parameters which you are looking at in your instructions for the solid state relay. The first one (the 25mA) is for the *control* circuit. This is how much amperage the device itself will draw when in operation. The second is for the *load* circuit. This is the max amperage which can pass through the device.

Your [instruction sheet](https://pickercomponents.com/pdf/Relays/PCS15.pdf) shows the device having the ability to work at 10A, 15A, 20A, 25A, or 40A. These are different ratings for the same style of device. When you purchase the device, you'd need to specify which amperage rating you'd want your device to be at. They use the same spec sheet for all five flavors, because they are basically the same thing with the one exception, which is the amp rating.

> **Comments:**
> **username_0**: It is the 40A version, but I understand the operation of the load side of the relay. What I need to know is do I have to do anything in Marlin to inform the board that it is controlling a relay instead of the stock DC-powered heated bed?  
> **username_1**: @cds - Your question doesn't really specify that, but no, you don't need to tell Marlin anything. It is just an internal switch within the code which tells the relay to turn on. It is providing power to the relay, just as though it would provide power to the heating element. It can provide up to enough power to power a DC bed, but the relay will only use what it needs, which is the 25mA, to energize the circuit.  

---

