I am designing a battery charger with for 48 volt battety with 5 amp charging current. I am controlling buck converter using pwm generated by arduino.During charging the battery's current and voltage have to be constantly monitored in order to supervise charging. SO I want to know when and how to measure the battery voltage and charging current during charging and give feedback to arduino for controlling pwm. Is there any voltage sensing controller or sensing device available which may I use in feedback ?
What does this has to do with programming? Try the hardware board..
Find out from the battery manufacturer a suitable charging regime or failing that google the technology type of the battery and how to charge it .
@Jayesg, do not cross-post. Other thread removed.
Unless this is a research project, it should not be necessary to use an Arduino, much less PWM.
There are many charge controller chips and modules available for every battery chemistry. If you want to make one up from a chip then TI makes lots of great chips. However they require a high level of experience with switchmode PCB layout which is one of those "art not science" fields in electronic engineering.
I would look for a "programmable" module. One that lets you change the current-sensing resistor to achieve the charge current you desire. You should not need any Arduino code to program your battery charger.