Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Pic 16f876a Pure Sinewave inverter

Status
Not open for further replies.

Californiajoe

Full Member level 3
Full Member level 3
Joined
Aug 12, 2010
Messages
167
Helped
35
Reputation
70
Reaction score
35
Trophy points
1,308
Location
Slovenia
Activity points
2,124
It's nice to see someone finished inverter. As keibbow said it's usefull to follow this thread from the begining becouse everything is described many times. It's just important to move step by step. Ofcouse base knowledge of the electronic is required.
And don't forget: author of this project is Mr.Taner, he has all credits for this inverter project.

Regards, Vlado
 

picgak

Advanced Member level 1
Advanced Member level 1
Joined
Oct 13, 2011
Messages
407
Helped
101
Reputation
202
Reaction score
102
Trophy points
1,323
Activity points
3,177
Hello everyone today i finished working on my inverter and it works fine, the problem of going off after 6second has been resolved by increasing the current transformer voltage...... thanks for the help render to me by California Joe and pic gak for helping me to complete this inverter.

congratulation keibbow on successful completion of your project. Did you make any modifications to the circuit if so please post it so that it will be of much help to newbies. The credit goes to Mr.Taner the author of this project.
regards ani
 

coolet

Newbie level 3
Newbie level 3
Joined
May 14, 2012
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,291
where can i find the main board? i have attach sprint layout version

INVERTER.JPG
 

coolet

Newbie level 3
Newbie level 3
Joined
May 14, 2012
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,291
the circuit is from Californiajoe
 

Californiajoe

Full Member level 3
Full Member level 3
Joined
Aug 12, 2010
Messages
167
Helped
35
Reputation
70
Reaction score
35
Trophy points
1,308
Location
Slovenia
Activity points
2,124
You have two boards: inverter output board and inverter brain board (or something like this).

Regards
 

coolet

Newbie level 3
Newbie level 3
Joined
May 14, 2012
Messages
3
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Activity points
1,291
Hi Californiajoe,

Do you still have it in pdf format so that i can transfer it in sprint layout?
 

Californiajoe

Full Member level 3
Full Member level 3
Joined
Aug 12, 2010
Messages
167
Helped
35
Reputation
70
Reaction score
35
Trophy points
1,308
Location
Slovenia
Activity points
2,124
You have two boards: inverter output board and inverter brain board (or something like this). Output board desighn is modified a little bit, but looks better then my made a year ago.
I would suggest one important thing here, it's already described somewhere in this thread, but one more time would not harm.
I noticed in my inverter overheating of the capacitors num. C18 and C23, I solve this problem with exchanging conections J2 and J3 with diodes conected like D6 and D7.

Regards
 

keibbow

Banned
Member level 3
Joined
Dec 10, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
0
Thanks pic gak , i didn't make any modification while building my inverter,all i know is i used two different source code which i finally reprogram the pic with another code ,the first code also work but i need the press the reset switch before it comes on but the second code works as soon as i power the inverter and that is the code uploaded by california joe ...
 

keibbow

Banned
Member level 3
Joined
Dec 10, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
0
Thanks for the encouragement you give to me while doing my project kabiru......
 

unhappy

Member level 3
Member level 3
Joined
Jul 25, 2005
Messages
55
Helped
8
Reputation
16
Reaction score
8
Trophy points
1,288
Location
BANUR(Pb) Near Chandigarh,India
Activity points
1,667
Thanks pic gak , i didn't make any modification while building my inverter,all i know is i used two different source code which i finally reprogram the pic with another code ,the first code also work but i need the press the reset switch before it comes on but the second code works as soon as i power the inverter and that is the code uploaded by california joe ...

Congrats dear on succesful completion of inverter project. So, which is the hex file & Pcb layout and the final scheme I should use to finally try it out
Thanks & regards to all contributors of this thread and forum as a whole
 

keibbow

Banned
Member level 3
Joined
Dec 10, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
0
Hello fellows Freinds, i am not to good in microcontroller programing,but i want any body who understand programing language in c to analyse the code of this inverter for me not all but some part of the code which i dont understand ?
 

picgak

Advanced Member level 1
Advanced Member level 1
Joined
Oct 13, 2011
Messages
407
Helped
101
Reputation
202
Reaction score
102
Trophy points
1,323
Activity points
3,177

keibbow

Banned
Member level 3
Joined
Dec 10, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
0
Hello friends,i want someone to explain the following code for me please

const long sine_wave[32] = {81,162,241,318,392,462,527,588,642,691,733,768,795, // sine wave constants;
815,827,831,827,815,795,768,733,691,642,588,527,462,
392,318,241,162,81,0};
const int volt_sine_ref[32] = {0,5,9,14,18,23,27,31,34,37,40,42,44,46,47,48,48,
48,47,46,44,42,40,37,34,31,27,23,18,14,9,5}; ....now this is LUT for sine pwm then after that this follows...//const int delta_v_h[16] = {7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2};
//const int delta_v_l[16] = {3,3,3,3,3,3,3,2,2,2,2,1,1,1,0,0};
const int delta_corr[32] = {3,6,9,12,15,18,20,23,25,27,28,30,31,31,32,32,32,31,
31,30,28,27,25,23,20,18,15,12,9,6,3,0}; please what this second code means and how did the ADC control the output voltage?
 

picgak

Advanced Member level 1
Advanced Member level 1
Joined
Oct 13, 2011
Messages
407
Helped
101
Reputation
202
Reaction score
102
Trophy points
1,323
Activity points
3,177
Hi keibbow,
Ok let us try to explain the code. First an information for you, i am not an expert in C. I use JAL the best open source prog language with free compiler. But i will give this a try and i invite all the experts in c to correct me if i am wrong at any point


Hello friends,i want someone to explain the following code for me please

const long sine_wave[32] = {81,162,241,318,392,462,527,588,642,691,733,768,795, // sine wave constants;
815,827,831,827,815,795,768,733,691,642,588,527,462,
392,318,241,162,81,0};

The above one is the sinewave lookup table containining sinewave weighted pulses from which on every interrupt a value is pulled out for output .The above table is set for half cycle.

const int volt_sine_ref[32] = {0,5,9,14,18,23,27,31,34,37,40,42,44,46,47,48,48,
48,47,46,44,42,40,37,34,31,27,23,18,14,9,5}; ....now this is LUT for sine pwm then after that this follows...//const int delta_v_h[16] = {7,7,6,6,6,5,5,5,4,4,4,3,3,3,2,2};

The above one is were the voltage feedback from the output is compared.

//const int delta_v_l[16] = {3,3,3,3,3,3,3,2,2,2,2,1,1,1,0,0};
const int delta_corr[32] = {3,6,9,12,15,18,20,23,25,27,28,30,31,31,32,32,32,31,
31,30,28,27,25,23,20,18,15,12,9,6,3,0}; please what this second code means and how did the ADC control the output voltage?

The above table is not used. Hope this helped you. I am waiting for your next question. Dont forget to press the helped me button if it helped you.

Regards ani
 
Last edited:

keibbow

Banned
Member level 3
Joined
Dec 10, 2010
Messages
60
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,288
Activity points
0
So if they are not useful why the code?
 

picgak

Advanced Member level 1
Advanced Member level 1
Joined
Oct 13, 2011
Messages
407
Helped
101
Reputation
202
Reaction score
102
Trophy points
1,323
Activity points
3,177
Hi keibbow,
Mr Taner who is the author of this code might have had some sort of sine wave correction in mind in the last moment he left it out(The // means that portion of code is not used)
regards ani
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top