I built three separate circuits with the intention of making a colored led cycling solar sun jar.

Each circuit works on its own. With just the RGB ATtiny85 circuit it works with 3x 1.2 volt AA NiMH batteries. If I reduce the AA batteries to just one, 1.218 volts on its own, and put the output of the LT1073 step-up converter circuit to the RGB ATtiny85 circuit the LED lights up as expected. At this point I see 3.218 volts at the output of the LT1073. If I take the battery + and put it to the charging circuit's 2N3906 emitter then the led no longer works. A reading of the 2N3906 collector voltage shows 1.284 volts when disconnected from the LT1073 circuit. When I connect it to the LT1073 circuit it reads 0.6 volts and the output of the LT1073 reads 0.592.

These are the circuits of the project:

  1. RGB light cycling microcontroller circuit modeled very similarly to this project, but only using one common cathode RGB led.
  2. LT1703 based step-up converter using a single AA 1.2v NiMh battery. The circuit schematic comes from the LT datasheet on page 11, only changing R1 and R2 to acquire the output voltage of 3.2 volts.
  3. A simple solar cell charging circuit, see detecting darkness for the schematic.

I assembled the schematic for viewing this circuit by combining images of the three sources and modifying for existing conditions. enter image description here Note that the LT1073 circuit is constructed with carbon film resistors where the LT schematic calls for metal film and also I'm using electrolytic capacitors.

I'm puzzled how the introduction of the 2N3906 transistor has resulted in the circuit to fail.

  • 1
    \$\begingroup\$ It is extremely unclear where you have the transistor connected. Try drawing 1 circuit diagram that shows everything and posting it on some share sight and providing a link to said diagram. \$\endgroup\$ – Andy aka Apr 25 '15 at 21:44
  • \$\begingroup\$ I cobbled a schematic together from the 3 individual circuits and corrected the LT1073 circuit resistors with current part specs. Apologies for using an image editor, but it was faster than starting from scratch with the schematic diagram tool although I would like to start using that more often. \$\endgroup\$ – Sn3akyP3t3 Apr 25 '15 at 23:58

Your transistor doesn't have enough gain.

When the solar panel is dark, it looks like a resistor. That's why the transistor turns ON when the solar panel doesn't have any light on it.

Because your SMPS regulator is a boost circuit, it requires more current with its input at 1.2V than your circuit would need if it was running directly from 3 cells (nominal 3.6V).

The combination of low gain and small base current means that the transistor can't turn ON fully.

You can try a couple of things:

1) put a resistor in parallel with the solar panel. You will have to experiment with the value.

The downside of this is that now you are wasting solar energy in this resistor.

2) Use a P-channel low-threshold-voltage MOSFET instead of the transistor. Do a search for a family of MOSFET called "Trench FET" - Digikey has several that are suitable.

You want the Rds-on resistance to be a low as possible and the fully-enhanced gate voltage needs to be lower than 1.2V.

  • \$\begingroup\$ The problem was indeed insufficient gain. The solution was us of a P Channel Mosfet. I settled on the FDT434P because it was cheap and did the job without a large footprint. Thanks for this tip. I added P Channel Mosfets to my inventory of parts to work with. \$\endgroup\$ – Sn3akyP3t3 May 12 '15 at 1:14
  • \$\begingroup\$ I haven't tested these P Channel Mosfets on this circuit, but found them to be valuable enough to share since they have been useful in other projects. I've bought them from Digikey since they seem to have them on hand at a fair price. I ordered 10 of each to keep on hand FQP30N06L, TN0604N3-G, and SI4425DDY-T1-GE3. \$\endgroup\$ – Sn3akyP3t3 May 13 '16 at 3:28

The transistor is permanently off since there is almost no base current possible in such a circuit. It can work only if the "NiMH battery voltage" is higher than "solar panel voltage" by more than \$ V_{BE} \$ (~0.65V). \$ I_B \$ will be then:

\$ I_B = \frac {V_{NiMH} - V_{BE} - V_{SOLAR\_PANEL}}{5k} \$

From that it is clear that one NiMH cell is practically insufficient for such a circuit to work properly.

If the "solar panel voltage" goes up (i.e. during charging the NiMH battery), the transistor will turn off.

The solar panel internal resistance (\$ R_{i\_SOLAR\_PANEL} \$) should have also be taken into account, so the above formula will look like this:

\$ I_B = \frac {V_{NiMH} - V_{BE} - V_{SOLAR\_PANEL@I_B}}{5k+R_{i\_SOLAR\_PANEL@I_B}} \$

Both \$ V_{SOLAR\_PANEL} \$ and \$ R_{i\_SOLAR\_PANEL} \$ change according to current conditions (illumination, temperature, etc.), of course.

  • \$\begingroup\$ Very helpful equation on the analysis of what the problem is. Unfortunately, I wasn't able to make the numbers work out in any way to open the transistor. \$\endgroup\$ – Sn3akyP3t3 May 12 '15 at 1:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.