Ok, I will post it when I get home. I'm on the go now.Hi,
Maybe I confused you with "too much details". In this case I want to apologise.
Maybe we rather should focus on the requirement that on the soution.
(This is necessary independent whether you design it on your own or you hire somebody)
If you want to hire somebody, you should do ths in the "Job" section (refer to this thread)
***
But let´s put the hardware and software aside for a moment. Not thinking about RMS and so on.
What do you want the "device" to do.
You said there are 3 x 3 phases. Where do they come from?
Tell us a bit about your system.
Klaus
"some milliseconds" ...This - on the other hand - sounds like the application is rather timing critical, maybe a true RMS calculation is the wrong way to go...For example if an LED is attached to a digital pin instructed to go off when all the 3 lines of Source1 goes below/above a defined threshold the LED will delay some milliseconds before it goes off! In the application, the delay is not acceptable because Source2 needs to be snapped in without interrupting the supply to the load
As part of one the things I want now from a paid developer is "consultancy" regarding component management. All will depend on when I post the full descriptions of my project here then the experts here will understand it and could be able to decide which components are the best for the application.An accuracy specification should be one of the design starting points. It answers the question if STM32 internal ADC accuracy is sufficient for the application or if you need an external ADC. If you plan a high performance application, you should also consider to use energy meter ICs as analog front end. They have outstanding accuracy and built-in RMS calculation.
The thing I want is this: I write this in a hurry. I will honor any questions or correction I might have made somewhere in the description.
Thanks.
Hi,
this is some kind of automatic power source selector.
My first concern: safety
You need power switches which are approved for this job. lso the control logic needs to fulfill safety rules.
***
Maybe you want some priority (correct if wrong)
1) mains
2) 250kVA generator
3) 100kVA generator
***
Some basic questions:
Do you need synchronisation?
Do you need frequency measurement / frequency control?
All input sources seem to be almost pure sine waveform. Do you still need true RMS?
How accurate do you need to measure the voltage?
Isn´t a simple "supply available" signal sufficient?
What is the expectable frequency range (min, max) for the 250kVA generator and the 100kVA generator?
Klaus
Ok I understand. Please I am sorry for the picture message.Hi,
please answer as text. It´s hard to reply on a picture.
Synchronisation is essential when - for example - you connect a synchronous generator to the grid.
I´m quite soure you don´t want to connect the generator with the grid -- rather you should strictly avoid this.
Please confirm.
On the other hand it may be a benefit when frequency, maybe even phase is aligned before switching from one source to the other. But it is not essential.
How much blanking time do you expect (min/max)?
Frequency measurement: You need it, or it´s just nice to have?
Simple "supply available:"
A simple method could be to 3 phase rectify, ... no capacitor .. just check with a comparator that the voltage continously above a certain level. This is very simple, checks for three phases, booth polarities and a certain voltage level.
6 diodes, resistive divider, comparator, fast_OFF_slow_ON delay
If you have a little experience with Excel, then you can test it on your own. For sure almost any circuit simulator can do this, too.
Klaus
It´s not measuring as analog value.can the lines be able to displayed differently L1, L2and L3 on the LCD?
Hi,
It´s not measuring as analog value.
It´s just a TRUE/FALSE signal that comes from a simple validation circuit for all 3 phases in common.
It´s simple but still reliable signal, with a fast_turn_to_false option.
For sure one can do a measurement of the rectified signal and "calculate back" to the RMS value.
Klaus
In this way the system mode will reflect to physical pins so I can use them as inputs to the LCD MCU for mode controlOk sir, thank you for your time all this while. Now I want this code in question measure the signals and control just the outputs then I will prefer to use a separate MCU for the display alone. I will use a separate circuit and code to display the parameters by myself. The separate MCU will run on its firmware so that I will have a very good and stable reading without minding the conversion time. I have no problems with that. Before this, I have measured AC parameters With ZMPT101B transformer. It have served me very well especially with its high voltage tolerance and isolation advantage. So if someone will help me do this now that person will leave LCD entirely out of it. See this new picture:
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?