Hi,
I am using a NPN type transistor to create a inverted version of a PWM signal, i am using a 2n2222a with base connected to the PWM output of a PIC though a resistor (1K).
The emitter to GND and a 4.7k resistor from the collector to 5V and the inverted output will be taken from between the collector and resistor. BUT i also need a buffered version of the original signal, is it possible to get this from the one transistor??
I am modifying my design for a motor controller a bit, i used to use one PWM signal on the enable line of the H-Brisge IC the turn the bridge on/off quickly creating the average voltage over the motors to control speed.
But no i am going to keep the enable high, and put PWM signals on the input pins (2) so i can use a 50% duty to have 0 speed and then control speed and direction through the one 10-bit PWM duty register. It uses more current but should allow much better control over speed!
Regards,
- Martyn
I am using a NPN type transistor to create a inverted version of a PWM signal, i am using a 2n2222a with base connected to the PWM output of a PIC though a resistor (1K).
The emitter to GND and a 4.7k resistor from the collector to 5V and the inverted output will be taken from between the collector and resistor. BUT i also need a buffered version of the original signal, is it possible to get this from the one transistor??
I am modifying my design for a motor controller a bit, i used to use one PWM signal on the enable line of the H-Brisge IC the turn the bridge on/off quickly creating the average voltage over the motors to control speed.
But no i am going to keep the enable high, and put PWM signals on the input pins (2) so i can use a 50% duty to have 0 speed and then control speed and direction through the one 10-bit PWM duty register. It uses more current but should allow much better control over speed!
Regards,
- Martyn