![]() Im riding a mountainboard, so I dont need to put inside of the empty space of the truck plate. Well, I just listed there what was at hand! I would like to incorporate the 16x2 display, as I thought it might be able to offer a lot bars for voltage left, as the display is pretty wide! Its uncomfortable to write long text and attach links on a cell phoneĮ: sure you can use arduino instead of the “raw” microcontroller if size doesnt matter and you dont plan making PCB for it ( which you will have to if you want to measure the current as you need a few additional components Cool thanks for input! I will provide more info, recommendations and schematics tomorrow once I get on my desktop. Firmware is pretty straight forward, you can either write it in C or in ASM. 10 bit resolution might be not enough to cover 0-100A range with precise… So you will need an external ADC with at least 16 bit resolution. You can measure the current using shunt, but you will need an amplifier to amplify the signal from the shunt. ATtiny has 3 ADC pins that can measure voltage in 10bit resolution. You can just use ATTiny85 microcontroller or something similar and mini oled display. Using arduino for this is pointless and just makes it bigger. That means the value can be between 0-1023. It was said in the manual of MAX471, that it is possible to use ‘‘external sense resistors’’. Though, the simple models which are available, seems to be able to measure only up to 3A of power… way too low for something useful + they use resistors and perhaps dissipate heat as they measure it! On a side note, I also considered it would be cool, if there was a chance to make a arduino based coulometer / wattmeter, which collects ah/wh stats and of course, measures current! Ok so I hope that my logic is correct, the hardest part will be to program the lcd… I will look up some tutorials and will post some more info + some code, once I have researched a bit more This way I wont have to do the math so much and I will achieve even better accuracy, even better, it should be possible to use for higher voltages too! Of course, the pitfall is that it relies on just one parallel group of batteries, to determine the whole pack’s voltage…īut as I also have a wattmeter installed, I think I wont need a backup plan/voltage meter for total pack’s voltage… ![]() (1024 - 176).Īs I can see from this, a big range of bits dont get used up this way, so I might as well use justĪ single cell group voltage to determine the left percentage of the battery! The lowest point will be around 3.45v per cell or 20.7v for total pack voltage! In bits, this should correspond to 848 bits. The following idea is as follows: 1008 bit will serve as 100% This way, I assume, I need to divide 25v / 1024 = 0.0244 v I derive this 0.025v precision because I’ve heard you can only use 1024 bit precision when measuring through analog pin. So, anyways, it looks like I will get 0.025v precision? Is this right? Can you or step in and comment onto this? Not 4.2v, because im not using lipos and I charge li-ions only till 4.1v. I assume I can be lucky that I still use 6s system, so my max voltage will be only 24.6v (4.1v x 6cells). So, anyways, I came up with an idea to use arduino nano and a simple ‘‘voltage divider’’ - consisting of 2 resistors for bringing the voltage down. If you have any problems or suggestions, you are welcome to email us or post on the DFRobot forum!įor any questions/advice/cool ideas to share, please visit the DFRobot Forum or email More Documentsīattery_Capacity_Indicator GITHUB Battery_Capacity_Indicator Schematic.Hi there! I started off this topic based on ideas and other info I collected in this thread: There are no questions about this product yet. #define CLK 3//pins definitions for TM1651 and can be changed to other portsīt(5) //0 ~ 7 mean to different brightness īame(FRAME_ON) //light the frame of the battery display or FRAME_OFF to turn off the frame of the battery displayįor(uint8_t level = 0 level < 6 level ++) Battery Capacity Indicator libraries About Library installation.īattery Capacity Indicator libraries About Library installation.Arduino IDE V1.6.9 Click to Download Arduino IDE from Arduino®.This tutorial will demonstrate how to use the Battery Capacity Indicator. Our Battery Capacity Indicator is a user friendly indicator interface that you can use in your projects. ![]() Sometimes battery information is not readily available or is hard to understand at a glance. Battery_Capacity_Indicator_SKU_FIT0466-DFRobot
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |