![]() | ![]() | ![]() |
| | |||||||
| Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution. |
| | Thread Tools | Display Modes |
| | (permalink) |
| New Member | Hey, I'm knew to this forum and eletronics almost all together. But something i would really like to make is a Switch that can be turned on/off by my computer. I'm 13 so i nothing to dangerous. I will use something that runs of like 12v at the most. Also i have a pic programmer which i brought not sure if it would suit this project. Also cause i'm 13 i'm kinda low on cash so as cheap as possible. |
| | |
| | (permalink) | |
| Experienced Member | Quote:
Download and unzip the attached zip, read thru it and learn how to use the PC's parallel port. Load the DLL's in your Windows/System folder, get the VB5 runtime files from the web , free. Use the test program to operate the PC port.. Do you follow.?
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's: www.winpicprog.co.uk/ Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | |
| | |
| | (permalink) |
| New Member | I'm still alittle confused. So will this be the switch or will it connect to a relay or something? |
| | |
| | (permalink) |
| Experienced Member | You need to give us more information, like what it will be driving. This is important for the design because that would tell us what the power requirements for sink and source currents. Don't be afraid to tell use your whole idea so we can better help to get it done. There are tons of very talented people here who will give you tons of ideas/advise Cheers, -BaC
__________________ Error: {Panic!} when trying to load: [reality shell]. kernel: "universe has been halted"... Information Underground |
| | |
| | (permalink) |
| New Member | I would suggest by starting off with a simple transistor switch. 2N3906 transistor is a simple switch. Get yourself a 9V battery, some LED's, and a transistor from radio shack. Figure out how to turn that on and off and then move onto using the computer to do that. |
| | |
| | (permalink) | |
| New Member | Quote:
Thanks, Flumesoft | |
| | |
| | (permalink) |
| New Member | Also ericgibbs does that mean the parrellel port will be the PSU |
| | |
| | (permalink) |
| Experienced Member | Check out the Elektor DigiButler project, Ethernet, HTML relay output, at 29pound, when are they going Euro? |
| | |
| | (permalink) |
| New Member | I was wanting to do it myself and i'm aussie so it cost alot for postage and i'm already in debt of around $70 |
| | |
| | (permalink) | |
| Experienced Member | Quote:
The port can supply about 12mA to 20mA, at a voltage of about +3V to +4V. The port drive capabilty does vary a lot from PC to PC. If you just want to light an LED, a 220R resistor in series with a RED LED will light when the port pin is High. Its usual to use a external power supply, a simple 'wall wart' with a regulated output of +5V would drive most logic. If you have a USB connector on the PC, you could use the +5v at the USB connector, dont draw more than say, 250mA If you want to control 'mains' powered devices, use opto-isolators or relays. Does this help.?
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's: www.winpicprog.co.uk/ Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | |
| | |
| | (permalink) |
| New Member | Yes, Thanks everyone for your help. I was wondering weather you had any code that could turn the usb device on/off. -Thank again |
| | |
| | (permalink) | |
| Experienced Member | Quote:
No, I dont have that USB control code, others may have. If its a desk top PC, a source of external low voltage 'dc' which is often not considered, is using the PC's 'spare' regulated supplies. Some/most PC's have spare disk drive connectors dangling inside the case. A convenient connector, is the old 3inch floppy drive power connector, its got +5V and +12V on the pins. Its a 0.1inch pitch socket, so a Molex plug could be wired to provide external power. I would strongly recommend that the outgoing +5V and +12V be fused, at say 1Amp. Mating male connectors can also be bought for the larger connectors used on hard/CD drives. Do you follow.?
__________________ Eric "Good enough is Perfect" PIC tutorials: Nigel's: www.winpicprog.co.uk/ Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ | |
| | |
| | (permalink) | |
| Experienced Member | Quote:
| |
| | |
| | (permalink) |
| Experienced Member | Have you thought of looking at x-10 devices, specifically the TW7223: Opto-isolated from mains http://www.automatedhome.co.uk/Revie...23-Review.html All you will need to do is put an appliance module on what you want to control, they have ones for Inductive loads as well. You can use .Net to talk to the Tw7223 and control the device; http://blogs.msdn.com/coding4fun/arc...31/916478.aspx With a little coding you can create a home controller, even on the Web, and with the 2-way device you can read the current state of the appliance(2-way supported appliance modules of course). -BaC
__________________ Error: {Panic!} when trying to load: [reality shell]. kernel: "universe has been halted"... Information Underground Last edited by BaCaRdi; 5th May 2008 at 09:37 PM. |
| | |
| | (permalink) | |
| Moderator | Quote:
The sample code is written in BASIC but it is easy enough to use with any of the .NET languages. I have used C#.NET. The software fakes a COM port but it runs at USB speeds and is very easy to use.
__________________ search engine for electronic partsJunebug USB PIC programmer kit. USB Bit Wacker | |
| | |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Thread | Thread Starter | Forum | Replies | Latest |
| How can i interface a controlled toy car to a computer? | andales | General Electronics Chat | 9 | 12th October 2007 07:06 AM |
| temp controlled switch | camperhead | General Electronics Chat | 5 | 26th August 2007 08:58 PM |
| Button Debounce Coding help | Suraj143 | Micro Controllers | 25 | 4th August 2007 09:48 AM |
| Computer Controlled Router Monitor (switch) | dannix | General Electronics Chat | 2 | 16th July 2007 07:21 PM |
| Computer controlled relays | numptyboy | General Electronics Chat | 2 | 3rd April 2005 10:48 PM |