Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

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.

Latest threads

New Articles From Microcontroller Tips

Back
Top