User Manual
27
How it works: When the sun shines, the
voltage generated by the solar cell will be
higher than the voltage of the batteries, so a
current will flow from the solar cell to the
batteries. This current will charge the
batteries. The BAT85 diode prevents
discharging of the batteries trough the solar
cell in low light conditions. The base of the
transistor is tied to ground (-) by means of the
4K7 resistor. This causes the transistor to
turn on and supply power to the µcontroller.
The controller will behave identical to project
2, so the led will flash. However, note that the
base of the transistor is also tied to the (+) of
the solar cell, so as long as the sun shines,
the base of the transistor is kept high enough
to prevent turn-on of the transistor, so the led
remains off at daytime.
Required parts: Solar cell, microcontroller (µC), 4K7 resistor (yellow, purple, red, gold),
100 ohm resistor, (brown, black, brown, gold), BAT85 diode, BC557 transistor, battery
VDD
2
VSS
7
GP3 /MCL R/VPP
8
GP2 /T 0CLKI/FO SC4
3
GP1 /IC SPCLK
4
GP0 /IC SPDAT
5
IC 1PIC10 F20 0-I/P G
D1
BAT8 5
R1
4K7
BC55 7
R2
10 0
Red led










