Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

PWM channel redirector

Status
Not open for further replies.

max_imum2000

New Member
well, i posted about an h-bridge befoe, finally i made it work very good.
actually my very first (didnt post it here) circuit worked fine , the problem is that i gut some 2n3904 transistors and half of them was bad. right from the store and they are bad !!.
after filtering what is good and whats bad, everything worked fine
thanks to all of you for your previous help.

now i am trying to feed the circuit with a PWM
as i am using PIC16F628A , which have 1 pwm channle and can only be outputed to one exact pin.
so i thought of 2 things

1. to take the pwm output pin and feed it to another pin, then redirect the signal to other pin , but i am afriad something can go wrong in timing, beside i will tie up the pic in that job and i will lose the benfit of build in PWM.

2. to put a nand gate IC (4011) to do the job (attached picture), so i gave it a try .
the motor runs very strangly and it is obvios that i have 2 states , FWD and RWD, so i have to power the ic from another pic pin.

anyway i need to hear your ideas and thougts about the second solution or anyother solution that i maybe missing here.

PS ( i cant use a dedicated PWM ic)

thanks a lot
 

Attachments

  • 4011.gif
    4011.gif
    6.4 KB · Views: 393
very good!

I inspected your schematic carefully, and it is very fine, actually this is how most of people do to feed the generated pwm to a multitude of devices..

Another approach - while a litle more complicated - is to make a similar pwm distributer, but with an independent output for each transistor of the H bridge, this will allow you also to break the motor (depending on the application..)

In case you don't know, giving the same voltage to the 2 wires of a DC motor will have a breaking effect.

so here a schematic i actually used in one of my university project to control DC motors,

on the schematic, the control is done by the pins P1 and P2:
Giving 00 as input mean the motor is freewheeling
Giving 10 as input mean turn right
Giving 01 as input mean turn left
Giving 11 as input mean break


never mind the additional transistors, those where because i was driving 15A transistors, that required 100mA base current that the nand gates could not deliver....
 

Attachments

  • IKA-MC09.gif
    IKA-MC09.gif
    20.8 KB · Views: 318
Status
Not open for further replies.

Latest threads

New Articles From Microcontroller Tips

Back
Top