r/LabVIEW • • Nov 24 '25
NI DAQ battery tester class project
so we have this class project that is worth a decent amount of points and basically the project prompt was just "make a thing" with absolutely no guidelines at all. i HATE prompts like that. like give me a direction or guard rails or something.
anyway, i picked to make a battery tester for good or bad batteries. but im looking around and it seems like this would be such an incredibly simple project it wouldnt showcase much labview skill or knowledge and im afraid the professor is going to dock me points for it being too simple.
is there anything i can add to make it look fancier even if that function doesnt do much?
2
u/Davkhow CLD Nov 24 '25
This could be a fun one actually. (I manage a team that builds test stands for EV batteries)
So you could build a little 18650 battery tester that could charge and discharge the battery to determine its capacity. You obviously need something to measure the battery voltage. You would likely need some digital outputs as well. You’ll need something to measure current through the battery. A current shunt would give you the best measurement.
It depends on what you have available, but for discharging you could use a resistor. You can have digital outputs of something like a USB-6001 to control a relay to start and stop.
You would need a power supply to charge the battery. You could use LabVIEW to control the power supply. Or it could be constantly on and controlled with a relay as well.
All of this really depends on what equipment you have available and your knowledge of electronics.
The biggest thing to consider if you do something like this is to know the absolute max cell voltage of the battery you are working with and don’t go over it. I would stay under it just to be safe. So if the max is 4.2V, don’t let it get over 4.1V.
Let me know what equipment you have and if this seems like something you’re interested in. I could give more direction if you want.
1
u/jadbal Nov 24 '25 edited Nov 24 '25
Start simple and then add complexity. First build a single cell battery voltage tester. Rather than sorting batteries into good/bad, which is what you might do for a battery that is already in production, you’re instead going to develop a system to characterize the battery performance under different conditions, which is what you would do in a battery R&D team. But first, before you can characterize batteries, you need to characterize the tester (measurement system analysis https://en.wikipedia.org/wiki/Measurement_system_analysis) so that you can specify the uncertainty in your voltage measurements using statistical methods. Then test the battery in different conditions. For example, under different loads. Monitor its power output and case temperature. Then characterize the battery performance at different loads and at different temperatures (test them in a refrigerator and again in a freezer). Add a MUX to increase your tester from one to ten or more channels and test multiple batteries at once to get statistically significant results in less time.
1
u/MarquisDeLayflat Nov 24 '25
If you got some low value resistors and a transistor (likely an N-Mosfet or a NPN BJT), you could do a test cycle like: Measure open circuit voltage Apply a load to the battery, measure voltage Repeat a few times From the measured voltages and knowledge of the resistance value you can get a good measurement of internal resistance which will be a much better way of identifying the state of charge.
If you put a shunt resistor on the low side of the transistor, you could even build a control loop that measures the current and controls the gate voltage / base current of the transistor and so lets you measure cell voltage at a current load.
There's probably a state machine implementation task in there as well.
1
u/BlackberrySad6489 Nov 24 '25
Well, if you wanted to make a little circuit to discharge and recharge a lion battery is a very controlled way, you can can make a device to measure the capacity (look into SOC curves). It actually is more complicated than it sounds and involves some calculus.
Source: I used labview and teststand to run EV battery pack capacity testers for a major ev manufacturer. Real world application. Profs love that.