Please be more specific. You need to create another 12V from the 5V with your PWM signal? Or, do you just need a 12V version of your 1000Hz waveform? If the answer is the later, then just run your 5V 1000Hz signal to the base of a transistor and tie the collector up to+12 (level shifter)petesmc said:Hi,
I'm using PWM output of a PIC microcontroller, which outputs at 5V. However, I need a 12V output. The output is roughly at 1000Hz. I've no idea on how to do this. Any help is appreciated!
Forgot to mention, I have a 5V and a 12V rail available.
You will need to put a resistor in the collector tied up to 12V then take your output from the collector. This configuration uses the trans. as a switch whereby the transistor pulls the output to ground or lets it get pulled up to 12V. With that said, it will not work if this 12V signal has to drive any appreciable current (but it could drive high impedance inputs).petesmc said:It was the latter, I just need a 12V version of my 5V, then forgetting about the 5V version.
So I just use a NPN transistor, with collector directly to 12V? And where is the output, the emitter?
There are only minut amount of current being drawn, so I don't have to worry about the other method.
Your emitter should go to 0V. I don't know why simulator thinks it will blow.petesmc said:I tried this using crocodile clips simulation and it doesn't seem to work. Check if I'm doing something wrong. Btw, if i tie the emitter to 0V then it tells me the transistor will blow.
Image is attached..