how to code to connect Relay RY5W-k using Pic18f4520?

Status
Not open for further replies.
Hi guys, i'm having some trouble in coding the relay. Anyone have links of tutorial or guides?

hi,
Which language are you using for programming the PIC.?

Did you sort out on how to connect the relay and transistor to the PIC.??

E
 
Last edited:
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.
 
Just C then.... I thought as much...

What code do you need, apart from output... Have you a schematic?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…