BS2SX to drive Icon H-Bridge
Archiver
Posts: 46,084
Has anyone used a BS2 to drive a Icon H-bridge Motor controller?
Neither Parralax which sold it last year, nor Solutions Cubed,
which made it, can seem to tell me how to do this.
I simply need to use the BS2 to one-time program the H-bridge
to put it into direct, rather than serial mode. I have
the Stamp pins 4 and 5 connected to the serial in and out
pins of the icon, and I assume some SERIN and SEROUT commands
need to be developed, but I haven't correctly deciphered the
syntax. (Never mind that I bought the h-bridge for the direct mode,
hoping to avoid having to figure out this syntax in nthe first
place.)
If anyone has working code to communicate with a h-bridge, even
if they are just using serial mode, I would love to see it
so I can adapt it to my simple, one-time use.
Thanks
Neither Parralax which sold it last year, nor Solutions Cubed,
which made it, can seem to tell me how to do this.
I simply need to use the BS2 to one-time program the H-bridge
to put it into direct, rather than serial mode. I have
the Stamp pins 4 and 5 connected to the serial in and out
pins of the icon, and I assume some SERIN and SEROUT commands
need to be developed, but I haven't correctly deciphered the
syntax. (Never mind that I bought the h-bridge for the direct mode,
hoping to avoid having to figure out this syntax in nthe first
place.)
If anyone has working code to communicate with a h-bridge, even
if they are just using serial mode, I would love to see it
so I can adapt it to my simple, one-time use.
Thanks
Comments
>Has anyone used a BS2 to drive a Icon H-bridge Motor controller?
>
>Neither Parralax which sold it last year, nor Solutions Cubed,
>which made it, can seem to tell me how to do this.
>
>I simply need to use the BS2 to one-time program the H-bridge
>to put it into direct, rather than serial mode. I have
>the Stamp pins 4 and 5 connected to the serial in and out
>pins of the icon, and I assume some SERIN and SEROUT commands
>need to be developed, but I haven't correctly deciphered the
>syntax. (Never mind that I bought the h-bridge for the direct mode,
>hoping to avoid having to figure out this syntax in nthe first
>place.)
>
>If anyone has working code to communicate with a h-bridge, even
>if they are just using serial mode, I would love to see it
>so I can adapt it to my simple, one-time use.
>
>Thanks
Which model ICON Controller are you using, there are apparently a number of
different models. I would like to believe it could be programmed from a PC if
you choose not to do it from a PBASIC Stamp.
Bruce Bates
>To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
>from the same email address that you subscribed. Text in the Subject and Body
of the message will be ignored.
>
>Yahoo! Groups Links
>
>
>
>
They seem to sell other modules now. They do now sell an Icon
interface module which simplifies this
problem but I'd rather not spend another $60 for a product
I need for only a few millisecomds.
--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
> At 05:02 PM 3/12/04 +0000, djlandwehr wrote:
> >Has anyone used a BS2 to drive a Icon H-bridge Motor controller?
> >
> >Neither Parralax which sold it last year, nor Solutions Cubed,
> >which made it, can seem to tell me how to do this.
> >
> >I simply need to use the BS2 to one-time program the H-bridge
> >to put it into direct, rather than serial mode. I have
> >the Stamp pins 4 and 5 connected to the serial in and out
> >pins of the icon, and I assume some SERIN and SEROUT commands
> >need to be developed, but I haven't correctly deciphered the
> >syntax. (Never mind that I bought the h-bridge for the direct
mode,
> >hoping to avoid having to figure out this syntax in nthe first
> >place.)
> >
> >If anyone has working code to communicate with a h-bridge, even
> >if they are just using serial mode, I would love to see it
> >so I can adapt it to my simple, one-time use.
> >
> >Thanks
>
> Which model ICON Controller are you using, there are apparently a
number of different models. I would like to believe it could be
programmed from a PC if
> you choose not to do it from a PBASIC Stamp.
>
> Bruce Bates
>
>
>
>
>
> >To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> >from the same email address that you subscribed. Text in the
Subject and Body of the message will be ignored.
> >
> >Yahoo! Groups Links
> >
> >
> >
> >
at Icon. The following code immediately put my
Icon H-bridge in direct mode. I have BS2SX pin 4
connected to Din on the Icon and BS2SX Pin 5 to Dout.
I thought I should post it in case another frustrated
coder out there needs to communicate with an Icon.
Thanks you Lon.
Dennis
'{$STAMP BS2sx}
START
PAUSE 2000
SEROUT 4,1021,[noparse][[/noparse]$C2,$01,$02,$04,$83,$4C]
SERIN 5,1021,100,NOACK,[noparse][[/noparse]B0]
IF B0 <> $06 THEN NOACK
DEBUG "ACK FROM WRITE OK",CR
SEROUT 4,1021,[noparse][[/noparse]$C3,$01,$00,$C4]
SERIN 5,1021,100,NOACK,[noparse][[/noparse]B0]
IF B0 <> $06 THEN NOACK
DEBUG "ACK FROM STORE OK",CR
DONE:
GOTO DONE
NOACK:
DEBUG "NO ACK RECEIVED",CR
GOTO START
--- In basicstamps@yahoogroups.com, Bruce Bates <bvbates@u...> wrote:
> At 05:02 PM 3/12/04 +0000, djlandwehr wrote:
> >Has anyone used a BS2 to drive a Icon H-bridge Motor controller?
> >
> >Neither Parralax which sold it last year, nor Solutions Cubed,
> >which made it, can seem to tell me how to do this.
> >
> >I simply need to use the BS2 to one-time program the H-bridge
> >to put it into direct, rather than serial mode. I have
> >the Stamp pins 4 and 5 connected to the serial in and out
> >pins of the icon, and I assume some SERIN and SEROUT commands
> >need to be developed, but I haven't correctly deciphered the
> >syntax. (Never mind that I bought the h-bridge for the direct
mode,
> >hoping to avoid having to figure out this syntax in nthe first
> >place.)
> >
> >If anyone has working code to communicate with a h-bridge, even
> >if they are just using serial mode, I would love to see it
> >so I can adapt it to my simple, one-time use.
> >
> >Thanks
>
> Which model ICON Controller are you using, there are apparently a
number of different models. I would like to believe it could be
programmed from a PC if
> you choose not to do it from a PBASIC Stamp.
>
> Bruce Bates
>
>
>
>
>
> >To UNSUBSCRIBE, just send mail to:
> > basicstamps-unsubscribe@yahoogroups.com
> >from the same email address that you subscribed. Text in the
Subject and Body of the message will be ignored.
> >
> >Yahoo! Groups Links
> >
> >
> >
> >