{"id":60093,"date":"2021-02-07T01:13:52","date_gmt":"2021-02-07T06:13:52","guid":{"rendered":"https:\/\/www.engineersgarage.com\/microcontroller-projects-tf\/series-combination-of-batteries-voltage-monitor\/"},"modified":"2023-08-27T11:18:31","modified_gmt":"2023-08-27T15:18:31","slug":"series-combination-of-batteries-voltage-monitor","status":"publish","type":"post","link":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/","title":{"rendered":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers"},"content":{"rendered":"<div id=\"content\">\n<div id=\"wsite-content\" class=\"wsite-elements wsite-not-footer\">\n<div><\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Measuring an individual battery voltage or a whole bank of battery using any microcontroller(arduino, microship pic, Avr, Atmega, Intel, NXP, stm32)is an easy task. You can find many tutorials on internet on how to do so. But what about if we want to measure an individual battery connected to a cluster of batteries in series or parallel combination. Now its a hard task to accomplish. But still their are some cleaver ways to do so. In this post i am going to enlist some of the ways through which we can measure individual battery voltage which is a part of series or parallel\u00a0connected string\/array of batteries.\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-multicol\">\n<div class=\"wsite-multicol-table-wrap\" style=\"margin: 0 -15px;\">\n<table class=\"wsite-multicol-table\">\n<tbody class=\"wsite-multicol-tbody\">\n<tr class=\"wsite-multicol-tr\">\n<td class=\"wsite-multicol-col\" style=\"width: 50%; padding: 0 15px;\"><\/td>\n<td class=\"wsite-multicol-col\" style=\"width: 50%; padding: 0 15px;\">\n<div>\n<div id=\"124982212444780773\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Basic and popular battery monitoring technique &#8211; Voltage Divider Circuit<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Basic and the most popular individual battery monitoring technique using microcontrollers in practice is voltage divider circuit. In voltage divider circuit two resistors are connected in series and source (battery) voltage is applied across its ends. Voltage is divided against the two resistors according to the resistor ohmic values.\u00a0\u00a0<\/span><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider_orig.jpg\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider_orig.jpg\" alt=\"Voltage divider voltage divided against two resistors \" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Voltage divider voltage divided against two resistors<\/div>\n<\/div>\n<\/div>\n<div>\n<div id=\"623993369495700310\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h4>Why voltage divider?<\/h4>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Microcontrollers work on 5 or 3.3 volts(From here on we will take in to consideration 5 volt, techniques listed below can also be applied to 3.3 volt microcontrollers). So their pins are also working on 5 volt TTL logic. Voltage higher than 5 volts could potentially harm the pin or may fry the microcontroller. Solar panel, car, ups, generator and back up batteries normally are at 12 volts. Microcontroller can not measure 12 volts directly. So voltage divider is used here to divide the voltage in two half while ensuring that the one half voltage can not increase 5 volts in any scenario(charging etc). This half voltage is feed to microcontroller to measure the voltage.\u00a0\u00a0\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-medium \" style=\"padding-top: 5px; padding-bottom: 10px; margin-left: 0px; margin-right: 10px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/battery_1_orig.jpg\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/battery_1_orig.jpg\" alt=\"Voltage divider circuit with formula\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Voltage divider circuit with formula<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\">\n<p><span style=\"color: #2a2a2a; font-size: medium;\">Now lets calculate the values for Rtop and Rbottom. Here we need some important considerations to be taken seriously.\u00a0<\/span><\/p>\n<ul style=\"color: #2a2a2a;\">\n<li><span style=\"font-size: medium;\">Low ohm resistors can sunk much current and wires could be heated instantly. Consequently wires can melt down in seconds. So always use sufficient amount of resistors for bigger ampere hour batteries. I selected one resistor Rbottom to be 10k ohm.<\/span><\/li>\n<li><span style=\"font-size: medium;\">During charging battery voltage can increase to 18 volts. For example150 watt solar panel outputs 17\u00a0volts at 6\u00a0amperes\u00a0during full sun, output voltage can even reach above 18 volts<\/span>.\u00a0<span style=\"font-size: medium;\">Solar charge controller also output voltage approximately equal to 15 volts to charge the batteries.<\/span><\/li>\n<\/ul>\n<\/div>\n<div>\n<div id=\"897312256139969047\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Calculating resistance values<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">I am going to measure voltage across Rbottom and i decided its value randomly to be 10k ohm. We know Vout can be up to maximum 5 volts since nodemcu works and accepts maximum 5 volts at its I\/O pins. Vin is 18 volts when the battery is charging(worst case scenario). Now we can find Rtop.<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider-resistance-value-calculator_1_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider-resistance-value-calculator_1_orig.png\" alt=\"Voltage divider resistance value calculation\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Voltage divider resistance value calculation<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"color: #2a2a2a;\"><span style=\"font-size: medium;\">Now if 18 volts are at battery side it will be divided across resistors, 5 volts drops at 10k resistor and remaining 13 volts drops at 26k resistor. If battery is not charging and say supplying 12 volts what will be the voltage drop across resistors? Lets calculate it<\/span><\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-drop-across-voltage-divider-resitors_1_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-drop-across-voltage-divider-resitors_1_orig.png\" alt=\"Voltage drop against resistances of voltage divider circuit \" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Voltage drop against resistances of voltage divider circuit<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"color: #2a2a2a;\"><span style=\"font-size: medium;\">Its obvious from the above discussion that the voltage across Rbottom will not exceed 5 volts now. I hope it makes sense to readers about the calculations. The question now is how the 3.33 volts is converted to 12 volt by nodemcu or how from 3.33 volts we can predict that at the battery side the voltage is 12 volts. Well a little more mathematics is involved here. Since the resistor values are fixed we can calculate the voltage ratio across the resistors with respect to the source and use it in code for actual voltage at source. How ratio is calculated is below.<\/span><\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider-ration-calculation_2_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/voltage-divider-ration-calculation_2_orig.png\" alt=\"Voltage divider ratio calculation\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Voltage divider ratio calculation<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"color: #2a2a2a;\"><span style=\"font-size: medium;\">Two cases are given above when source is at 18 volt and when source is at 12 volt in both the cases the ratio comes out to be constant value. This ratio is utilized in code for predicting the actual source\/battery voltage. Ratio is multiplied with voltage at Rbottom for actual voltage value.<\/span><\/span><\/div>\n<div class=\"paragraph\"><strong>In order to take the tutorial on calculating resistance values for a 3.3 volt tolerance microcontroller visit the tutorial below. A demo project with free project code and circuit diagram is presented in the project.\u00a0<\/strong><\/div>\n<div style=\"text-align: right;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/nodemcu-battery-voltage-monitor.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Battery monitoring with 3.3v tolerant microcontroller<\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<h2 class=\"wsite-content-title\">Batteries connected in series<\/h2>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Batteries are connected in series to increase the voltage output. For example two 12 volt batteries are connected in series to build up 24 volts. Now how to measure voltage of individual batteries connected in series. See the circuit below. Four 12 volt batteries are connected in series to output 48 volts.\u00a0\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/series-batteries-combination-voltage-monitor-by-microcontroller_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/series-batteries-combination-voltage-monitor-by-microcontroller_orig.png\" alt=\"Series batteries combination voltage monitor by microcontroller\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Series batteries combination voltage monitor by microcontroller<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\">\n<p><span style=\"font-size: medium;\">In the above circuit four voltage divider circuits are used to measure voltage across each battery. The technique is to measure the voltage across high potential battery first, than against the lower ones and negating the subsequent batteries voltage from the one at higher\u00a0potential. For example for the above circuit the measured voltage across\u00a0 battery-1 is 48v and battery-2 is 36v. Negating 48v-36v=12v gives us battery-1 voltage. Similarly if battery-3 is at 23v. Than 36v-23v gives 13v. So battery-2 is supplying 13 volts in series string array. Other batteries voltages can be calculated with same method.<br \/>\n\u200bIn the above scenario for each battery their must be a dedicated analog channel. For higher string of batteries more analog channels are required and microcontrollers usually have 8 analog channels at max. So this method is feasible only when batteries in series combination are not greater than 4.<\/span><\/p>\n<p><strong>Note:<\/strong> For the above circuit the resistors values should be selected using the same formula given above.<br \/>\n<strong>A demo project using the above technique is made with arduino uno. Project contains free source code and circuit diagram. If you are interested take the tutorial. The link is below.\u00a0\u00a0<\/strong><\/p>\n<\/div>\n<div style=\"text-align: left;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/string-array-of-batteries-monitoring-with-arduino.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Measuring string array of batteries voltages using arduino<\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<div>\n<div id=\"388177052992596608\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Opto-isolators or Optocouplers<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Using optocouplers is another way to do the same task. A linear optocoupler is one which can perform the job at best. It outputs an equivalent voltage to input but with drop in voltage rating. Optocouplers also isolates the microcontroller from the battery voltage and provides safety from high spikes. The problem with optocouplers is its hard to configure them and they require more effort than voltage divider. Circuit may also be messy. An extra power some time is also needed to power the optocoupler. Amplifier may also be needed at end to amplify the voltage output. Optocouplers also increases the circuit cost. At the end the major drawback is, it still requires a dedicated microcontroller analog\u00a0channel to measure each individual battery.<br \/>\n\u200bYou can find many linear optocouplers with different ratings from Texas\u00a0instruments and other vendors online. At the end the circuit will be hard to design and configure. A typical example is below. I hope no one has time to spend on it \ud83d\ude00\u00a0 \u00a0\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/optocoupler_orig.gif\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/optocoupler_orig.gif\" alt=\"Optoisolated battery monitor with microcontroller\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Optoisolated battery monitor with microcontroller<\/div>\n<\/div>\n<\/div>\n<div>\n<div id=\"856546020611285142\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Relays in battery monitoring<\/h3>\n<\/div>\n<\/div>\n<p><span style=\"display: table; width: auto; position: relative; float: right; max-width: 100%; ;clear: right; margin-top: 20px; *margin-top: 40px;\"><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/double-pole-single-through-relay_orig.png\" rel=\"lightbox\"><img decoding=\"async\" class=\"galleryImageBorder wsite-image\" style=\"border-width: 1px; padding: 3px; max-width: 100%; margin: 5px 10px 10px 0px;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/double-pole-single-through-relay_orig.png\" alt=\"Double pole single through relay\" \/><\/a><span class=\"wsite-caption\" style=\"display: table-caption; caption-side: bottom; font-size: 90%; margin-top: -10px; margin-bottom: 10px; text-align: center;\">Double pole single through relay<\/span><\/span><\/p>\n<div class=\"paragraph\" style=\"text-align: justify; display: block;\"><span style=\"font-size: medium;\">Relays can also be used to measure voltage across batteries. A<br \/>\ndouble pole single through relay is best choice here. A double pole single through relay has a single coil and double channels. When coil is energized two contacts are instantly made. Since two contacts are made. Battery both positive and negative terminals can be connected to this relay for input. A typical foot print of DPST relay is shown on the right hand side. Normally both the terminals are open and upon coil activation both the poles moves and completes the circuit line through which electric power can flow now.\u00a0<\/span><\/div>\n<hr style=\"width: 100%; clear: both; visibility: hidden;\" \/>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Double pole single through relays with batteries and microcontroller connections are shown below. Take a look I will discuss circuit its pros and cons below the diagram.\u00a0<\/span><\/div>\n<div>\n<div class=\"wsite-image wsite-image-border-none \" style=\"padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\">\n<p><a href=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/battery-monitoring-with-relays_orig.png\" rel=\"lightbox\"> <img decoding=\"async\" style=\"width: auto; max-width: 100%;\" src=\"\/wp-content\/uploads\/2\/2\/1\/5\/22159166\/battery-monitoring-with-relays_orig.png\" alt=\"Series battery monitoring with microcontrollers\" \/> <\/a><\/p>\n<div style=\"display: block; font-size: 90%;\">Series battery monitoring with microcontrollers<\/div>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\">\n<p><span style=\"font-size: medium;\">\u00a0The circuit seems to be pretty simple in diagram but their are some serious pros and cons.<br \/>\n<strong>Pros<\/strong>\u00a0<\/span><\/p>\n<ul>\n<li><span style=\"font-size: medium;\">Only one analog channel of microcontroller is required to measure multiple batteries.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: medium;\"><strong>Cons<\/strong><\/span><\/p>\n<ul>\n<li><span style=\"font-size: medium;\">Digital pins of microcontrollers are required to activate the relay coils and for individual battery an individual pin is required. Digital pins can be reduced by using multiplexers.<\/span><\/li>\n<li><span style=\"font-size: medium;\">Each relay must be properly switched on and off one by one. If the two relays accidentally switched on at the same time their will be a huge blast due to short circuit of batteries.(It happen with me) .<\/span><\/li>\n<\/ul>\n<ul>\n<li><span style=\"font-size: medium;\">Relay on off increases response time of voltage monitoring.\u00a0\u00a0<\/span><\/li>\n<li><span style=\"font-size: medium;\">Relay driving circuit is required.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-size: medium;\">I used arduino mega to monitor a cluster of 32 batteries with the same relay method. I used ULN2003 relay driver to drive the relay coils. UL2003 input is connected to multiplexer output. 4 to 16 multiplexer is used to drive 2 ULN2003 drivers. First i short circuited the 2 batteries and it cost me much at the end i finally fixed the code and inserted some delays which increased the hardware efficiency.\u00a0 \u00a0 \u00a0<\/span><br \/>\n<strong><span style=\"font-size: small;\">I made a simple diy project with the same above logic. Arduino relay is used in the project. Click the below button to take the tutorial.<\/span><\/strong><\/p>\n<\/div>\n<div style=\"text-align: left;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/arduino-series-battery-voltage-monitor.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Arduino relay battery voltage monitor connected in series<\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<div>\n<div id=\"331637165984341224\" class=\"wcustomhtml\" style=\"width: 100%; overflow-y: hidden;\" align=\"left\">\n<h3>Analog Multiplexers<\/h3>\n<\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">Analog multiplexers can also be used instead of relays. Finding a suitable multiplexer and its configuration is as difficult as of optocoupler. I did not have much experience of analog multiplexers i can say any thing more abut them.\u00a0<\/span><\/div>\n<h2 class=\"wsite-content-title\">Batteries connected in parallel<\/h2>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">In parallel combination batteries are connected to increase the shelf life of the source or increase the time of power source to supply suitable voltage to load before needed to be recharged. In parallel combination voltage across each battery remains same. So we can not measure individual battery voltage in this case.\u00a0<\/span><\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">These are some of the ways through which batteries connected in series or parallel can be monitored. If you have any more method in your mind please let me know about it.<br \/>\n<\/span><strong>If you are a DIY circuit maker or an electronics getting started enthusiastic or if you are a electronic major student the below mentioned project is for you. Its monitoring your car battery voltage, engine temperature and automatically switching head lights on off. Tutorial link is below.<\/strong><\/div>\n<div style=\"text-align: left;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/arduino-vehicle-monitoring-system.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Car automation &#8211; Battery Monitor, Engine Temperature, Head lights control<\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<div class=\"paragraph\" style=\"text-align: justify;\"><span style=\"font-size: medium;\">I also made an internet of things project on battery voltage monitoring over WiFi. User can see the battery status now on smart devices like mobile and desktop computers. Nodemcu esp8266 WiFi module is used in the project. Nodemcu Arduino ide is used to write, compile and download the code in nodemcu WiFi module. Project link is given below.\u00a0<\/span><\/div>\n<div style=\"text-align: left;\">\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<p><a class=\"wsite-button wsite-button-small wsite-button-normal\" href=\"\/nodemcu-battery-voltage-monitor.html\" target=\"_blank\" rel=\"noopener noreferrer\"> <span class=\"wsite-button-inner\">Battery monitor over WiFi using nodemcu WiFi module <\/span> <\/a><\/p>\n<div style=\"height: 10px; overflow: hidden;\"><\/div>\n<\/div>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Measuring an individual battery voltage or a whole bank of battery using any microcontroller(arduino, microship pic, Avr, Atmega, Intel, NXP, stm32)is an easy task. You can find many tutorials on internet on how to do so. But what about if we want to measure an individual battery connected to a cluster of batteries in series&hellip;<\/p>\n","protected":false},"author":394,"featured_media":60092,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[32,35,4043,2194,1707,22,1939,1706,1844],"tags":[1175,394,218,2012,178,2315],"class_list":{"2":"type-post","22":"entry","23":"has-post-thumbnail"},"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.2 (Yoast SEO v25.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers\" \/>\n<meta property=\"og:description\" content=\"Measuring an individual battery voltage or a whole bank of battery using any microcontroller(arduino, microship pic, Avr, Atmega, Intel, NXP, stm32)is an easy task. You can find many tutorials on internet on how to do so. But what about if we want to measure an individual battery connected to a cluster of batteries in series&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\" \/>\n<meta property=\"og:site_name\" content=\"Engineers Garage\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/engineersgarage\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"283\" \/>\n\t<meta property=\"og:image:height\" content=\"272\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"EG Projects\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:site\" content=\"@EngineersGarage\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"EG Projects\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\"},\"author\":{\"name\":\"EG Projects\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2\"},\"headline\":\"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers\",\"datePublished\":\"2021-02-07T06:13:52+00:00\",\"dateModified\":\"2023-08-27T15:18:31+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\"},\"wordCount\":1767,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg\",\"keywords\":[\"Arduino\",\"arm\",\"avr\",\"esp8266\",\"pic\",\"stm32\"],\"articleSection\":[\"Arduino Projects\",\"ARM\",\"AVR\",\"Batteries\",\"ESP8266\",\"PIC Microcontroller\",\"Products\",\"STM32\",\"Tech Articles\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\",\"url\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\",\"name\":\"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers\",\"isPartOf\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg\",\"datePublished\":\"2021-02-07T06:13:52+00:00\",\"dateModified\":\"2023-08-27T15:18:31+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg\",\"width\":283,\"height\":272},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.engineersgarage.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.engineersgarage.com\/#website\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"name\":\"Engineers Garage\",\"description\":\"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News\",\"publisher\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.engineersgarage.com\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.engineersgarage.com\/#organization\",\"name\":\"Engineer's Garage - WTWH Media\",\"url\":\"https:\/\/www.engineersgarage.com\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"contentUrl\":\"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png\",\"width\":372,\"height\":52,\"caption\":\"Engineer's Garage - WTWH Media\"},\"image\":{\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/engineersgarage\",\"https:\/\/x.com\/EngineersGarage\",\"https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2\",\"name\":\"EG Projects\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g\",\"caption\":\"EG Projects\"},\"url\":\"https:\/\/www.engineersgarage.com\/author\/eg-projects\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/","og_locale":"en_US","og_type":"article","og_title":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers","og_description":"Measuring an individual battery voltage or a whole bank of battery using any microcontroller(arduino, microship pic, Avr, Atmega, Intel, NXP, stm32)is an easy task. You can find many tutorials on internet on how to do so. But what about if we want to measure an individual battery connected to a cluster of batteries in series&hellip;","og_url":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/","og_site_name":"Engineers Garage","article_publisher":"https:\/\/www.facebook.com\/engineersgarage","og_image":[{"width":283,"height":272,"url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","type":"image\/jpeg"}],"author":"EG Projects","twitter_card":"summary_large_image","twitter_creator":"@EngineersGarage","twitter_site":"@EngineersGarage","twitter_misc":{"Written by":"EG Projects","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#article","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/"},"author":{"name":"EG Projects","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2"},"headline":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers","datePublished":"2021-02-07T06:13:52+00:00","dateModified":"2023-08-27T15:18:31+00:00","mainEntityOfPage":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/"},"wordCount":1767,"commentCount":0,"publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"image":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","keywords":["Arduino","arm","avr","esp8266","pic","stm32"],"articleSection":["Arduino Projects","ARM","AVR","Batteries","ESP8266","PIC Microcontroller","Products","STM32","Tech Articles"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/","url":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/","name":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers","isPartOf":{"@id":"https:\/\/www.engineersgarage.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage"},"image":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage"},"thumbnailUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","datePublished":"2021-02-07T06:13:52+00:00","dateModified":"2023-08-27T15:18:31+00:00","breadcrumb":{"@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#primaryimage","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","width":283,"height":272},{"@type":"BreadcrumbList","@id":"https:\/\/www.engineersgarage.com\/series-combination-of-batteries-voltage-monitor\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.engineersgarage.com\/"},{"@type":"ListItem","position":2,"name":"How to measure voltage of multiple batteries connected in string\/array in series or parallel combination with microcontrollers"}]},{"@type":"WebSite","@id":"https:\/\/www.engineersgarage.com\/#website","url":"https:\/\/www.engineersgarage.com\/","name":"Engineers Garage","description":"Electronic Projects, Electrical Engineering Resources, Makers Articles and Product News","publisher":{"@id":"https:\/\/www.engineersgarage.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.engineersgarage.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.engineersgarage.com\/#organization","name":"Engineer's Garage - WTWH Media","url":"https:\/\/www.engineersgarage.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","contentUrl":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/08\/EGlogo.png","width":372,"height":52,"caption":"Engineer's Garage - WTWH Media"},"image":{"@id":"https:\/\/www.engineersgarage.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/engineersgarage","https:\/\/x.com\/EngineersGarage","https:\/\/www.youtube.com\/channel\/UC0VITh11JSYk-UW7toLebUw"]},{"@type":"Person","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/46bbd53b9db1c5d1580cd604e3d6a2f2","name":"EG Projects","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.engineersgarage.com\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/258abb93057dea88a2a5a7616dccf9a0dc3a77d050ca970493853035a0e6f634?s=96&r=g","caption":"EG Projects"},"url":"https:\/\/www.engineersgarage.com\/author\/eg-projects\/"}]}},"featured_image_src":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","featured_image_src_square":"https:\/\/www.engineersgarage.com\/wp-content\/uploads\/2019\/10\/voltage-divider_orig-1.jpg","author_info":{"display_name":"EG Projects","author_link":"https:\/\/www.engineersgarage.com\/author\/eg-projects\/"},"_links":{"self":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/60093","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/users\/394"}],"replies":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/comments?post=60093"}],"version-history":[{"count":0,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/posts\/60093\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media\/60092"}],"wp:attachment":[{"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/media?parent=60093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/categories?post=60093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.engineersgarage.com\/wp-json\/wp\/v2\/tags?post=60093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}