Thread: Battery charging algorithm

  1. #1
    Registered User
    Join Date
    Oct 2011
    Posts
    4

    Battery charging algorithm

    Hi there everyone, name's keith. I would like to seek help from big brothers and sisters out there. Currently having my final year project and suppose to come out with battery charging algorithm and apply the MPPT (Maximum power point tracker) . Basically i dont really know much about c++ , i am using a Silicon lab C8051F120DK microprocessor. I was also given a flow chat to follow. Any other information needed you can ask me. Pv is the solar panel. Thank you so much.



    Battery charging algorithm-img_1131-jpg

  2. #2
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    The flow chart describes the steps (rectangular boxes). tests your algorithm must do (diamonds), and branches depending on results of those tests (for example, the first test has results of yes or no).

    See if you can describe, in english, what the steps of the algorithm need to be. If you can do that, then translating that description to C++ is simple. Of course, you will need to do some work to work out what the right C++ syntax is. But, since this is essentially a homework problem (the purpose is for you to learn, not someone else), a little effort on your part for that would be a good idea.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  3. #3
    Registered User
    Join Date
    Oct 2011
    Posts
    4
    Thanks for the prompt reply. But i really dont know how to start from beginning. Are there any tutorials that i could refer to or read up about translating the description to C++ ?

  4. #4
    Registered User
    Join Date
    Jun 2005
    Posts
    6,815
    If you wanted to (say) translate a description from english to german, then you would learn enough basic german so you can map from one to the other.

    The idea is the same in translating a english language description into C++. The only difference is that the basics of C++ are easier to learn than the basics of german, since german is for communication between people, whereas C++ is for communication with a computer (or a compiler, which is a computer program) and humans are much more free in their manners of communication than computers.

    I've yet to hear of any tutorial for translating from one language to another, that doesn't assume some basic understanding of both languages. You need to focus on learning the basics of the C++ language. Since you apparently know english, any introductory text on C++ (even a really bad one) will suffice.
    Right 98% of the time, and don't care about the other 3%.

    If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.

  5. #5
    Registered User
    Join Date
    May 2011
    Location
    Around 8.3 light-minutes from the Sun
    Posts
    1,949
    Quote Originally Posted by anduril462 View Post
    Now, please, for the love of all things good and holy, think about what you're doing! Don't just run around willy-nilly, coding like a drunk two-year-old....
    Quote Originally Posted by quzah View Post
    ..... Just don't be surprised when I say you aren't using standard C anymore, and as such,are off in your own little universe that I will completely disregard.
    Warning: Some or all of my posted code may be non-standard and as such should not be used and in no case looked at.

  6. #6
    Registered User
    Join Date
    Oct 2011
    Posts
    4
    Ok thank you so much , i will go look for it now

  7. #7
    Registered User
    Join Date
    Oct 2011
    Posts
    4
    Hey guys, i am now having problem with my microcontroller, i tried to read my results out to a hyperterminal but i could not get it. I made a rs 232 cable myself and crosswired them, but when i tried to downlaod it, they said there was a downloading error. I tried using the cable and connect PC to PC its working. Could anyone help me out ?

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Have you read this -> http://www.silabs.com/Support%20Docu...51F12x-13x.pdf

    Have you visited Silicon Labs - high-performance analog-intensive mixed-signal ICs

    Have you done any searches on that site for application notes and other sources of information.
    Did you even know they have a forum such as this, where like-minded people congregate to discuss their common interest?

    Where did you get your board from in the first place, and did it come with any kind of support.

    Vague statements like "was a downloading error" and pointless questions like "Could anyone help me out ?" are bad enough when people are using common compilers and operating systems. But when you're using "board x" which you can pretty much guarantee that no one else on any random forum will also have, what possible chance would we have of being able to offer any more than a virtual cup of coffee.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How does a battery die
    By BobMcGee123 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 11-30-2007, 08:55 PM
  2. empty battery on Mobo
    By GanglyLamb in forum Tech Board
    Replies: 17
    Last Post: 01-29-2003, 10:37 AM
  3. portable battery power supply
    By goose in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 08-08-2002, 11:31 PM
  4. Do i need a new battery ?
    By Nutshell in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 04-06-2002, 04:20 AM
  5. the computer battery
    By lambs4 in forum A Brief History of Cprogramming.com
    Replies: 9
    Last Post: 03-25-2002, 05:51 AM