Selection of capacitors using relays in 8051

Status
Not open for further replies.

Rockzinstruz

New Member
Hi all,

In my circuit ,the capacitor selection obtained by relay circuits.By pressing the switch the capacitor has to be select using 8051 microcontroller.
Is this correct way to select the capacitor?Plz suggest the ideas regarding this design and is the another better solution? plz suggest here.



Thanks,
Rockzinstruz
 
Last edited:
It would help us to understand what you are doing better if you used standard component symbols on your schematic.

But I think I can see what you're doing, and it should work. It's hard to say if it is the best way without knowing more about the rest of the circuit.

You do need to add clamp diodes across your relay coils to prevent the back emf from killing the transistors.
 
The 8051 cannot drive relays directly. You'll need to use a transistor array...something like a ULN2803. The ULN2803 has the flyback diodes built onto the chip for driving inductive loads.

My favorite approach to this would be to use the external data bus to drive the relays. Here I have a schematic that shows how to do this even with an 8K memory chip on the bus. Driving output hardware via the external bus is awesome as it allows for easy expansion of an embedded system. You can drive quite a bit of hardware using this method -

**broken link removed**
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…