PIC based UPS Schematic / Firmware / PCB Layout

Microchip’s Digital Pure Sine Wave Uninterruptible Power Supply (UPS) Reference Design is based on the dsPIC33F “GS” series of digital-power Digital Signal Controllers (DSCs). This reference design demonstrates how digital-power techniques when applied to UPS applications enable easy modifications through software, the use of smaller magnetics, intelligent battery charging, higher efficiency, compact designs, reduction in audible and electrical noise via a purer sine-wave output, USB communication and low-cost overall bill-of-materials. This reference design is Royalty Free. This project contains complete documentation and software & hardware design information.

Complete PIC Based UPS
Complete PIC Based UPS

UPS Input / Output Specifications:

Input Range AC:

  • 95 – 135V, 60 Hz (+/ – 3 Hz) (110V version)
  • 210 – 242V, 50 Hz (+/- 3 Hz) (220V version)

Output Voltage AC:

  • 110V @ 60 Hz (+/ – 1 Hz) (110V version)
  • 220V @ 50 Hz (+/ – 1 Hz) ( 220V version)

DC Input:

  • 36V (12 VDC X 3)
  • Lead Acid Battery

Rating:

  • 1000 VA Steady-State Output Power
  • 1350 VA Peak Power (Surge)

UPS Features:

  • High-frequency design
  • Adjustable Charging current
  • Efficiency of 84%
  • Pure sine wave output with THD <3%
  • Mains to Battery Transfer time < 10 ms
  • Supports Crest Factor of 3:1
  • Minimum Power Factor(Leading/Lagging) of 0.65
  • Fault indications
  • USB Communication with PC
  • LCD front panel

The Digital Pure Sine Wave UPS System operates in two modes:

Standby Mode – Operational in the presence of AC line voltage; battery is charged in this mode.
UPS Mode
 – Operational during power outage; the system switches to a function called inverter to provide power to load. Charge stored in the battery is converted to AC output.

The Digital Pure Sine Wave UPS System has three power conversion stages:

PUSH-PULL CONVERTER:

The push-pull converter steps up the battery voltage to 390 VDC. After enabling the MOSFET driver, the PWM outputs from dsPIC® DSC control the output voltage. Input and output DC voltage, primary current and heat sink temperature act as feedback signals.

FULL-BRIDGE INVERTER

A full-bridge inverter topology is used to convert the high-voltage DC to pure sine AC output. Sine-triangle PWM in unipolar configuration is used to switch inverter IGBT modules. Full-bridge with unipolar switching helps to optimize components rating, and reduces output filter size. Input DC voltage, output AC voltage, output filter current and incoming line AC voltage are used as feedback signals to implement efficient full-bridge control loop. Fast and intelligent switch-over from “Mains” to “Inverter” and vice versa is implemented with intelligent switchover algorithm, which also helps to control in-rush current during switchovers.

FLYBACK SWITCH MODE CHARGER

Flyback converter is used for battery charging to prevent charging losses over other methods. In the presence of AC mains voltage, the Inverter mode is disabled, and the UPS switches to the battery charging mode. The dsPIC®DSC device provides the reference current level with a variable duty cycle PWM signal. Battery voltage and battery charging current are used as feedback signals to implement an intelligent charging profile, which extends the battery life.

Block Diagram of UPS – Shows Functionality & Basic Flow

UPS BLOCK DIAGRAM
UPS BLOCK DIAGRAM

UPS Schematic 1 out of 8

PIC UPS Schematic
PIC UPS Schematic

for Firmware, detailed schematic & other details visit: Pic Based Pure Sinewave UPS

Source: PIC based UPS Schematic / Firmware / PCB Layout

About The Author

Ibrar Ayyub

I am an experienced technical writer with a Master's degree in computer science from BZU Multan University. I have written for various industries, mainly home automation and engineering. My writing style is clear and simple, and I am skilled in using infographics and diagrams. I am a great researcher and am able to present information in a well-organized and logical manner.

Follow Us:
LinkedinTwitter