I'm trying to measure curent between an invertor and a 12V campervan leisure battery. I have a 75A shunt which gives 75mv full scale.
When I put this into my pi though, via the mcp3008 I get spurious readings. There's a multiplier off 1000 to bring the displayed current up to match the ampmeter reading however the readings on the pi are not stable at all.
I've done the same on a 10A system and this works fine, any one have any suggestions as to why this is.... maybe a smoothing capacitor or something, if so what value??
Any advice would be appreciated,
Thanks
Rich
Im multiplying the value in the software by 1000.
If I do this externaly won't it blow my pi up as the voltage i/p will be to high? Ie limited to 0 to 3.3V?
The range is basically 0 to 75A.
I can draw a quick schemetic later and post although it is just literally a shunt on the negative line between an invertor and 12V leisure battery.
Thanks
Rich
For info.... I'm using the INA122 for the MPX10DP with a x10 gain, which work perfectly. I've tried using this amp here (with a x5 gain) but still no improvement....
I have tried putting a capacitor across the adc i/p and ground and this does give a much more stable reading, however it does still fluctuate between say 12A (stabilises for a few seconds), drops to 9A, back to 12A and sometimes even 0..... not quite sure what to do, maybe design a filter...
Just out of intrest what value you say the capacitor need's to be?
I'm doing a self build camper van which I've put 2 125ah batteries in conected in parallel to give 250ah. This is so I can run without hookup in remote areas. From this and looking at posts on here I thought it'd be a great idea to make a power analyser to monitor battery use, and remaining life etc.... more fool me! Haha!!
The values are real as i have a clamp ammeter attached monitoring the currents also, plus like you say using using ohms law, the calcs match what the a meter displays,ie, should the 750W toaster on to really pull some power the reading between the invertor and the battery is, as expected (p/v, 750/12) 62.5 amps. The invertor shall rarely be used under these conditions as my batteries won't long I know, but like I say I'd like the ability to monitor and calculate accordingly... sad I know!! Lol.
The main use here is on the 12v side only, ie no invertor for the 230v stuff, a maximum of 10A can be drawn with my appliances, and this shunt behaves much more stable, I'll measure the resistance of that tommorow and let you know. Maybe I need a better shunt and not a cheap crappy thing from good old China!!!
Thanks allot for your help and ill give you more info tomorrow!!
Really love this app btw, learnt so much from it, ie python and java, to which I still have a few problems, but shall save them later!! Had some great help and it's all very much appreciated!!
Thanks again
Rich
This is because the 10A shunt seems to be a big enough signal, and also placing a dvm across the 75A shunt the mv indicated is solid as rock.... is that because the dvm has the correct filters built in....??
Anyway seemed to have solved the problem now, I've put a basic low pass filter in and this seems to have done the trick! Even managed to leave toast to cook a full cycle!! This will probably never get used again now but hey I got there!! Haha
Thanks for your help! :0) and if you know anything about peukerts law feel free to advise further..... ;0)