tag:blogger.com,1999:blog-4702287955799719958.post4678112135843454990..comments2023-06-03T09:59:00.759-04:00Comments on Arduino Your Home & Environment: Monitoring voltage of a dc battery supplyUnknownnoreply@blogger.comBlogger19125tag:blogger.com,1999:blog-4702287955799719958.post-2645772921884492132018-12-05T11:00:32.593-05:002018-12-05T11:00:32.593-05:00mkr zero pinout are found at https://store.arduino...mkr zero pinout are found at https://store.arduino.cc/usa/arduino-mkrzero<br />KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-79130756946246180202018-12-02T14:28:24.254-05:002018-12-02T14:28:24.254-05:00Je veux savoir comment brancher les fils de la bat...Je veux savoir comment brancher les fils de la batterie sur l'arduino MKRZERO pour l'alimenter et commente on doit charger cette batterie???<br />Anonymoushttps://www.blogger.com/profile/16239651325235998405noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-33954362381582434112013-04-11T20:19:24.732-04:002013-04-11T20:19:24.732-04:00Yes, the grounds have to be common in all Arduino ...Yes, the grounds have to be common in all Arduino projects where you have separate power sources, unless isolation is a requirement, like with optoisolators.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-51320652492178999822013-04-11T08:59:58.122-04:002013-04-11T08:59:58.122-04:00I was having trouble with this, so to help others ...I was having trouble with this, so to help others coming by this post, you should know that your Arduino and your voltage source have to share a common ground. This is one of those things I think people experienced in electronics would just know, but those of us coming at this from software don't. <br /><br />Without the common ground, I was getting really erratic readings on my analog in. (Like 0, then 5.01 volts, then 0, then 2.3 volts, then 0, etc.) My Arduino was getting power from USB, my voltage divider was getting power and ground from my battery. So my Arduino analog in was getting the result of the voltage coming out of the voltage divider. But there was no connection between the grounds (so in the diagram above, the GND at the bottom right wasn't connected to the GND on my battery). <br /><br />When I interpreted the diagram with the GND at the bottom right as sticking off a bit from that junction, like the +V, I tried tying my grounds together. The result: rock solid readings from my voltage divider, with a reading right where I would expect based on my resistors and my battery.<br /><br />I suspect if I were powering the Arduino from my battery there wouldn't be an issue, since the Arduino's ground would *be* the battery's ground.kjmclarkhttps://www.blogger.com/profile/00490417628052004621noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-79048547018009627142012-11-02T19:48:15.378-04:002012-11-02T19:48:15.378-04:00I'm not understanding your question. There is ...I'm not understanding your question. There is little current flow, due to the high impedance of the input. What grounds are you referring to? A 12k R1 and 5k R2 resistor will reduce power consumption.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-30313588894603675082012-11-02T09:05:24.571-04:002012-11-02T09:05:24.571-04:00Hi! Wont the current be too high with the grounds ...Hi! Wont the current be too high with the grounds on the Arudino board being connected to each other?ngawinowskihttps://www.blogger.com/profile/05694010823319062378noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-12294864166397804132012-11-01T21:50:35.843-04:002012-11-01T21:50:35.843-04:00sure.sure.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-41597684301420278252012-11-01T09:30:09.301-04:002012-11-01T09:30:09.301-04:00Hi! Is it possible to have two DC voltage sensors ...Hi! Is it possible to have two DC voltage sensors connected to the same Arudino board?Anonymoushttps://www.blogger.com/profile/13663312241253545721noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-2974480666965251952012-08-29T22:03:44.095-04:002012-08-29T22:03:44.095-04:00You can measure a 3.7v battery, but the resistor v...You can measure a 3.7v battery, but the resistor values would be different. See <a href="http://arduinotronics.blogspot.com/2012/04/voltage-monitor.html" rel="nofollow">http://arduinotronics.blogspot.com/2012/04/voltage-monitor.html</a>KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-85112921209293555122012-08-27T01:23:36.848-04:002012-08-27T01:23:36.848-04:00Would this work to measure the voltage of a 3.7v L...Would this work to measure the voltage of a 3.7v Li-Ion battery? Will the resistors be the same?Tamirhttps://www.blogger.com/profile/18223116012199898479noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-74570342671240642852012-06-06T21:28:02.870-04:002012-06-06T21:28:02.870-04:00The barrel connector feeds the voltage regulator. ...The barrel connector feeds the voltage regulator. Apparently, so does Vin. You are correct in that regard.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-85952836188677855042012-06-06T20:54:05.417-04:002012-06-06T20:54:05.417-04:00I'm no expert diagram reader but it looks like...I'm no expert diagram reader but it looks like VIN and the positive barrel jack post are connected, only separated by a diode (presumably to prevent back feeding the barrel?) http://circuitdiagram.net/wp-content/uploads/2011/06/arduino-uno-schematic.jpg<br /><br />I assumed this concept would be easy originally, maybe even with software alone (I'm a software guy ;) but I found nothing and I recall reading that it wasn't possible. I should know better than to listen to the Internet.<br /><br />Anyway, thanks for the post and comments.sudopeoplehttps://www.blogger.com/profile/16963535990887165625noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-36982544563452603102012-06-06T20:34:42.741-04:002012-06-06T20:34:42.741-04:00The barrel connector is the power port on the ardu...The barrel connector is the power port on the arduino. It can take 7-12v or so. Vin can only be 5v, and the voltage divider +V is higher than that (mine is about 16v). Why do you have a problem with monitoring the same power source? We do it all the time.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-11450710551095446112012-06-06T17:31:08.185-04:002012-06-06T17:31:08.185-04:00Well the whole idea is that I don't know what ...Well the whole idea is that I don't know what +V is... What is the power port? On an Uno for example I have 3.3v, 5v, and VIN. VIN would be coming from a battery or whatever *into* the Arduino, correct?<br /><br />For whatever reason it doesn't seem right to be measuring the voltage in a system that's powering itself. Thanks.sudopeoplehttps://www.blogger.com/profile/16963535990887165625noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-10241139434483815072012-06-05T18:16:37.149-04:002012-06-05T18:16:37.149-04:00You could if +v is 5v. Otherwise if it's 7-12v...You could if +v is 5v. Otherwise if it's 7-12v, use the power port.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-37914483845592381822012-06-05T15:36:38.415-04:002012-06-05T15:36:38.415-04:00Does it make a difference if the Arduino is runnin...Does it make a difference if the Arduino is running of the measured source, ie. could you wire the +V to the VIN pin?Unknownhttps://www.blogger.com/profile/09232055119976943623noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-74025565015341504412012-05-26T18:42:38.186-04:002012-05-26T18:42:38.186-04:00I think there is an error in the calculation of re...I think there is an error in the calculation of resistorFactor:<br /><br />According to the example in the book you should divide the resolution of analogRead(), i.e. 1023 by R2(R1+R2) to get 255.<br /><br />At least I think so..Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-77083077492803552732012-03-19T09:29:08.352-04:002012-03-19T09:29:08.352-04:00The wattage of the resistor is depended upon the p...The wattage of the resistor is depended upon the power running through it. Since all we are doing is "watching" the voltage, not powering a load" the power consumption is very low, so 1/4 or 1/2 watt resistors will work fine.KK4HFJhttps://www.blogger.com/profile/17495516851959991808noreply@blogger.comtag:blogger.com,1999:blog-4702287955799719958.post-49912500299829967442012-03-19T03:47:59.544-04:002012-03-19T03:47:59.544-04:00I want to ask you something stupid but do i have t...I want to ask you something stupid but do i have to use regular resistors (small ones) or some special bigger ones? Cause i want to measure voltage from 2 parallel 12v batteries from a truck.Lefterishttps://www.blogger.com/profile/04717924657853651806noreply@blogger.com