# 3.3v PWM to 5v PWM to 12v PWM

**URL:** <https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722>\
**Category:** Uncategorized\
**Created:** [10 April 2022 23:57 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722 "2022-04-10T23:57:34Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![geoff198640](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@geoff198640](https://forum.core-electronics.com.au/u/geoff198640)\
**Post date:** [10 April 2022 23:57 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/1 "2022-04-10T23:57:34Z")

</div>

Hi.  
In the end, I want a 12v PWM signal to drive a Solid State Relay (SSR) , which will drive a pump motor and or a fan. Giving the pump or fan a variable speed depending on the signal.

But Arduino zero (fast 48MHz and 10bit) only outputs 3.3v PWM signal.

Someone suggested to look at a logic level converter but the way I understood it was that it only deals with HIGH and LOW?

Is there a product that can do what I want?

Do I indeed NEED a 12v PWM signal to operate a 12v device? Will a 3.3v PWM at 100% duty cycle run the 12v motor at full speed???..

---

<div class="post-metadata">

**Author:** ![Graham](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/graham/32/54_2.png) [@Graham](https://forum.core-electronics.com.au/u/Graham)\
**Post date:** [11 April 2022 00:24 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/2 "2022-04-11T00:24:04Z")

</div>

Hi Geoff,

Assuming the Fan/Pump motor is 12V DC, then you could use a simply MOSFET or a MOSFET module.

> **[N-Channel MOSFET 60V 30A (P30N06LE)](https://core-electronics.com.au/n-channel-mosfet-60v-30a.html)**
>
> If you’ve ever wondered how to control the headlight of a car from a microcontroller, a MOSFET is what you need. This is a very common MOSFET with very low on-resistance and a control voltage (aka gate voltage) that is compatible with any 3-5V...

> **[SparkFun MOSFET Power Control Kit](https://core-electronics.com.au/sparkfun-mosfet-power-control-kit.html)**
>
> This is the SparkFun MOSFET Power Control Kit, a breakout PTH soldering kit for for the RFP30N06LE N-Channel MOSFET. This kit is extremely simple to assemble with only 10 pins to solder. If you are looking for a little more control over projects that...

If instead, you are driving a 240V load then I can’t really provide advice on that for safety reasons (and in Australia, you need a license to work on gear at that voltage). Though it’s worth noting that PWM would not be used and instead phase angle would be. SSR ought to be fine it turning on/off every X minutes.

---

<div class="post-metadata">

**Author:** ![geoff198640](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@geoff198640](https://forum.core-electronics.com.au/u/geoff198640)\
**Post date:** [11 April 2022 00:52 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/3 "2022-04-11T00:52:57Z")

</div>

Thanks dude!

Re: SparkFun MOSFET Power Control Kit,

So on on the “device” end is 2 terminals having 12v PWM?

And on the “system” end /input side is 3 terminals …1 where I put my Arduino 3.3v pwm signal?

So there’s 2 terminals left here on the system end. I assume that one is for 12v+ and the other is for  
12v ground?

Which is which?

Thanks a million  
Geoff

---

<div class="post-metadata">

**Author:** ![Trent5487676](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/trent5487676/32/4583_2.png) [@Trent5487676](https://forum.core-electronics.com.au/u/Trent5487676)\
**Post date:** [11 April 2022 02:01 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/4 "2022-04-11T02:01:55Z")

</div>

Hi Geoff,

That MOSFET power control kit will allow you to use a low voltage, low current signal to switch a higher voltage higher current signal.

On the 3 pin input side you should connect:

- Ground to terminal -
- 12V DC to terminal +
- PWM output of Arduino to terminal C

On the 2 pin output side connect:

- terminal - to ground of motor/fan
- terminal + to power of motor/fan

EDIT: Can you give us some more specifications about your motor/fan combo? You could also do this using a motor driver module but we don’t yet know what your motor current draw is so we’re making a lot of assumptions.

---

<div class="post-metadata">

**Author:** ![Doug27394](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/doug27394/32/7961_2.png) [@Doug27394](https://forum.core-electronics.com.au/u/Doug27394)\
**Post date:** [11 April 2022 02:04 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/5 "2022-04-11T02:04:04Z")

</div>

Hey Geoff,

I believe it’s setup as a switch ([https://www.electrical4u.com/mosfet-as-a-switch/](https://www.electrical4u.com/mosfet-as-a-switch/)) on the “system” side, you connect 3.3v power to “+”, ground to “-”, and the PWM signal goes to C. The “+” is like a reference voltage for the signal coming in on “C”. on the other side it behaves like a switch in your 12V circuit.

I see that the spark fun item is out of stock. This might be an alternative [https://core-electronics.com.au/freetronics-n-mosfet-driver-output-module.html](https://core-electronics.com.au/freetronics-n-mosfet-driver-output-module.html) it’s got a good guide here [NDRIVE QuickStart Guide | Freetronics](https://www.freetronics.com.au/pages/ndrive-quickstart-guide)

Hope that helps,  
Doug

---

<div class="post-metadata">

**Author:** ![geoff198640](https://avatars.discourse-cdn.com/v4/letter/g/b77776/32.png) [@geoff198640](https://forum.core-electronics.com.au/u/geoff198640)\
**Post date:** [11 April 2022 02:28 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/6 "2022-04-11T02:28:00Z")

</div>

Sorry for the confusion. Please see attached diagram.

Also I have clipped this clip here:

> **[✂️ pwm ssr](https://www.youtube.com/clip/UgkxrGIlKQJGvv57eCCTkqlzRFkXVgM-Auz4)**
>
> 60 seconds · Clipped by Geoff Kelland · Original video "Using Solid State Relays on Cars" by Veloce Publishing

##paste this url into your browser ##

I am starting to think that I don’t need the magic box after all…

 ![Screenshot_2022-04-11-10-04-34-434_com.miui.gallery](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/1/18a4713d365f2d4ff704655c0272d3bb495e7597.jpeg)

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [11 April 2022 02:57 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/7 "2022-04-11T02:57:55Z")

</div>

Hi Geoff,

It very much depends on what SSR you have, do you have a link to the one you purchased?  
If the operating voltage is \>3.3V you’ll be ok.

An SSR might be overkill if you’re only driving a small fan, _note_: some SSR’s require a zero crossing point (0V) and hence require an AC signal!

Liam

---

<div class="post-metadata">

**Author:** ![Robert93820](https://avatars.discourse-cdn.com/v4/letter/r/ac91a4/32.png) [@Robert93820](https://forum.core-electronics.com.au/u/Robert93820)\
**Post date:** [11 April 2022 03:16 UTC](https://forum.core-electronics.com.au/t/3-3v-pwm-to-5v-pwm-to-12v-pwm/13722/8 "2022-04-11T03:16:17Z")

</div>

Hi Geoff  
Please take note of above posts re SSR etc. Although “switch at any time” SSRs are available they are mostly “Zero crossing switch” and are unsuitable for DC as DC never gets to “Zero” they will never switch thus are only suitable for AC. Refer Liam’s reply.

As Graham says PWM is not normal used for AC especially 240V.

> [@Liam](#):
>
> An SSR might be overkill if you’re only driving a small fan

Very true,  
If your fan is DC This simple circuit or similar is about all you need. This is the sort of thing Graham and Trent are referring to I think.  
 ![image](https://canada1.discourse-cdn.com/flex028/uploads/core_electronics/original/2X/a/ad4cdea88a9e850cc8a2e3dded16007c74c81186.png)

> [@geoff198640](#):
>
> Someone suggested to look at a logic level converter but the way I understood it was that it only deals with HIGH and LOW?

That is what PWM is. High and LOW. Never goes negative so is not AC.

> [@geoff198640](#):
>
> But Arduino zero (fast 48MHz and 10bit) only outputs 3.3v PWM signal

I very much doubt the PWM signal is anything like 48MHz. More like 1 or 2 kHz. I haven’t looked but I think the 48MHz is more like the board clock signal.

> [@geoff198640](#):
>
> only outputs 3.3v PWM signal.

I believe that little switch board as in the above circuit responds OK to 3.3V PWM. I haven’t tried it at that level so I could not be absolutely sure. The documentation says so so you could believe that it does…  
Cheers Bob
