I'm doing project on transformer testing... i've to give supply to microcontroller... so i've to convert 0-500v supply to 0-5v... like if i give 500v supply it should show output as 5v... for 400v as 4v.. it should be vary linearly.. please give me some ideas..