Shop OBEX P1 Docs P2 Docs Learn Events
BS2 and the Sabertooth 2x25 w/ simple serial? — Parallax Forums

BS2 and the Sabertooth 2x25 w/ simple serial?

$WMc%$WMc% Posts: 1,884
edited 2010-06-30 00:50 in General Discussion
Hello All

·I'm looking for some help talking to the Dimension Engineering·Sabertooth 2x25, using simple serial.(why can't this be as simple as the HB-25)

If anyone out there·is familiar with· the D.E.2x25 H-bridge motor controller I could really use some help!

Its the SEROUT command that I'm having trouble with from the BS2e.

The D.E. docs spec that a "character" of 1-127 will control M1 and 128-255 will control M2. Where 64 is the center "off" position for M1 and 192 is off or center for M2

I've been working on this for a while and I'm lost!



▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2010-05-25 01:35
    When you run your program what happens? It would help if we knew.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • hover1hover1 Posts: 1,929
    edited 2010-05-25 14:03
    The first thing I noticed, the the Sabertooth specs say "Simplified Serial, 38400 Baud: A TTL level 8N1 serial data stream is connected to terminal S1." Your baud rate on the BS2e is 9600.

    Jim

    Edit: You might want to try Baudmode 6 ,(38.4K - Non-inverted mode), or 16390 (38.4K Inverted Mode).
    $WMc% said...
    Hello All

    ·I'm looking for some help talking to the Dimension Engineering·Sabertooth 2x25, using simple serial.(why can't this be as simple as the HB-25)

    If anyone out there·is familiar with· the D.E.2x25 H-bridge motor controller I could really use some help!

    Its the SEROUT command that I'm having trouble with from the BS2e.

    The D.E. docs spec that a "character" of 1-127 will control M1 and 128-255 will control M2. Where 64 is the center "off" position for M1 and 192 is off or center for M2

    I've been working on this for a while and I'm lost!

    ·
    Post Edited (hover1) : 5/25/2010 2:23:37 PM GMT
  • $WMc%$WMc% Posts: 1,884
    edited 2010-05-26 00:55
    Franklin

    I have added rem statments to the code to show what its doing. This is the easyest way for me to explaine it.

    hover1

    The Dimension Engineering Docs were to large to attch even when zipped. But thier are dip swicth settings for differnt Baud rates with the sabertooth 2x25. I have choseing 2 and 4 down for 9600 Baud. 2, 4, and 5 down from what I see would be 38400Baud. Am I miss reading the Docs for this setting?
    The Docs say if Your haveing problems slow the Baud rate. This is why I'm at 9600 Baud.

    Thanks for the replys and the help

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.
  • FranklinFranklin Posts: 4,747
    edited 2010-05-26 01:07
    What I meant was what phtsical results do you get. Does it just set there and do nothing or does it do something but not what you want?
    according to the docs 1,5,6 on if you are using Lipo batteries and 1,3,5,6 if you are using any other type of battery for 9600

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen

    Post Edited (Franklin) : 5/26/2010 1:16:00 AM GMT
  • FranklinFranklin Posts: 4,747
    edited 2010-05-26 01:36
    OK, looked at your code and have some comments. the commands in the document say to pull the pin high and send the data without a pause, wait 50 MICROSECONDS and bring the line low. You have two Milisecond pauses there. Try no pause going in and a pause1 comming out.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • hover1hover1 Posts: 1,929
    edited 2010-05-26 02:14
    I looked at the "Quick Setup" doc and they only mentiononed 38.4K Baud. I didn't download the full doc yet. Sorry, but I guess you already researched that part.

    Jim
    $WMc% said...
    Franklin

    I have added rem statments to the code to show what its doing. This is the easyest way for me to explaine it.

    hover1

    The Dimension Engineering Docs were to large to attch even when zipped. But thier are dip swicth settings for differnt Baud rates with the sabertooth 2x25. I have choseing 2 and 4 down for 9600 Baud. 2, 4, and 5 down from what I see would be 38400Baud. Am I miss reading the Docs for this setting?
    The Docs say if Your haveing problems slow the Baud rate. This is why I'm at 9600 Baud.

    Thanks for the replys and the help

  • $WMc%$WMc% Posts: 1,884
    edited 2010-05-27 01:04
    Franklin

    Thanks for the feed back. I have tried your suggestions but none have worked, I get the same results. I rang-out the DIP switches,this is really the only thing I can check on the board "1,3,5,6 are on (1.2 ohm) and 2,4 show OPEN LOOP, their off." The lower part of the board is covered with a heat sink,glued or epoxied on. One last thing to note is the only thing that I can get to work reliably is two 5kohm pots. With the right DIP switch setting the two pots work great on M1 and M2.

    I have tried PWM,SERVO,SERIAL none of these work right. I wonder if this unit isn't defective?

    Thanks for Your time and interest in my post!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.·
  • W9GFOW9GFO Posts: 4,010
    edited 2010-05-27 10:19
    $WMc% said...


    I'm looking for some help talking to the Dimension Engineering Sabertooth 2x25, using simple serial.(why can't this be as simple as the HB-25)

    You can control it using servo pulses just like the HB-25 using "Mode 2".

    Rich H

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Simple Servo Tester, a kit from Gadget Gangster.
  • $WMc%$WMc% Posts: 1,884
    edited 2010-05-28 01:24
    W9GFO

    Thanks for the reply, But no I can't. I can get one motor to some what behave,But the other does what it wants. It might run, It Might not.

    I have swapped S1 and S2, Same results. I have swapped M1 and M2, Same results. This was using SERVO commands. They work great on the HB-25 and I was using two of them. The motors I'm using now are 24Vdc so I can't use the HB-25's that I have for this project.

    I really think I have a defective part. I'm in the process of contacting Dimension Engineering. No E-Mail response yet. I will try by phone tomorrow.

    Thanks for Your reply!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.·
  • W9GFOW9GFO Posts: 4,010
    edited 2010-06-01 05:15
    I hope you can get it to work. I've nearly ordered that controller several times. I'm currently using HB-25s on my 24 volt motors. I really wish Parallax would make a HB-50!

    Rich H

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Simple Servo Tester, a kit from Gadget Gangster.
  • $WMc%$WMc% Posts: 1,884
    edited 2010-06-01 17:11
    W9GFO

    I would love to see an HB-50 @ 24 volts with a 100% duty cycle. A dual HB-50 (HB-2x50) with serial input would be even better.

    I talked to Dem.Engineering Friday,All of the main techs were off of coarse. But I did speak with someone from the warranty department. He felt the unit was
    defective after I explained all of the test I ran, It might be a cold solder joint somewhere on the M2 side. I'll post the finding after I talk to them again on Tuesday.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.·
  • $WMc%$WMc% Posts: 1,884
    edited 2010-06-14 18:27
    Hello All

    I just got off the phone with Dimension Engineering. They tested the Sabortooth 2x25 and it was indeed defective. Their gonna send me a new. As my luck would have it their out of them right now and its gonna be a week or so before they can ship. So for now its hurry up and wait.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    want speed?·want·to use the Propeller?·want to stay with BASIC___www.propbasic.com___


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.

    ·
  • hover1hover1 Posts: 1,929
    edited 2010-06-14 18:48
    I guess that's good news. At least you were doing the right thing. Hopefully, this is a 1 in 1000 failure rate item.
    $WMc% said...
    Hello All

    I just got off the phone with Dimension Engineering. They tested the Sabortooth 2x25 and it was indeed defective. Their gonna send me a new. As my luck would have it their out of them right now and its gonna be a week or so before they can ship. So for now its hurry up and wait.

  • $WMc%$WMc% Posts: 1,884
    edited 2010-06-30 00:50
    Hello All

    I finally got my replacement Sabortooth 2x25 unit from Dimension Engineering. I tested it with "simple serial" an "servo inputs" and the motors
    ran like they should.
    I ran a battery of test on the Sabortooth, and the motor controller never got hot or really warm for that matter. I was impressed there.
    The motors heated up a little, But I had them at near stall speeds in the tests I ran.
    '
    This driver isn't as smooth as the HB25 and it needs a little more overhead code, But if You need that last little bit of power, I think its a good investment.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA


    want speed?·want·to use the Propeller?·want to stay with BASIC___www.propbasic.com___


    You can feel stupid by asking a stupid question or You can be really·stupid by not asking at all.

    ·
Sign In or Register to comment.