How to make light on or off using C program....
I know it needs a parellel port...
bt i dnt knw what codes we have to write n what are the ground n o/p slots in par port....
kindly give me full exlpaination??
How to make light on or off using C program....
I know it needs a parellel port...
bt i dnt knw what codes we have to write n what are the ground n o/p slots in par port....
kindly give me full exlpaination??
Well simply put, to make a light turn on or off, you just need hardware capable of doing that, and a way to interface with that hardware. What kind of light are wanting to control? Are you talking about a little LED, or were you thinking of making a program to control the lights in your house? You may want to look at microcontrollers - you can buy general purpose circuits that come with C compilers, documentation, etc... and are capable of controlling switches, etc...
PIC microcontrollers are very popular and easy to program for - but again, you'll probably get different recommendations depending on exactly what you want to do.
Actully my sir told me that we can use parallel port and by making c codes, it can be switch on/off LED or any light....
Yeah I gone through the above link n its nice...
but i wanna only those 5-7lines program by wich i cn simply ON or OFF the light/LED....
a simple program to search parallel port n to give output to that port so i can get votlage to glow the LED....
OP (shreyas_222):
Never use SMS texts in serious forums as these.
I can see that you are serious about resolving your question (you have made some effort yourself, already), but by writing in SMS forms and slangs you tend to reduce seriousness. Honest feedback.
Best.
Last edited by Ananda; 09-13-2009 at 12:49 AM.
The link above is nice. However, it is already old. Hope someone will post a better topic on microcontrollers. I totally agree with sean where he saysIt was developed by Harvard i think and it is easily available. I would appreciate too if anyone could recommend a book on programming microcontrollers. Lets hack the microwave!PIC microcontrollers are very popular and easy to program for
I think you could do it directly from the computer if you have a separate voltage source, then control switches (relays or fets) from your port using ioctl.h or similar.