Sunday, November 11, 2007

[oopic] Re: Finally got OOPIC working and LCD: Now new questions...

Measure voltage is the goal. So I would put a 22k resistor to ground
and a line from 1-7 and use the oA2D object? What is the max voltage
I can read in this manner without diodes, etc? I am a bit confused.
Does the OOPIC have to "scale" the voltage reading like some DMM's to
get a "range". I see no clear indication of voltage reading specs
anywhere.

On the PC and parallel port issue: I have an old slow laptop but
would have to run xp sloooooww and not looking forward to that. I
guess I could just switch the 9 pin after downloading the latest buil
of my app...

--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "jeffkaypic" <jeffkaypic@> wrote:
> >
> > Okay, got my OOPIC working with 4X20 LCD. Next I need to know how to
> > integrate a voltage reading from an I/O line. I need to read one
> > voltage that is between 0-5vdc and another that is 0-60vdc. I see the
> > object to do this but wonder about how to hook up the signal/hardware
> > and how to create a string from the periodic reading of the line into
> > a decimal I can send to the display. If you have links, great, I am
> > not a very accomplished programmer. Thanks,
> >
> > Jeff K. Burbank, CA
>
> Do you want to MEASURE the voltage or just DETECT it. To MEASURE it,
> run it through an 22k resistor in series with a 2k resistor to ground
> and measure the voltage across the 2k resistor. Now, that assumes
> that the voltage can NEVER be more than 60V. The other thing you can
> do is put a Schottky diode between the top of the 2k resistor (where
> it joins the 22k resistor and the input pin) and the 5V power supply
> to dump the excess voltage. The diode is oriented with the BAR end
> toward the 5V supply so it forward biases (turns on) when the voltage
> at the top of the 2k resistor reaches 5.2V To MEASURE the voltage,
> run it into an A/D input and use the oA2D object.
>
> If you want to DETECT it you can divide it as above and run it into
> and IOLine and use oDIO. But, if detection is the goal, you should
> consider an opto isolator instead of a set of resistors. Post back on
> which you want to do.
>
> >
> > P.S. I am now using a USB to serial cable with my XP computer. I am
> > using vers. 6 software. I will eventually want to connect to the
> > parallel programming port because my application (not robot) will be
> > connected to the RS-232 serial all the time. So, since my computer
> > has no parallel port, is there any trick for this?
>
> Yup! All you have to do is buy an obsolete computer with a REAL
> parallel port. Not exactly what you want to hear but that's the way
it is.
>
> You can't even stuff an after-market parallel port in the computer
> because most of the PCI stuff doesn't wind up at the proper address
> for a real parallel port. You need an ISA port.
>
> For what it's worth, www.overstock.com has refurbished 3 GHz Dell
> computers with real ports, a smallish disk, 512 MB RAM and WinXP for
> about $352 delivered.
>
> Richard
>



Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment