Microcontroller I/O Pin voltage Boost

Thread Starter

Obaoba

Joined Oct 24, 2024
4
I have a PWM signal on stm32 that I want to boost from 1.6V to 12V . I've researched that I can use a voltage level shifter(LOW to HIGH) , but as of now I have a transistor or a FET that I could use possibly . The Gpiox pin voltage is 3.3V Tolerant and on a 50% duty cycle I get 1.6V . I plan to scope it the signal outputting my desired voltage , not sure how to go about it in terms of what resistor to use , what to look out for to not damage the chip .
 

Sensacell

Joined Jun 19, 2012
3,769
What is the frequency and purpose of this PWM signal?
A transistor can do the job, but note that the signal will be inverted.
 

Thread Starter

Obaoba

Joined Oct 24, 2024
4

Attachments

BobTPH

Joined Jun 5, 2013
11,466
You are looking at this all wrong. You do not need to convert a 1.6V output to a 12V output.

What you need is to control a 12V motor with a signal that is sometimes 0V and other times 3.3V at other times. You want the motor powered when the signal is 3.3V and not powered when the signal is 0V.

The simple way to do this is to connect the + lead of the motor to 12V, connect the - lead to the collector the drain of an N-channel logic level MOSFET, connect the source to ground and connect the gate to the signal. That is known as a low side switch.

The gate driver that @Ian0 suggested is a low side switch that can provide a much higher current to switch the MOSFET more quickly. It may or may not be needed depending on the frequency of the PWM signal and the current you need to switch.
 

WBahn

Joined Mar 31, 2012
32,707
The purpose is to send a PWM signal of(12V) to wake up an external motor
What does it mean to "wake up an external motor"?

Are you simply turning it on and off with your microcontroller?

Are you controlling the speed of it?

Are you enabling some kind of control circuit?
 

Thread Starter

Obaoba

Joined Oct 24, 2024
4
What does it mean to "wake up an external motor"?

Are you simply turning it on and off with your microcontroller?

Are you controlling the speed of it?

Are you enabling some kind of control circuit?
It will be powered by a power supply of 12V , the PWM signal is for communication purposes with the Motor . Most cars use CAN for communication , there are a few that use PWM but i'm sending this signal from my microcontroller and I a need to boost that up to 12V since it's IO pins Max tolerance are 3.3V.
 
Top