![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| I'm not sure if I'm allow to post this...I'm currently working on a project regarding the Miniature Remote Controlled Solar Car and this is my second post. First was the DC/DC Converter (Miniature Remote Controlled Solar Car). Hope this post is allowed. Hi there. I'm currently working on this project and needs help badly. At this point, I will be working on the implementation of the PIC Microcontroller to monitor a few matters and display them using a LCD (Figure Project). These includes the following: a.) Read current load current drawn from the load, which is a 12V DC motor. b.) Present the approximate life-time of the battery at that level with that drawn current. c.) Present the battery level in terms of percentage. :?: Would like to ask, how do I tap the current drawn by the load and feed it to a Current-to-Voltage Converter before applying it to the PIC microcontroller? :?: The battery level in terms of percentage, if I were to come out with a look-up table for reference before writing a programme for the PIC microcontroller, do I consider having a table with reference to the voltage or with reference to the current? Reference Figure 1. Thanks in advance.
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | |
| |
| | (permalink) | ||
| Quote:
You could also have another resistor monitoring the charging current from the solar panel - or just one resistor, monitoring the current to and from the battery (like car ampmeters do). Quote:
For best accuracy I would suggest you plot a number of discharge curves for different loads, and implement them as a number of lookup tables in the PIC - you can measure the present load current, and battery voltage, then call the table that most closely matches the current. The graphs you plot will also look good, and take up plenty of space, in your write up :lol: These tables don't need to be particularly long, don't forget you're not measuring from 0-15V for a 12V battery, only something like 10-15V - you shouldn't discharge a lead acid battery more than about that (the battery spec will give the exact figure). | |||
| |
| | (permalink) | |
| Quote:
I should use different loads, such as: a.) 100 ohm resistor b.) 1 kohm resistor c.) 10 kohm resistor Then, using each of these loads and leave it connected to the battery for a period of time, say 5 minutes and jot down the readings for the voltage as it varies with time. From there, I plot the graph with the following axis (Figure: discharge curve) Then, when I apply the real load, say, a motor that draws 0.6A, I will call the table that draws 0.5C (0.65A) since it is the closest? Please correct me if I'm wrong :cry:
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | ||
| |
| | (permalink) | ||
| Quote:
Rather than do it manually it would be easier if you have a data logger, or multi-meters with RS232 interfaces - but manually is fine, it just takes more effort. | |||
| |
| | (permalink) | |
| Quote:
By the way, would like to ask for your opinion about the duration. Is it true that I might need to run that specific load for up to hours in order to see the changes in battery voltage level? Thanks again, Mr. Nigel Goodwin.
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | ||
| |
| | (permalink) | |
| Quote:
I did some battery life tests many years ago, the results are shown on my website at http://www.lpilsley.co.uk/viewbatt.htm. Notice that the longest one was over 9 hours!. I used an A2D which plugged into the parallel port, and some DOS software I wrote. | ||
| |
| | (permalink) |
| Oh no! I saw your plots...up to 9 hours? You're going scold me for asking help in this way
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | |
| |
| | (permalink) |
| Wow, your instructor just won't be satistfied until he's SURE he's charged you with the nigh impossible. OK, here's the skinny on measuring battery capacity. You do not measure out a discharge like this. It's pointless. You have a sealed lead acid battery, right? The voltage at various states of charge is well known and easy to find on the internet, EXCEPT that it's strongly temp dependent. You can't measure state-of-charge accurately without knowing the temp (well, if you're always in a temp-controlled room, that's known), and having a fairly accurate ADC. The PIC's ADC state can do it if you use 2% precision resistors, use an accurate Vref, and calibrate the result versus a known voltage source. But that only measures the unloaded battery. If the battery is being used, or has been loaded recently (the exact period of time which constitutes "recent" depends on how heavily it was loaded and temp), it will bring down the voltage slightly and it apppears as if the charge state is lower than it is. Perhaps your motor is not big enough to constitute enough load to lower the battery voltage enough to interfere with the calculation. You could try to see how the battery voltage drops as it's loaded, but it is time and temp dependent, so it could easily get complicated and never produce a useful result. You could have it take the state-of-charge only when the motors have been idle for awhile, and remember that state while deducting the current later observed being drawn by the motors. Eventually you will get another opportunity to measure state-of-charge voltage when the motors aren't being used and then remember that new point. Half the battery meter systems out there, developed commercially, don't work well. | |
| |
| | (permalink) | |
| Quote:
| ||
| |
| | (permalink) | |
| Quote:
If it is not too much trouble for you, mind to explain again? Thousand apologies.
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | ||
| |
| | (permalink) |
| By the way, Mr. Nigel and Mr. Oznog? Can we say this: Method by Nigel: a.) Time consuming. b.) I might not get my results even though, after waiting for long due to very low load current? but if: a.) I'm using such resistor values? (100ohm, 50ohm and 10ohm), won't I get a high current drawn from the battery? b.) If my surroundings is approximately 30-32 degree celcius. Such temperature range, will it cause my results to vary a lot? c.) I will only be getting 3 sets of results, meaning the battery will only go through the process of charging - discharging for three times, will these three times lower my possible charged voltage state value a lot? Sorry if there is any nonsense that exist in my questions.
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | |
| |
| | (permalink) | |
| Back to the earlier on post by Oznog. Quote:
But the temperature surroundings in my country is around 30-34 degree celcius. Range difference from 20 to 30 degree celcius, will this range of changes cause a lot of changes in the battery characteristic or it is minor and I can implement this graph as a guide for me? Any opinions? Please? Thanks in advance...
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | ||
| |
| | (permalink) |
| Hi there, as mentioned earlier, I'm working on the Monitoring Portion of the battery. Currently learning up the PIC microcontroller which I will be using. I would like to ask regarding the following matters. Can anyone explain regarding the use of the following? a.) RTCC (Real Time Clock Counter) b.) WDT (Watch Dog Timer) c.) Brown-out Detection For (a) and (b), what are the differences besides the rate? Thanks in advance.
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | |
| |
| | (permalink) | |
| Quote:
But briefly: RTCC - an internal counter/timer, can be used from internal or external clocks. WDT - a crude internal RC timer, of very low accuracy, if the WDT is enable it will reset the PIC as it times out. Your code should include CLRWDT instructions accordingly to prevent this. Used to reset your PIC if it gets locked in an endless loop (assuming you don't have a CLRWDT instruction in the loop). Brown out detction - sets the voltage level that the PIC resets at, so if the power supply drops below a certain level the PIC will reset. | ||
| |
| | (permalink) | ||
| Quote:
Quote:
By the way, do you mind explaining the purpose of including multiple NOP continuosly in a specific programme? I found a programme where it has multiple NOP being used continuosly in a sequence. Thanks...
__________________ Lord Robert Stephenson Smith Baden Powell\'s last message : -BE PREPARED- | |||
| |