Voltage Correction?

Im not sure where to put this, sorry.
I have been using RB450G’s health function to monitor battery condition at various sites. I have used Dude function to display this voltage and it works great. Problem is that the 450G’s are not showing the correct voltage. RB’s are ROS 3.30 and 4.10 . The Os doesnt seem to make a difference. What I was wandering is if a script could be used in each 450G to correct the indicated voltage and then send that info to dude.
One of our Rb’s is showing 3.2v difference from the input of 14.85vdc ie 11.6vdc. This is monumental in a solar setup as it would indicate a emminate shutdown of power to protect the battery pack. But as you can see the battery is fine a 14vdc. So is there a way to make a script to correct the voltage reading? If so what needs to be done. I am not a script writer.
Thanks
Mike

You can change voltage readings with script, however you will not be able to read that changed value from any remote device.

Are you certain that the input voltage is 14v? Are you checking the voltage at the battery, or at the power jack on the RB450? I haven’t seen any of these power monitor circuits off that far.

Ok, Here’s how I checked it. I got a power supply put a volt meter just behind the male jack plug so I could check it if I pluged it into the RB jack or POE adapter. I should mention that all testing was done on the bench with very short cables (4inches). The voltage was 14.85vdc before anything was hooked up. I powered it up thru the POE and checked it and the board, 14.85 vdc on the inlet and 11.6 on the health monitor. Now I tried the RB power jack,14.85 on the RB jack and 12.8 on the health monitor. This is a new board that I just got in today. Someone on another forum suggested that the first boards (one of the first ones made) didnt use good parts. That is why I bought a brand new one.

This spring when I serviced the batteries at a site all was well. Some time afterwards the wind turbine bearings failed (after 3years of trouble free service) and the system ran for about 2 weeks till the batteries died. Needless to say phone calls started to pour in, angry customers. Several hours later and a new battery pack it was back up. This failure cost alot of money, time down and the customers anger. All of which could have been prevented if I could monitor the sites voltage. Later I needed to expand the system to put in a switch for another piece of equipment. So I decided to use the older RB450G that I had and use the voltage monitoring in Dude to report any problems. This is when I first noticed voltage readings that were off, I bought a new one and the voltage is still off as you can see from my bench testing.
If I cant get the RB to report as close as possiable the voltage to Dude then correcting the voltage in a script and then emailing an alarm voltage would work.
Maybe this is 2 scripts first on to correct the voltage and use the one in the Wicki for emailing.
Any help on this is greatly appriciated… Mike

If you are going to use the voltage monitor script in the wiki,
http://wiki.mikrotik.com/wiki/Monitor_input_voltage_on_RB333/433AH
then this should correct the error for the email. If the value is not correct, adjust the values until the ratio is correct.

:global voltage ( ([/system health get voltage] * 5) /4)

the question is - is the voltage off by a linear amount or does it vary? If its at 12v is it off by X and if its at 14v is it still off by X (same value)?

For a few bucks you can get a A2D converter that would give you voltage readings from a serial port, it would probably be much more reliable.

OK, you are correct. Above is ratio only. Here is offset:

:global voltage ([/system health get voltage] + 28)

It could be a combination. Here is ratio with offset.

:global voltage ((([/system health get voltage] * 10) /9) + 14)