This project is to design and develop bluetooth and android automated portable solar lamp for outside camp ,trekking and for those small villages which are not getting continues power supply !

You can do this project if you have basic knowledge of electronics and microcontroller ,
if you don't know anything about programming microcontroller then just follow my steps carefully ! you can do it undoubtedly ...!

ok Letz start now

Step 1: List of Components

1) Battery

2) pic microcontroller board


3)12v led strip

4) relay module


6)voltage booster

7)soldering iron

8)solar panel

9) multimeter

10) screw driver

Step 2: Output of Solar Panel

when I directly connect the output of the solar panel to multimeter I am getting around 9-10v !

the voltage needed to charge battery is 12v-13v !

to do this we have to boost the output of the solar panel voltage by using voltage booster module !

Step 3: Boosting Solar Panel Output !!

connect of input pins

IN+ to solar panel +
IN- to solar panel -

connect of output pins

Out- to Multimeter -
Out+ to Multimeter +

Step 4: NOTE :

if you are getting voltage less than or greater the voltage you needed ,then you can adjust by tuning the potentiometer on the Booster module,until you get the desired voltage.

Take a screwdriver tune the pot !

Step 5: Time to Connect the Battery !!

now connect the output of the booster to battery !

OUT+ to +ve terminal of the battery

OUT- to -ve terminal of the battery !!

Step 6: Next Step Is !

### Charging Unit is Completed #### ### Now we program pic microcontroller to control relay board and to take input from Bluetooth module ###

Step 7: Softwares Needed

1) Micro C

link to download ::


mikroC for PIC is a full-featured ANSI C compiler for PIC devices from Microchip®. It is the best solution for developing code for PIC devices. 

2) Pickit2

link to download ::


Using the PICKIT2 Software

Once the Pickit2 software is started, you get the message that Pickit2 usb is not connected to your USB.

First connect your Pickit2 USB to your pc before opening the Pickit2 software. Also immediately connect your ic you want to program before opening your Pickit2 software. If everything is well connected, you'll get " Pickit2 found and detected" and "PIC device found".

Once everything is working fine, the Pickit2 and the PIC processor are detected, you can load the HEX file in the programmer. Go to File - Import HEX and select the location where you've saved , Please make sure you load the correct HEX file on the correct module,
The only thing you have to do now is press on the write button to program the HEX file in the module.

Step 8: Hardware Needed -pickit2 Programmer

you can buy any type of pickit2 programmer
if you are buying the one with zif socket then it is good !
it will reduce the time of connecting jumpers to the icsp pins !!

#connect the jumpers properly if you are using icsp to program the pic ic .

Step 9: NOTE ::

Libraries to add in MicroC PRO software !! to add library Goto #view > #library manager then check LCD,Lcd_Constants, and UART options on library manager .

Step 10: Code !

unsigned char uart_rd,i;

void main() {

TRISB.F0 = 0;
UART1_Init(9600); //UART module at 9600 bps
Delay_ms(100); // Wait for UART module to stabilize
while (1)
{ // Endless loop
if (UART1_Data_Ready())
{ // If data is received,
uart_rd = UART1_Read();
if ( uart_rd == 'x')
PORTB.F0 = 1; //LED Off
if (uart_rd == 'a')
PORTB.F0 = 0; //LED on


Step 11: Circuit !

Connection of PIC board , RELAY module , Bluetooth , LED bulb !

Step 12: NOTE ::

Once your program is finished ,then build it , save HEX file in the known location and open Pickit2 software then click button ! now your pic ic ready to accept commands from Bluetooth and to control relay board !

Step 13: Android App !

Download Amarino.apk at google play store !

Step 14: Commands to Control Led Lamp !!! Watch Video

send "a" to turn on the lamp

send "x" to turn off the lamp !

Step 15: Thank You

Please comment ! if you have any doubt I will try to clear it ! and don't forget to vote :) my mail I'd :: amaraxr@gmail.com my website :: www.Xolcano.com Thank you !
<p>Great ible!</p>
https://www.instructables.com/id/How-to-Blink-an-Led-With-PIC16F886-<br><br>if you are preparing own board ! go through this ...

About This Instructable




Bio: Electronics and Automation Engineer, Game designer, Artist! EMAIL: amaraxr@gmail.com
More by AXR AMAR:#DIY# How to grow Bonsai (or any plant) using Internet of things (IOT) #DIY# A Complete Guide to Build Your own ATtiny85 Project PCB with Relay and Interfacing HC05 Bluetooth Module to it  Pinguino Project (a PIC microcontroller based Arduino #No Programmer Required) 
Add instructable to: