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.

Codes for ADC on PIC16F877

Status
Not open for further replies.

Asabzi2000

Junior Member level 1
Junior Member level 1
Joined
Mar 13, 2013
Messages
19
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Location
Tarkwa, Ghana
Visit site
Activity points
1,422
Hi
Am designing an Automatic Transfer Switch with 3 analog voltage sensors. I need some codes to be able to detect the analog values at the ADC of the PIC. Any help please. Attached is my circuit. Am using mikroC
 

Attachments

  • MBATS.GIF
    MBATS.GIF
    144.7 KB · Views: 140
Last edited:

You have to specified the value first, since you have 3 phase signal at what condition did you want control the change over?
 
Hi Jayant, This is how I want my system to work. The load is supplied by utility at 240V 50Hz. When utility goes off I want to automatically detect it using the MCU, then start the gen set automatically and then hook the load onto gen set. Pls any suggestions!

- - - Updated - - -

Hi Kabeer am sensing the presence or absence of 240V 50Hz to load. When it goes off, I want the controller to detect it and issue command for a genset to start. When the genset develops rated V. Then the controller commutes the load to genset through a stepper motor. Pls suggest how I can do it well. Any schematics will be appreciated. Am using mikroC compiler and proteus design suit

- - - Updated - - -

Jayanth, pls what do you suggest?
 

Then you don't need ADC for that. Just isolate the 230 V using opto-isolator use a capacitor at the output of opto-isolator so that there is no ripple of your 50 Hz. Make sure that it gives voltage = VIH of MCU digital input pin. If voltage is present at the digital input pin of MCU then genset driving relay is OFF. If there is no voltage then MCU turns ON the relay which drives the Genset.
 

So that simply means their will be no under voltage and over voltage control the generator will come on when ever their is failure of main supply?
 

Yes, Kabeer. The genset am usnig is 3-phase but am using only one of the phases. But how can a phase monitor be installed. Can u help me with a schematic?
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top