![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| Hello! I would like to try some simple room automation projects, and use the parallel port to allow me to control different aspects of my room. I think I could pull it off simply enough; wait for port.x to be high, and when it is (after receiving signal from parallel port), do a set of actions. I am aware that I will need a level converter, and this would be easy enough if I was using a serial port with the max232 chip. However, I have no idea which chip I would use in order to adequately communicate with the PIC using the parallel port. The reason I am stuck with the parallel port is because my computer (that is in my room) does not have a RS-232 port. And just for some background information: I will use a PIC16F628A to play around with this at the beginning, but may move up to a PIC16F871 if I am in need of more pins. Thank you very much for your help, -Omar | |
| |
| | (permalink) |
| If you are interested in using USB take a look at the UBW (USB Bit Whacker). You can build one or buy one from sparkfun.com. On the PC the drivers emulate a COM port. The author has some nice examples on how to use it.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | |
| |
| | (permalink) |
| Thank you. Currently, I'd like to keep this as simple as possible while using the parallel port. I figure if there are some chips that are made for this, I can pick them up for a few dollars each, instead of the kit for 20 dollars + shipping. I'd like to make the module you linked, but I do not think that my programmer can program that USB PIC chip! Once again, thank you for the suggestion! -Omar Last edited by Omar.M; 12th August 2007 at 05:23 PM. | |
| |
| | (permalink) | |
| Quote:
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) | ||
| |
| | (permalink) | |
| Quote:
If you wish I could post a test program and information for the parallel port. Eric EDIT: Attached zip for PC port. You require the Visual Basic 5 runtime files from the web, they are free. Let me know if you have a problem Last edited by ericgibbs; 7th July 2008 at 12:21 PM. | ||
| |
| | (permalink) |
| Thank you very much, Eric. I haven't had a chance to try the softare out (I do not have that DLL-- must go on a hunt soon to find it), but I think it will do. 3v0-- that is great news, thank you! Does that mean that I can connect the parallel port ground to the microcontroller's ground, and just connect the parallel port pin to the microcontroller pin and they should interface fine? -Omar | |
| |
| | (permalink) | |
| Quote:
EDIT: Eric's zip has a .doc file with all the info you should need. He suggests you buffer the lines if the cable is over a meter.
__________________ search engine for electronic partsJunebug USB PIC programmer kit., USB Bit Wacker, 3v0's Homepage The 15 Minute Printed Circuit Board! (+drill time) Last edited by 3v0; 13th August 2007 at 03:07 AM. | ||
| |
| | (permalink) | |
| Quote:
There are two DDL's usually required for the PC if the operating system is WinXP. ie: inpout32.dll [thats in the zip] and Dllport.dll from the web. Place these two DLL's in the Windows/System directory. The VB5 runtime files are available from a number of sites on the web. They are not included in my zip as they are > 1MByte. Its a good idea to have the runtime files loaded as many web downloads expect to find them on your PC. Feel free to use/edit/distribute the VB source code as you wish. Eric | ||
| |
| | (permalink) |
| Thank you very much both of you. I have the breadboard hooked up, and my LED lighting test is working (after receiving a 1 on the pin, microcontroller turns LED on). This will open up a window of opportunity for me, and I thank you both very much for your help. -Omar | |
| |
| | (permalink) | |
| Quote:
The first PIC programmer circuit I tried to build used the parallel port (someone else's design). DIDN'T go well. I was able to have a slightly modified version of the circuit turn (current-limited) LEDs on and off fine from the computer, but AFAICT it was messing up when it came to using the lines for actual high-speed communication, as it always failed with programming. I've heard other people opine that the parallel port has become horrible to work with, unfortunately. (FWIW, I'm nowadays working on a serial-port based design of my own instead for various reasons, so no worries about advising me on that parallel version! Anyway, good luck Omar, hope your project goes better than mine did | ||
| |
| | (permalink) |
| hi Tomble. >>>Funny, ISTR hearing that though they used to be that, they aren't nowadays on modern PCs (assuming modern PCs still have the things), but are 3.3V instead. I might have got my wires crossed I suppose, but... You havn't got your wires crossed, the parallel port pins are typically +0.4/+3.5V. I have found if the cable is over a metre long you can have edge problems. Its recommended that you use buffer ic's on the I/O lines, this will give very reliable performance. Eric | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Need help badly on Inchworm and MPLAB | thushy | Micro Controllers | 14 | 11th March 2007 07:05 PM |
| I need: Parallel Port.. examples and applications.. | sonaiko | General Electronics Chat | 8 | 28th October 2006 02:44 PM |
| Parallel port control port: is it Write Only or Read/Write | elexhobby | Electronic Projects Design/Ideas/Reviews | 5 | 12th September 2005 01:02 PM |
| parallel port question | mstechca | Micro Controllers | 0 | 27th June 2005 07:41 PM |
| Multiple devices controlled at once on one parallel port | Kerri Ann | Electronic Projects Design/Ideas/Reviews | 0 | 18th February 2005 11:52 AM |