loving this OSD, had lots of fun spending today doing all the hardware mods to the OSD to allow reading of the current, RSSI and battery voltage as my multiwii doesnt have analogue inputs accessable.
I have got the RSSI working (although i might add a capacitor to smooth out the readings a bit). Got the main battery voltage working. But for the life of me, i cant figure out how to calibrate the current sensor... :oS My current sensor gives out 0v-3.3v for 0-90amps. I put in a voltage divider to bring it down to 0-1.055v. When i connect it up and increase the current, the figure on the display actually goes in to minus figures!!? really weird as if i put 1v straight in to it, then it shows a positive amp reading. Anyway, i have no idea how to calibrate it with the items listed below in the config.h so that i actually get useful readings...
Can anyone help me out? :)
#define EST_PMSum 2.6
(no idea what this is supposed to do?)
#define AMPDIVISION 3600 // Hardware current sensor division ratio
(when i change this value it doesnt seem to affect the amps displayed?)
#define AMPERAGE_CAL 1.1 // Amperage calibration
(i have increased this number so that 1.055 volts = 90amps, as per my current sensor and voltage divider)
#define AMPRERAGE_OFFSET 512 // Amperage = AMPRERAGE_OFFSET - analogRead * AMPERAGE_CAL / 10.23
(why do you need an offset? i changed this to 0 so that 0 volts from my sensor = 0 amps)