Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > General Electronics Chat


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?

Reply
 
Thread Tools Display Modes
Old 9th October 2007, 07:11 AM   (permalink)
Default

Damn, sorry, I've been busy with my own "computer ports" problem (*shudder*) for the past week or so, so I've not been on the site.

A very quick answer whilst I have time:
-You only need to get RS232 voltage levels if you're interfacing with a SERIAL port. DO NOT use a MAX232 or similar to interface with a parallel port!!!! I don't know whether they'd go "bang" or not but regardless, it isn't correct. Parallel ports work with normal 0-5V levels.
-You normally only need a buffer in the computer if you're receiving data that is in some way serial.
-In the case of receiving data through the serial ports themselves in the standard serial port transmission method, there are buffers already in the port, you just set the right speed etc, and read what the operating system gives you. You don't "create" a buffer!
-In the case of reading individual pins of the serial port directly, you bypass the buffer, but you won't be doing this in your case. That's for weird applications.
-In the case of the parallel port, AFAIK there is no buffer built into the port, but USUALLY you don't need one. If you're sending data 4 bits at a time (out of 8 or 10 bits per word to be sent), you would need some software buffer in your receiver program, to reassemble the sample data. This could get messy.
-If you're transmitting the sample data through the parallel port 8 or so bits at a time, you don't need a buffer, you just need to do whatever you want to do with the data, like send it to a file or something. I'm not sure what you're doing with it.

IMPORTANT BIT:
If you're sending the data serially (either 1 bit at a time through the serial port, OR 4 bits at a time over the parallel port), then you most likely need to use a microcontroller, else the hardware will get pretty complicated. The pro side of this is that many microcontrollers have built in ADC, so less components for that. The con of it is that you'd need to be able to program the thing.

If you're not going to do that then you should do as various people had suggested and use a separate ADC chip and send it through the parallel port. Presumably this requires setting the parallel port to be ECP or EPP or bidirectional or whatever the thing is, to be able to send more than 4 bits back to the PC, because AFAIK the "standard printer port" type arrangement doesn't allow for that. I expect someone else can explain that bit.

Now, can someone else fill in the blanks on that? Because I'm not sufficiently knowledgeable about parallel ports, and am rather tied up with this networking crap I have to work on.
Tomble is offline   Reply With Quote
Old 9th October 2007, 08:25 AM   (permalink)
Default

Oh I am really getting myself confused, I underestimated how hard this was going to be.

Ok, so I need to decide if I am using the serial or parallel port before I start making things go bang!

So if I was to go down the rout of the serial port, then I will need a chip that has an A/D converter and makes the RS232 voltage levels.

Now I don’t know anything about programming microcontrollers, but this is a college project, so I will find out what microcontrollers the college have the facilities to program (as I am assuming you need equipment to do this?)

So then, the basic stages involved in my project will be:
Set up the circuit as shown in the diagram (attached to a previous post)
Replace the AVO with a resistor (don't know what size) to get a voltage reading.
Find a chip that makes it RS232
Use a microcontroller (with A/D converter)
plug into Serial port

Then I am hoping I will be able to see the voltage reading in a computer program such as Visual basic (or any other easily available computer program).


Thanks for being so patient with me!
helz15 is offline   Reply With Quote
Old 9th October 2007, 08:49 AM   (permalink)
Default

Quote:
Originally Posted by helz15
Oh I am really getting myself confused, I underestimated how hard this was going to be.
Well, I may have made things SOUND more confusing than they need to be. If so, sorry

Quote:
Ok, so I need to decide if I am using the serial or parallel port before I start making things go bang!
Well yes, each port is dealt with pretty differently in numerous ways.

Quote:
So if I was to go down the rout of the serial port, then I will need a chip that has an A/D converter and makes the RS232 voltage levels.
IF you go down that route, then you'd have to have those things, but they wouldn't have to be in the same chip. You'd probably have a microcontroller with the A/D converter, and that'd send out serial data at "TTL logic levels" (0-5V), and then feed that to a MAX232 type chip to get the RS232 voltages. But that remains an "if". Other people's suggestion of using the parallel port would probably be better, depending on what you can do.

Quote:
Now I don’t know anything about programming microcontrollers, but this is a college project, so I will find out what microcontrollers the college have the facilities to program (as I am assuming you need equipment to do this?)
The hardware for programming PIC microcontrollers, if you use those, can be relatively simple. But you also need various pieces of programming software, and to know a language you can effectively program the chip with. So if you don't have ANY experience with microcontrollers, then you might get terribly bogged down with all this, which would be a very good reason to use the parallel port approach instead, if you can. OR maybe that gameport approach might be workable somehow?

Quote:
So then, the basic stages involved in my project will be: (...)
If you were using the serial port approach, it would be VAGUELY like that, but it looks somewhat out of order. Gimme a little while and I'll knock out a simple diagram (not schematic, sorry). It might clarify things.

Meanwhile, as this is cropping up and I keep forgetting to ask: Can you program, and if so, in which languages?
Tomble is offline   Reply With Quote
Old 9th October 2007, 09:28 AM   (permalink)
Default

As far as programming is concerned, technically, no I cannot program, however, my brother is a computer programmer and is willing to ‘help’ me with that bit, he can program in Java, PL/SQL, Ruby, PHP, C#, and a bit in VB.

I am happy to change to using the parallel port if you think that would be easier for me, I really am happy to go down the route you think is best/easiest.
helz15 is offline   Reply With Quote
Old 9th October 2007, 09:32 AM   (permalink)
Default

There are a few multimeters with built in RS232. Why not just use one.
__________________
Bill
Smart Kits build Smart People

http://www.blueroomelectronics.com
blueroomelectronics is offline   Reply With Quote
Old 9th October 2007, 09:35 AM   (permalink)
Default Block Diagram

Ok, as I'd gone and made things overly confusing, here's that diagram. It doesn't include the software on the PCs I'm afraid. serial-vs-parallel.pdf

FWIW if it's not clear, it's probably best to go for the parallel port method, if there's something that can read it effectively. Or else perhaps some sort of commercial "signal logger" type device, which might come with its own software? I don't know. I most probably shouldn't have even mentioned the serial port approach in the first place, that's just what usually seems easiest to me, but you're not me! The parallel port has its issues but they might not be a problem for you.

It's also probably a very good idea to ask your teachers what they'd recommend, as they'd probably have a better idea what you'd be able to deal with and what your computers could use. Your college might even already have a signal logger like I described!!

(Oh, or Bill's idea there might be good, if your college has one of those; I'd imagine they're expensive to buy yourself?)
Tomble is offline   Reply With Quote
Old 9th October 2007, 10:17 AM   (permalink)
Default

Ok, thanks very much for your help!
That diagram helps alot!!!!

I am at college tomorrow, so i will ask some questions and get back to you.

Thanks again!
helz15 is offline   Reply With Quote
Old 9th October 2007, 11:48 PM   (permalink)
Default

Quote:
Originally Posted by helz15
To be honnest, i really want to use a computer so i canget all then infomation on the screen. i found these

http://www.technobots.co.uk/acatalog...rfaces_65.html

for interfacing with computers, and i was wondering if they are suitable for what i am trying to do?

thanks for your help so far.
How about a DataQ Data logger?
http://www.dataq.com/products/startkit/di194rs.htm
Overclocked is offline   Reply With Quote
Old 15th October 2007, 09:45 AM   (permalink)
Default need help

please helppppp me for about for major project in electrical duscipline.
nater is offline   Reply With Quote
Old 15th October 2007, 02:32 PM   (permalink)
Default

First: Nater, please start a new thread of your own to ask for help. Go to one of the forum pages here, such as http://www.electro-tech-online.com/g...ctronics-chat/, and click the button that says "New Thread". When you start your new thread, please be sure to explain what your problem actually is too

Second: Helz15, if you're still reading, I dunno if you got anywhere with asking your teachers for advice, but I must say that Overclocked's suggestion of that data logger is a very good one. I couldn't remember the proper term before, but from what little I've seen of such things in the past, that one is a really good price (about £12?). It would probably save you a ton of bother, if the college doesn't already have some equivalent for you to use No need to worry about building your own PC interface that way.
Tomble is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Latest
My professor screwed my final electronics project! kungfusansu Electronic Projects Design/Ideas/Reviews 21 26th August 2007 09:57 PM
FINAL YEAR PROJECT! erique82 Electronic Projects Design/Ideas/Reviews 18 15th April 2007 10:08 AM
A Microcontroller based Analogue Waveforms Analyzer Project km Electronic Projects Design/Ideas/Reviews 76 30th June 2004 06:39 PM
Choosing a PIC for my project... Beef41 Micro Controllers 6 19th March 2004 03:46 PM
I need a project idea based on my strength or interest. :) janetsmith2000@yahoo.com Electronic Projects Design/Ideas/Reviews 10 11th November 2003 09:33 AM



All times are GMT. The time now is 11:21 PM.


Electronic Circuits  |  Electronics Wiki
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.