OLED Current Meter PIC12F675
Picture Frame PIC16F690
Talking Clock PIC16F628A
OLED Thermometer PIC12F629
OLED Thermostat PIC16F628A
TFT Counter PIC16F628A
SSD1306 Counter PIC16F628A
SSD1331 Counter PIC16F628A
Color OLED Picture Frame
Arduino Counter for PC
Arduino Oled Code Lock
PC digital I/O without MCU
PC Analog Input without MCU
Arduino Oscilloscope for PC
Arduino OLED Oscilloscope
Arduino Picture Frame
OLED Bitmap Arduino / PIC
OLED Arduino Counter
OLED Timer Thermometer
OLED Frequency Counter
Android Oscilloscope
OBD2 Engine Rev Counter
OBD2 Diagnostic app
TFT Clock and Thermometer
WiFi, Ethernet
WiFi Thermometer
WiFi ESP8266
Doorbell with SD / EEPROM
SD FAT16/32 for .bmp
PETIT FAT bmp Display
TFT Timer, Thermometer
TFT Oscilloscope
SD Talking Clock
Android Talking Clock
SD Sound Recorder
SD FAT32 wav Player
SD Arduino Recorder
LED Thermometer
LED Timer
LCD Timer
TFT 10MHz Counter
100KHz Counter For PC
1MHz Counter For PC
8 Digits LED Counter
Scope Screen Counter
LCD 16 x 2 Counter
LCD Arduino Counter
6MHz Android Counter
NIXIE Android Counter
Bluetooth Counters
USB Counter
USB TFT display BMP
USB DS18B20 Sensor
USB Thermometer
USB Meter
USB Oscilloscope
USB Input-Output
USB Input-Output Android
USB 16x2 LCD
Serial TFT Text
Serial Inputs Outputs
Serial Port LCD
MCP3201 on Serial Port
Serial Thermometer
Analogue Signal to Serial
Serial Thermostat
MCP3201 on LPT
Analogue Signal to LPT
LCD Display on LPT
Water Softener
3.7V to 5V
Solar Charger
Infrared Decoder
PIC Music
Code Lock
Code Lock with LCD
HOME fr  ru  de  in  ro  ar  tr  nl  il  Technical Tips


OLED display, 128x64, 0.96", SSD1306, I2C with PIC12F675. OLED is driven by software (bit banging) I2C. Code includes functions for reading the sensor. Moving the decimal point can be done in software only.
R is calculated for 5V drop at max AC current, R = 5 / I secondary. Trim 10K pot to desired reading. The voltage drop on the diodes doesn't cause an error because the transformer is a current source.

You are free to use the circuit diagram and the software with no limitations.

current current

Circuit Description
See also Technical Tips

Current transformer is normally 5 Amp primary to 10 mA secondary, in that case R is 500 ohm metal film resistor.
10K pot is to trim the PIC input to about 5V peak when the Aac is max.
Caps are for smoothing the rectified current.
470R are for reducing 5V to 3.3V input of the SSD1306.


The circuit is a high efficiency charger, it is useful for charging 6 to 12V batteries using small number of solar cells. The solar cells can be connected in series or parallel to generate 1 to 12V , cells voltage has to be lower than battery voltage. When the mosfet is on it charges the coil with energy from the solar cells, and when the mosfet is off that energy is discharged into the battery.

Circuit Description
See also Technical Tips

The 6 inverters CMOS are used as a free running oscillator. The MOSFET charges the coil when it's on, and when it's off the coil dumps its charge via the diode into the battery.

BS170 can be replaced by equivalent MOSFET.

The MOSFET and the diode are capable of charge currents up to 50mA, for higher currents they can be replaced by higher current components.



Comments and questions

Copy the number from the picture It stops net-robots from adding comments.

15.01.2020 - 22:30
Name: rc555n
Comment: Thanks

21.11.2017 - 12:59
Name: Suresh
Comment: I need some details about 30 watt solar panel and which type of batteries can choose for solar panel. My mail id is gopavarapuvenkatasuresh@gmail.com

17.02.2016 - 11:25
Name: Moty
Comment: Hi Seed. There are many discussions on this subject in this forum, you'll be able to get help there. http://www.edaboard.com/forum.php

16.02.2016 - 16:12
Name: seed
Comment: I need soalr 12V 5W to 220V

20.11.2015 - 22:17
Name: David
Comment: interesting projects I love electronics

05.07.2015 - 23:25
Comment: GOOD

31.12.2012 - 19:54
Name: Moty
Comment: Hi Helal, For 12V battery charged at 20 mA you can use the circuit in the project with no changes.

31.12.2012 - 12:41
Name: helal
Comment: ineed 20 am 12v SOLAR BATTERY CHARGER

Name: Nick Mercury
Comment: What efficiency would you expect from this circuit? I need a 3.3 to 3.6V battery voltage (which chemical type battery would work best). I've sourced some cheap 3.6V 0.2W cells from ebay. I want to run a trial for a few months to see how it goes. Thanks Nick

Name: Moty
Comment: Hi Nick The efficiency of the charger is about 90% when the charge current is 50mA. You can use either NiCad or NiMH cells. You will find that solar cells give the full output on a bright sunny day and on cloudy day the output drops to about 5%. The efficiency of converting sun energy to electrical energy by solar cells is about 0.1%. The cmos 4049B will work at supply voltage of 3.3v but you will need to replace the mosfet with one that has a lower threshold gate voltage, i.e. RFD14N05 Hope you get the results you want.

Name: Santhosh
Comment: Hi I have a 2V 80mA solar cell and I need to charge a 7.2V 1200mAH Ni-Mh battery pack.Do I need to make any changes to this circuit.

Name: Moty
Comment: Hi Santhosh, You don't need to make any changes to this circuit for your application. When the cells source 80mA the charge current will be about 20mA.

Comment: Can I use 220uH inductor instead of 100uH

Comment: Can I use 220uH inductor instead of 100uH

Comment: Can I use 220uH inductor instead of 100uH

Name: Moty
Comment: Hi Santosh, You can either put 2 coils of 220 in parallel to get 110uH, or change the 100K resistor to 220K to adopt the frequency to the coil.

moty22.co.uk  2008-2022