The Philippine Electronics and Technology Forum
February 10, 2012, 01:07:30 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  

Pages: 1 [2]   Go Down
  Print  
Author Topic: Question about Battery Charging  (Read 1056 times)
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #20 on: May 30, 2010, 03:23:37 AM »

@marleona, why not use a mosfet instead to switch your solar panel. baka mas mura pa sa relay and its associated supporting components.  and don't forget to insert a blocking diode (in series with your solar panel) to prevent discharge of your battery through the solar panel if there is not enough light shining on it.
Logged
The Philippine Electronics and Technology Forum
« Reply #20 on: May 30, 2010, 03:23:37 AM »

 Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #21 on: May 30, 2010, 08:52:53 PM »

@marleona, why not use a mosfet instead to switch your solar panel. baka mas mura pa sa relay and its associated supporting components.  and don't forget to insert a blocking diode (in series with your solar panel) to prevent discharge of your battery through the solar panel if there is not enough light shining on it.
yep, nalagyan ko na po siya ng blocking diode. may circuit po ba kayo regarding sa mosfet? kasi ung naunang post kay repax using relay try ko siya gawin bukas at masubukan in practice.
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #22 on: May 31, 2010, 04:04:37 AM »

isang sample ito.. the mosfet should be logic type such as 20N03L , MTP15N06VL , etc. paki lagyan na lang ng blocking diode, di pinakita sa diagram.  ang maganda sa mosfet as switching element ay pwede kang mag implement ng PWM para sa charging mo. say kung malapit nang mafull charge yung battery, bababa yung duty cycle to lower charging current. tapos pag full charge na yung battery, i-memaintain nya yung duty cycle just enough for the load current + trickle charge current ng battery. anyway, since meron ka nang components for the relay switching, it would be more practical to continue with that scheme.
Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #23 on: May 31, 2010, 05:12:55 PM »

^kaya nga po... at saka 2 battery eh magswitch siya kapag puno na si Batt a to Batt b. Anyways ang galing pala nun dahil kasi pwede niya macontrol ung charging current flowing through batteries... hahaha napapaisip tuloy ako!!! pero sige check ko pa rin kung pwede ung dalawang options!?
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #24 on: May 31, 2010, 10:40:18 PM »

you could easily independent bank charging with mosfet. just add another mosfet(mosfet B) for batt B. mosfet B is driven by another gpio (GPIO_B). each battery is monitored by its own adc channel. now, just implement in firmware when to switch mosfet A or mosfet B based on the readings of adc ch A and adc ch B.
Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #25 on: May 31, 2010, 11:58:53 PM »

wahahahah un lang gagamit ako ng isa pang gpio para sa isang battery hehehe. pero may question po ako ?


may kulang po yang circuit....


put rectifier diode in series with the battery...to avoid back pedal ng current in time mag charge ang battery....


yan ung gusto kong gawin kung relay, pero paano ko naman siya iimplement kapag load??? well meron na yan para sa "solar cell" as a load eh what if naman po kung load niya talaga ay load na??? paano ko siya ipapasok sa batt A and batt B at siyempre gagamit pa ako ulit ng ibang gpio kasi siya ung magcontrol kung wala na si batt a at switch siya kay batt b??? wahaha hirap iexplain??? or pa follow na lang po nito... http://www.electronicslab.ph/forum/index.php/topic,15433.20.html#quickreply
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #26 on: June 01, 2010, 03:25:48 AM »

take a look at this.. tipid na sa GPIOs ito..

battery voltages are monitored by adc channels 0 and 1 via voltage dividers (to provide proper voltage levels to adc inputs). if batt1 needs charging, PA0 should turn high, turning on mosfet Q1 which charges batt1. a high PA0 also turns on mosfet Q2 thus putting the load on batt2. if however batt2 needs charging, PA1 should turn high, turning on mosfet Q4 which charges batt2. a high PA1 also turns on mosfet Q3 thus putting the load on batt1.  note however that in this scheme, the solar panel must also be continuously on charging either one of the batteries in order to power the load continuously. thus you can not implement PWM charging here.  to have more flexibility in features, you can drive each mosfets via their on GPIO (say Q6 driven by PA3, Q8 by PA4). with each mosfet driven by separate GPIO, you can implement PWM charging, LVD (low voltage disconnect which turns off the load if both battery levels are too low and at the same time turn on the panel to charge a battery), make before break switching (this ensures that the load is connected to a power source at all times). the zener diodes are there to protect the mosfets from excessive vgs (refer to your mosfets specs for the max vgs and choose zener diode voltage accordingly). you can also replace the mosfets with relays if you prefer using relays. diodes d7 and d8 ensures continuous mcu power.
Logged
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #27 on: June 01, 2010, 09:27:31 AM »

take a look at this.. tipid na sa GPIOs ito..
battery voltages are monitored by adc channels 0 and 1 via voltage dividers (to provide proper voltage levels to adc inputs). if batt1 needs charging, PA0 should turn high, turning on mosfet Q1 which charges batt1. a high PA0 also turns on mosfet Q2 thus putting the load on batt2. if however batt2 needs charging, PA1 should turn high, turning on mosfet Q4 which charges batt2. a high PA1 also turns on mosfet Q3 thus putting the load on batt1.  note however that in this scheme, the solar panel must also be continuously on charging either one of the batteries in order to power the load continuously. thus you can not implement PWM charging here.  to have more flexibility in features, you can drive each mosfets via their on GPIO (say Q6 driven by PA3, Q8 by PA4). with each mosfet driven by separate GPIO, you can implement PWM charging, LVD (low voltage disconnect which turns off the load if both battery levels are too low and at the same time turn on the panel to charge a battery), make before break switching (this ensures that the load is connected to a power source at all times). the zener diodes are there to protect the mosfets from excessive vgs (refer to your mosfets specs for the max vgs and choose zener diode voltage accordingly). you can also replace the mosfets with relays if you prefer using relays. diodes d7 and d8 ensures continuous mcu power.
that's already merely a finished product. imho. ewan ko na lang talaga. thanks for posting.
Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #28 on: June 01, 2010, 05:02:10 PM »

^hahahaha uu nga po. salamat, pero mukhang di ko gagawin ung circuit na to. since relay lang po kasi ung gagamitin ko. nagdadalawang isip lang kasi ako kung iswitch ko siya sa batt a to batt b to load eh hindi ba maturn off si mcu kapag nangyari un. pero sa circuit nakita ko ung capacitor to mcu regulator na un ung magserve ng quick transition to batt a to batt b para di maturn off ung buong system.
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #29 on: June 01, 2010, 06:11:19 PM »

^hahahaha uu nga po. salamat, pero mukhang di ko gagawin ung circuit na to. since relay lang po kasi ung gagamitin ko. nagdadalawang isip lang kasi ako kung iswitch ko siya sa batt a to batt b to load eh hindi ba maturn off si mcu kapag nangyari un. pero sa circuit nakita ko ung capacitor to mcu regulator na un ung magserve ng quick transition to batt a to batt b para di maturn off ung buong system.
the mcu need not change power together with the load. in the example above, d7 and d8 makes the mcu get power from the battery that has higher voltage.  only the load is switched.
Logged
DigitalMind
Technical People
Hydroelectric
*****

Pogi/Ganda Points: 219
Offline Offline

Posts: 3487


« Reply #30 on: June 01, 2010, 08:17:09 PM »

^hahahaha uu nga po. salamat, pero mukhang di ko gagawin ung circuit na to. since relay lang po kasi ung gagamitin ko. nagdadalawang isip lang kasi ako kung iswitch ko siya sa batt a to batt b to load eh hindi ba maturn off si mcu kapag nangyari un. pero sa circuit nakita ko ung capacitor to mcu regulator na un ung magserve ng quick transition to batt a to batt b para di maturn off ung buong system.

you'll reconsider using mosfet...
1.) much cheaper ang mosfets than relays.
2.) relay eat currents... alots. specially solar power application mo. as much as 300mA!
3.) so much more high tech looking. cleaner layout than bulky relays. (yuck)
Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #31 on: June 01, 2010, 09:47:05 PM »

you'll reconsider using mosfet...
1.) much cheaper ang mosfets than relays.
2.) relay eat currents... alots. specially solar power application mo. as much as 300mA!
3.) so much more high tech looking. cleaner layout than bulky relays. (yuck)

hahahaha aaminin ko na po, gets ko ung circuit at siguro ung mosfet kung ano ung part number kasi nasabi na ni sir labgruppen kung ano ung gagamitin eh kaso may zener diode pa diyan etc. ayaw ko ma spoonfeed dito sobra sobra na nga ung tulong ninyo eh. ok na ako siguro sa relay kahit may downside siya at tapos bulky nga lang, pero maliit naman ung nabili ko eh 5v coil rating tapos 30VDC @5A ung sa contact hahaha enough na un sa solar panel namin. Smiley
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #32 on: June 01, 2010, 10:04:46 PM »

add ko lang pala... mukhang off topic po ito eh. Tanong lang kung magswitch si batt a to batt b na nakakabit sa mcu hindi ba magshutdown si mcu??? pero pageexperimentuhan ko pa ito bukas eh using relays and switch from batt a to batt b at titingnan ko kung ano mangyayari sa mcu kung magrestart o magshutdown. pero sabihin ko kaagad ung results para kung pwede na. Maraming salamat!!!
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #33 on: June 02, 2010, 02:54:10 AM »

add ko lang pala... mukhang off topic po ito eh. Tanong lang kung magswitch si batt a to batt b na nakakabit sa mcu hindi ba magshutdown si mcu??? pero pageexperimentuhan ko pa ito bukas eh using relays and switch from batt a to batt b at titingnan ko kung ano mangyayari sa mcu kung magrestart o magshutdown. pero sabihin ko kaagad ung results para kung pwede na. Maraming salamat!!!
kung gagamitan mo nga ng "OR-ing" diodes kagaya sa example ko (d7 and d8) di sya magshu-shutdown.  magiging sort of 1+1 redundant yung power section ng mcu mo. the mcu will take its power from the battery with higher voltage regardless of which battery is connected to your load. note that diodes d7 and d8 are connected to their respective battery directly, not through any switching element (be it a mosfet or a relay). dapat si load lang at si solar panel ang pipili kina batt a or batt b.
Logged
labgruppen
Lead Acid Battery
*******

Pogi/Ganda Points: 70
Offline Offline

Posts: 693


« Reply #34 on: June 02, 2010, 04:21:58 AM »

hahahaha aaminin ko na po, gets ko ung circuit at siguro ung mosfet kung ano ung part number kasi nasabi na ni sir labgruppen kung ano ung gagamitin eh kaso may zener diode pa diyan etc. ayaw ko ma spoonfeed dito sobra sobra na nga ung tulong ninyo eh. ok na ako siguro sa relay kahit may downside siya at tapos bulky nga lang, pero maliit naman ung nabili ko eh 5v coil rating tapos 30VDC @5A ung sa contact hahaha enough na un sa solar panel namin. Smiley
I agree with sir martin. tapos dpak pa yung packaging ng mosfet mo, astig! btw, if ever after finishing your project with relays and decide to explore the same project with mosfets, take note that the part nos. I first posted does not apply with the 2nd circuit I posted. The second circuit uses p channel mosfets and does not require logic type mosfets. IRF7404 looks promising for the solar panel mosfets.. (in soic8 package ito kaya looks hitech) max Vgs is +/- 12 volts, and can conduct at least 5 amperes at Vgs=4.5,  a 6 volt zener will provide ample protection against excessive Vgs while ensuring more than enough Vgs for your solar panel current. Btw, since you will be using relays, i think i am not guilty of spoon-feeding. Don't forget the fuses for your batteries. They may be just 17Ah but they can surely deliver extremely high currents (50's to hundreds of amps) when short circuited.
Logged
marleona
Size D Battery
******

Pogi/Ganda Points: 2
Offline Offline

Gender: Male
Posts: 311



« Reply #35 on: June 02, 2010, 12:05:29 PM »

^wahahaha yep. kapag tapos na ako sa project ko with relays I'll experiment on using mosfets tingin ko astig siya!!! yep, lalagyan ko po siya ng fuses just in case lang naman at least sure na safe ung buong system ko wahahaha.
Logged

It is not the answer that enlightens, but the question.
Don't hesitate to ask question.
If you don't ask, you don't get.
The Philippine Electronics and Technology Forum
   

 Logged
Pages: 1 [2]   Go Up
  Print  
 
Jump to:  


Related Topics
Subject Started by Replies Views Last post
6V 4AH battery charging
Electrical Circuits and Devices
Lena 10 2170 Last post September 30, 2009, 12:19:46 PM
by alyas
battery charging method....
Electrical Circuits and Devices
tdh7700 6 1064 Last post April 03, 2010, 08:39:09 PM
by akhen
self-charging of battery
Thesis and Project Proposal
ayrtonshunt 19 2022 Last post February 15, 2009, 11:46:52 AM
by ayrtonshunt
Battery charging computation....
General Electronics and Technology Discussion
WildSwan 5 689 Last post February 28, 2009, 01:54:54 PM
by HexFET
battery charging bicycle
Thesis and Project Proposal
dancarlo 4 232 Last post June 17, 2010, 04:02:12 PM
by dancarlo
not charging battery of UPS
General Electronics and Technology Discussion
jetjom 8 295 Last post October 29, 2010, 09:50:07 AM
by jetjom
Car battery question and battery tester
Electrical Circuits and Devices
alyas 3 612 Last post January 19, 2012, 06:54:36 PM
by Gwenda
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!