[SOLVED] pic16f72 sinewave inverter with asm codes. not working.

Status
Not open for further replies.
@MRahman
thanks for the hex file of 16F72 inverter
what would be the winding turns and size for the L part of the filter?
regards
Tipu
 

Dear Tipu,
I could not figure it out exactly but in the attachment document you may find much helpful tip.
Best regards,
M Rahman.
 

Attachments

  • L.doc
    151.5 KB · Views: 921
Thank you very much indeed for the L.doc file
And a very happy New Year to you also !!
regards
Tipu
 

Re: sine wave inverter schematics


sin(α+β)=sinαcosβ+cosαsinβ

(a¼)²=√a 100µH 10Ω sin(ωt+φ) L=dΨ/dt
 

@M Rahman
hello ! i have some questions about the circuit diagram.
1.Where exactly are the terminals PR1, PR2 and A connected?
2.Why LM317T regulator IC is given?This IC needs 3 volts more than the output voltage required in order to function properly so how are we going to get 15V input at all times from the battery in order to give a constant +12V output? is LM317T at all necessary?
3.The full connection diagram to output transformer is required
4.What do the pins 24 to 28 of 16f72 at connector J1 indicate through leds?
5.Where is the battery charger circuit?how the battery will be charged when mains is present?
thanks !
regards
Tipu
 
Reactions: MRahman

    MRahman

    Points: 2
    Helpful Answer Positive Rating
pr1,pr2 will connect at secondary (8volt). of transformer.
A means shunt voltage drop in negative bus bar.
At j1 5 leds and 1 switch are being use.
Leds will show status of inverter.
pin 28 is for low/bat.
pin 27=chg
pin 26=over load.
pin 25=mains
pin 24=inverter
pin 23=on/off switch with respect to negative .
asif
 
Reactions: MRahman

    MRahman

    Points: 2
    Helpful Answer Positive Rating
@asif bhai
thanks for the explanation
but how the battery charger works?or do we have to design a separate battery charger circuit which will operate through the spare relay contacts?
regards
Tipu
 

no,same transformer will perform as a battery charger.
Charging can be done through leakage inductance of transformer.
During charge osc1 and osc2 generate signal which switches lower transistors,and 8vac of transformer become near 13.8vdc for charging.(at this time osc3 and osc4 will in sleep mode).
we also can control charge rate with vr 2.
with best wishes,
Asif
 
Last edited:
You are correct Mr.Tipu, LM317 required when you gonna make system for more than 12v. For 12v system you suppose to omit U6 and shot circuit input to output.
Rest of the answer Mr.Asif already explain nicely.- Thanks.
 
Last edited:

I personally thank you MRahman for your contribution for the long needed solution for pic16f72 sine wave inverter, can you send the pcb layout on protues 7.6 ,and can i increase the supply voltage from 12v to 24volts two batteries.what is the total wattage the inverter can handle.
Thank you so much. and long life and good health to all members of Edaboard.
 

Hello Mr.Rehman,
Thanks for the advice,I have done all the circuit successfully and got the output but when I checked the pcb output(base1and base2) with oscilloscope,it's found square wave feeding to the switching circuit despite of sine wave.Are you sure it is a sine wave,have you checked the sine wave at oscillator output of pic16f72? Waiting for reply.
Thans,
 

Thanks Obilaor for your attention, the matter of fact is I use only protues 7.7 therefore I can not provide other than the posted one. To run under 24v battery, you need to change R47 = 6k8 instead of 2k7 rest as it is.
Best regards,
M Rahman.

---------- Post added at 04:33 ---------- Previous post was at 04:19 ----------

Dear Mr Wazir,
On my posted schematic there are no pin called base1 and base2, if you trying to say OSC1 and OSC2 then yes, you’ll get square wave only when the system is in charging mode.
Best regards,
M Rahman.
 
Last edited:
Dear M.Rehman,
Yes I mean to say the output of osc1 and osc2 which is meant to feed the switching circuit.May be that feeding to the low/high side of driver of switching cct or to the bases of transistors(also called B1&B2) feeding to the switching cct.the diagram you provided is a UPS cct.diagram,when the charging starts the output of oscillator goes in a sleeping mode(shut down),The output of osc1 and osc2 only starts when the grid supply goes off.
The osc1 and osc2 outputs a square wave while you claimed in your given gift a sine wave.I think you didn't prove this circuit practically and sent it in forum without varification.However I made it after wasting a lot of time and money and found it square wave inverter instead of sine wave inverter.Please take care in future regarding not to send any cct. without varification.
 

I simulate this circuit its sine wave.
one can not watch sine wave signal with CRO,without RC or LC filter.
In inverter mode all osc signal will be generate.
And when mains restore,osc3,osc4 will in sleep mode(stop signal generation).
osc3 and osc4 switches upper transistors and osc1 osc2 switches lower transistors in inverter mode.
And osc1,osc2 switching lower fets for charging.(when mains present)
 
Last edited:

Can you please explain the charging mechanism?

This is what I think:
In mains mode, the two high side MOSFETs are off. While low voltage AC is coming at the output of the transformer to which bridge is connected, both low side MOSFETs are turned on and off simultaneously. The pulse width determines the charging current. Thus the bridge then acts as a boost converter circuit, with the body diodes of the upper MOSFETs used as the diodes for the boost converter and low side MOSFETs pulsating at 4-8kHz.

Am I right?
 

    thannara123

    Points: 2
    Helpful Answer Positive Rating

Absolutely right! Though I am not sure about the pulse frequency during charging. Needs
clarification.

I was also wondering whether the code can be shared in some higher level language like "C".
That will make the whole project more interesting! I believe it is almost impossible to convert
hex code to C. Am I right?
 

I think it's not possible. Plus, if you convert to C, you lose a lot of the accuracy because of timing and stuff upon which you have a lot more control in assembly. Plus, the PWM isn't completely hardware based, which makes coding in C much more of a hassle and assembly better in this respect.
 

Dear all interested readers,

Charging oscillation has been using here 10Khz. And to know more find the attached file.
Best regards,
M Rahman
 

Attachments

  • Bridgeless Boost Circuits.doc
    111 KB · Views: 896
Reactions: Tahmid

    Tahmid

    Points: 2
    Helpful Answer Positive Rating
    V

    Points: 2
    Helpful Answer Positive Rating
Thanks to every member of this forum for their contributions.I want to know what happens during charging,osc1 and osc2 output signals.What is the frequency of the signal ,is it supplied to osc1 and osc2 at the same time ?
 

As far as I've understood, OSC1 and OSC2 have a frequency of 10kHz (as stated above by MRahman). They are applied to the low-side MOSFETs at the same time, forming a boost converter. The two high-side MOSFETs are only used for their body diodes during charging and are kept off.

Hope this helps.
Tahmid.
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…