Mini Maestro 12
It works in Maestro Control Center.
Maestro Control Center says, connected to #00100775
Does that mean my device number is 100775?
Trying to send this,
Pololu protocol: 0xAA, device number, 0x10, channel number
Can’t get a response other than blank.
I have channel 6 configured as an Input.
I just want to know if a button has been pushed or not.
I know I am antique, but VB6 is the only language I am proficient with.
If anyone has any sample code that works I would greatly appreciate it.
The values listed in the “Connected to:” drop-down menu are the serial numbers of each Maestro unit connected to your computer. The device number can be found under the “Serial Settings” tab in the Maestro Control Center.
I added code tags ([ code ] [ /code ] without spaces) to your post to make it easier to read; please use this method to post code in the future.
You are correct. Your output line is not formatted properly. It looks like you were sending some ASCII-encoded strings instead of just sending the binary bytes that are needed. You might try making the output like this:
Also, I noticed that you are trying to read in 10 bytes from the receive buffer. The get position command should only returns 2 bytes (position low 8 bits, position high 8 bits), so you probably would want to change the number of bytes to read from the buffer to 2.