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.

Friday, November 30, 2007

[oopic] Re: oopic on ooboard and USB

--- In oopic@yahoogroups.com, lisamcthingy@... wrote:
>
> Richard,
>
> Thnak you for your time.
>
> I have followed your instructions as well as I can (I don't
uderstand some
> of the words).
>
> When I try and send a program to the robot , I get the
'Communications Error
> 2' window.
>
> It does seem to hang for a long time now, before the error message
comes up.
>
> Regards,
>
> Lisa


1) Have you tested for echo characters with Hyperterminal? Use
9600,n,8,1 with NO FLOW CONTROL and short pins 2 & 3 on the far end of
the cable.
2) What COM port did your USB cable get assigned? You can tell when
you have it working in Hyperterminal. If you have to change it, you
can do it in Device Manager.
3) Which version of the IDE are you using?
4) If version 5, did you install port95nt.exe BEFORE the IDE?
5) If version 5, the COM port MUST be {COM1, COM2, COM3, COM4)
6) Version 6 allows higher COM ports
7) Did you TELL the IDE which COM port to use. Do not expect the IDE
to be able to find the cable.
8) From the terminal window in the IDE, can you echo characters when
pins 2 & 3 of the DB9 on the far end of the cable are shorted? I
usually have to hit <enter> to get the terminal window to start.
Maybe click in the window and then hit <enter>. Something like that...
9) With Hyperterminal, what happens when you send the OOPic \0V
(backslash zero upper case V). You should get a lower case v in
response. You may have to short the ESTOP pins on the board and reset
the OOPic to get this to work.
10) If you get the lower case v in test 9, you should be able to
download a program.

Which words were unfamiliar? I realize translating my writing can be
a challenge.

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: oopic on ooboard and USB

Richard,

Thnak you for your time.

I have followed your instructions as well as I can (I don't uderstand some
of the words).

When I try and send a program to the robot , I get the 'Communications Error
2' window.

It does seem to hang for a long time now, before the error message comes up.

Regards,

Lisa


[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/

Re: [oopic] Serial communication with negative values

Hi Aaron,
When I have a number that I want to transmit, and I know that is can
be negative, I just do a if statement to check if the number is less
then zero. If the number is less than zero then I divide the number by
-1 before I send the data.

Example :

If Number < 0 then
Serial.String = Str$(Number / -1)
else
Serial.String = Str$(Number)
EndIf

-Kit

On Nov 29, 2007 11:55 PM, a_k_townsend <a_k_townsend@yahoo.com> wrote:
> I have an OOPic-R (v5 compiler) communicating with my computer via
> the serial port for debugging. All variable types appear with
> leading zeros to make 5 digits (ie a value 1 appears as 00001), but
> that's fine. The problem occurs when a signed variable with a
> negative value is transmitted. The signed value shows up as
> (seemingly) random ASCII characters. As an example, a word with
> value -29536 appears as ".'+-*" (quotation marks added). Positive
> values of signed variables appear correctly. I can solve the problem
> by creating a second variable and assigning it the value of the first
> plus 32768, 128, or 8 (for word, byte, or nibble variables,
> respectively), to make the second variable always have a positive
> value. But then I have twice as many variables, more instructions to
> execute, and I have to subtract the same values off the value on the
> receiving end of the communication. Has anyone had this problem, or
> know of a more elegant way to solve it?
>
> Thank you,
> Aaron
>
>
>
>
>
>
> 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/

Re: [oopic] Look up tables in OOpic

Hi Sutha,
Simply you can create a lookup table by creating 2D array..

Sam

On Nov 29, 2007 11:38 AM, mora_sutha <mora_sutha@yahoo.com> wrote:

> Hello Everybody,
>
> Can you give a coding sample for the "lookup table" in OOpic? I need
> it to use it for PWM generation. Atleast give an idea for sin lookup
> table please....
>
>
>

--

**************************************************
H.K. Samitha Ransara
Department of Electrical Engineering
University of Moratuwa
Sri Lanka

E mail
samitharansara@gmail.com

Phone
+94775136921

Homepage
www.hitechno.info


[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/

Thursday, November 29, 2007

[oopic] Serial communication with negative values

I have an OOPic-R (v5 compiler) communicating with my computer via
the serial port for debugging. All variable types appear with
leading zeros to make 5 digits (ie a value 1 appears as 00001), but
that's fine. The problem occurs when a signed variable with a
negative value is transmitted. The signed value shows up as
(seemingly) random ASCII characters. As an example, a word with
value -29536 appears as ".'+-*" (quotation marks added). Positive
values of signed variables appear correctly. I can solve the problem
by creating a second variable and assigning it the value of the first
plus 32768, 128, or 8 (for word, byte, or nibble variables,
respectively), to make the second variable always have a positive
value. But then I have twice as many variables, more instructions to
execute, and I have to subtract the same values off the value on the
receiving end of the communication. Has anyone had this problem, or
know of a more elegant way to solve it?

Thank you,
Aaron


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] io lines oopic C

No problem. I've never noticed that syntax, it might not be entirely
debugged yet, or maybe we're just not using it correctly... Regardless,
I'm glad you got it going.

DLC

dldlhfd@aol.com wrote:

>I used the DIO1 object as you suggested and it worked just like it is
>supposed to. I was so stuck on getting the IOline object to work I didn't look for
>another alternative. Thanks for jarring me loose.
>David
>
>
>
>**************************************Check out AOL's list of 2007's hottest
>products.
>(http://money.aol.com/special/hot-products-2007?NCID=aoltop00030000000001)
>
>
>[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] io lines oopic C

I used the DIO1 object as you suggested and it worked just like it is
supposed to. I was so stuck on getting the IOline object to work I didn't look for
another alternative. Thanks for jarring me loose.
David

**************************************Check out AOL's list of 2007's hottest
products.
(http://money.aol.com/special/hot-products-2007?NCID=aoltop00030000000001)


[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/

Wednesday, November 28, 2007

[oopic] Look up tables in OOpic

Hello Everybody,

Can you give a coding sample for the "lookup table" in OOpic? I need
it to use it for PWM generation. Atleast give an idea for sin lookup
table please....


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] A2D Troubles

Make sure your measured voltage has a common ground ;)

-----Original Message-----
From: oopic@yahoogroups.com [mailto:oopic@yahoogroups.com] On Behalf Of ooPIC Tech Support
Sent: Wednesday, November 28, 2007 11:21 PM
To: oopic@yahoogroups.com
Subject: Re: [oopic] A2D Troubles

What are you using to set the voltage that you are reading? The PIC,
and likewise ooPIC A2D works quite reliably if it has a quiet voltage to
read. The A2D is limited in that the specs say the impedence of the
measured signal like needs to be less than 10K or the sample cap won't
reliably charge up for measurement.

DLC

Fiebigc wrote:

>I'm relatively green with the OOPic and I'm trying my first A2D
>connection. I have the OOPic connected to an LCD that I've tested
>throughly that displays the values of the A2D. My problem is that it
>gives a nominal value for the voltage that fluctuates around 512. It
>does give meaningful values from 2.5v to 5v but nothing below that.
>Does anyone know what I'm doing wrong? Thanks.
>
>Here is my code snippet. I've left out the LCD stuff for brevity.
>
>Dim volt As New oA2D10
>
>Sub main()
>
> volt.IOLine = 1
> volt.Operate = 1
>
> do
> LCD.String = STR$(volt.Value) 'Outputs data to display on LCD
> OOPic.delay = 10
> Loop
>
>End Sub
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>

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


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/

Re: [oopic] io lines oopic C

There is no special reason why you should have this problem. Try using
oDIO1 as the object instead and see if that changes anything. The
obvious thing to check is to make sure that you are looking at the
correct IOlines. Let us know what happens when you change objects.

DLC

dldlhfd wrote:

>I have an Oopic C c1.1+ 6.1.1 compiler
>Using the code below IO lines 14 and 13 use the Led opject and will
>run my 4 transistor H bridge. Lines 10 and 12 use the IOline object
>and won't. Shouldn't they be equalivent statements? Have I just
>programmed the IO lines wrong? I used a volt meter on the IO lines
>got 0 volts always. On the led lines I got 4.67 alternateing between
>the lines as it should. How do I get 5 volts at the IO lines. Can you
>help please?
>***********************
>'This program sends 5 volts to one side of the H bridge
>'at the same time sends 0 volts to the other side
>
>Dim line1 As New oIOLine
>Dim line2 As New oIOLine
>Dim led As New oLED
>Dim led8 As New oLED
>Dim led9 As New oLED
>
>
>Sub Main()
>
> led.IOLine = 7
> led8.IOLine = 14
> led9.IOLine = 13
>
> line1.Line = 10 'assign line1 to pin 10
> line1.Direction = cvOutput 'make it an output
> line1.State = High 'initialize as on
> line2.Line = 12 'assign line2 to pin 12
> line2.Direction = cvOutput 'make it an output
> line2.State = Low 'initilize as off
> Do
> 'forward for 5 seconds
> 'reverse for 5 seconds
> 'line one and two should never be high
> 'at the same time
> led.TurnOnDim 'siginal that it is here
> led9.TurnOnBright
> led8.Brightness = 0
> line2.State = Low 'turn off line 2
> line1.State = High 'turn on line 1
> ooPIC.Delay = 5000 'wait 5 seconds
> led.TurnOnBright 'siginal a change
> led8.TurnOnBright
> led9.Brightness = 0
> line1.State = Low 'turn off line 1
> line2.State = High 'turn on line 2
> ooPIC.Delay = 5000 'Wait 5 seconds
> Loop
>End Sub
>
>
>
>
>
>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] A2D Troubles

What are you using to set the voltage that you are reading? The PIC,
and likewise ooPIC A2D works quite reliably if it has a quiet voltage to
read. The A2D is limited in that the specs say the impedence of the
measured signal like needs to be less than 10K or the sample cap won't
reliably charge up for measurement.

DLC

Fiebigc wrote:

>I'm relatively green with the OOPic and I'm trying my first A2D
>connection. I have the OOPic connected to an LCD that I've tested
>throughly that displays the values of the A2D. My problem is that it
>gives a nominal value for the voltage that fluctuates around 512. It
>does give meaningful values from 2.5v to 5v but nothing below that.
>Does anyone know what I'm doing wrong? Thanks.
>
>Here is my code snippet. I've left out the LCD stuff for brevity.
>
>Dim volt As New oA2D10
>
>Sub main()
>
> volt.IOLine = 1
> volt.Operate = 1
>
> do
> LCD.String = STR$(volt.Value) 'Outputs data to display on LCD
> OOPic.delay = 10
> Loop
>
>End Sub
>
>
>
>
>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: io lines oopic C

--- In oopic@yahoogroups.com, "dldlhfd" <dldlhfd@...> wrote:
>
> I have an Oopic C c1.1+ 6.1.1 compiler
> Using the code below IO lines 14 and 13 use the Led opject and will
> run my 4 transistor H bridge. Lines 10 and 12 use the IOline object
> and won't. Shouldn't they be equalivent statements? Have I just
> programmed the IO lines wrong? I used a volt meter on the IO lines
> got 0 volts always. On the led lines I got 4.67 alternateing between
> the lines as it should. How do I get 5 volts at the IO lines. Can you
> help please?
> ***********************
> 'This program sends 5 volts to one side of the H bridge
> 'at the same time sends 0 volts to the other side
>
> Dim line1 As New oIOLine
> Dim line2 As New oIOLine
> Dim led As New oLED
> Dim led8 As New oLED
> Dim led9 As New oLED
>
>
> Sub Main()
>
> led.IOLine = 7
> led8.IOLine = 14
> led9.IOLine = 13
>
> line1.Line = 10 'assign line1 to pin 10
> line1.Direction = cvOutput 'make it an output
> line1.State = High 'initialize as on
> line2.Line = 12 'assign line2 to pin 12
> line2.Direction = cvOutput 'make it an output
> line2.State = Low 'initilize as off
> Do
> 'forward for 5 seconds
> 'reverse for 5 seconds
> 'line one and two should never be high
> 'at the same time
> led.TurnOnDim 'siginal that it is here
> led9.TurnOnBright
> led8.Brightness = 0
> line2.State = Low 'turn off line 2
> line1.State = High 'turn on line 1
> ooPIC.Delay = 5000 'wait 5 seconds
> led.TurnOnBright 'siginal a change
> led8.TurnOnBright
> led9.Brightness = 0
> line1.State = Low 'turn off line 1
> line2.State = High 'turn on line 2
> ooPIC.Delay = 5000 'Wait 5 seconds
> Loop
> End Sub
>

I think I would use oDIO1 instead of oIOLine. There is some kind of
formula for calculating the .Line property and it isn't clear to me
that it lines up with the traditional object.IOLine property.

Try oDIO1 and see what happens.

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] io lines oopic C

I have an Oopic C c1.1+ 6.1.1 compiler
Using the code below IO lines 14 and 13 use the Led opject and will
run my 4 transistor H bridge. Lines 10 and 12 use the IOline object
and won't. Shouldn't they be equalivent statements? Have I just
programmed the IO lines wrong? I used a volt meter on the IO lines
got 0 volts always. On the led lines I got 4.67 alternateing between
the lines as it should. How do I get 5 volts at the IO lines. Can you
help please?
***********************
'This program sends 5 volts to one side of the H bridge
'at the same time sends 0 volts to the other side

Dim line1 As New oIOLine
Dim line2 As New oIOLine
Dim led As New oLED
Dim led8 As New oLED
Dim led9 As New oLED


Sub Main()

led.IOLine = 7
led8.IOLine = 14
led9.IOLine = 13

line1.Line = 10 'assign line1 to pin 10
line1.Direction = cvOutput 'make it an output
line1.State = High 'initialize as on
line2.Line = 12 'assign line2 to pin 12
line2.Direction = cvOutput 'make it an output
line2.State = Low 'initilize as off
Do
'forward for 5 seconds
'reverse for 5 seconds
'line one and two should never be high
'at the same time
led.TurnOnDim 'siginal that it is here
led9.TurnOnBright
led8.Brightness = 0
line2.State = Low 'turn off line 2
line1.State = High 'turn on line 1
ooPIC.Delay = 5000 'wait 5 seconds
led.TurnOnBright 'siginal a change
led8.TurnOnBright
led9.Brightness = 0
line1.State = Low 'turn off line 1
line2.State = High 'turn on line 2
ooPIC.Delay = 5000 'Wait 5 seconds
Loop
End Sub



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: oopic on ooboard and USB

--- In oopic@yahoogroups.com, lisamcthingy@... wrote:
>
> Richard,
>
> The link for the cable - the supplier does not ship overseas any more.
> Do you have another supplier?
>
> Lisa
>

No, I wouldn't know if suppliers ship overseas. See my other reply,
your cable should work.

Which version of the IDE are you using? Which O/S - the IDEs aren't
known to work on Vista? They work with WinXP but ONLY if you follow
the installation instructions EXACTLY. See www.oopic.com/dloadp.html

Apparently you only have to install port95nt.exe if you are using V5
but it is rumored that it needs to be installed BEFORE the IDE.

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: oopic on ooboard and USB

--- In oopic@yahoogroups.com, lisamcthingy@... wrote:
>
> Ricgard,
>
> Excellent, thanks!
>
> I have already tried a usb/serial cable but I see from your site
that many
> are not compatible. Do I take it that from trial and error, you
have found
> that this one that works?!
>
> Lisa

Your OOboard has a REAL RS232 level shifter. That should work with
EVERY USB cable. The OOPic R board has a bogus level shifter that
doesn't work with all USB cables.

So, there is a good chance your cable works. See message #36883 for
several diagnostic suggestions. Ignore the bit about non-compliant
RS-232 levels, you don't have that problem.

Try ALL of the suggestions in message 36883 and post back with your
results. I suspect everything will work out fine - if the board works...

You have a pair of pads marked ESTOP. You need to short those pads
(and hold the short) while hitting reset to make the OOPic pay
attention to the IDE if it is executing an errant program. You don't
have the option of removing the EEPROM.

The schematic is here:
http://www.roguerobotics.com/files/ooboard/documentation/OOBoard-100-A2-schem.jpg


Do the LEDs light when you press the buttons? They should be dim but
visible.

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: oopic on ooboard and USB

Richard,

The link for the cable - the supplier does not ship overseas any more.
Do you have another supplier?

Lisa


[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/

Re: [oopic] Re: oopic on ooboard and USB

Ricgard,

Excellent, thanks!

I have already tried a usb/serial cable but I see from your site that many
are not compatible. Do I take it that from trial and error, you have found
that this one that works?!

Lisa


[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: A2D Troubles

--- In oopic@yahoogroups.com, "Fiebigc" <fiebigc@...> wrote:
>
> I'm relatively green with the OOPic and I'm trying my first A2D
> connection. I have the OOPic connected to an LCD that I've tested
> throughly that displays the values of the A2D. My problem is that it
> gives a nominal value for the voltage that fluctuates around 512. It
> does give meaningful values from 2.5v to 5v but nothing below that.
> Does anyone know what I'm doing wrong? Thanks.
>
> Here is my code snippet. I've left out the LCD stuff for brevity.
>
> Dim volt As New oA2D10
>
> Sub main()
>
> volt.IOLine = 1
> volt.Operate = 1
>
> do
> LCD.String = STR$(volt.Value) 'Outputs data to display on LCD
> OOPic.delay = 10
> Loop
>
> End Sub
>

What is driving the A2D input? There is a maximum driving impedance
of 2.5k ohms.

Is the signal ground from the input device tied to ground for the OOPic?

Try using a 10k pot with the ends tied to Vcc and Gnd through 220 ohm
resistors. Connect the wiper to the A/D input. The 220 ohm resistors
protect the OOPic in case the pin is accidentally configured as a
digital output and the pot is at an end position.

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] Earn!! à 5000 US Dollars per month without Investmen

Genuine Lifetime Income!!

www.moreinfo247.com/9623416/CB
<http://www.moreinfo247.com/9623416/CB> Earn!! à 5000 US Dollars
per month without Investment By working only one hour per day from
the cyber café or PC Guaranteed Earnings for Lifetime!!
100% Legal 100% No Investment 100% No Scam 100% Free Training
Support 100% No Door to Door Selling Products For more details
visit :

www.moreinfo247.com/9623416/CB
<http://www.moreinfo247.com/9623416/CB> Check Your Mail ID - Inbox
Immediately after logging in Note : If u want to make genuine and
handsome Income, please login immediately otherwise please ignore.
Notice; u r receiving this message b'coz u r the member of yahoo
groups 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/

Tuesday, November 27, 2007

[oopic] A2D Troubles

I'm relatively green with the OOPic and I'm trying my first A2D
connection. I have the OOPic connected to an LCD that I've tested
throughly that displays the values of the A2D. My problem is that it
gives a nominal value for the voltage that fluctuates around 512. It
does give meaningful values from 2.5v to 5v but nothing below that.
Does anyone know what I'm doing wrong? Thanks.

Here is my code snippet. I've left out the LCD stuff for brevity.

Dim volt As New oA2D10

Sub main()

volt.IOLine = 1
volt.Operate = 1

do
LCD.String = STR$(volt.Value) 'Outputs data to display on LCD
OOPic.delay = 10
Loop

End Sub


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] H-Bridge issue...maybe.

The MOSFET and relay solution is great when you want gobs of power and
you don't have a great need for precise motion control (relays are
slow). The key to success here is a proper relay bias and a guard
around the MOSFET. You should also put a zener on the gate if you are
using any voltage over 10V for the motors so that the gate ringing won't
overshoot the Vgs rating of the MOSFET. Also, make sure that you have
the PWM set to zero when you switch directions with the relay to avoid
arcing the contacts and the relay will last longer. It is a good low
cost solution for high current motor controls.

DLC

Shaggy wrote:

>At the rate things are going for me, I may not realistically be getting to
>this until after New Years. I will certainly try to get to it sooner than
>that, but I have a house remodeling project that I need to get done
>inbetween now and when I leave for the holidays. Oddly enough, the house
>project is related to the robot, as it involves the LAN that brain will be
>distributed across.
>
>Thanks for the link and the suggestions, that will give me a couple steps in
>the right direction for when the motors start off in motion.
>
>The part a bout the MOSFET and relay seems like the most solid solution.
>Would I be correct in assuming that you were suggesting that the relay would
>be an open switch when either the OOPic was off, or when the OOPic was
>starting up, including the 500 delay (which I have included after seeing it
>so highly recommended here by you and others). Then I would close the relay
>via the MOSFET, and leave it closed all the time that the OOPic was running.
>This could be accomplished using a logic level MOSFET, which I probably have
>lying around. Is there any particular relay you would recommend?
>
>I'm inclined to actually go in that direction first simply because it seems
>more definitive than using the resistors to bias the input. Perhaps that's
>not the best reason to choose one technique over another. The resistors
>would certainly be cheaper, but neither solutions is actually expensive, so
>I tend to favor the definitive one. Is that wrong?
>
>
>
>rtstofer wrote:
>
>
>>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>
>>
>>>Then I will go with the Sabertooth.
>>>
>>>Thanks for the information.
>>>
>>>
>>Until I read the documentation at
>>http://www.dimensionengineering.com/Sabertooth2X5.htm I was concerned
>>that the device would only work with R/C pulses. That would seriously
>>limit resolution due to the manner in which the OOPic generates the
>>pulses. The .pdf is here:
>>http://dimensionengineering.com/datasheets/Sabertooth2x5.pdf
>>
>>But the good news is that the H-Bridge will also work in analog mode
>>and you can use the oPWM objects to control the motors.
>>
>>You may want to deal with the issue of 2.5V being the OFF condition.
>>When the OOPic first starts up, the IOLine is an input and floating.
>>The motor may run away briefly. I might put a 20k resistor between the
>>input and +5V and another 20k resistor between the input and Gnd in an
>>attempt to bias the input to 2.5V until the oPWM object takes over.
>>
>>Obviously, you want to start with the oPWM at 50%, then establish the
>>IOLine and finally set the operate property. Hopefully, you will get a
>>bumpless transition into the stop condition.
>>
>>Thinking about the OOPic.Delay = 500 as the first executable statement
>>(and it is HIGHLY recommended) the motor could run away for a very long
>>time.
>>
>>If the bias idea doesn't work, put a suitable SPST relay in series with
>>the motor power and control it via the OOPic and a trasistor of MOSFET.
>>
>>One way or the other, you need to deal with this bias situation.
>>
>>Oh, and read the note on filtering the PWM signal on page 10 of
>>the .pdf. If you use the bias resistors, the resistor at the pin needs
>>to be a lot smaller (maybe 1k or less) to allow the pin to pull the
>>signal all the way up or down. The 1k resistor is working in series
>>with the bias resistors and forms a voltage divider. Given that the
>>resistor is much smaller, the capacitor should be much larger - say 1
>>ufd (probably electrolytic).
>>
>>I suspect there will still be a little tinkering to do...
>>
>>Richard
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.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/

Re: [oopic] Re: H-Bridge issue...maybe.

Richard,

I wouldn't worry about the oPWMS (oServo) resolution here. Most
robotics operations use "slow, medium and fast" and not much else.
Under those circumstances the 6 bit resolution of the oPWMS is perfectly
fine.

DLC

rtstofer wrote:

>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>
>
>>Then I will go with the Sabertooth.
>>
>>Thanks for the information.
>>
>>
>
>Until I read the documentation at
>http://www.dimensionengineering.com/Sabertooth2X5.htm I was concerned
>that the device would only work with R/C pulses. That would seriously
>limit resolution due to the manner in which the OOPic generates the
>pulses. The .pdf is here:
>http://dimensionengineering.com/datasheets/Sabertooth2x5.pdf
>
>But the good news is that the H-Bridge will also work in analog mode
>and you can use the oPWM objects to control the motors.
>
>You may want to deal with the issue of 2.5V being the OFF condition.
>When the OOPic first starts up, the IOLine is an input and floating.
>The motor may run away briefly. I might put a 20k resistor between the
>input and +5V and another 20k resistor between the input and Gnd in an
>attempt to bias the input to 2.5V until the oPWM object takes over.
>
>Obviously, you want to start with the oPWM at 50%, then establish the
>IOLine and finally set the operate property. Hopefully, you will get a
>bumpless transition into the stop condition.
>
>Thinking about the OOPic.Delay = 500 as the first executable statement
>(and it is HIGHLY recommended) the motor could run away for a very long
>time.
>
>If the bias idea doesn't work, put a suitable SPST relay in series with
>the motor power and control it via the OOPic and a trasistor of MOSFET.
>
>One way or the other, you need to deal with this bias situation.
>
>Oh, and read the note on filtering the PWM signal on page 10 of
>the .pdf. If you use the bias resistors, the resistor at the pin needs
>to be a lot smaller (maybe 1k or less) to allow the pin to pull the
>signal all the way up or down. The 1k resistor is working in series
>with the bias resistors and forms a voltage divider. Given that the
>resistor is much smaller, the capacitor should be much larger - say 1
>ufd (probably electrolytic).
>
>I suspect there will still be a little tinkering to do...
>
>Richard
>
>
>
>
>
>
>
>Yahoo! Groups Links
>
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.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/

Re: [oopic] H-Bridge issue...maybe.

And if it doesn't have a heat sink, put one on it, a BIG one. The rated
current is only under idea circumstances which pretty much mandates a
heat sink to cool the chip.

DLC

Shaggy wrote:

>I should try that before getting a different H-Bridge, but I suspect that I'm
>drawing too much power with the current setup, and will just cook the chip
>in short order. I can't guarantee sufficient offtime for the chip to cool
>back to ambient, so it ought to fry eventually, especially if the motor
>stalls and overloads the thing.
>
>
>ooPIC Tech Support wrote:
>
>
>>I don't see any mention either - It should say if it was defaulted to
>>something specific. If not I'd assume that it was where the oPWM object
>>was, which was like 20KHz, WAY too high for the 754410 motor
>>controller. Check out the oPWMH specs and see what it takes to move
>>that down to 1 or 2KHz and see if that changes things.
>>
>>DLC
>>
>>Shaggy wrote:
>>
>>
>>
>>>Off the top of my head, I don't know. However, I would expect that would
>>>
>>>
>not
>
>
>>>be an issue since the LCHB is sold by RogueRobotics to go with their OOPic
>>>board. I would not expect them to be including the LCHB if it won't work
>>>with the board they are using. I believe it was working as expected when I
>>>had it attached to the ATS motors, which are smaller than the Robotics
>>>Connection motors I am currently using.
>>>
>>>I'm leaning towards too much power draw. I'll try to look at that this
>>>evening. The motors can certainly draw too much power for the LCHB, so it
>>>
>>>
>is
>
>
>>>looking like I will have to replace that, regardless of whether that is my
>>>specific problem. After all, the 754410 is getting a bit warm, even with a
>>>heat sink, when I run the motors for 10s.
>>>
>>>Therefore, if anybody has a recommendation, I'll take a look at it.
>>>Otherwise I might just go with the H-Bridge sold by the same company that
>>>sold me the chassis and motors. I'm pretty sure that one will take enough
>>>power, though I will still have to look it over some.
>>>
>>>
>>>ooPIC Tech Support wrote:
>>>
>>>
>>>
>>>
>>>>What is the frequency of your PWM? The 754410 is happiest at 2KHz or
>>>>lower. At 20KHz I've detonated these chips!
>>>>
>>>>DLC
>>>>
>>>>ooPIC Tech Support
>>>>
>>>>-----Original Message-----
>>>>
>>>>From: Shaggy <charrington@idfg.idaho.gov>
>>>>Subj: Re: [oopic] H-Bridge issue...maybe.
>>>>Date: Sun Nov 25, 2007 12:38 pm
>>>>Size: 4K
>>>>To: oopic@yahoogroups.com
>>>>
>>>>
>>>>That's good to hear. Just having something hooked up wrong is a much
>>>>better
>>>>problem than faulty hardware. Now how to go about figuring out what it
>>>>
>>>>
>is.
>
>
>>>>I have gone back to the manual for the Rogue Robotics ATS, and confirmed
>>>>that my code is exactly the code they have: IOLineP is 17 for one, and 18
>>>>for the other. IOLine1 is 26 and 24 respectively, and IOLine2 is 27 and
>>>>
>>>>
>25
>
>
>>>>respectively. There really isn't any more code other than that for
>>>>
>>>>
>setting
>
>
>>>>up the oDCMotor2. To run the motors, there is a countdown timer which is
>>>>set
>>>>to a value in seconds. As long as it is greater than 0, the operate
>>>>property
>>>>for each motor is set to true. When the countdown reaches 0, the operate
>>>>property for each motor is set to false. That's the extent of the code,
>>>>though it is not all in one place.
>>>>
>>>>As far as hooking things up, I've also reviewed that. There is a ribbon
>>>>cable running from the OOPic to the Low-Cost H-Bridge (LCHB). This ribbon
>>>>cable is designed so that there is only one way it can be plugged in on
>>>>each
>>>>end, and the ends are plugged in as required. If the cable is
>>>>wrong....well,
>>>>I haven't looked at that.
>>>>
>>>>There are two pads for external power, which are labeled + and -. I
>>>>soldered
>>>>the red lead from the battery to + and the black to -. Simple enough. The
>>>>documentation then states that if external power is supplied, the jumper
>>>>should be moved closer to a named capacitor. I have confirmed that that
>>>>
>>>>
>is
>
>
>>>>set correctly.
>>>>
>>>>The only other connection I have made is between the motors and the LCHB.
>>>>The documentation mentions color coded wires, which I can't actually do,
>>>>since these motors have different colors, but I followed the intention
>>>>after
>>>>figuring out what the colors actually meant on the ATS motors.
>>>>
>>>>If this is a ground issue, where does it lie? The LCHB is designed to be
>>>>hooked up a certain way, and it is. If the connections that are actually
>>>>needed are not the ones in the documentation, it's going to be a pain to
>>>>figure out what's wrong.
>>>>
>>>>A couple things I'd have to look at are these:
>>>>
>>>>1) Do the connections on the ribbon cable actually lead to where they
>>>>should
>>>>lead? I think I don't necessarily need to test this, because it was
>>>>working
>>>>(I think) with the ATS. I'm pretty sure I tried it with lower speeds,
>>>>though
>>>>I was not using external power.
>>>>
>>>>2) What does the jumper actually do? The documentation states where the
>>>>jumper should be, without explaining anything about what it does. Should
>>>>be
>>>>simple enough to trace, though not so easy to get to the board anymore.
>>>>
>>>>Is there anything else I should be checking out?
>>>>
>>>>
>>>>
>>>>rtstofer wrote:
>>>>
>>>>
>>>>
>>>>
>>>>>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>Ok, this morning I set up the bot so that I could measure the
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>voltage to the
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>motors. When I set the motor speed at 127, the voltage across the
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>motor pins
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>was 8.7, which is pretty reasonable. When I changed the motor speed
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>to 120,
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>the voltage across the pins was just below 1. It held steady around
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>0.6V.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>That's certainly a bit low for those motors.
>>>>>>
>>>>>>The second time I tested this, I got the same voltage at 127, the
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>same at
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>120, about 0.4V at 100, then I tried 126. The voltage first showed
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>about 2V,
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>at which the wheels bumped forward some, but the voltage dropped
>>>>>>
>>>>>>
>rapidly
>
>
>>>>>>down to 0.8V.
>>>>>>
>>>>>>That's not a very smooth curve. Can you point me towards a solution?
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>What did you get at the OOPic pin?
>>>>>
>>>>>This sounds like the kind of thing that happens when the motor power
>>>>>supply ground wire is not connected to the logic ground.
>>>>>
>>>>>As discussed in another thread a couple of days ago, you need to
>>>>>create a STAR ground at the motor controller chip. The logic ground
>>>>>and the motor ground tie individually to that point. The objective is
>>>>>to keep motor ground current off of the logic ground wire.
>>>>>
>>>>>There is a wiring diagram for the L293D (a predecessor to the 754410)
>>>>>at the bottom of the oDCMotor2 object reference.
>>>>>
>>>>>Richard
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>--
>>>>View this message in context:
>>>>http://www.nabble.com/H-Bridge-issue...maybe.-tf4867316.html#a13939029
>>>>Sent from the OOPic mailing list archive at Nabble.com.
>>>>
>>>>
>>>>
>>>>
>>>>Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>
>>>
>>--
>>------------------------------------------------------
>>Dennis Clark ooPIC Tech Support
>>www.oopic.com
>>------------------------------------------------------
>>
>>
>>
>>[Non-text portions of this message have been removed]
>>
>>
>>
>>
>>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.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/

[oopic] Re: oopic on ooboard and USB

--- In oopic@yahoogroups.com, "lisamcthingy" <lisamcthingy@...> wrote:
>
> I am very new to electronics and want to explore robots and how they
> work. As a starter, I obtained the rogue blue ers robot with oopic on
> oobard.
> The problem is that I don't have a serial port only a usb on my laptop.
> Various email addressess have refused or can not help me solve the
> problem. I have obtained a pololu 0391 usb serial converter but do not
> understand how to fix it on the ooboard. Or is there another way?
> Can any one help - beginner type answers please!!
>

If you are using the OOboard
http://www.roguerobotics.com/images/RogueRoboticsOOBoard-400.jpg

the
board has a DB9 connector and would ordinarily use a straight through
serial cable. But your PC doesn't have a serial port so you need a
USB<=>serial cable like
http://www.cablesnmor.com/index.asp?PageAction=VIEWPROD&ProdID=165

I
have 4 of these and I'm still adding more.

The Pololu USB-to-Serial Adapter would require you to hack the OOboard
to get around the RS232 level shifter and since Rogue Robotics never
posts their schematics, getting any advice re: this will be difficult.
Besides, that is not the best way to do it. In fact, it is a
particularly poor way to do it.

Just order the cable and be done with it.

After you install the cable drivers (if required) look in
MyComputer->Properties->Hardware->Device Manager and see what com port
it was assigned. You can change it to a reasonable number like
COM2..COM4 if you want. In any event, TELL the IDE where the cable is
located, don't let it try to find it.

If you use V5 of the IDE, the COM port must be 1..4. V6 can use
higher port numbers.

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] oopic on ooboard and USB

I am very new to electronics and want to explore robots and how they
work. As a starter, I obtained the rogue blue ers robot with oopic on
oobard.
The problem is that I don't have a serial port only a usb on my laptop.
Various email addressess have refused or can not help me solve the
problem. I have obtained a pololu 0391 usb serial converter but do not
understand how to fix it on the ooboard. Or is there another way?
Can any one help - beginner type answers please!!


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: H-Bridge issue...maybe.

> The part a bout the MOSFET and relay seems like the most solid
solution.
> Would I be correct in assuming that you were suggesting that the
relay would
> be an open switch when either the OOPic was off, or when the OOPic
was
> starting up, including the 500 delay (which I have included after
seeing it
> so highly recommended here by you and others). Then I would close
the relay
> via the MOSFET, and leave it closed all the time that the OOPic was
running.
> This could be accomplished using a logic level MOSFET, which I
probably have
> lying around. Is there any particular relay you would recommend?
>
> I'm inclined to actually go in that direction first simply because
it seems
> more definitive than using the resistors to bias the input. Perhaps
that's
> not the best reason to choose one technique over another. The
resistors
> would certainly be cheaper, but neither solutions is actually
expensive, so
> I tend to favor the definitive one. Is that wrong?

I guess I am nervous about a situation where the H-Bridge needs an
active signal to STOP the motor. The H-Bridges we have discussed
before all stopped when the PWM stopped. Or, failing that, we could
apply the brakes by suitably wiggling the 2 control lines.

So, yes, I am thinking that the relay (with an adequate contact
rating) will always control the 'master' power to the H-Bridge. This
implies that there could be other things in the circuit that might
drop out the coil. Maybe a panic button/switch?

You need to decide on a coil voltage and since you don't have 12V, it
will probably have to be 5V. As a result, you want the coil current
as low as possible. And don't forget the reverse biased 1N4001 diode
across the coil to limit the kickback voltage.

I started at DigiKey and things didn't look easy. I went to Mouser
and they have a much nicer way to look through relays that are
actually in stock. Still better would be to get a paper catalog (or
even a .pdf) and search until what you like is what they stock.

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] H-Bridge issue...maybe.

At the rate things are going for me, I may not realistically be getting to
this until after New Years. I will certainly try to get to it sooner than
that, but I have a house remodeling project that I need to get done
inbetween now and when I leave for the holidays. Oddly enough, the house
project is related to the robot, as it involves the LAN that brain will be
distributed across.

Thanks for the link and the suggestions, that will give me a couple steps in
the right direction for when the motors start off in motion.

The part a bout the MOSFET and relay seems like the most solid solution.
Would I be correct in assuming that you were suggesting that the relay would
be an open switch when either the OOPic was off, or when the OOPic was
starting up, including the 500 delay (which I have included after seeing it
so highly recommended here by you and others). Then I would close the relay
via the MOSFET, and leave it closed all the time that the OOPic was running.
This could be accomplished using a logic level MOSFET, which I probably have
lying around. Is there any particular relay you would recommend?

I'm inclined to actually go in that direction first simply because it seems
more definitive than using the resistors to bias the input. Perhaps that's
not the best reason to choose one technique over another. The resistors
would certainly be cheaper, but neither solutions is actually expensive, so
I tend to favor the definitive one. Is that wrong?

rtstofer wrote:
>
> --- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>
>>
>> Then I will go with the Sabertooth.
>>
>> Thanks for the information.
>
> Until I read the documentation at
> http://www.dimensionengineering.com/Sabertooth2X5.htm I was concerned
> that the device would only work with R/C pulses. That would seriously
> limit resolution due to the manner in which the OOPic generates the
> pulses. The .pdf is here:
> http://dimensionengineering.com/datasheets/Sabertooth2x5.pdf
>
> But the good news is that the H-Bridge will also work in analog mode
> and you can use the oPWM objects to control the motors.
>
> You may want to deal with the issue of 2.5V being the OFF condition.
> When the OOPic first starts up, the IOLine is an input and floating.
> The motor may run away briefly. I might put a 20k resistor between the
> input and +5V and another 20k resistor between the input and Gnd in an
> attempt to bias the input to 2.5V until the oPWM object takes over.
>
> Obviously, you want to start with the oPWM at 50%, then establish the
> IOLine and finally set the operate property. Hopefully, you will get a
> bumpless transition into the stop condition.
>
> Thinking about the OOPic.Delay = 500 as the first executable statement
> (and it is HIGHLY recommended) the motor could run away for a very long
> time.
>
> If the bias idea doesn't work, put a suitable SPST relay in series with
> the motor power and control it via the OOPic and a trasistor of MOSFET.
>
> One way or the other, you need to deal with this bias situation.
>
> Oh, and read the note on filtering the PWM signal on page 10 of
> the .pdf. If you use the bias resistors, the resistor at the pin needs
> to be a lot smaller (maybe 1k or less) to allow the pin to pull the
> signal all the way up or down. The 1k resistor is working in series
> with the bias resistors and forms a voltage divider. Given that the
> resistor is much smaller, the capacitor should be much larger - say 1
> ufd (probably electrolytic).
>
> I suspect there will still be a little tinkering to do...
>
> Richard
>
>
>
>
>
>

--
View this message in context: http://www.nabble.com/H-Bridge-issue...maybe.-tf4867316.html#a13979603
Sent from the OOPic mailing list archive at Nabble.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: H-Bridge issue...maybe.

--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>
>
> Then I will go with the Sabertooth.
>
> Thanks for the information.

Until I read the documentation at

http://www.dimensionengineering.com/Sabertooth2X5.htm I was concerned
that the device would only work with R/C pulses. That would seriously
limit resolution due to the manner in which the OOPic generates the
pulses. The .pdf is here:

http://dimensionengineering.com/datasheets/Sabertooth2x5.pdf

But the good news is that the H-Bridge will also work in analog mode
and you can use the oPWM objects to control the motors.

You may want to deal with the issue of 2.5V being the OFF condition.
When the OOPic first starts up, the IOLine is an input and floating.
The motor may run away briefly. I might put a 20k resistor between the
input and +5V and another 20k resistor between the input and Gnd in an
attempt to bias the input to 2.5V until the oPWM object takes over.

Obviously, you want to start with the oPWM at 50%, then establish the
IOLine and finally set the operate property. Hopefully, you will get a
bumpless transition into the stop condition.

Thinking about the OOPic.Delay = 500 as the first executable statement
(and it is HIGHLY recommended) the motor could run away for a very long
time.

If the bias idea doesn't work, put a suitable SPST relay in series with
the motor power and control it via the OOPic and a trasistor of MOSFET.

One way or the other, you need to deal with this bias situation.

Oh, and read the note on filtering the PWM signal on page 10 of
the .pdf. If you use the bias resistors, the resistor at the pin needs
to be a lot smaller (maybe 1k or less) to allow the pin to pull the
signal all the way up or down. The 1k resistor is working in series
with the bias resistors and forms a voltage divider. Given that the
resistor is much smaller, the capacitor should be much larger - say 1
ufd (probably electrolytic).

I suspect there will still be a little tinkering to do...

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] H-Bridge issue...maybe.

Then I will go with the Sabertooth.

Thanks for the information.


ooPIC Tech Support wrote:
>
> The Hobby Engineering L298 board (A Solarbotics kit) is adequate,
> barely, but with little margin. The Jameco board has lots of margin,
> but it is a primitive design that will require interface circuitry. I'd
> say that unless you wanted to do your own interface to the unit that the
> Sabertooth units are WAY more sophisticated with really nice options and
> you can use oPWMS objects to drive them which leaves the PWM channels
> free to do other things.
>
> DLC
>
> Shaggy wrote:
>
>>Another fun point for them is that I noted that all of their sample code
sets
>>the value at 127. It may be that they are using the LCHB as an on/off,
>>without any ramping.
>>
>>In any event, the LCHB won't handle the power that the motor can draw, so
>>I'm in the market for a different one.
>>
>>I looked at this one:
>>
>>http://www.roboticsconnection.com/pc-77-9-10-amp-h-bridge.aspx
>>
>>but it is not just overkill, it wants a 12V power supply, which I don't
>>really want to go to if I can avoid it. The funny thing about it is that
the
>>company ships 9.6V batteries with their chassis and motors (which draw 2A
>>max), yet they don't sell an H-Bridge except ones that are more robust and
>>MUCH more robust than that.
>>
>>Saw this one, too, but I'm not sure that it is the same thing, or that it
>>will work:
>>
>>http://www.lynxmotion.com/Category.aspx?CategoryID=10
>>
>>Also this one:
>>
>>http://www.robotstore.com/store/product.asp?pid=264&catid=1565
>>
>>Then there's this kit, but it looks like it is On/Off rather than ramped.
No
>>mention of PWM controll, but I may be missing something:
>>
>>http://www.hobbyengineering.com/H1918.html
>>
>>
>>Would any of them suit?
>>
>>
>>rtstofer wrote:
>>
>>
>>>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>>
>>>
>>>>Does the oDCMotor2 pulse work differently at 127 (full forward) than
>>>>
>>>>
>>>it does
>>>
>>>
>>>>at EVERY other value?
>>>>
>>>>
>>>Not really! At 126, the output is on all except the slightest little
>>>sliver of off time. At 127, the output is on constantly.
>>>
>>>Similarly at -127 there is the slightest sliver of off time and at
>>>-128 the output is on constantly.
>>>
>>>I do get steady ramping when using the sample program where the output
>>>varies from -128 to 0 to +127 and back again.
>>>
>>>I changed the sample code:
>>>
>>>do A = -128 to 127
>>>...
>>>do A = 127 to -128 step -1
>>>
>>>There is nothing different about 127 except that it doesn't have a
>>>pulse at all. Just a constant DC level.
>>>
>>>It's too bad RogueRobotics doesn't post their schematics. I would
>>>like to see how the thing wires up to the OOPic.
>>>
>>>Richard
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>
>
>
> [Non-text portions of this message have been removed]
>
>
>

--
View this message in context: http://www.nabble.com/H-Bridge-issue...maybe.-tf4867316.html#a13976915
Sent from the OOPic mailing list archive at Nabble.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] H-Bridge issue...maybe.

I should try that before getting a different H-Bridge, but I suspect that I'm
drawing too much power with the current setup, and will just cook the chip
in short order. I can't guarantee sufficient offtime for the chip to cool
back to ambient, so it ought to fry eventually, especially if the motor
stalls and overloads the thing.


ooPIC Tech Support wrote:
>
> I don't see any mention either - It should say if it was defaulted to
> something specific. If not I'd assume that it was where the oPWM object
> was, which was like 20KHz, WAY too high for the 754410 motor
> controller. Check out the oPWMH specs and see what it takes to move
> that down to 1 or 2KHz and see if that changes things.
>
> DLC
>
> Shaggy wrote:
>
>>Off the top of my head, I don't know. However, I would expect that would
not
>>be an issue since the LCHB is sold by RogueRobotics to go with their OOPic
>>board. I would not expect them to be including the LCHB if it won't work
>>with the board they are using. I believe it was working as expected when I
>>had it attached to the ATS motors, which are smaller than the Robotics
>>Connection motors I am currently using.
>>
>>I'm leaning towards too much power draw. I'll try to look at that this
>>evening. The motors can certainly draw too much power for the LCHB, so it
is
>>looking like I will have to replace that, regardless of whether that is my
>>specific problem. After all, the 754410 is getting a bit warm, even with a
>>heat sink, when I run the motors for 10s.
>>
>>Therefore, if anybody has a recommendation, I'll take a look at it.
>>Otherwise I might just go with the H-Bridge sold by the same company that
>>sold me the chassis and motors. I'm pretty sure that one will take enough
>>power, though I will still have to look it over some.
>>
>>
>>ooPIC Tech Support wrote:
>>
>>
>>>What is the frequency of your PWM? The 754410 is happiest at 2KHz or
>>>lower. At 20KHz I've detonated these chips!
>>>
>>>DLC
>>>
>>>ooPIC Tech Support
>>>
>>>-----Original Message-----
>>>
>>>From: Shaggy <charrington@idfg.idaho.gov>
>>>Subj: Re: [oopic] H-Bridge issue...maybe.
>>>Date: Sun Nov 25, 2007 12:38 pm
>>>Size: 4K
>>>To: oopic@yahoogroups.com
>>>
>>>
>>>That's good to hear. Just having something hooked up wrong is a much
>>>better
>>>problem than faulty hardware. Now how to go about figuring out what it
is.
>>>
>>>I have gone back to the manual for the Rogue Robotics ATS, and confirmed
>>>that my code is exactly the code they have: IOLineP is 17 for one, and 18
>>>for the other. IOLine1 is 26 and 24 respectively, and IOLine2 is 27 and
25
>>>respectively. There really isn't any more code other than that for
setting
>>>up the oDCMotor2. To run the motors, there is a countdown timer which is
>>>set
>>>to a value in seconds. As long as it is greater than 0, the operate
>>>property
>>>for each motor is set to true. When the countdown reaches 0, the operate
>>>property for each motor is set to false. That's the extent of the code,
>>>though it is not all in one place.
>>>
>>>As far as hooking things up, I've also reviewed that. There is a ribbon
>>>cable running from the OOPic to the Low-Cost H-Bridge (LCHB). This ribbon
>>>cable is designed so that there is only one way it can be plugged in on
>>>each
>>>end, and the ends are plugged in as required. If the cable is
>>>wrong....well,
>>>I haven't looked at that.
>>>
>>>There are two pads for external power, which are labeled + and -. I
>>>soldered
>>>the red lead from the battery to + and the black to -. Simple enough. The
>>>documentation then states that if external power is supplied, the jumper
>>>should be moved closer to a named capacitor. I have confirmed that that
is
>>>set correctly.
>>>
>>>The only other connection I have made is between the motors and the LCHB.
>>>The documentation mentions color coded wires, which I can't actually do,
>>>since these motors have different colors, but I followed the intention
>>>after
>>>figuring out what the colors actually meant on the ATS motors.
>>>
>>>If this is a ground issue, where does it lie? The LCHB is designed to be
>>>hooked up a certain way, and it is. If the connections that are actually
>>>needed are not the ones in the documentation, it's going to be a pain to
>>>figure out what's wrong.
>>>
>>>A couple things I'd have to look at are these:
>>>
>>>1) Do the connections on the ribbon cable actually lead to where they
>>>should
>>>lead? I think I don't necessarily need to test this, because it was
>>>working
>>>(I think) with the ATS. I'm pretty sure I tried it with lower speeds,
>>>though
>>>I was not using external power.
>>>
>>>2) What does the jumper actually do? The documentation states where the
>>>jumper should be, without explaining anything about what it does. Should
>>>be
>>>simple enough to trace, though not so easy to get to the board anymore.
>>>
>>>Is there anything else I should be checking out?
>>>
>>>
>>>
>>>rtstofer wrote:
>>>
>>>
>>>>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>>>
>>>>
>>>>>Ok, this morning I set up the bot so that I could measure the
>>>>>
>>>>>
>>>>voltage to the
>>>>
>>>>
>>>>>motors. When I set the motor speed at 127, the voltage across the
>>>>>
>>>>>
>>>>motor pins
>>>>
>>>>
>>>>>was 8.7, which is pretty reasonable. When I changed the motor speed
>>>>>
>>>>>
>>>>to 120,
>>>>
>>>>
>>>>>the voltage across the pins was just below 1. It held steady around
>>>>>
>>>>>
>>>>0.6V.
>>>>
>>>>
>>>>>That's certainly a bit low for those motors.
>>>>>
>>>>>The second time I tested this, I got the same voltage at 127, the
>>>>>
>>>>>
>>>>same at
>>>>
>>>>
>>>>>120, about 0.4V at 100, then I tried 126. The voltage first showed
>>>>>
>>>>>
>>>>about 2V,
>>>>
>>>>
>>>>>at which the wheels bumped forward some, but the voltage dropped
rapidly
>>>>>down to 0.8V.
>>>>>
>>>>>That's not a very smooth curve. Can you point me towards a solution?
>>>>>
>>>>>
>>>>>
>>>>What did you get at the OOPic pin?
>>>>
>>>>This sounds like the kind of thing that happens when the motor power
>>>>supply ground wire is not connected to the logic ground.
>>>>
>>>>As discussed in another thread a couple of days ago, you need to
>>>>create a STAR ground at the motor controller chip. The logic ground
>>>>and the motor ground tie individually to that point. The objective is
>>>>to keep motor ground current off of the logic ground wire.
>>>>
>>>>There is a wiring diagram for the L293D (a predecessor to the 754410)
>>>>at the bottom of the oDCMotor2 object reference.
>>>>
>>>>Richard
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>--
>>>View this message in context:
>>>http://www.nabble.com/H-Bridge-issue...maybe.-tf4867316.html#a13939029
>>>Sent from the OOPic mailing list archive at Nabble.com.
>>>
>>>
>>>
>>>
>>>Yahoo! Groups Links
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>
> --
> ------------------------------------------------------
> Dennis Clark ooPIC Tech Support
> www.oopic.com
> ------------------------------------------------------
>
>
>
> [Non-text portions of this message have been removed]
>
>
>

--
View this message in context: http://www.nabble.com/H-Bridge-issue...maybe.-tf4867316.html#a13976913
Sent from the OOPic mailing list archive at Nabble.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/

Monday, November 26, 2007

[oopic] Re: H-Bridge issue...maybe.

I see a great future in not using H-Bridges. Good ones are expensive
and usually there is some little gotcha just waiting to jump out. The
H-Bridge wants R/C signals and you have PWM or the H-Bridge can't
handle high frequencies or the minimum voltage is beyond the desired
battery ratings, things like that.

OTOH, you can easily reverse a motor with a DPDT relay controlled by
an OOPic output and a simple transistor or MOSFET. Then on the lead
between the relay and ground, use a logic level MOSFET (just one, not
four) and the job is finished. An IRL540N would be my choice for the
driver MOSFET and I might use an IRLD110 to drive the relay. I might
put 100 ohm resistors between the OOPic pins and the MOSFET gates.

The IRL540N can easily handle several amps and with adequate
heatsinking is good to 36A.

If braking is required, this approach needs a little more thought.
Basically, the DPDT relay is replaced with 2 SPDT relays and, of
course, 2 small MOSFETs and the original driver MOSFET.

In the end, the relay approach is cheaper and more robust.
Unfortunately, they don't seem to be commercially available. Too bad...

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] H-Bridge issue...maybe.

The Hobby Engineering L298 board (A Solarbotics kit) is adequate,
barely, but with little margin. The Jameco board has lots of margin,
but it is a primitive design that will require interface circuitry. I'd
say that unless you wanted to do your own interface to the unit that the
Sabertooth units are WAY more sophisticated with really nice options and
you can use oPWMS objects to drive them which leaves the PWM channels
free to do other things.

DLC

Shaggy wrote:

>Another fun point for them is that I noted that all of their sample code sets
>the value at 127. It may be that they are using the LCHB as an on/off,
>without any ramping.
>
>In any event, the LCHB won't handle the power that the motor can draw, so
>I'm in the market for a different one.
>
>I looked at this one:
>
>http://www.roboticsconnection.com/pc-77-9-10-amp-h-bridge.aspx
>
>but it is not just overkill, it wants a 12V power supply, which I don't
>really want to go to if I can avoid it. The funny thing about it is that the
>company ships 9.6V batteries with their chassis and motors (which draw 2A
>max), yet they don't sell an H-Bridge except ones that are more robust and
>MUCH more robust than that.
>
>Saw this one, too, but I'm not sure that it is the same thing, or that it
>will work:
>
>http://www.lynxmotion.com/Category.aspx?CategoryID=10
>
>Also this one:
>
>http://www.robotstore.com/store/product.asp?pid=264&catid=1565
>
>Then there's this kit, but it looks like it is On/Off rather than ramped. No
>mention of PWM controll, but I may be missing something:
>
>http://www.hobbyengineering.com/H1918.html
>
>
>Would any of them suit?
>
>
>rtstofer wrote:
>
>
>>--- In oopic@yahoogroups.com, Shaggy <charrington@...> wrote:
>>
>>
>>>Does the oDCMotor2 pulse work differently at 127 (full forward) than
>>>
>>>
>>it does
>>
>>
>>>at EVERY other value?
>>>
>>>
>>Not really! At 126, the output is on all except the slightest little
>>sliver of off time. At 127, the output is on constantly.
>>
>>Similarly at -127 there is the slightest sliver of off time and at
>>-128 the output is on constantly.
>>
>>I do get steady ramping when using the sample program where the output
>>varies from -128 to 0 to +127 and back again.
>>
>>I changed the sample code:
>>
>>do A = -128 to 127
>>...
>>do A = 127 to -128 step -1
>>
>>There is nothing different about 127 except that it doesn't have a
>>pulse at all. Just a constant DC level.
>>
>>It's too bad RogueRobotics doesn't post their schematics. I would
>>like to see how the thing wires up to the OOPic.
>>
>>Richard
>>
>>
>>
>>
>>
>>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.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/