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.

Sunday, December 30, 2007

Re: [oopic] what is needed

Yes. The PIC can only drive a few milliamps, you'll need a driver to
push current through those windings. For bipolar you'll need two
H-Bridges, for unipolar you'll need four drivers. They both use the
same types of step patterns, just in a slightly different order.

DLC

oopicowner123 wrote:
> i was curious, (which is dangerous), but anyway do you need a driver
> for a stepper motor to use with the ooPIC since it has an object for a
> stepper motor? i don't know much bout stepper motors other than a
> little bit about how they work.
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: what is needed

--- In oopic@yahoogroups.com, "oopicowner123" <oopicowner123@...> wrote:
>
> i was curious, (which is dangerous), but anyway do you need a driver
> for a stepper motor to use with the ooPIC since it has an object for a
> stepper motor? i don't know much bout stepper motors other than a
> little bit about how they work.
>

Absolutely! The OOPic pins are good for, MAYBE, 20 mA depending on
how many pins are used at that level. Refer to the Microchip 16F877
datasheet.

Google for 'Jones on Steppers'

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/

[oopic] what is needed

i was curious, (which is dangerous), but anyway do you need a driver
for a stepper motor to use with the ooPIC since it has an object for a
stepper motor? i don't know much bout stepper motors other than a
little bit about how they work.


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/

[oopic] Re: Serial communication with cmucam2

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Hmm, I can't either, and I'm the moderator. Yet another YahooGroup
> SNAFU I suppose.
>
> DLC

So I put the link in a text file CMUCam4OOPic.txt in the Files section.
I have a CMUCam2 and, time permitting, I'll give it a try.

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/

Re: [oopic] Re: Serial communication with cmucam2

Hmm, I can't either, and I'm the moderator. Yet another YahooGroup
SNAFU I suppose.

DLC

rtstofer wrote:
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
>> Thanks for that link - I wonder if my CMUCam (1) will work that way...
>>
>> DLC
>>
>>
>
> Dennis,
>
> I was thinking it might be a good idea to add that link to the Links
> section of the forum. It doesn't appear that I can do that.
>
> Richard
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial communication with cmucam2

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> Thanks for that link - I wonder if my CMUCam (1) will work that way...
>
> DLC
>

Dennis,

I was thinking it might be a good idea to add that link to the Links
section of the forum. It doesn't appear that I can do that.

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/

Saturday, December 29, 2007

Re: [oopic] Re: Serial communication with cmucam2

Thanks for that link - I wonder if my CMUCam (1) will work that way...

DLC

richard6406 wrote:
> Hi there,
>
> New to robotics / oopic / CMUcam .... but as have started building
> something that combines all I've been doing a lot of reading :)
>
> Not sure if this helps but came across it recently :
> http://www.instructables.com/id/Interfacing-a-CMUCam2-to-an-OOPIC/
>
> Wishing you all the best.
>
> Richard
>
>> Hello all,
>>
>> I'm trying to get my oopic to talk to my cmucam2. I'm using the
>> oSerialport object. I'm running a very basic program to see if I'm
>> actually receiving anything. The most important command is:
>>
>> LCD.VString = Str$(s.Received)
>>
>> I get 0's on my LCD all the time. Except once, I went to lunch and
>> when I came back it was 00001, I have no idea what happened.
>>
>> Anyway, the cmucam manual states that it uses 8 data bits, 1 stop bit,
>> no flow control and no parity. I couldn't find any mention of stop
>> bits for the oopic. Is this the problem?
>>
>> Other than that I'm quite certain the connections are right. If anyone
>> could help I'd be very grateful.
>>
>> Ash
>>
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

Re: [oopic] Re: Serial Connection No Longer Working

Richard has already given the common checks for the serial port
connection, so I won't repeat. Have you tried connecting immediately
after reset while your startup delay is active? I would add that you
should check the serial connection all the way back to the translator
board (while it is disconnected from the ooPIC board.)

DLC

bb261998 wrote:
> AS far as I can tell the serial connection is correct, on my
> translator board I get both leds lit when I plug in, I know for sure
> it worked in the past and I haven't changed anything since then. I
> don't have any other programs using the serial prot that I know of.
> Since I posted last I've also tried unistalling the IDE and rebooted
> a few times for good measure but still nothing.
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>> Now we're getting somewhere. Make sure that your serial connection
>>
> is
>
>> correct and that no other serial program has control of the port.
>>
>> DLC
>>
>> bb261998 wrote:
>>
>>> I had already replaced the regulator with the bigger one prior to
>>> this issue after frying the original. I've checked voltage at the
>>> regulator, on the 40 pin connection and at the point of the
>>>
> serial
>
>>> connection and everything looked good at 5v. Even with the EEPROM
>>> taken out the IDE still doesn't connect to the board, I get the
>>>
> same
>
>>> error message. I just tried doing the connection right when I
>>>
> power
>
>>> it on to attempt to get in during the delay, same story.
>>>
>>>
>>> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
>>>
>>>
>>>> --- In oopic@yahoogroups.com, "bb261998" <bb261998@> wrote:
>>>>
>>>>
>>>>> the strange thing is I had everything working the night before;
>>>>>
>>>>>
>>> went
>>>
>>>
>>>>> to bed; when I got up the next day the problem began. No
>>>>>
> changes
>
>>>>>
>>>>>
>>> to
>>>
>>>
>>>>> the computer, software or program, or wiring. I changed battery
>>>>>
>>>>>
>>> also
>>>
>>>
>>>>> before posting the first time. I didn't realize you need to
>>>>>
>>>>>
>>> connect
>>>
>>>
>>>>> within the delay period though. My fear is I may have
>>>>>
> carelessly
>
>>>>> screwed up one of the I/O's that the serial uses while playing
>>>>> around late at night.
>>>>>
>>>>> One other symptom I forgot to mention, when I plug in my
>>>>>
> testing
>
>>>>> LEDS and reset the oopic, I/O 1 goes high and all the others
>>>>>
> I/O
>
>>>>> stay low. the last program I loaded before all this started did
>>>>>
> a
>
>>>>> sort of Knight Rider pattern across the first 8 I/O's so I
>>>>>
>>>>>
>>> expected
>>>
>>>
>>>>> even if I screwed up the serial I/O (19,23..) that program
>>>>>
> would
>
>>>>> still be loaded and running normally which it does not.
>>>>>
>>>>>
>>>> Check the 5V levels on the board. That tiny little regulator
>>>>
> won't
>
>>>> take much abuse and 8 LEDs at 20 mA each might just be enough to
>>>>
>>>>
>>> take
>>>
>>>
>>>> it out. It is only rated for 100 mA! See
>>>> http://www.fairchildsemi.com/ds/LM/LM78L05A.pdf
>>>>
>>>> Dennis recommends replacing it with a regular 7805 in a TO-220
>>>> package. I haven't fried mine yet but I will probably stay with
>>>>
> the
>
>>>> TO-92 package,
>>>>
>>>> It's pretty hard to trash the uC. You can take out a pin without
>>>> frying the whole thing.
>>>>
>>>> Once you verify (and repair) the 5V, remove the EEPROM and try to
>>>> download a program. You will get a dialog box telling you to
>>>>
>>>>
>>> install
>>>
>>>
>>>> the EEPROM. Do so with the system powered up. Don't get it
>>>>
>>>>
>>> backwards!
>>>
>>>
>>>> Acknowledge the dialog and you should be good to go.
>>>>
>>>> THAT is the reason for always including OOPic.Delay = 500 as the
>>>>
>>>>
>>> first
>>>
>>>
>>>> executable statement. It allows the IDE to communicate with the
>>>>
> CPU
>
>>>> during the 5 second delay (following a reset) before the uC goes
>>>>
> off
>
>>>> to never-never-land.
>>>>
>>>> Richard
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>> --
>> ------------------------------------------------------
>> Dennis Clark ooPIC Tech Support
>> www.oopic.com
>> ------------------------------------------------------
>>
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial Connection No Longer Working

--- In oopic@yahoogroups.com, "bb261998" <bb261998@...> wrote:
>
> AS far as I can tell the serial connection is correct, on my
> translator board I get both leds lit when I plug in, I know for sure
> it worked in the past and I haven't changed anything since then. I
> don't have any other programs using the serial prot that I know of.
> Since I posted last I've also tried unistalling the IDE and rebooted
> a few times for good measure but still nothing.

There are two Hyperterminal tests you can try: First, set HT for
9600,n,8,1 with NO FLOW CONTROL and connect to the port you use with
the IDE. Pull the TX and RX wires at the OOPic and short them
together (at the serial adapter). Now keyboard data should be echoed
at the screen. Without the jumper there should be no echo.
Obviously, the OOPic S board needs to be providing power to the serial
adapter. Of course, you could also make this test (of the cable) by
jumping pins 2 & 3 at the male connector.

Second, hook everything back up, yank the EEPROM and reset the OOPic.
Type \0V (backslash, zero, upper case V) and you should get a reply
of v (lower case V). See Chapter 16 of the ooPIC Programmer's Guide.

I just tried this (yank the EEPROM) on a working OOPic and the
described 'v' echo was received.

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/

[oopic] Re: Serial Connection No Longer Working

AS far as I can tell the serial connection is correct, on my
translator board I get both leds lit when I plug in, I know for sure
it worked in the past and I haven't changed anything since then. I
don't have any other programs using the serial prot that I know of.
Since I posted last I've also tried unistalling the IDE and rebooted
a few times for good measure but still nothing.

--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Now we're getting somewhere. Make sure that your serial connection
is
> correct and that no other serial program has control of the port.
>
> DLC
>
> bb261998 wrote:
> > I had already replaced the regulator with the bigger one prior to
> > this issue after frying the original. I've checked voltage at the
> > regulator, on the 40 pin connection and at the point of the
serial
> > connection and everything looked good at 5v. Even with the EEPROM
> > taken out the IDE still doesn't connect to the board, I get the
same
> > error message. I just tried doing the connection right when I
power
> > it on to attempt to get in during the delay, same story.
> >
> >
> > --- In oopic@yahoogroups.com, "rtstofer" <rstofer@> wrote:
> >
> >> --- In oopic@yahoogroups.com, "bb261998" <bb261998@> wrote:
> >>
> >>> the strange thing is I had everything working the night before;
> >>>
> > went
> >
> >>> to bed; when I got up the next day the problem began. No
changes
> >>>
> > to
> >
> >>> the computer, software or program, or wiring. I changed battery
> >>>
> > also
> >
> >>> before posting the first time. I didn't realize you need to
> >>>
> > connect
> >
> >>> within the delay period though. My fear is I may have
carelessly
> >>> screwed up one of the I/O's that the serial uses while playing
> >>> around late at night.
> >>>
> >>> One other symptom I forgot to mention, when I plug in my
testing
> >>> LEDS and reset the oopic, I/O 1 goes high and all the others
I/O
> >>> stay low. the last program I loaded before all this started did
a
> >>> sort of Knight Rider pattern across the first 8 I/O's so I
> >>>
> > expected
> >
> >>> even if I screwed up the serial I/O (19,23..) that program
would
> >>> still be loaded and running normally which it does not.
> >>>
> >> Check the 5V levels on the board. That tiny little regulator
won't
> >> take much abuse and 8 LEDs at 20 mA each might just be enough to
> >>
> > take
> >
> >> it out. It is only rated for 100 mA! See
> >> http://www.fairchildsemi.com/ds/LM/LM78L05A.pdf
> >>
> >> Dennis recommends replacing it with a regular 7805 in a TO-220
> >> package. I haven't fried mine yet but I will probably stay with
the
> >> TO-92 package,
> >>
> >> It's pretty hard to trash the uC. You can take out a pin without
> >> frying the whole thing.
> >>
> >> Once you verify (and repair) the 5V, remove the EEPROM and try to
> >> download a program. You will get a dialog box telling you to
> >>
> > install
> >
> >> the EEPROM. Do so with the system powered up. Don't get it
> >>
> > backwards!
> >
> >> Acknowledge the dialog and you should be good to go.
> >>
> >> THAT is the reason for always including OOPic.Delay = 500 as the
> >>
> > first
> >
> >> executable statement. It allows the IDE to communicate with the
CPU
> >> during the 5 second delay (following a reset) before the uC goes
off
> >> to never-never-land.
> >>
> >> Richard
> >>
> >>
> >
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>



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/

[oopic] Re: Serial communication with cmucam2

Hi there,

New to robotics / oopic / CMUcam .... but as have started building
something that combines all I've been doing a lot of reading :)

Not sure if this helps but came across it recently :
http://www.instructables.com/id/Interfacing-a-CMUCam2-to-an-OOPIC/

Wishing you all the best.

Richard
> Hello all,
>
> I'm trying to get my oopic to talk to my cmucam2. I'm using the
> oSerialport object. I'm running a very basic program to see if I'm
> actually receiving anything. The most important command is:
>
> LCD.VString = Str$(s.Received)
>
> I get 0's on my LCD all the time. Except once, I went to lunch and
> when I came back it was 00001, I have no idea what happened.
>
> Anyway, the cmucam manual states that it uses 8 data bits, 1 stop bit,
> no flow control and no parity. I couldn't find any mention of stop
> bits for the oopic. Is this the problem?
>
> Other than that I'm quite certain the connections are right. If anyone
> could help I'd be very grateful.
>
> Ash
>



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/

[oopic] Re: Serial Connection No Longer Working

--- In oopic@yahoogroups.com, "bb261998" <bb261998@...> wrote:
>
> the strange thing is I had everything working the night before; went
> to bed; when I got up the next day the problem began. No changes to
> the computer, software or program, or wiring. I changed battery also
> before posting the first time. I didn't realize you need to connect
> within the delay period though. My fear is I may have carelessly
> screwed up one of the I/O's that the serial uses while playing
> around late at night.
>
> One other symptom I forgot to mention, when I plug in my testing
> LEDS and reset the oopic, I/O 1 goes high and all the others I/O
> stay low. the last program I loaded before all this started did a
> sort of Knight Rider pattern across the first 8 I/O's so I expected
> even if I screwed up the serial I/O (19,23..) that program would
> still be loaded and running normally which it does not.
>
>

What size resistor did you have in series with the LEDs?

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/

Re: [oopic] Re: Serial Connection No Longer Working

Now we're getting somewhere. Make sure that your serial connection is
correct and that no other serial program has control of the port.

DLC

bb261998 wrote:
> I had already replaced the regulator with the bigger one prior to
> this issue after frying the original. I've checked voltage at the
> regulator, on the 40 pin connection and at the point of the serial
> connection and everything looked good at 5v. Even with the EEPROM
> taken out the IDE still doesn't connect to the board, I get the same
> error message. I just tried doing the connection right when I power
> it on to attempt to get in during the delay, same story.
>
>
> --- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
>> --- In oopic@yahoogroups.com, "bb261998" <bb261998@> wrote:
>>
>>> the strange thing is I had everything working the night before;
>>>
> went
>
>>> to bed; when I got up the next day the problem began. No changes
>>>
> to
>
>>> the computer, software or program, or wiring. I changed battery
>>>
> also
>
>>> before posting the first time. I didn't realize you need to
>>>
> connect
>
>>> within the delay period though. My fear is I may have carelessly
>>> screwed up one of the I/O's that the serial uses while playing
>>> around late at night.
>>>
>>> One other symptom I forgot to mention, when I plug in my testing
>>> LEDS and reset the oopic, I/O 1 goes high and all the others I/O
>>> stay low. the last program I loaded before all this started did a
>>> sort of Knight Rider pattern across the first 8 I/O's so I
>>>
> expected
>
>>> even if I screwed up the serial I/O (19,23..) that program would
>>> still be loaded and running normally which it does not.
>>>
>> Check the 5V levels on the board. That tiny little regulator won't
>> take much abuse and 8 LEDs at 20 mA each might just be enough to
>>
> take
>
>> it out. It is only rated for 100 mA! See
>> http://www.fairchildsemi.com/ds/LM/LM78L05A.pdf
>>
>> Dennis recommends replacing it with a regular 7805 in a TO-220
>> package. I haven't fried mine yet but I will probably stay with the
>> TO-92 package,
>>
>> It's pretty hard to trash the uC. You can take out a pin without
>> frying the whole thing.
>>
>> Once you verify (and repair) the 5V, remove the EEPROM and try to
>> download a program. You will get a dialog box telling you to
>>
> install
>
>> the EEPROM. Do so with the system powered up. Don't get it
>>
> backwards!
>
>> Acknowledge the dialog and you should be good to go.
>>
>> THAT is the reason for always including OOPic.Delay = 500 as the
>>
> first
>
>> executable statement. It allows the IDE to communicate with the CPU
>> during the 5 second delay (following a reset) before the uC goes off
>> to never-never-land.
>>
>> Richard
>>
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial Connection No Longer Working

I had already replaced the regulator with the bigger one prior to
this issue after frying the original. I've checked voltage at the
regulator, on the 40 pin connection and at the point of the serial
connection and everything looked good at 5v. Even with the EEPROM
taken out the IDE still doesn't connect to the board, I get the same
error message. I just tried doing the connection right when I power
it on to attempt to get in during the delay, same story.


--- In oopic@yahoogroups.com, "rtstofer" <rstofer@...> wrote:
>
> --- In oopic@yahoogroups.com, "bb261998" <bb261998@> wrote:
> >
> > the strange thing is I had everything working the night before;
went
> > to bed; when I got up the next day the problem began. No changes
to
> > the computer, software or program, or wiring. I changed battery
also
> > before posting the first time. I didn't realize you need to
connect
> > within the delay period though. My fear is I may have carelessly
> > screwed up one of the I/O's that the serial uses while playing
> > around late at night.
> >
> > One other symptom I forgot to mention, when I plug in my testing
> > LEDS and reset the oopic, I/O 1 goes high and all the others I/O
> > stay low. the last program I loaded before all this started did a
> > sort of Knight Rider pattern across the first 8 I/O's so I
expected
> > even if I screwed up the serial I/O (19,23..) that program would
> > still be loaded and running normally which it does not.
>
> Check the 5V levels on the board. That tiny little regulator won't
> take much abuse and 8 LEDs at 20 mA each might just be enough to
take
> it out. It is only rated for 100 mA! See
> http://www.fairchildsemi.com/ds/LM/LM78L05A.pdf
>
> Dennis recommends replacing it with a regular 7805 in a TO-220
> package. I haven't fried mine yet but I will probably stay with the
> TO-92 package,
>
> It's pretty hard to trash the uC. You can take out a pin without
> frying the whole thing.
>
> Once you verify (and repair) the 5V, remove the EEPROM and try to
> download a program. You will get a dialog box telling you to
install
> the EEPROM. Do so with the system powered up. Don't get it
backwards!
>
> Acknowledge the dialog and you should be good to go.
>
> THAT is the reason for always including OOPic.Delay = 500 as the
first
> executable statement. It allows the IDE to communicate with the CPU
> during the 5 second delay (following a reset) before the uC goes off
> to never-never-land.
>
> 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/

Re: [oopic] Re: Serial Connection No Longer Working

Try the connect in that first delay period, you will probably get
through. It sounds like your code is in a tight loop, so _don't_
download the last program you did, use another one that is safe.

DLC

bb261998 wrote:
> the strange thing is I had everything working the night before; went
> to bed; when I got up the next day the problem began. No changes to
> the computer, software or program, or wiring. I changed battery also
> before posting the first time. I didn't realize you need to connect
> within the delay period though. My fear is I may have carelessly
> screwed up one of the I/O's that the serial uses while playing
> around late at night.
>
> One other symptom I forgot to mention, when I plug in my testing
> LEDS and reset the oopic, I/O 1 goes high and all the others I/O
> stay low. the last program I loaded before all this started did a
> sort of Knight Rider pattern across the first 8 I/O's so I expected
> even if I screwed up the serial I/O (19,23..) that program would
> still be loaded and running normally which it does not.
>
>
> --- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
> wrote:
>
>> Your first step is to go through what you might have done that
>>
> changed
>
>> something. A wire moved, an OS update, new software, different
>>
> program
>
>> (The delay at the start does not always fix the problem, and in no
>>
> case
>
>> will it fix anything unless you try to connect within the delay
>>
> period.)
>
>>
>> Something has changed, now you have to figure out what it is. The
>>
> next
>
>> test of course is your battery, is it good?
>>
>> DLC
>>
>> bb261998 wrote:
>>
>>> Hello All -
>>> I have the s board with the C firmware. I was using it just fine
>>>
> for
>
>>> the last week or so but now it stopped responding to the IDE
>>>
> when I
>
>>> attempt to send the program. I get the error:
>>> "Download error: ooPIC at Serial Node: 0 did not respond"
>>>
>>> I had already spent alot of time reading the forum before I even
>>> started so I'm aware of the "cosmic wedgie" and had the
>>>
> appropriate
>
>>> delay statement in my programs. Regardless, so far my attempts
>>>
> to
>
>>> fix include pulling the eeprom and the rest of the "C/W" fix,
>>> resoldering the serial connections to the board, connecting to a
>>> second computer, replacing the serial cable, replacing the v
>>> regulator.
>>>
>>> Does anyone have any other ideas for fixing the serial
>>>
> connection or
>
>>> testing to find out what the problem is exactly? I'm using a
>>>
> premade
>
>>> RS232 - TTL, reccomended to me by Richard which seemed to work
>>>
> fine
>
>>> prior to this, at this point both lights come on like normal. Is
>>>
> it
>
>>> easy to fry or otherwise mess up something that has to do with
>>>
> the
>
>>> serial connection?
>>>
>>> Thanks in Advance for your help,
>>>
>>> Ben
>>>
>>>
>>>
>>>
>>> Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>> --
>> ------------------------------------------------------
>> Dennis Clark ooPIC Tech Support
>> www.oopic.com
>> ------------------------------------------------------
>>
>>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial Connection No Longer Working

--- In oopic@yahoogroups.com, "bb261998" <bb261998@...> wrote:
>
> the strange thing is I had everything working the night before; went
> to bed; when I got up the next day the problem began. No changes to
> the computer, software or program, or wiring. I changed battery also
> before posting the first time. I didn't realize you need to connect
> within the delay period though. My fear is I may have carelessly
> screwed up one of the I/O's that the serial uses while playing
> around late at night.
>
> One other symptom I forgot to mention, when I plug in my testing
> LEDS and reset the oopic, I/O 1 goes high and all the others I/O
> stay low. the last program I loaded before all this started did a
> sort of Knight Rider pattern across the first 8 I/O's so I expected
> even if I screwed up the serial I/O (19,23..) that program would
> still be loaded and running normally which it does not.

Check the 5V levels on the board. That tiny little regulator won't
take much abuse and 8 LEDs at 20 mA each might just be enough to take
it out. It is only rated for 100 mA! See
http://www.fairchildsemi.com/ds/LM/LM78L05A.pdf

Dennis recommends replacing it with a regular 7805 in a TO-220
package. I haven't fried mine yet but I will probably stay with the
TO-92 package,

It's pretty hard to trash the uC. You can take out a pin without
frying the whole thing.

Once you verify (and repair) the 5V, remove the EEPROM and try to
download a program. You will get a dialog box telling you to install
the EEPROM. Do so with the system powered up. Don't get it backwards!

Acknowledge the dialog and you should be good to go.

THAT is the reason for always including OOPic.Delay = 500 as the first
executable statement. It allows the IDE to communicate with the CPU
during the 5 second delay (following a reset) before the uC goes off
to never-never-land.

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/

[oopic] Re: Serial Connection No Longer Working

the strange thing is I had everything working the night before; went
to bed; when I got up the next day the problem began. No changes to
the computer, software or program, or wiring. I changed battery also
before posting the first time. I didn't realize you need to connect
within the delay period though. My fear is I may have carelessly
screwed up one of the I/O's that the serial uses while playing
around late at night.

One other symptom I forgot to mention, when I plug in my testing
LEDS and reset the oopic, I/O 1 goes high and all the others I/O
stay low. the last program I loaded before all this started did a
sort of Knight Rider pattern across the first 8 I/O's so I expected
even if I screwed up the serial I/O (19,23..) that program would
still be loaded and running normally which it does not.


--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> Your first step is to go through what you might have done that
changed
> something. A wire moved, an OS update, new software, different
program
> (The delay at the start does not always fix the problem, and in no
case
> will it fix anything unless you try to connect within the delay
period.)
>
> Something has changed, now you have to figure out what it is. The
next
> test of course is your battery, is it good?
>
> DLC
>
> bb261998 wrote:
> > Hello All -
> > I have the s board with the C firmware. I was using it just fine
for
> > the last week or so but now it stopped responding to the IDE
when I
> > attempt to send the program. I get the error:
> > "Download error: ooPIC at Serial Node: 0 did not respond"
> >
> > I had already spent alot of time reading the forum before I even
> > started so I'm aware of the "cosmic wedgie" and had the
appropriate
> > delay statement in my programs. Regardless, so far my attempts
to
> > fix include pulling the eeprom and the rest of the "C/W" fix,
> > resoldering the serial connections to the board, connecting to a
> > second computer, replacing the serial cable, replacing the v
> > regulator.
> >
> > Does anyone have any other ideas for fixing the serial
connection or
> > testing to find out what the problem is exactly? I'm using a
premade
> > RS232 - TTL, reccomended to me by Richard which seemed to work
fine
> > prior to this, at this point both lights come on like normal. Is
it
> > easy to fry or otherwise mess up something that has to do with
the
> > serial connection?
> >
> > Thanks in Advance for your help,
> >
> > Ben
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>



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/

Friday, December 28, 2007

Re: [oopic] Serial Connection No Longer Working

Your first step is to go through what you might have done that changed
something. A wire moved, an OS update, new software, different program
(The delay at the start does not always fix the problem, and in no case
will it fix anything unless you try to connect within the delay period.)

Something has changed, now you have to figure out what it is. The next
test of course is your battery, is it good?

DLC

bb261998 wrote:
> Hello All -
> I have the s board with the C firmware. I was using it just fine for
> the last week or so but now it stopped responding to the IDE when I
> attempt to send the program. I get the error:
> "Download error: ooPIC at Serial Node: 0 did not respond"
>
> I had already spent alot of time reading the forum before I even
> started so I'm aware of the "cosmic wedgie" and had the appropriate
> delay statement in my programs. Regardless, so far my attempts to
> fix include pulling the eeprom and the rest of the "C/W" fix,
> resoldering the serial connections to the board, connecting to a
> second computer, replacing the serial cable, replacing the v
> regulator.
>
> Does anyone have any other ideas for fixing the serial connection or
> testing to find out what the problem is exactly? I'm using a premade
> RS232 - TTL, reccomended to me by Richard which seemed to work fine
> prior to this, at this point both lights come on like normal. Is it
> easy to fry or otherwise mess up something that has to do with the
> serial connection?
>
> Thanks in Advance for your help,
>
> Ben
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial Connection No Longer Working

You need to do "cosmic wedgie" procedure (search archive) and NOT run
the last version of code that locks up the OOPIC proc...
Jeff K.


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/

[oopic] Serial Connection No Longer Working

Hello All -
I have the s board with the C firmware. I was using it just fine for
the last week or so but now it stopped responding to the IDE when I
attempt to send the program. I get the error:
"Download error: ooPIC at Serial Node: 0 did not respond"

I had already spent alot of time reading the forum before I even
started so I'm aware of the "cosmic wedgie" and had the appropriate
delay statement in my programs. Regardless, so far my attempts to
fix include pulling the eeprom and the rest of the "C/W" fix,
resoldering the serial connections to the board, connecting to a
second computer, replacing the serial cable, replacing the v
regulator.

Does anyone have any other ideas for fixing the serial connection or
testing to find out what the problem is exactly? I'm using a premade
RS232 - TTL, reccomended to me by Richard which seemed to work fine
prior to this, at this point both lights come on like normal. Is it
easy to fry or otherwise mess up something that has to do with the
serial connection?

Thanks in Advance for your help,

Ben


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/

[oopic] Re: Easiest way to 16 /O for voltage metering?

--- In oopic@yahoogroups.com, "jeffkaypic" <jeffkaypic@...> wrote:
>
> I need to poll in somewhat-real-time 16 voltages. Since my OObot40
> only can do what's on it, how can I add more in the simplest way.
> Again, real-real-time is not an issue even up to a ful second,
etc...
>
> Jeff K.
>

There are hundreds of A/D converters that use the I2C interface. You
can hang them on the local I2C bus (the one that talks to the EEPROM)
and you are up and running.

Analog Devices comes to mind...

www.analog.com

Probably a
parametric search for single-ended (0-5V) and I2C interface will
shorten the list.

Maybe the AD7997

http://www.analog.com/UploadedFiles/Data_Sheets/AD7997_7998.pdf

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/

[oopic] Easiest way to 16 /O for voltage metering?

I need to poll in somewhat-real-time 16 voltages. Since my OObot40
only can do what's on it, how can I add more in the simplest way.
Again, real-real-time is not an issue even up to a ful second, etc...

Jeff K.


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/

Wednesday, December 26, 2007

[oopic] ebay

Asus Lamborghini VX2S-B1B VX2S..








SONY PLAYSTATION 3 PS3 60 GB BLURAY TALLADEGA










Dear sir/madam: Nice to meet you ! we are a agent of electronic company we offer the best items with the lowest price there are many kinds of items in my store . Main management category:well-known brand notebook,mobile phone,digital camera ;MP4 ;MP3 TV ;DVD; GPS Hand Computer Main Board and so on All of my goods are the all new brand like : DELL ,IBM ,HP ,lenovo ,Samsung , ASUS ,TCL Acer ,SONY ,Toshiba, Apple, Great Wall,FUJITSU ,Canon , Nikon ,KODAK ,OLYMPUS, Panasonic CASIO, BenQ ,Pentax and so on our msn is :Ge_Li_Shi@Hotmail.com our email is :Ge_Li_Shi@Hotmail.comour website is : ( www.GeLiShi.com) if you want anythings please contact me hope we can do good business sinceresly
_________________________________________________________________
Our Christmas gift for you: A brand new set of FREE and cool Windows Live services!
http://get.live.com

[Non-text portions of this message have been removed]


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/

Sunday, December 23, 2007

Re: [oopic] Re: Using IO Lines? R to R Board Comm

Don't forget that you can filter using VC's as well. oMath and others
work well for this. Sadly, I have found that oDDELink is anything BUT
real time, it can take a few hundred milliseconds for the data to
transfer - If this is acceptable, go for it. Another way is to put the
data on an oDIO8 with signal pairs between the two ooPIC R boards to
send data back and forth. This is simpler than using oDDELink in that
the cable is easier to make. ;) oDDELink has an issue when two ooPIC R
boards are used, we've never been able to figure this out either, but
they just don't talk unless you do <something> just right with just the
right value of resistors. The oDIO8 bus approach is faster and simpler
to implement. In fact, by using oDIO8 you can probably do the whole
thing with VC's and never run any interpreted code. Since this is a
class I'm not going to give you the answer, but look at these objects:
oDIO8
oDIO1
oBus
oWire
oTimer
oFlipFlop
oCountDown
oChanged

It might just be possible to do it all in VC's. Do some careful state
diagrams.

Have fun,
DLC

rtstofer wrote:
> --- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>
>> Question:
>> If I have only one compass (CMPS03) that connects to the I2C bus on an
>> R board, what is the simplest method to ensure a second R board, also
>> connected via I2C, gets the same reading in near realtime? Board 1
>> (with the compass) also has IR rangers that must transfer data.
>> Options include:
>> Only two basic units of information need to be transferred, 'Heading'
>> and 'ObstacleRange'. Use DDELink? Or IO lines? Hardwired to Serial Port?
>>
>
> One thing you CAN'T do is connect the two LOCAL I2C buses together and
> hang the sensors on the resulting single bus. The fact that the
> EEPROMS would be visible to both machines and the resulting collisions
> make that obvious.
>
> oDDELink is probably workable. The host CPU gets the values and
> stuffs them in the shared object. The client CPU sees the values
> immediately thereafter.
>
> The OOPic is almost useless when it comes to serial IO. I think I
> would avoid that approach.
>
>
>
>> Extra credit:
>> Extensive use of Virtual Circuits
>>
>
> Sure, use a timer to trigger an event to read the sensors and stuff
> the results. I haven't looked to see if a timer event can be slow
> enough to be reasonable. Or, a first firing of the event starts the
> sensing operation, a second firing grabs the values and a third firing
> stuffs the results. The advantage to this is that the event code
> doesn't tie up the processor for a long period of time.
>
>
>> Show all work.
>>
>
> The function of my code is ALWAYS obvious to the most casual observer.
> Comments are never needed because any competent person can see what I
> had in mind.
>
> Richard
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

[oopic] Re: Serial Port....Power...OOPIC-R

--- In oopic@yahoogroups.com, "aravind_2917" <aravind_2917@...> wrote:
>
>
> Thanks a lot for your replies...
>
> Am totally new to all these things. Its a part of btech final year
> project. Can you please tell me what exactly i should do?..step by step
> if u can pls...please bear with me....
> The programming part i can manage..only the hardware part...
>
> In one of the website,ive seen a project in which they used serial
> bluetooth adapter....they said :
>
> "we bridge the CTS/RTS lines and the DCE/DTE lines together. This way
> if the adapter was waiting on a Clear to Send signal before it would
> actually pass the data out of its buffer to the OOPIC, it would fool
> itself by sending its own signal. It worked like a charm! ".
>
> Can you please explain me this...how to do it?...where and how do i
> bridge those lines?
>
> once again thanks a lot.


Get a male and female DB-9 connector. The male end will connect to
the OOPic, the female to the bluetooth dongle.

On the male end, bring out pins 2, 3 and 5 and connect them to the
female end on pins 2, 3 and 5, straight through. This will give you
TXD, RXD and GND.

If you want to power the dongle from pin 9 of the DB9, connect the
power source between pins 9 and 5 of the female connector. Note that
you now have TWO wires to connect to pin 5 if you use a 9V battery (I
would). If you grab power (either 5V or input power) from the OOPic,
you won't need the redundant ground wire on pin 5. Apparently the
dongle can work from 5V. If I wanted to try this, I would take that
+5 from the same pin we are going to use for CTS - see below. There
are a lot of +5V pins on the various headers. Try to use the ones
connected to EP1, EP2, EP3 or EP4. Avoid the others that are
connected to the voltage regulator for the OOPic itself. You can
probably use the power source that feeds the OOPic if it is less than 11V.

Personally, I would go with the separate 9V battery just to get the
voltage up well above minimum and to get it away from the OOPic power
supplies.

On the male connector, jumper pins 7 & 8 RTS/CTS. You could also
jumper pins 4, 6 & 1 (DSR, DTR and CD) but they aren't used by the
dongle. The jumper on pins 7 & 8 should satisfy the dongle.

If you decide you need flow control (and you probably will), remove
the jumper between pins 7 & 8 on the male connector. Select an IOLine
to use for the oSerialPort flow control (IOLineF) and connect it to
the base of a 2n2222 (or any small signal NPN) transistor through a 1k
resistor. Connect the emitter to logic ground and connect a 1k
pull-up resistor between the collector and +5V. All 3 of these
(signal, +5, gnd) are available on the 3 pin header for the IOLine.
Now, connect a wire from the collector to pin 8 (CTS) of the male DB-9
connector. This transistor is required to invert the sense of the CTS
signal. Ordinarily, this would be done with a level shifter.

The OOPic is a DCE device so you want your dongle to be a DTE device
and, by default, it is.

All of the above is a GUESS. I don't have a bluetooth dongle so it is
a certainty that I have never done this. Good luck!

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/

[oopic] Re: Serial Port....Power...OOPIC-R

Thanks a lot for your replies...

Am totally new to all these things. Its a part of btech final year
project. Can you please tell me what exactly i should do?..step by step
if u can pls...please bear with me....
The programming part i can manage..only the hardware part...

In one of the website,ive seen a project in which they used serial
bluetooth adapter....they said :

"we bridge the CTS/RTS lines and the DCE/DTE lines together. This way
if the adapter was waiting on a Clear to Send signal before it would
actually pass the data out of its buffer to the OOPIC, it would fool
itself by sending its own signal. It worked like a charm! ".

Can you please explain me this...how to do it?...where and how do i
bridge those lines?

once again thanks a lot.


--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...>
wrote:
>
> It does not - You'll have to hack that in yourself, which is a trivial
> process, in fact, it is a very neat solution to get power there.
>
> DLC
>
> aravind_2917 wrote:
> > hello,
> >
> > Am planning to buy a serial bluetooth
adapter(FireFly,www.sparkfun.com)
> > to connect it to the serial port of an oopic-R board.
> >
> > The specifications of serial bluetooth adapter says that the adapter
> > accepts power from PIN 9 OF THE DB serial port if available,or it
should
> > be powered externally.It requires 5 V DC.
> >
> > Will this work with oopic?...Does OOPIC supply power on pin 9 of the
> > serial port?..Its a problem to power the serial adapter externally..
> >
> > so,should i go ahead and buy it?
> >
> > thank you.
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
> >
> >
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>


Thanks a lot for your replies...

Am totally new to all these things. Its a part of btech final year
project. Can you please tell me what exactly i should do?..step by step
if u can pls...please bear with me....
The programming part i can manage..only the hardware part...

In one of the website,ive seen a project in which they used serial
bluetooth adapter....they said :

"we bridge the CTS/RTS lines and the DCE/DTE lines together. This way
if the adapter was waiting on a Clear to Send signal before it would
actually pass the data out of its buffer to the OOPIC, it would fool
itself by sending its own signal. It worked like a charm! ".

Can you please explain me this...how to do it?...where and how do i
bridge those lines?

once again thanks a lot.

[Non-text portions of this message have been removed]


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/

[oopic] Re: Using IO Lines? R to R Board Comm

--- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>
> Question:
> If I have only one compass (CMPS03) that connects to the I2C bus on an
> R board, what is the simplest method to ensure a second R board, also
> connected via I2C, gets the same reading in near realtime? Board 1
> (with the compass) also has IR rangers that must transfer data.
> Options include:
> Only two basic units of information need to be transferred, 'Heading'
> and 'ObstacleRange'. Use DDELink? Or IO lines? Hardwired to Serial Port?

One thing you CAN'T do is connect the two LOCAL I2C buses together and
hang the sensors on the resulting single bus. The fact that the
EEPROMS would be visible to both machines and the resulting collisions
make that obvious.

oDDELink is probably workable. The host CPU gets the values and
stuffs them in the shared object. The client CPU sees the values
immediately thereafter.

The OOPic is almost useless when it comes to serial IO. I think I
would avoid that approach.


> Extra credit:
> Extensive use of Virtual Circuits

Sure, use a timer to trigger an event to read the sensors and stuff
the results. I haven't looked to see if a timer event can be slow
enough to be reasonable. Or, a first firing of the event starts the
sensing operation, a second firing grabs the values and a third firing
stuffs the results. The advantage to this is that the event code
doesn't tie up the processor for a long period of time.

>
> Show all work.

The function of my code is ALWAYS obvious to the most casual observer.
Comments are never needed because any competent person can see what I
had in mind.

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/

[oopic] Using IO Lines? R to R Board Comm

Question:
If I have only one compass (CMPS03) that connects to the I2C bus on an
R board, what is the simplest method to ensure a second R board, also
connected via I2C, gets the same reading in near realtime? Board 1
(with the compass) also has IR rangers that must transfer data.
Options include:
Only two basic units of information need to be transferred, 'Heading'
and 'ObstacleRange'. Use DDELink? Or IO lines? Hardwired to Serial Port?

Extra credit:
Extensive use of Virtual Circuits

Show all work.


(Just kidding.)


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/

[oopic] Re: Help with incoming Serial Communcation from PC to ooPic-R I2c LCD03

LOL I have enough problems trying to make it work, let alone trying
to make it work after 6 months!
But I too restrict the comments in my code, long enough to help
explain/clarify but not iambic pentameter. I make VERY liberal use of
cut-n-paste with all the code snippets I can find (why re-invent the
wheel?) and if they don't have comments I usually add some. My code
is FAR from 'optimal' but I can usually get it to (sort of) work.
That's one of the reasons I like the Oopic - using "BASIC" makes it
easy(er) to read and understand. I know, I'll get up to speed on some
flavor of C, but until then I can use my Oopic anyway!

--- In oopic@yahoogroups.com, "Dennis K. Deckmann" <dkdeckmann@...>
wrote:
>
>
> I do as you, generally fully specify everything so as to leave
myself
> clues in case it is a while before I get back to something...
>
> I also tend to trim off irrevalent stuff from the bottoms of long
> messages...
>
> --- In oopic@yahoogroups.com, "red71956" <kdwyer@> wrote:
> >
> > Is there any reason NOT to use .Value? Does this take more
(compiled)
> > space than not using it?
> > I often use a more verbose mode, heavily commented, especially if
I
> > may not modify it. Weeks, or months later all the extra comments
and
> > such makes it easier to remember what it is I was trying to
> > accomplish.
> >
>



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/

Re: [oopic] Re: SRF02 on an OOpic-R

Thanks again.

All I seem to be getting from any of the locations is '253'

I guess it is not connected as when I send an '81' to loation '0'
the LED on the SRF02 does not flash ( which it should ).

Will keep playing :)

All the best.

Richard
----- Original Message -----
From: "rtstofer" <rstofer@pacbell.net>
To: <oopic@yahoogroups.com>
Sent: Sunday, December 23, 2007 1:25 AM
Subject: [oopic] Re: SRF02 on an OOpic-R


> --- In oopic@yahoogroups.com, "Trikky2" <richard@...> wrote:
>>
>> Hi Richard,
>>
>> Thanks for the reply.
>>
>> Yes it is wired uplike that.
>>
>> Good idea about seeing if I can get the software revision
>> from location 0.
>>
>> I think I'll have to invest in a display ... Should make
>> Debugging easier :)
>>
>> All the best.
>>
>> Richard
>
> Just grab the low byte and use str$() to convert it to ASCII and send
> it out the serial port to the PC using oSerialPort.
>
> Use part of the code for the oSerialPort object.
>
> Somewhere on the menu bar of the IDE, there is a way to get to the
> terminal window. The OOPic output will show up there. You may have
> to click in the window or hit <Enter> - at least I seem to remember
> doing something like that with Ver. 5. I'm not on my WinXP box at the
> moment so I can't really test it.
>
> Richard
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>


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/

[oopic] Re: Help with incoming Serial Communcation from PC to ooPic-R I2c LCD03

I do as you, generally fully specify everything so as to leave myself
clues in case it is a while before I get back to something...

I also tend to trim off irrevalent stuff from the bottoms of long
messages...

--- In oopic@yahoogroups.com, "red71956" <kdwyer@...> wrote:
>
> Is there any reason NOT to use .Value? Does this take more (compiled)
> space than not using it?
> I often use a more verbose mode, heavily commented, especially if I
> may not modify it. Weeks, or months later all the extra comments and
> such makes it easier to remember what it is I was trying to
> accomplish.
>


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/

Saturday, December 22, 2007

[oopic] Re: SRF02 on an OOpic-R

--- In oopic@yahoogroups.com, "Trikky2" <richard@...> wrote:
>
> Hi Richard,
>
> Thanks for the reply.
>
> Yes it is wired uplike that.
>
> Good idea about seeing if I can get the software revision
> from location 0.
>
> I think I'll have to invest in a display ... Should make
> Debugging easier :)
>
> All the best.
>
> Richard

Just grab the low byte and use str$() to convert it to ASCII and send
it out the serial port to the PC using oSerialPort.

Use part of the code for the oSerialPort object.

Somewhere on the menu bar of the IDE, there is a way to get to the
terminal window. The OOPic output will show up there. You may have
to click in the window or hit <Enter> - at least I seem to remember
doing something like that with Ver. 5. I'm not on my WinXP box at the
moment so I can't really test it.

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/

Re: [oopic] Serial Port....Power...OOPIC-R

It does not - You'll have to hack that in yourself, which is a trivial
process, in fact, it is a very neat solution to get power there.

DLC

aravind_2917 wrote:
> hello,
>
> Am planning to buy a serial bluetooth adapter(FireFly,www.sparkfun.com)
> to connect it to the serial port of an oopic-R board.
>
> The specifications of serial bluetooth adapter says that the adapter
> accepts power from PIN 9 OF THE DB serial port if available,or it should
> be powered externally.It requires 5 V DC.
>
> Will this work with oopic?...Does OOPIC supply power on pin 9 of the
> serial port?..Its a problem to power the serial adapter externally..
>
> so,should i go ahead and buy it?
>
> thank you.
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


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/

Re: [oopic] Re: SRF02 on an OOpic-R

Hi Richard,

Thanks for the reply.

Yes it is wired uplike that.

Good idea about seeing if I can get the software revision
from location 0.

I think I'll have to invest in a display ... Should make
Debugging easier :)

All the best.

Richard
----- Original Message -----
From: "rtstofer" <rstofer@pacbell.net>
To: <oopic@yahoogroups.com>
Sent: Saturday, December 22, 2007 7:47 PM
Subject: [oopic] Re: SRF02 on an OOpic-R


> --- In oopic@yahoogroups.com, "richard6406" <richard@...> wrote:
>>
>> Hi Folks,
>>
>> Am new here ( and to robotics ) so please bear with me :)
>>
>> I recently got an OOPic-R board and have so far had no problems
> with
>> a few small programs ( switching LED's / buzzing / running servos
> and
>> running a Motor controller ) But I am now trying to connect an
> SRF02
>> Ultasonic range finder ( http://www.robot-
>> electronics.co.uk/htm/srf02techI2C.htm ).
>>
>> The simple program I have is :
>>
>> Dim Sonar As New oI2CM 'Sonar object
>> Dim Servo As New oServo 'Servo object
>> Dim Range As New oByte ' Range variable
>>
>> Sub Main()
>> ooPIC.Delay = 500 ' 5 sec delay before start
>>
>> '~~~~~~~~~~~~ Set Up Sonar~~~~~~~~~~~~~~~~
>> Sonar.Node = 112 ' Decimal of Hex address 0xE0 shifted by 1
>> Sonar.Mode = cv10Bit ' I2C mode as 10-Bit addressing.
>> Sonar.Width = cv8Bit ' 1 byte wide transfer
>> Sonar.NoInc = 1 ' Don't increment
>>
>>
>> '~~~~~~~~~~~~~ Set up Servo ~~~~~~~~~~~~~~~~
>> Servo.IOLine = 31 ' Use line 31
>> Servo.Adjust = 28 ' Center
>> Servo.Operate =cvTrue ' Start servo
>>
>>
>>
>> Do ' Continuous loop
>> Sonar.Location = 0 ' Command register
>> Sonar = 81 ' Set ranging to cm
>> ooPIC.Delay = 7 ' Wait to give sonar time
>> Sonar.Location = 2 ' Just get high Byte
>> Range = Sonar ' Get Range
>> Servo = Range ' Move servo
>> ooPIC.Delay = 50 ' Wait 500ms
>> Loop
>>
>> End Sub
>>
>> Did this just to try and read the high byte and move a servo to
> show
>> I'm getting a signal every half second.
>>
>> When this runs the servo moves slightly forward and back at half
>> second intervals but the sonar does not seem to be firing ( no led
>> blink, only the long blink on power up ).
>>
>> I'm sure this will be the first of many questions :)
>>
>> Wishing you all the best.
>>
>> Richard
>>
>
> Do you have it wired like: http://www.robot-
> electronics.co.uk/htm/srf08oopic-r.htm ? It should be quite similar
> if not identical.
>
> It would be worth reading register 1 to be certain you get 0x80
> back. If not, you aren't communicating.
>
> So, the unit measures to 6 meters or 600 cm. Then 600 cm / 256
> (masking out the low byte) means the upper byte only varies between
> 0 and 2. That won't make much of a movement.
>
> Richard
>
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>


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/

[oopic] Re: Serial Port....Power...OOPIC-R

--- In oopic@yahoogroups.com, "aravind_2917" <aravind_2917@...> wrote:
>
>
> hello,
>
> Am planning to buy a serial bluetooth adapter(FireFly,www.sparkfun.com)
> to connect it to the serial port of an oopic-R board.
>
> The specifications of serial bluetooth adapter says that the adapter
> accepts power from PIN 9 OF THE DB serial port if available,or it should
> be powered externally.It requires 5 V DC.
>
> Will this work with oopic?...Does OOPIC supply power on pin 9 of the
> serial port?..Its a problem to power the serial adapter externally..
>
> so,should i go ahead and buy it?
>
> thank you.
>

From the schematics (www.oopic.com -> Manual -> Connectors and
Mechanical -> click on R-board -> Schematics) you can see that pin 9
is jumpered to pin 8. Kind of strange...

This jumper could cause you a lot of trouble even if you use an
external power supply to plug in to the adapter. You will be
back-feeding pin 8 with a high voltage and the adapter might not like it.

If you wish, you could make a short adapter cable that didn't carry
pin 9 to the female of the cable adpater. This would allow you to use
a power supply at the bluetooth gadget or connect it to the female of
the cable adapter. Carry only pins 2,3 and 5 from the OOPic (more
below...).

You are also going to have to deal with RTS/CTS. The OOPic doesn't
provide these signals. In the adapter cable you build, jump pins 7 &
8 at the end where the dongle plugs in (female). See the last
paragraph of Page 7 (PDF page 2).

The OOPic doesn't handle serial IO very well. You could try to
implement flow control with the IOLineF property of oSerialPort. You
would need to level shift the IOLine (MAYBE a transistor and resistor)
connecting to pin 8 (remove jumper from pin 7) of the female end.

Then there is the issue of level shifters in general: the OOPic R
doesn't provide true RS-232 levels. There is a remote possibility
that the dongle won't like 0V and 5V levels. I don't think it will be
a problem but it might.

All of this leads to my conclusion that the S-board is a better way to
go. I can easily add a level shifter that produces ALL of the signals
and all at the proper voltages
http://www.pololu.com/products/pololu/0126/

It's also true that I
MUST add a level shifter, nothing is included.

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/

[oopic] Serial Port....Power...OOPIC-R

hello,

Am planning to buy a serial bluetooth adapter(FireFly,www.sparkfun.com)
to connect it to the serial port of an oopic-R board.

The specifications of serial bluetooth adapter says that the adapter
accepts power from PIN 9 OF THE DB serial port if available,or it should
be powered externally.It requires 5 V DC.

Will this work with oopic?...Does OOPIC supply power on pin 9 of the
serial port?..Its a problem to power the serial adapter externally..

so,should i go ahead and buy it?

thank you.

[Non-text portions of this message have been removed]


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/

[oopic] Re: SRF02 on an OOpic-R

--- In oopic@yahoogroups.com, "richard6406" <richard@...> wrote:
>
> Hi Folks,
>
> Am new here ( and to robotics ) so please bear with me :)
>
> I recently got an OOPic-R board and have so far had no problems
with
> a few small programs ( switching LED's / buzzing / running servos
and
> running a Motor controller ) But I am now trying to connect an
SRF02
> Ultasonic range finder ( http://www.robot-
> electronics.co.uk/htm/srf02techI2C.htm ).
>
> The simple program I have is :
>
> Dim Sonar As New oI2CM 'Sonar object
> Dim Servo As New oServo 'Servo object
> Dim Range As New oByte ' Range variable
>
> Sub Main()
> ooPIC.Delay = 500 ' 5 sec delay before start
>
> '~~~~~~~~~~~~ Set Up Sonar~~~~~~~~~~~~~~~~
> Sonar.Node = 112 ' Decimal of Hex address 0xE0 shifted by 1
> Sonar.Mode = cv10Bit ' I2C mode as 10-Bit addressing.
> Sonar.Width = cv8Bit ' 1 byte wide transfer
> Sonar.NoInc = 1 ' Don't increment
>
>
> '~~~~~~~~~~~~~ Set up Servo ~~~~~~~~~~~~~~~~
> Servo.IOLine = 31 ' Use line 31
> Servo.Adjust = 28 ' Center
> Servo.Operate =cvTrue ' Start servo
>
>
>
> Do ' Continuous loop
> Sonar.Location = 0 ' Command register
> Sonar = 81 ' Set ranging to cm
> ooPIC.Delay = 7 ' Wait to give sonar time
> Sonar.Location = 2 ' Just get high Byte
> Range = Sonar ' Get Range
> Servo = Range ' Move servo
> ooPIC.Delay = 50 ' Wait 500ms
> Loop
>
> End Sub
>
> Did this just to try and read the high byte and move a servo to
show
> I'm getting a signal every half second.
>
> When this runs the servo moves slightly forward and back at half
> second intervals but the sonar does not seem to be firing ( no led
> blink, only the long blink on power up ).
>
> I'm sure this will be the first of many questions :)
>
> Wishing you all the best.
>
> Richard
>

Do you have it wired like: http://www.robot-
electronics.co.uk/htm/srf08oopic-r.htm ? It should be quite similar
if not identical.

It would be worth reading register 1 to be certain you get 0x80
back. If not, you aren't communicating.

So, the unit measures to 6 meters or 600 cm. Then 600 cm / 256
(masking out the low byte) means the upper byte only varies between
0 and 2. That won't make much of a movement.

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/