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.

relay with spi interface

Status
Not open for further replies.

kunal123

Advanced Member level 4
Full Member level 1
Joined
Jan 24, 2011
Messages
105
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Location
mumbai
Activity points
1,961
hi everyone,
i want to interface more than one relay to micrcontroller with spi interface, please help me how i can do this?

thanks & regards
 

Could you ask a more specific question? Or do you just want us to do ALL your work for you.
 

I suppose he wants to control multiple relays using SPI so one solution is using a 74HC595 and then use the outputs to drive transistors (or a ULN2003) that drive the relays.
The 74HC595 can work either with normal pins or the SPI peripheral of the mcu.
 

hi alexan_e,
if i want to control 256 relay & also want to read status of relay, then how i can do this.

thanks & regards

I suppose he wants to control multiple relays using SPI so one solution is using a 74HC595 and then use the outputs to drive transistors (or a ULN2003) that drive the relays.
The 74HC595 can work either with normal pins or the SPI peripheral of the mcu.
 

How do you mean the status read?
Since all the commands are given by the mcu you can keep the last status in a variable and read from there when you need to read the status.

- - - Updated - - -

To control multiple replays you can use a few port expanders controlled by SPI like MCP23S17 **broken link removed** ans the appropritae driver for each relay
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top