>
The proper voltage dividers will be outputting getting voltages in
the range of 0-5v, which is what the oopic can handle. The outputs of
the A/D converter objects will be either 0-255 or 0-1024.
Regards displaying on the LCD, the oopic lcd objects should handle
that easily.
Develop your code in small pieces. First, send some strings out to
the lcd. Then, add the data in raw format. Then, figure out how to
format the data into decimal form.
The latter is not totally trivial with the oopic, since it doesn't
have powerful formatting functions like printf() in C. Basically, you
need to write a routine that parses successive digits by 1000s, by
100s, by 10s, etc, converts to ASCII, and then sends them
individually to the lcd.
X/1000
remainder/100
remainder/10
remainder/1
decimal point
.etc
Maybe someone has this routine posted online ????
- dan michaels
www.oricomtech.com
======================
> Sure, I understand the voltage divider but still don't see the
limits
> of the OOPIC line. Am I right to assume that the divider gets it in
> the 0-5volt range and then through mathematical calculation the
> correct value is achieved with the OOPIC?
>
>
> --- In oopic@yahoogroups.com, Andrew Porrett <slicerwizard@> wrote:
> >
> > The two resistors form a voltage divider. You need to learn some
> > basic electronics if you're going to be doing this sort of stuff.
> >
> > At 09:45 PM 11/11/2007, jeffkaypic wrote:
> > >I was not reading carefully and now see about the 2k resistor as
well
> > >as the 22k. I assume the 22k creates a high impedance so that
the
> > >OOPIC line does not run away with current? What does the 2k
resistor
> > >do?
> >
>
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:
No comments:
Post a Comment