Help getting design started....


Closed Thread
Results 1 to 6 of 6
  1. #1
    sincity337's Avatar
    sincity337 Guest

    Question Help getting design started....

    Hi Folks,

    I am very new to the world of PIC's, and would like some advice on which direction to head in a project I'd like to implement using PIC's. Some backround on myself first and then the design. This is long so get comfortable...:-)
    I have a basic grasp of electronics (just passed ISCET certification, studying for FCC) and have been interested in using PIC's for a long time. I bought a bunch of books and have a programmer and demo boards, but never got past blinking an led.
    Just recently, I finally convinced work in footing the bill for the PIC class offered by RCG Research. It was a great class for someone like me. Someone who has never really done anything with PIC's, but understands the general usefulness of them. It also helped that I had some electronics training.
    Anyway, after having gone through the class, I feel that I can now jump in with both feet and begin experimenting. Which brings me to where I think I need help in deciding which way to go, as I have an idea where the PIC and all it's power can help me out.
    Here is what I have currently: I have a battery that is comprised of 15 cells connected together. It is charged via a constant current battery charger that feeds 4 amps (voltage varies) to the battery until I decide if all of the cells reach 2.05 volts. Each cell has to be checked individually as they NEVER come up to full charge at the same time and it is critical that they do not exceed the 2.05 volts for any length of time, as it tends to short the cell.
    Since cells do not come up to 2.05 volts evenly, AND the battery as a whole is being fed 4 amps, when a cell does come up to charge, it is "shorted" with a resistive wire, while the other cells continue to charge. That "short" cannot stay on for too long, as the cell will now slowly lose it's charge. As you can see it becomes a rather tedious task of shorting, and unshorting each cell until they all come to their full charge. Lot's of fun let me tell you.
    What I would like to do it feed the charge current to a bus that can supply each cell individually through a relay, MOSFET, or some high current capable "switch" that can be controlled via a PIC or series of PIC's. Obviously the PIC would need to read each cells voltage, then make a decision as to either open the "switch" or leave it on based on that cells indivdual voltage reading. I would also like to display a cells voltage if selected (through a button press or maybe a rotory switch?). As well, during a "discharge" cycle, the PIC should be able to turn that switch on or off depending on the cell's voltage.
    I know it is possible to do this with PIC(s), but what kind of approach should I take? Do I use a high pin-count PIC that can do it all, or do I use multiple PIC's talking to a "Master" PIC? I don't want to take a super long time developing this, cells are VERY expensive and this would greatly extend their useful life. I can buy a really fancy battery management system for about $80,000 US, but I would like to do this as inexpensively as possible.
    There are a lot of really smart people here and I would like your educated opinion in which way to lean as far as using lot's of low pin-count PIC's or a few/one high pin-count PIC. By all means, if you have questions ask away!
    Any advice would be greatly appreciated.

    Thanks in advance.....

    James
    Last edited by sincity337; - 24th October 2005 at 05:28. Reason: Didn't read well...

  2. #2
    Join Date
    Oct 2005
    Posts
    28


    Did you find this post helpful? Yes | No

    Default I'm fairly new also

    but it would seem like you could implement this on one PIC chip, like the 16F876A

    PORTA analog inputs

    PORTB 8 digital out
    PORTC 8 digital out

    either use a mux chip to select the cells to be read by the on chip A/D or use an external A/D chip (or two) to read in all the cell voltages. Use ports B&C to control the cell switches.

  3. #3
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    Hi James,

    Curious... this multi-cell battery arrangement... are all of these cells in series? If so, can you add wires in-between each of the cells... and pulse charge them individually depending on their current voltage reading?

    I'm no genious... but it seems if you had access to each cell, you could first read it's voltage, then smack it with a charge pulse and then move to the next cell. If the cell was fully charged, you'd skip over it. You could store each of the cells voltage for recall and viewing at any time on a display. You would not need to short the cell with a resistive charge. This assumes you have the multi-cell battery off-line for charging... such as a cordless drill battery.

    The pic is a good choice. If you are new to PICS might I suggest that you get playing with some code a bit... scrounge the internet for some circuits that might be related to what you are doing and start playing with it.

    I assume you have PicBasic Pro.

    I purchased Microcode Studio Plus with it's Bootloader. The 16f877 is a nice fat chip with plenty of breathing room and peripherals. It's more than you might need but inexpensive enough and you can stick the bootloader in it. I can't say enough how much the bootloader has helped me along. It's great for a beginner. You write a bit of code, press a button (to load your program into the chip) and see what you've done... instant feedback!

    I would love to hear more about your project.

    Good Luck,

    Ross

    [email protected]
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  4. #4
    sincity337's Avatar
    sincity337 Guest


    Did you find this post helpful? Yes | No

    Default Thanks

    Ross,

    Thanks for the info. I think you are suggesting some of the same things that I was leaning towards. I have been doing lots of searching on the net and found some "universal" chemistry battery charger chips from Maxim, can't think of the model number off the top of my head right now. Apparently it will do what I want, I just have to set up the voltage and current reference and it applies and releases the load as needed. I guess I could use the PIC as a "supervisor" if you will, to enable each cells charger and even read and display it's voltage reading.
    I am currently waiting for my supply guys to order the evaluation kits for the Maxim IC's. If I get them to work, and work with a PIC I will definitely let you know how it goes.
    Thank you so much for the input. It is really important for us novices to get input and helpful hints from people that have more experience.

    james

  5. #5
    sincity337's Avatar
    sincity337 Guest


    Did you find this post helpful? Yes | No

    Default Me again

    Just for the curious:

    I have requested information from Vicor for their power supplies that may work for my battery cells. I need 2v @ 4A constant current to charge the cells, and they have a system called the MegaPAC that holds their power supplies mounted as cards. Each card is controllable via a logic gate to turn it off and on. I think I might be able to easily (HA!) program a PIC to monitor voltages for each cell and switch the power supplies off when the cell voltage reaches 2.0v.
    Of course I really need to sit down and decide what other features or controls I would like to include in my program.
    Anyway, thought you guys would at least like an update on what I was doing with this project.

    James

  6. #6
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,620


    Did you find this post helpful? Yes | No

    Default

    Hi, Sincity

    There's a simple solution, not needing PIC's !!!

    Have a trip to Modeller's forums ( www.rcgroups.com i.e. ) and search for LiPo Balancers ...


    THE link : http://www.rcgroups.com/forums/showthread.php?t=270580

    Dan Baldwin's scheme is, I think, the most efficient here ...


    The goal is not to have a cell voltage over 4.2 volts ...

    I think it sounds something good for you !!!

    Alain
    Last edited by Acetronics2; - 12th November 2005 at 16:05.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Propeller Clock Advanced Design
    By Balachandar in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 21st June 2022, 21:38
  2. how large and complex firmware you design using pbp?
    By chrdcv in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 22nd December 2008, 01:30
  3. PIC16F88 senior design
    By AlaskanEE in forum Serial
    Replies: 71
    Last Post: - 2nd May 2007, 15:06
  4. How did you get started .....
    By keithdoxey in forum General
    Replies: 25
    Last Post: - 13th April 2007, 20:29
  5. PCB Design Partnership Enquiry;
    By arbel in forum Adverts
    Replies: 0
    Last Post: - 15th February 2007, 09:07

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts