Hi All, I started thinking about this project about 4 years ago when v3power did a turbine build course at Trystan's place in North Wales. Trystan and I talked about a simple DC monitoring circuit for wind turbines. Then my university degree happened, and now I'm back and onto this original project. Full circle.
I want to post here to explore what applications people think would be best for a DC monitoring project. Thoughts so far include making an integrated Arduino, RF, DC Sense module, rated at 100A. The rating implies applications in Solar, Wind and Hydro. The rating is primarily for the physical robustness of the module and is not restricting it's application in higher resolution measurements at lower currents. The shunt and amplifier gain could be adjustable, making a wide variety of applications possible.
I'll be documenting a variety of approaches as the tests and designs develop:
- Breadboard / Copper ProtoBoard
- PCB Kit
- SMT Board and case.
So far I've tested several shunt monitoring ICs, each with their own characteristics. I've got a couple more to do (one because it was a first attempt at SMC soldering which went terribly, and the other because it requires programming).
Results of tests so far and a few notes here.
Re: DC Sensing project
Hi
Have you looked at these:-
http://www.pololu.com/category/118/current-sensors
I am using one to monitor the load consumption on my battery PV system. I found this useful as well:-
http://www.hacktronics.com/Tutorials/arduino-current-sensor.html
Regards
Ian
Re: DC Sensing project
Hi Ian,
They look handy and cheap. Hall effect are not as accurate as shunt monitors, and they have greater gain error over temperature I believe. Shunt monitor ICs are about half the price. Not sure about hall effect if I'm designing something from scratch.
I'm thinking of using PCB tracing as the resistor element, so any heat generated is spread through the board and absorbed by the connecting cables also. Doing away with the shunt resistor itself also. I'm going to have to get the advice of the PCB manufacturer.
Cheers,
Dan
Re: DC Sensing project
I'm trying to work out if it's worth developing an integrated arduino/RF/dc sensor module. Thoughts anyone?
Thinking that high res unidirectional dc monitoring's a good start. maybe if the dc monitoring component (shunt+IC) is self contained, like the pololu sensors above, then two could be used for bidirectional data, using two analog inputs. I wonder if the Tx could lend itself to DC monitoring..
D
Re: DC Sensing project
DC monitoring is a topic that pops up fairly regularly, but there's a huge range to cover, from battery charging (vehicles or otherwise) to PV output monitoring, implying a fairly wide range of both current and voltage.
It's apparently so simple, yet it can be fraught. If you're looking at the PV output, it may well be sitting at a very nasty voltage, so isolation would likely be essential in very many applications.
Re: DC Sensing project
Isolated current measurement is simple, there are some Allegro ICs (ACSxxx) for up to +/-200A.
After I did some searching, I found something for isolated voltage measurement: avagotech.com: http://www.avagotech.com/pages/en/optocouplers_plastic/plastic_miniature...
Anybody tried one of these ICs?
Re: DC Sensing project
The range of DC monitoring requirements is by far the most headache inducing part of this project! The INA219 looks promising because of the programmable gain. Goes as low as 40mV for full range sensing with a 10uV resolution. So even with a 10mV drop across shunt that's 1000 steps of resolution. The shunt could be swappable, switchable or solderable in some way depending on the current range required.. haven't decided how to do that.
I need to test the INA219.. got it working using the adafruit sketch, just need to check its accuracy. Even so, the common mode voltages it accepts aren't great.. which leads me to the INA169.. and this is where i go round in circles because the 169 is unidirectional and has errors at low sense values.. So would need 2 for bidirectional use and a calibration routine.
Zener diodes for isolation?
The allegros are awesome but immediately restrict use to certain current ranges. I want to make a versatile little thing if possible
Re: DC Sensing project
Zener diodes for isolation?
How? I think you're a bit mixed up there.
But I don't think the INA219 actually provides any isolation at all. It can accept common-mode inputs over a limited range as you say, but that's not the same thing.
To get a truly isolated signal transfer, you need to go to optical or magnetic (transformer), and that implies the signal conditioning and conversion to digital takes place in the isolated, not-ground-referenced part. And then the actual signal isolation is only part of the problem - you'll most likely need two power supplies, one to feed the ground-referenced end and the second, isolated, power supply to feed the part of the circuit that's not earth-referenced. RobP attended to all these issues, but in a slightly different context, in GivMon.
Re: DC Sensing project
I've done a little research.. that page you linked and the 'galvanic isolation' wikipedia page..
Does it make sense that if the DC sensing module wirelessly passed on the information, magnetic or optical isolation would be unnecessary? The module itself could be fused in the event of a short circuit through it.
However if the DC sensing component was wired into the an arduino or pi powered from a system with a different reference voltage then isolation would be required? For example if there was a PV/Battery system on one side and grid tie inverter interfacing with the mains.. Then isolation would be required?
On a different subject.. galvanic corrosion.. I witnessed the results of this in old PV systems (self-colouring of the copper wire). It is a strong enough reason to avoid screw terminal connections in DC systems and instead, have everything soldered?
Re: DC Sensing project
Sending the data wirelessly does of course achieve isolation, but you cannot work on it. You would need to have a suitably rated plug and socket connection, or a suitable isolator switch, to completely disconnect it in order to do any adjustments to the software and to reprogram it, and you could not make any connection for monitoring the serial output in use. Irrespective of the need for isolation, you must always provide circuit protection against faults.
I cannot say for certainty, without seeing circuit diagrams or measuring voltages, whether isolation is required in any particular case. It is highly probable that it would be required in most cases, because if you think about it, one side of the mains is more or less at earth potential, no inverter manufacturer wants the cost, size and weight penalty nor the losses of a 3 or 4 kVA mains transformer, so unless you do the power conversion in two stages and have a smaller high frequency transformer (think of the size and weight of a 5 V USB adapter compared with the ac-ac adapter) giving you isolation, neither side of the d.c. supply from the panels will be at earth potential.
Can you not only have galvanic corrosion if you have two dissimilar metals and some form of an electrolyte present - usually dampness? We could not possibly solder the connections on the 3 MW dc mine winder motors - those had crimps on the cable ends that were bolted onto the busbars. Those were of course indoors and dry.
Re: DC Sensing project
It makes alot of sense to isolate.. Didn't realise it was such a problem. Plug and socket connection, like automotive relays, could work well. Would an isolation switch best disconnect the sensing module from the common line or the positive lines or both?
The galvanic corrosion issue (I was told that's the right term.. could be wrong) I witnessed in Australia. Any system older than 15 years had negative lines gone black, pain to work with. The humid environment there means everything gets damp at some point through the wet season, indoors or out. Does this type of corrosion have a different name? I can't find anything conclusive searching the web.
Re: DC Sensing project
High direct voltages can be very nasty, what voltage are we talking about, because automotive connectors will be good to only 12 / 24 V. Whatever the voltage, you must completely isolate the kit you are working on - as well as the risk of shock to you, there's the danger from a ground or common loop through any test gear or computer you connect.
I'll pass on the corrosion issue - we don't have that problem much in the UK. But would some kind of conformal coating help?
Re: DC Sensing project
Might as well design a DC sensing module to work with 48V solar pv systems. Meaning open circuit voltages of about 60V, which happens to be compatible with a couple of shunt monitors I've found. Protection from higher voltages like in generator applications would be useful.. Zener diodes come into play here?
https://docs.google.com/drawings/d/1vuDr3Bs2pl0OuCuJ9A5ob8zSsV-_p-Cet8cT...
Re: DC Sensing project
You need to protect the monitor IC inputs from overvoltage - whatever the manufacturer's data sheet says. If the other leg of your dc supply is grounded, you won't need isolation. If it isn't or you don't know, then you do and everything must be insulated to the highest system voltage, as must be your power supply.
What sort of power (on the dc side) are we talking about? Presumably you'll want to measure the voltage also?
Re: DC Sensing project
Pages 14 and 15 http://www.ti.com/lit/ds/symlink/ina213.pdf for transient overvoltage protection, which it think is suitable for overvoltage in general depending on the components.
So if for example the pv negative and battery negative were both earthed then no isolation's required?
Designing for 100A 60V DC. Yes, voltage also with a divider I was thinking..
Re: DC Sensing project
I don't think you've yet grasped what Isolation is for. Stop thinking details and look at what happens when something goes wrong.
Reason 1. If your measuring kit is connected to battery negative and your computer to mains earth, then if you plug one in to the other, if there's the slightest voltage difference, a current will flow. What that current could be depends on a myriad of factors, but I wouldn't bet that it won't blow tracks off PCBs or melt cables or connectors.
Reason 2. Personal safety. No fuse will protect you, and while 60 V dc across a finger will sting, if your skin is damp and hence (comparatively) highly conductive and the conducting path is through a critical part of your body, then the effect is a lot more serious. So to combat that you need to be able to isolate the part that you intend to work on, or if your only connection to the high voltages is instrumentation inputs, you need a totally foolproof way to limit the possible fault current to a safe value. So looking at your shunt, the connections to the amplifier must be via at least two series resistors each (so you stand a fighting chance if one fails short circuit) and those and the shunt itself must be fully shrouded against inadvertent contact. The current must be limited to a few milliamps even with one resistor shorted, no matter to where your short-circuit happens to be.
Re: DC Sensing project
It might be worth me looking at an example module. Can you recommend something? Or would looking at something like an AC-DC adaptor be worthwhile?
Re: DC Sensing project
I'm struggling because I don't know the details of your system - or the system that you are proposing - so everything I'm saying has to be in the most general terms. What do you mean by an example module? What is it for, what are you trying to achieve? How is an AC-DC adapter an alternative to it? What do you need your AC-DC adapter for?
Looking back through this thread, are you in fact trying to design a general purpose module that anyone can use? If that's the case, then you simply must assume that isolation to the full system voltage is required. You have two choices: either you put everything in an earthed metal case or you double insulate; and isolate (probably but not necessarily optically - as energy meters do, radio is also available) the input and output to your programming and reading device. Alternatively (still suitably protecting the potentially high voltage connections) isolate the input signals - again optically is one possibility, and earth the rest of the circuit and the output (usually this earth will be via the computer you're programming with.
In other words, you follow exactly the practice adopted by the emonTx: both voltage and current inputs are isolated - in this case by transformers - to at least the system voltage (350 V dc), and there is no path for current to flow when you connect it to a computer to program or read the serial output connection between the rest of the circuit.
Re: DC Sensing project
How's this looking Rob?
I finally got my head round isolation I think. So this is opto-isolated.
I'll check here again in a couple of weeks.
Cheers,
Dan
Re: DC Sensing project
I haven't studied your design in any great detail, but the first comment is you need to take great care when setting the system up and commissioning it, because everything upstream of the opto-isolators is live to 60 V d.c., and that's not to be messed with. (I'm looking at the USB socket here - why is it there? Similarly the ISP1 header.) And remember the capacitors on the antenna need to be rated for at least 60 V.
Is the 60 V to 9 V regulator happy with a 9 V supply on its output, because you'll probably need to do that while testing? If not, put a jumper in to allow you to feed 9 V from a bench PSU.