I'm using C# language. yeah I tried to connect relay with diode,transistor,LED and resistor to PIC. whenever i send 1 from the port to the relay. LED will light up. Now i need to develop something like, whenever i press a push button, relay will stop the batteries from charging and ADC will then measure the voltage of the each batteries.