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.

ATS design using PIC16F877A [schematic and code]

Status
Not open for further replies.

Prince Vegeta

Member level 5
Member level 5
Joined
May 29, 2012
Messages
84
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Visit site
Activity points
2,011
Hi... I am working at an ATS project (automatic transfer switch) and this program and schematic I used in protesu ISIS kinda gives me some error.

the ATS have 2 input sources (350v peak each) and 1 output which is gonna be one of them.

now the main problem is that it shorts out the 2 sources!

the control program seems fine as I put some indication LEDs and tested it.

Also, it have a AD736 True RMS-to-DC converter which have 1v peak input and outputs a 1v max dc voltage that equals to the rms of the signal.

I tested this IC in proteus and seemed fine.

I will post the schematic and attach the isis project file and MikroC program.

the program is made to activate the source if the ADC value above 117 as I remember.. I used voltage division to achieve needed signals.

this is the schematic:


pic-jpeg.jpg

____

I hope that you try it and point out what's causing the short circuit (btw, my laptop is old and so simulation sometimes fail).

one important thing: in real-life should i connect a ground to an AC voltage source? I don't think so but simulation can't be done without it.

looking forward to your help.
 

Attachments

  • Desktop.7z
    44.8 KB · Views: 143

Are your experiencing short circuit only in proteus?

Yes, because I didn't try it in real-life yet.

And, this short circuit effect is made only when I connect PIC microcontroller.

In my code I made it trigger the triac drivers... if I trigger the triac drivers manually, no sh-circuit occurs.

by short circuit I mean I sine-wave that it's peak is between that of the 2 sources or so... I'm not even sure it's short circuit but no other description.

and proteus gives me errors like excessive CPU load and transient GMIN time... so, I don't know how to debug the circuit freely!

___

by looking at my schematic, do you see any error? especially Triac and it's drivers when connected to the sources... and the 2 sources... etc...

Is there any reason this circuit will never work?

by looking at my program, do u suggest something?
 

What is the value of AC sources used? You have connected both AC ground and DC ground to same point.

2 of them supposed to be 230v rms / 50Hz AC. one is input from solar/generator which is the default (not important here) and the other is the grid.

I put the simulation file and the schematic.

here we have 2 neutral right? these shouldn't be connected to ground but for simulation in proteus to work, I connected them to ground.

do you suggest any thing useful here?

thanks
 

where is code or hex file to simulate in proteus?

- - - Updated - - -

where is code or hex file to simulate in proteus?

- - - Updated - - -

where is code or hex file to simulate in proteus?
 

where is code or hex file to simulate in proteus?

- - - Updated - - -

where is code or hex file to simulate in proteus?

- - - Updated - - -

where is code or hex file to simulate in proteus?

will you help solving some issues or what exactly?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top