C program to turn on AND off relay

6 replies [Last post]
xxginoxx
Offline
Last seen: 10 years 28 weeks ago
Joined: 2009-09-04
bOt Points: 58

friendselectro
Offline
Last seen: 10 years 30 weeks ago
Joined: 2009-09-04
bOt Points: 54
trial

hi everybody

robo.jr
Offline
Last seen: 10 years 49 weeks ago
Joined: 2009-04-12
bOt Points: 145
what is ur exact circuit

what is ur exact circuit xxginoxx? which microcontroller are using? plz be more specific.. do u want c program of realy in keil c?

xxginoxx
Offline
Last seen: 10 years 28 weeks ago
Joined: 2009-09-04
bOt Points: 58
the same as ind8105's. to

the same as ind8105's. to send a '1' to the relay. using c program. im using 8051. i need the program for both on n off

DeAviator
Offline
Last seen: 9 years 25 weeks ago
Joined: 2009-04-14
bOt Points: 138
try this out

i tried to program uC for 5V relay switches and in the beginning it didn't work coz of low output current from the pin of uC. This can be sorted out by using an amplifier such as op-amps(LM324 etc) of desired voltage or current gain ICs in b/w to make the relay work. 

 

Talking about the c program it will be same as blinking an LED or as simple as 1 for ON 0 for OFF.

kandpal.preeti
Offline
Last seen: 10 years 26 weeks ago
Joined: 2009-10-05
bOt Points: 54
How to run relay with 8051 using program in C

i need the accurate program in C for running my relay with the 8051 controller.

plsss help..

robo.genius
Offline
Last seen: 6 years 35 weeks ago
Joined: 2009-04-12
bOt Points: 265
hi kandpal.preeti, on which

hi kandpal.preeti,
on which project r u working on? and which pins are you using for input and as well as for output? because c program/code will vary depending upon output/input pins being used.