Anyone ?sorry for my impatience, but i have reason for it
i need to get this thing work as soon as possible, because it's for my graduation and it slows me from doing other parts.
Anyone ?sorry for my impatience, but i have reason for it
i need to get this thing work as soon as possible, because it's for my graduation and it slows me from doing other parts.
Last edited by deimantas; - 20th May 2010 at 12:30.
Hi,
Have you disconnected the hardware from the PIC and verified with a scope or whatever that what you think is a software bug really is a software bug and not a problem with your hardware.
If PortB.2 doesn't go high then try something simple, connect a LED to it and do something like:Now, does it toggle? If not, double check the ADC and comparator settings in case you have some other functions multiplexed on PortB.2 (I haven't checked). If it still doesn't work, try another pin, perhaps you've fried PortB.2....Code:TRISB.2 = 0 'PortB.2 as output Main: PortB.2 = 1 Pause 100 PortB.2 = 0 Pause 100 Goto Main
Then, when you have that going, move on to the PWM part and get that going - THEN when you know that the software is doing what you think you want (which usually isn't what you really need....), go on and connect the bridge.
/Henrik.
I always thought the output of 7805 needed a capacitor as well? Anyway I would repace the IR2110 with something easier to use like UCC27322.
You are using just a regular motor right? Not a stepper motor? An oscilloscope will be a great tool to have here to see the pulses at each output.
To be honest, it's easier for me to look at a schematic, try to understand what is going on and then rebuild it as to how I understood it. Takes a little longer but I learn a lot more by thinking about it rather than just putting stuff together and hoping it works.
Why is the email address verification case sensitive?
Bookmarks