Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[PIC] pic based relay control

Status
Not open for further replies.

Muhammad.Saad

Newbie level 6
Newbie level 6
Joined
Mar 11, 2014
Messages
12
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Location
Islamabad, Pakistan
Visit site
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
    1.png
    56.4 KB · Views: 85

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.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top