Monday, October 27, 2014

Small Solar Battery Charger

After a few attempts at different circuits, I finally got a "small" solar panel to charge my NiMH AA batteries (properly) today. I used a 4 volt, 1.5 watt solar panel from Radio Shack to charge 4 AA batteries to a total charge of 5.3 volts. 


Yep, that was 5.3 volts of charge from a 4 volt solar panel.

And, that was not even using direct sunlight for most of the day. But it did take most of the day, which is roughly the normal charge duration for a NiMH battery.

A couple of other home made circuits that I have tried did not work for one reason or another, but I'm happy to see this one work nicely for me. One required a 6 volt solar panel in order to charge 4 AA batteries, another used a buck boost, which drove up the voltage and made it looks like it charged. Only later did I discover that it had no "juice." 


There was no amperage applied to the battery (even though the battery appeared to be charged.  Turns out that I was missing the parts to drive up the amps, and my substitutes did not drive up the amperage properly. So....).

But, I had the parts for this one and tried it out. Worked nicely for me without the LM317 current regulator, but I did have the need to add diodes at the batteries. Basically, I charged the 4 AA batteries in parallel, add diodes at the batteries, and used the 4 volt solar panel as the voltage source.

Web page:

     3V to 9V DC Converters

I used this circuit of the three (edited to add in the transistor pin-outs). 


3V to 9V DC Converters, 4 transistor version


At any rate, there is no am regulator on this design (such as an LM317), but I found that the 1.5 watt solar panel only produced up to 0.09 amps during the process. So, no current regulator was used. Also, there is a need to prevent overcharging the AA batteries, and I hope to later add something that will tell the circuit to shut down (or switch over) when the targeted voltage is reached. I used voltage and amperage meters for monitoring this test.

I did try the 555 circuit on that web page with the 6 volt solar panel, but was not able to get it working for some reason.

I'd like to apply it to a 6 volt panel, just to see if a 6 volt panel would charge 6 AA NiMH batteries. Given that the circuit is designed for up to 4.5 volts, I may have the need to add on an LM7805 voltage regulator in the event that direct sunlight drives up the voltage on a 6 volt solar panel. 

Finally, it would probably be good to add the option to charge only one AA battery instead of all four. I am looking forward to testing to see how many AA batteries I can charge with a small 6 volt solar panel.

Update Sep 7, 2015:

I have yet another AA charging circuit posted here:


Saturday, October 25, 2014

Pure Sine Wave Inverter with IC 4047

              Pure Sine Wave Inverter with IC 4047

Here's a screen capture of the pure sine wave output using 4 mosfets (two mosfets in parallel) from the pure sine wave inverter with the IC 4047 circuit, designed by Mr. Swagatam Majumdar:



Pure Sine Wave Inverter with the IC 4047 designed by Mr. Swagatam Majumdar

I've been working on the design for a while now, and this is my first attempt at adding mosfets in parallel. As you can see, I have been trying to figure out on my own (unsuccessfully) why there would be spikes on the output. I have tried a flying diode configuration on pins 10 and 11 of the 4047 (which seems to help diminish the spikes), but the spikes are still with me. Currently using a blue toroid with 5.46µH inductance factor and a permeability of 4300 with 32 turns of 22 guage wire. It looks like I may have to ask for an answer to that one (from Mr. Majumdar).

Currently I am using a 10K potentiometer at P1, the C1 capacitor at 0.1uF, and about 200K at R1 (as opposed to 180K off of pins 2, 6, and 7 of the middle 555 IC1).
From my initial testing, these are the values that I have found useful for tuning the inverter (prior to the addition of additional mosfets):

 For R1 (off of pin2 of the 4047) and C1 (between pins 1 and 3 of the 4047), with only two mosfets from the original design, these values were useful in frequency adjustments:

R1 ~=  100 with C1 = 1.0 uF
R1 ~=  470 with C1 = 0.22 uF
R1 ~=  15K with C1 = 0.1 uF
R1 ~=  37K with C1 = 0.047 uF
R1 ~= 202K with C1 = 0.01uF

This was for the 100 watt, two mosfet configuration using a 10k potentiometer at pins 1 and 3 of the 4047. That is, I only tested this one up to 100 watts.

However, after adding mosfets in parallel, the frequency does not appear to be as stable under light loads. I have not tested heavier loads enough yet, but the frequency appears to be more stable under heavier loads from what I have seen thus far.


My test configuration for mosfets in parallel:


Pure Sine Wave Inverter with the IC 4047 (proposed mosfets in parallel)
.
Update: 10/27/2014 - 

After having melted some wire insulation and breadboard fittings, it looks like I will need to figure out how to get this off the breadboard for further testing. The point being that I am seeing the need to bump up the amperage level, and in turn, bump up the resistor an potentiometer (P1 and R1 on pins 1 and 3 of the 4047). I ended up the day today with R1 set at 100K, P1 at 100K, and testing the various capacitors for best response to frequency adjustments. 

Adding the mosfets in parallel is changing what I need to get the targeted frequency (which I believe, for the U.S. should be 120 Hz). I can get to 60 Hz, but with 4 mosfets in place, I am having difficulty getting to 120 Hz. I am thinking Mr. Swagatam Majumdar intended the frequency to be for phased power, but keep forgetting to ask him about that.


Yet another update:   10/29/2014 -


I just wanted to post this image of the sine wave this morning.


Pure Sine Wave Inverter with the IC 4047 - 60 Hz no load


This is with two IRF 3205 mosfets in parallel (4 fets total) and 0.047uf for capacitor C1, although the image is similar for C1=0.22uF, etc.

Main thing there is that the spikes are gone. I believe the two main items that I changed there were:

a) The resistance at R1 and P1 on pins 1 and 3 of the 4047. 
     I bumped both up to 100k Ohms in an effort to control the frequency more easily.
     Of course, bumping up these means I need to work with more battery amps.

b) The 1F capacitor linked to the 557 transistor between IC2 and IC2 (555's).
    I am now using a Metalized film capacitor 250 WVDC max that I picked up from Radio Shack.

c) I am now testing with batteries with more amperage. I don't have a variable power supply.

Not sure which one made the difference in the presence of spikes, but if I were to guess, I would say it was the 1uF capacitor or the increase in amperage. Or, it could simply be that I have no appreciable load for that screen capture. I don't know, this is new territory for me.

Without bumping up the resistance, the frequency began running away from me. The increased resistance helped me to keep the frequency around 50-60 Hz. I still have not figured out the exact resistor values needed to get that to around 120 Hz

Increasing the amperage power of the battery is still giving heartburn with melting wire insulation and breadboard fittings, but I hope to figure something out so that I can determine how much power in watts is being delivered by mosfets in parallel (4 and 6 count).


Which means, I may simply build the prototype, just to get it off the breadboard, and enable me to test the mosfets. That would mean I would be crossing my fingers that I have the resistance in the required range. 

Currently, the following settings appear to provide 60 Hz frequency (with the 4 mosfets and the 0.1uF capacitor at pins 1 and 3 of the 4047):  

R1 ~=  44K with C1 = 0.1 uF using 4 mosfets and a 100k Ohm 1/4 watt potentiometer at pins 2 & 3 of the 4047

However, my 4 amp transformer is getting hot easily, which I presume tells me I need a transformer with more amps with the 4 mosfet configuration. 

Finally got a wiring arrangement that permitted me to run from the breadboard with the wires being slow to heat up. Here, I am running a 250 watt flood light at 120 Hz using 4 mosfets, C1 = 0.047uF, R1 = 15K, with P1 = 100K 1/4 watt from a 4 Amp 12-0-12 transformer:


Pure Sine Wave Inverter Using the IC 4047 at 120 Hz, 250 Watts using 4 mosfets
Problems not yet addressed:

In the current configuration, I have the mosfets isolated on a separate breadboard, so they are yet to be hard wired separately. I still have a wire heating problem, although I am now using heavier wire on the high current areas. And, the 4 Amp 12-0-12 transformer still gets fairly hot very quickly. 

I have ordered a few specialty light bulbs so that I can do a reality check on the measurement of the watts. I believe that I will need to get a transformer with more Amps, and use still better insulated wire for the high current areas. Alternatively, I could try increasing the number of mosfets in order to see if the transformer holds up under more power. I suspect not, but I do not know that yet.

As you can see, I have not yet gotten rid of the spikes under a heavier load. My current thoughts on addressing that is to use yet heavier wire on the toroids that I have added off of pins 10 and 11 of the 4047.


Update: 10/27/2014 - 

Well, in my review of Mr. Swagatam Majumdar's notes about the 4047, it turns out that he has probably already suggested a remedy for the spike problem that I am having.

In his comments regarding the Mr. Daniel Adusie after connecting a 0.22uF/400V capacitor and a suitable load, Mr. Majumdar suggests an inductor on pins 1 and 3 (of the 4047), along with the capacitor.

I've been running a flyback diode on pin 11, with a balancing toroid on pin 10. I had done that in response to the power problem with my substitute mosfet, IRFP150. Just too much power there for me, which was one of the reasons that I had decided to switch to the IRF3205 style mosfet. I was getting a good sine waveform from the 3205 and the toroids, and the frequency was responding to the R1 and P1 settings.

Therefore, my understanding would suggest a trial of an inductor off of pins 1 and 3 of the 4047.

Now, I don't have a collection of inductors, but I do have a few toroids. That should enable me to test the number of windings, the wire thickness, whether or not I need the toroids off pins 10 and 11, and whatever variance in resistance that might involve.

Finally, I only have one 22 Amp hour battery that enables me to run at 250 watts in my test mode. One day of testing should run down the charge on that battery. Therefore, my game plan this weekend is to test the inductor configuration on pins 1 and 3, checking for number of windings, thickness of coil, and whether or not the toroids on pins 10 and 11 are really needed for the waveform. Since I have limited battery power, I will test from the 2 mosfet, 100 watt configuration on with batteries that are not as powerful.  That should help me get an approximation of what inductor (toroid) structure is needed for the 4 mosfet configuration.

Of course, not to forget that another option for me is to see how the configuration works with the IRFP150 (as opposed to the IRF150 in Mr. Majumdar's schematic).


Additionally, I will be looking at heavier insulated wires, and perhaps shopping for a new transformer (with more amps) if the transformer heat problem does not improve. I am also looking at overload protection, adding a fan, and adding a voltage regulator. It would be nice to add some sort of battery monitor as well. The design has an ammeter area, and I am currently using a BeesClover amperage and voltage meter at that location (between pins 2 and 3 of IC1 and IC2). That little BeesClover ammeter has been helpful here.


Very nice to see this design has a number of options, and that it holds so well up to my abusive testing. The design has been fairly durable thus far.

Lots of options there for me to explore this weekend.

update 11/03 - Corrected number of windings on toroid to about 32 turns. Now checking to see if a different number of turns will correct the spikes.

Update  11/12/2014:

This one appears to be responding to what I believe is called "passive" filtering, with respect to the 'spike' problem. I have removed the toroids inductor(s), and removed the flyback diode, and have placed 10 Ohm resistors and 0.1uF capacitors (630 volt poly metal film) between the mosfets and the transformer. I have a schematic of what that looks like:


Pure Sine Wave Inverter Circuit Using IC 4047 With Passive_Filter


I plan to use four levels of this resistor/capacitor filter, but just so that you can see the difference, here is a view of a level 3 passive filter example from a 4 watt light bulb, using just the two mosfets, as in the original 100 watt version of the inverter:

 
Pure Sine Wave Inverter Circuit Using IC 4047_W_0.1uF_75Hz_2FETS_55K_P1_Level3_filter

Needless to say, the spikes are really no longer a problem at level 3 filtering, but I do hope to eliminate the spikes altogether by taking the filter to a fourth capacitor/resistor configuration. In the image above, I am using IRFP150 mosfets.


P1 = 10K, R1 ~=  55K with C1 = 0.1 uF, no toroids, using passive filtering

 I am having problems locking in on the frequency, as I have not experimented with this configuration much yet. Currently using C1 = 0.1uF, R1 = 55k at pins 1, 2, and 3 of the 4047. For the filter configuration and voltage less than 5, the frequency wants to hover at about 1.5 KHz, which is something I would like to improve. The frequency for higher voltages looks O.K. for the moment, but I don't want to show that until I have tested these low voltages sufficiently.

As for the filter, I have already looked at using 1 uF for the capacitor, but that appears to decrease the efficiency, requiring more Amps from the battery. I have also looked at using a 0.01 uF filter capacitor, but that is making it a bit difficult to get a handle on the frequency. 

This also appears to have relieved some stress on the transformer. At the moment, I am still using a 4 Amp, 12-0-12 center tapped transformer.

Perhaps with some combination of C1 on pins 1 & 3 of the 4047, and the right selection of the filter capacitor, it might be possible to come up with a trade off between a stable frequency and battery efficiency.

Videos:
  
Pure Sine Wave Inverter with IC 4047 Schematic 

Pure Sine Wave Inverter with IC 4047 on a Breadboard


  

In the video, I should note that I added a voltage regulator (LM7808) and a silicone controlled rectifier (SCR, 2N6507).
The multimeter was not connected to the power outlet, as demonstrated when I shorted out the connection (and the light went out at about 9 minutes into the video). So, there was a little wireless power going from the outlet to the multimeter probes.