See the github page for some simple circuit guidelines for this library. As a result, be sure to have the battery disconnected whenever programming. It is worth noting that as the project stands right now for Arduino boards there is no way to prevent current from the USB programmer from going into the battery and causing problems. External components are kept to an absolute minimum, requiring only the battery and a shunt resistor (which isn't needed if you don't care about current draw). From these measurements the library is able to measure the external voltage, allowing users to choose what to do in undervoltage/overvoltage/overcurrent cases within their projects. This project utilizes the ATmega328's internal 1.1V bandgap reference to allow for accurate measurements of external voltages. The Arduino library can be downloaded from the github page here:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |