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 connection with 8051 microcontroller ?

Status
Not open for further replies.

vead

Full Member level 5
Joined
Nov 27, 2011
Messages
285
Helped
3
Reputation
6
Reaction score
3
Trophy points
1,298
Location
india
Activity points
3,815
relay connection with 8051.jpg
I am trying to connect 12 v relay to 12dc motor
someone can look the connection in Image ?
I have doubt that connection may be wrong ?
 

Ground connection missing for DC Motor!!!!
 

Notice that a 8051 port pin sources only a few 10 µA, can't drive a bipolar transistor without external pull-up resistors.

I'm sure you have heard about this point before, it's been mentioned in countless 8051 Edaboard threads.
 
  • Like
Reactions: vead

    vead

    Points: 2
    Helpful Answer Positive Rating
I am testing manually on breadboard. the wiring connection is same as show in image. I have 5vdc and 12v dc

Now the problem is that both relay and motor are running continuously. I saw both motor and relay does not turn off when 5v dc is switch off.

that does not matter if 5v dc supply is switch ON/OFF. motor and relay are continuously running.

what may be reason? why relay does not turn on / off to motor. how to fix problem ?
 

I am testing manually on breadboard. the wiring connection is same as show in image. I have 5vdc and 12v dc

Now the problem is that both relay and motor are running continuously. I saw both motor and relay does not turn off when 5v dc is switch off.

that does not matter if 5v dc supply is switch ON/OFF. motor and relay are continuously running.

what may be reason? why relay does not turn on / off to motor. how to fix problem ?


Where you are using 5V in your circuit. Is it for your microcontroller? The relay & Motor is connected with the 12V DC. Clarify it
 

Where you are using 5V in your circuit. Is it for your microcontroller? The relay & Motor is connected with the 12V DC. Clarify it

no still I am not using microcontroller. I just want check manually , thats why I connected the power supply , look below image
 

Attachments

  • relay connection with 8051.jpg
    relay connection with 8051.jpg
    87.3 KB · Views: 123

What you do connect the one end of the motor directly to the ground.

Relay Connections: Connect NO pin to +12V, NC to Ground & COMMON pin to another end of DC motor.


Now DC motor one end will be connected to ground and another end will be to common pin.


Try this.... It has to work

- - - Updated - - -

Remaining connections leave as it is.. Even the 5V power supply.. Don't alter anything else
 
  • Like
Reactions: vead

    vead

    Points: 2
    Helpful Answer Positive Rating
yes that's work. but I think you did not understand what I am trying to do
relay connection with 8051.png
port pin high means 5 v
port pin low means 0 v

I did not program MCU to run motor using relay. I want to connect 5v dc supply. so that pin may be High or low
 

How long will you continue to show the erratic motor circuit, see post #2 and #3?
 

yes that's work. but I think you did not understand what I am trying to do
View attachment 122667
port pin high means 5 v
port pin low means 0 v

I did not program MCU to run motor using relay. I want to connect 5v dc supply. so that pin may be High or low

Yes, You do the circuit without microcontroller and do the connections as per my previous post. Just connect the 5V power supply at the base of the transistor and sure it will work as per your requirement.

Note:Make sure you are shorting both the grounds. i.e. Short 5V ground and 12V ground together to complete the circuit.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top