Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Thread Tools Display Modes
Old 13th December 2006, 10:40 AM   (permalink)
New Member
prevravanth is on a distinguished road
Send a message via Yahoo to prevravanth
Lightbulb Microcontroller interfacing multiple Relays

Hi,

I am using 89S51 and RS 232 for serial communication.

I drived relays using ULN2003 . I am using Embedded C

Now i want switch multiple relays and how to connect these multiple relays
using limited I/O pins.

Kindly help me ..

Thanks
prevravanth is offline   Reply With Quote
Old 13th December 2006, 03:21 PM   (permalink)
Experienced Member
kchriste is a glorious beacon of lightkchriste is a glorious beacon of lightkchriste is a glorious beacon of lightkchriste is a glorious beacon of lightkchriste is a glorious beacon of light
Default

Use a shift register with a built in latch. Something like the 74HC595 will work and you can cascade as many as you want.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline   Reply With Quote
Old 13th December 2006, 09:45 PM   (permalink)
Experienced Member
ljcox is a jewel in the roughljcox is a jewel in the rough
Default

Quote:
Originally Posted by kchriste
Use a shift register with a built in latch. Something like the 74HC595 will work and you can cascade as many as you want.
This is a simple solution as you only need 2 i/o lines. One for the data and one for the clock signal.

The data should be clocked into the SR as quickly as possible so that the relays don't chatter. The time to clock in all the data should be less than say one tenth of the relay operate time - or faster.
__________________
Len
ljcox is offline   Reply With Quote
Old 14th December 2006, 12:34 AM   (permalink)
Experienced Member
 
Blog Entries: 1
Sceadwian is just really niceSceadwian is just really niceSceadwian is just really nice
Send a message via AIM to Sceadwian Send a message via Yahoo to Sceadwian
Default

The 74HC595 that kchriste mentioned is a latching shift register, it has a built in storage register that holds the contents of the shifted data until a third line is toggled then the output latch is updated. It requires one extra I/O line for operation but the latch updates all the lines at the same time. Perfect for driving relays such as this to avoid any possibility of triggering the relay accidentally. You could operate it as a standard shift register by tieing the update to the clock line if needed.
__________________
Curiosity killed the cat; That's why they have nine lives.

Sceadwian is online now   Reply With Quote
Old 14th December 2006, 05:35 AM   (permalink)
Experienced Member
ljcox is a jewel in the roughljcox is a jewel in the rough
Default

Quote:
Originally Posted by Sceadwian
The 74HC595 that kchriste mentioned is a latching shift register, it has a built in storage register that holds the contents of the shifted data until a third line is toggled then the output latch is updated. It requires one extra I/O line for operation but the latch updates all the lines at the same time. Perfect for driving relays such as this to avoid any possibility of triggering the relay accidentally. You could operate it as a standard shift register by tieing the update to the clock line if needed.
Or he could use a non latching SR such as the 4014 or the 74HC164.

Another possibility would be to programme another PIC, such as a 16F84 or 16F628, etc. to receive data sent on one line and output it in parallel to drive the relays.
__________________
Len
ljcox is offline   Reply With Quote
Old 14th December 2006, 12:31 PM   (permalink)
Experienced Member
 
ikalogic is just really niceikalogic is just really niceikalogic is just really nice
Send a message via MSN to ikalogic Send a message via Skype™ to ikalogic
Default

to reduce cost, and use a minimum number of I/o lines, using a 89S51 at 24 Mhz and a 74164 SR will work perfectly, the relays wont notice anything until the voltages are seteled down..

In your case send the data as fast as you can do it, the 74164 response will allways be much higher than the maximum output frequency of the uC at 24 Mhz.

good luck
__________________
Ibrahim Kamal
check my electronics and robotics page: http://www.ikalogic.com/
ikalogic is offline   Reply With Quote
Old 14th December 2006, 04:07 PM   (permalink)
Experienced Member
 
justDIY is a jewel in the roughjustDIY is a jewel in the rough
Default

allegro makes a latching shift register (similar to the 74hc595) plus mosfet current sink combo chip... might help to cut down on the amount of IC's and/or soldering

http://www.allegromicro.com/sf/6821/
__________________
If you don't have a planet, what good are gold bars?

want to contact me directly? gmail gordonthree
check out my project website: http://projects.dimension-x.net
Favorite numbers:
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0
justDIY is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
help required urgent...microcontroller burning project +keypad interfacing kalprajesh Micro Controllers 0 17th October 2006 05:30 AM
interfacing microcontroller with UART(8250) jam_mafia Micro Controllers 23 26th February 2006 03:20 AM
interfacing low power microcontroller banh Micro Controllers 2 27th July 2004 12:31 AM
Interfacing a microcontroller with a modem matt_d82 General Electronics Chat 3 21st March 2004 02:43 AM
interfacing Atmel Microcontroller AT89C51 with LM75 umar abdul sattar Micro Controllers 0 28th June 2003 05:26 AM



All times are GMT. The time now is 06:18 AM.


Electronic Circuits  |  Radio Controlled
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.