[PIC] pic based relay control

Status
Not open for further replies.

Muhammad.Saad

Newbie level 6
Joined
Mar 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Islamabad, Pakistan
Activity points
105
hi
i want to operate the attahced the circuit shown in proteus for voltage limitations.
1. first led on when voltage is under 1.5 volts.
2. second led on when voltage is over 4.5 volts.

the problem is i dont know how to write code for the very same relay which i have shown in proteus file.

now looking for c code (mikroc)
 

Attachments

  • 1.png
    56.4 KB · Views: 53

In your circuit, both LEDs will light simultaneously because switches are on the same relay. Use two relays for independent operation.
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…