grandestlama
New Member
Hello,
I Am currently designing an Uninterruptible power supply unit. I am thinking of making it
"PIC based". Since I know more Java than assembly, I would like to ask the following
questions -
1. Can a PIC simultaenously handle generation of a 50Hz sine wave, Monitor battery level -
and trigger warning beeps or device shut down based on this, Compensate for battery drift
(by generating the sine wave at a suitable amplitiude), and send/receive status/control
information from a PC serially (or otherwise) ?
2. If your answer to the above is YES, then how complex will co-ordinating these task be in
the absence of multi threading. Do you think the microcontroller is an overkill or can
such feautures (probably excluding the PC control/status portion) be "more convineintly" be
implemented without a microcontroller ?
My aim is to realize an uninterruptible power supply unit (with or without a
microcontroller) that has the following features :
A form of output voltage control/regulation such that when the battery voltage is reduced
(before it reaches the lower threshold), the output voltage does not deviate much from the
norminal value.
OVER-DISCHARGE protection scheme for the battery - such that the UPS automatically shuts
down when the baterry reaches a specific lower voltage threshold in the absence of public
power.
A "reasonably" sinusoidal waveform as output.
OVERCHARGE protection scheme for the battery - such that the the battery charging
automatically stop when the battery is fully charged.
Power cut warning (a beeping sound)
I am thinking that it could be possible to obtain a sine wave by storing the sine amplitude
of regular intervals (for one cycle) as byte values in EEPROM, which could be read out by
the PIC to a DAC, giving rise to the analog sine wave. Is there a better method ?
If anybody has a useful idea or any link or circuit diagram, etc, PLEASE share it with me.
Thank you.
I Am currently designing an Uninterruptible power supply unit. I am thinking of making it
"PIC based". Since I know more Java than assembly, I would like to ask the following
questions -
1. Can a PIC simultaenously handle generation of a 50Hz sine wave, Monitor battery level -
and trigger warning beeps or device shut down based on this, Compensate for battery drift
(by generating the sine wave at a suitable amplitiude), and send/receive status/control
information from a PC serially (or otherwise) ?
2. If your answer to the above is YES, then how complex will co-ordinating these task be in
the absence of multi threading. Do you think the microcontroller is an overkill or can
such feautures (probably excluding the PC control/status portion) be "more convineintly" be
implemented without a microcontroller ?
My aim is to realize an uninterruptible power supply unit (with or without a
microcontroller) that has the following features :
A form of output voltage control/regulation such that when the battery voltage is reduced
(before it reaches the lower threshold), the output voltage does not deviate much from the
norminal value.
OVER-DISCHARGE protection scheme for the battery - such that the UPS automatically shuts
down when the baterry reaches a specific lower voltage threshold in the absence of public
power.
A "reasonably" sinusoidal waveform as output.
OVERCHARGE protection scheme for the battery - such that the the battery charging
automatically stop when the battery is fully charged.
Power cut warning (a beeping sound)
I am thinking that it could be possible to obtain a sine wave by storing the sine amplitude
of regular intervals (for one cycle) as byte values in EEPROM, which could be read out by
the PIC to a DAC, giving rise to the analog sine wave. Is there a better method ?
If anybody has a useful idea or any link or circuit diagram, etc, PLEASE share it with me.
Thank you.