Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright

Flowstone and Pololu's Mini Maestro 12

For general discussion related FlowStone

Flowstone and Pololu's Mini Maestro 12

Postby urthlight » Fri May 13, 2011 2:05 pm

I am posting a conversation between myself and a pololu agent concerning serial communication from Flowstone to Pololu's Mini Maestro 12. We are not communicating well so I thought maybe the dialog would make some sense to someone here. If any one can shed some light I would be thrilled

MiniMaestro and FlowStone
Post a reply
10 posts • Page 1 of 1
MiniMaestro and FlowStone

Postby urthlight on Mon Apr 25, 2011 9:01 pm
I am intrested in using the minimaestro 12 with Flowstone from DSP robotics. Is there any support for this software?

urthlight

Posts: 5
Joined: Mon Apr 25, 2011 8:54 pm

Top
Re: MiniMaestro and FlowStone

Postby kevin on Tue Apr 26, 2011 4:53 pm
Hello,

I found some information that says FlowStone can communicate with any device that uses a COM port, so you might be able to use it with a Maestro, which provides a virtual COM port over the USB connection. However, we have not used the FlowStone software and cannot provide any specific support for using it.

If you do decide to try using them together, we would be interested to hear how it turns out.

- Kevin

kevin
Site Admin

Posts: 63
Joined: Thu Oct 14, 2010 5:22 pm

Top
Re: MiniMaestro and FlowStone

Postby urthlight on Sat Apr 30, 2011 4:02 pm
Well then can you tell me what the serial data looks like. The lynxmotion string looks like this " #0 P1500 T1000 " where 0 is the servo number p is position and t is time. Assembled in flowstone and adding a carriage return then sending to the com port to the lynxmotion controller it generates a servo move. Also in the dual usb mode is the TTL port only a passthru at the tx/rx pins on the 7 pin header and not useful in ithe mini maestro 12?
My primary intrest is running the mm12 as an output device for a PC(laptop) platform for real time hardware control.
thanks

urthlight

Posts: 5
Joined: Mon Apr 25, 2011 8:54 pm

Top
Re: MiniMaestro and FlowStone

Postby Ben on Sun May 01, 2011 12:53 am
Hello.

Have you seen the Maestro user's guide? The serial communication section has the answers to your question. Please ask if there is still something that's not clear.

- Ben

User avatar
Ben
Site Admin

Posts: 1990
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Top
Re: MiniMaestro and FlowStone

Postby urthlight on Sun May 01, 2011 9:02 am
well I am still not clear about the formatting of the data:
the manual states"
Compact Protocol
This is the simpler and more compact of the two protocols; it is the protocol you should use if your Maestro is the only device connected to your serial line. The Maestro compact protocol command packet is simply:

command byte (with MSB set), any necessary data bytes
For example, if we want to set the target of servo 0 to 1500 µs, we could send the following byte sequence:


in hex: 0x84, 0x00, 0x70, 0x2E

in decimal: 132, 0, 112, 46


ok so my terminal software sends
132, 0, 112, 46
or
0x84, 0x00, 0x70, 0x2E
to the mm12
i get a blink on the green led that looks like data was sent on com 4 and com 5 but no servo move

is there any preamble any initilization procedure or is it automatic?

I have my mm12 in dual usb mode with crc off.

urthlight

Posts: 5
Joined: Mon Apr 25, 2011 8:54 pm

Top
Re: MiniMaestro and FlowStone

Postby Ben on Sun May 01, 2011 6:27 pm
How are you determining what COM port to send the commands? Also, are you actually sending the byte values rather than ASCII representations of them? Can you connect to the Maestro with the Maestro Control Center and see if the slider bar that corresponds with servo 0 moves when you send your commands?

- Ben

User avatar
Ben
Site Admin

Posts: 1990
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Top
Re: MiniMaestro and FlowStone

Postby urthlight on Wed May 11, 2011 11:35 am
How are you determining what COM port to send the commands?
The device manager shows that com 4 and 5 are being used for the MM12

Also, are you actually sending the byte values rather than ASCII representations of them?
I am sending ASCII to the com port from flowstone

in hex: 0x84, 0x00, 0x70, 0x2E

in decimal: 132, 0, 112, 46

Can you connect to the Maestro with the Maestro Control Center and see if the slider bar that corresponds with servo 0 moves when you send your commands?

yes and that is working fine

still confused

urthlight

Posts: 5
Joined: Mon Apr 25, 2011 8:54 pm

Top
Re: MiniMaestro and FlowStone

Postby Ben on Wed May 11, 2011 1:22 pm

urthlight wrote:The device manager shows that com 4 and 5 are being used for the MM12


Do you know which of these two is the correct one to be sending your serial commands to?

I am sending ASCII to the com port from flowstone


I think this is your main problem. The Maestro protocol is not ASCII-based. For example, for the command you list, you have to actually send four bytes with the values 132, 0, 112, and 46. Transmitting a byte with the value 132 is not the same as transmitting three ASCII characters with the values '1', '3', and '2'.

- Ben

User avatar
Ben
Site Admin

Posts: 1990
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV

Top
Re: MiniMaestro and FlowStone

Postby urthlight on Thu May 12, 2011 12:26 pm
I am sending ASCII to the com port from flowstone


I think this is your main problem. The Maestro protocol is not ASCII-based. For example, for the command you list, you have to actually send four bytes with the values 132, 0, 112, and 46. Transmitting a byte with the value 132 is not the same as transmitting three ASCII characters with the values '1', '3', and '2'.




so what should the data going to the MM12 look like?

should it be hex , binary or something else?

lb

urthlight

Posts: 5
Joined: Mon Apr 25, 2011 8:54 pm

Top
Re: MiniMaestro and FlowStone

Postby Ben on Thu May 12, 2011 12:46 pm

urthlight wrote:so what should the data going to the MM12 look like?

should it be hex , binary or something else?


I think you are still fundamentally misunderstanding things. Your goal is not to send a representation of a value, your goal is to send the value itself using serial, which has its own internal representation in the form of time-varying digital voltages. The value of the number ten is independent of how we choose to represent it (e.g. 10, 0xA, or 0b00001010). If the servo controller is expecting a first byte with the value 132, you need to write a program that gets this value transmitted on the serial port (i.e. when the servo controller reads the byte it receives, the byte should have the value 132).

- Ben

User avatar
Ben
Site Admin

Posts: 1990
Joined: Mon Aug 28, 2006 1:05 pm
Location: Las Vegas, NV
urthlight
 
Posts: 6
Joined: Mon Apr 25, 2011 6:58 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby DSP » Fri May 13, 2011 9:02 pm

I've just had a look at the Maestro Manual and whilst it seems a little over complicated it should work fine with FlowStone.

Maestro Manual: http://www.pololu.com/docs/pdf/0J40/maestro.pdf

The key is to use the HEX mode for the FlowStone com port.

Here is a little app. for you to test. I've set the com port at 9600,n,8,1

I've entered the data as they suggest: 8400702E (Hex)

Give it a go and see if it works?
Attachments
Mini Maestro 12 Test.fsm
Mini Maestro 12 Test
(6.38 KiB) Downloaded 1365 times
DSP
 
Posts: 150
Joined: Fri May 14, 2010 10:55 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby urthlight » Fri May 20, 2011 11:43 pm

Works like a champ. Thank you
urthlight
 
Posts: 6
Joined: Mon Apr 25, 2011 6:58 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby Embedded » Mon Jun 06, 2011 8:56 pm

I just got a Pololu Maestro 24 which uses the same protocol.

Using the test program (above) I can't get mine working?

urthlight did you change anything?

Thanks...
Embedded
 
Posts: 143
Joined: Sat Oct 30, 2010 1:42 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby Embedded » Mon Jun 06, 2011 10:30 pm

ok, I got it going. The missed the setup part in the manual!

Basically you have to select USB Dual port mode in their software first!

Anyway here's my test program with a slider controlling Servo 0
Attachments
Pololu MC.fsm
Servo Test program
(9.9 KiB) Downloaded 1373 times
Embedded
 
Posts: 143
Joined: Sat Oct 30, 2010 1:42 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby NullARC » Thu Dec 22, 2011 2:53 am

I purchased a Pololu Micro Maestro and I can get it to work with Pololu's configuration software, but I can't get it to work with the Flowstone test program above.

I'm not sure what I'm missing, I set it to "USB Dual Port" mode and selected the "0" servo but nothing seems to work. :(

I know the Micro Maestro works SLIGHTLY different than the rest of the Maestro controllers. But I don't see anything obvious that would prevent this test program from working with the Micro version.

Let me know if you have any ideas.

Thanks!
NullARC
 
Posts: 14
Joined: Sun Nov 06, 2011 4:54 pm

Re: Flowstone and Pololu's Mini Maestro 12

Postby bredhedden1 » Sun Jan 29, 2012 1:04 am

I did try that before but I had failed & I never try again that's my mistake but can you help me ?
bredhedden1
 
Posts: 1
Joined: Tue Jan 24, 2012 5:40 am

Re: Flowstone and Pololu's Mini Maestro 12

Postby Embedded » Mon Jan 30, 2012 10:43 am

Happy to help, but what is your problem?

It works in the test program I posted?
Embedded
 
Posts: 143
Joined: Sat Oct 30, 2010 1:42 pm


Return to General

Who is online

Users browsing this forum: No registered users and 67 guests