This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Wednesday, January 16, 2008

[oopic] Re: events again

--- In oopic@yahoogroups.com, dldlhfd@... wrote:
>
>
> I am a little confused by what you said about my wiring. I probably
just
> don't understand something. Tell me if I understand this correctly.
At the
> bottom of the oSWITCH object manual page is a diagram for how to
hook up a switch.
> That is how my switch is hooked up. if I pull the 5 volt ext pwr
from the
> board then I have done the same as flipping that switch to the off
position.
> The signal line is no longer connected to 5 volt but is connected
to the
> ground through the resistor.
> Also When I run this program the 'resetting', that is the red led
> blinking over and over, that we talked about happens even if I have
no other wires
> hooked to the oopic. Just running this program makes it 'reset'.
>

Yes, I saw that diagram. I don't prefer to do it that way - ever!

IMO, the proper way to do it is to have the resistor (4.7k or so) pull
the pin high and the switch pull it to ground. To protect the OOPic,
it is a good idea to put a 220 ohm or 330 ohm resistor between the pin
and the switch. The 4.7k connects to the junction of the 220 ohm and
switch. So, the effective pull-up is about 5k and when pulling down
there is a 220 ohm resistor to protect the OOPic. That 4.7k can
probably be as high as 10k, it doesn't matter much.

Of course, if you use one of IOLines 8..15 as the input and the
statement OOPIC.PullUP = cvTrue, you don't need a pull-up resistor at
all. Just the protective resistor between the pin and switch.

You keep saying 'external' 5V. I keep hoping it is 5V from the OOPic
supply, not some other machine down the bench.

Many users have omitted the 220 ohm resistor. Quite a few bought
another chip...

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: