Search found 1594 matches

by Basicmicro Support
Mon Oct 19, 2015 8:38 am
Forum: Velocity and Position Control
Topic: PacketSerialEncoderPosition.ino
Replies: 1
Views: 4767

Re: PacketSerialEncoderPosition.ino

You need to set the min and max position ranges at the same time you set the PID constants using IonMotion. Then save the settings to the Roboclaws flash(Save Settings in Device menu). If you do not then there range is 0 and 0 which means the motor will not move. The Position commands have soft posi...
by Basicmicro Support
Sat Oct 17, 2015 12:10 pm
Forum: General Discussion
Topic: Calculating Distance
Replies: 0
Views: 26016

Calculating Distance

This is a post to describe how to calculate the distance of a movement for the SpeedAccelDistance commands. The simple distance formula is d = (V*V)/(2*a). This assumes starting or ending with a velocity of 0. First you need to calculate the distance needed to accelerate to you speed and then to dec...
by Basicmicro Support
Sat Oct 17, 2015 11:56 am
Forum: General Discussion
Topic: Mixed Mode commands 10, 11 and 13
Replies: 4
Views: 7078

Re: Mixed Mode commands 10, 11 and 13

I split this off from the other topic since it isn't really a direct firmware issue. This was a correction for incorrectly functioning commands. In the new firmware, when using any of the Sabertooth compatible mixed mode commands you must now send both a forward/backward command and a turn command i...
by Basicmicro Support
Sat Oct 17, 2015 11:45 am
Forum: General Discussion
Topic: new firmware issues - 4.1.13
Replies: 6
Views: 9062

Re: new firmware issues - 4.1.13

I am somewhat confused by your post since the fact you had the button swap issue seems to imply you updated the firmware on the Roboclaw but the end of your post indicated you could not update the firmware on your Roboclaw. Please clarify. I will try to answer everything as well. 1. If you are seein...
by Basicmicro Support
Sat Oct 17, 2015 11:21 am
Forum: General Discussion
Topic: All Stop command
Replies: 14
Views: 16268

Re: All Stop command

What commands are you using to drive the motors? I'm guessing a velocity or position command.

You can send a Duty command(with a duty value of 0) to stop the motor. that is what the Stop All button does.
by Basicmicro Support
Sat Oct 17, 2015 11:17 am
Forum: General Discussion
Topic: Ion Motion Software questions
Replies: 1
Views: 5690

Re: Ion Motion Software questions

Units are in encoder counts. So it is entirely relative to the encoder you are using. If your encoder produces 1000 counts per rotation then your speed is 1 rpm when the encoder speed is 1000 etc... Distance is relative to the circumference of your wheel and the rpms which you will need to calculate...
by Basicmicro Support
Sat Oct 17, 2015 11:14 am
Forum: General Discussion
Topic: [SOLVED] CRC16 - Visual Basic
Replies: 8
Views: 22710

Re: CRC16

Yes, I used that online calculator to test against my own code originally. Also I have used a table lookup version before. I don't use it in the arduino library because it takes a lot of flash memory(although it is faster). You can tell this table is correct by looking at the first few bytes("&...
by Basicmicro Support
Sat Oct 17, 2015 11:09 am
Forum: Velocity and Position Control
Topic: inconsistent encoder status registers reading in mixed mode
Replies: 7
Views: 10307

Re: inconsistent encoder status registers reading in mixed mode

The problem was my misunderstanding what you meant by this "sometimes I get different status values for example". But lets forget about it and get to the point of your post. When using the CRC16 it is nearly impossible for the direction bit to be wrong. CRC is guaranteed to detect a single...
by Basicmicro Support
Wed Oct 14, 2015 4:47 pm
Forum: General Discussion
Topic: new firmware issues - 4.1.13
Replies: 6
Views: 9062

Re: new firmware issues - 4.1.13

You can always manually getinto Roboclaw to update the firmware. Hold the Mode button while powering it on. The 3 LEDs will start cycling. Then click the Update firmware button. IoNmotion should have popped up a window explaining how to do that. I will haevt o fix that. On older boards that dont sup...
by Basicmicro Support
Wed Oct 14, 2015 4:37 pm
Forum: General Discussion
Topic: [SOLVED] CRC16 - Visual Basic
Replies: 8
Views: 22710

Re: New CRC16 -calculations

1. Yes you are correct. I hit 9 instead of 0, 0x03(high byte) and 0x0D(low byte) 2. In this For byte = 0 to quantity of bytes in the packet - 1 bytes would be the packet bytes not including the CRC16. Then compare the CRC16 calculated to the CRC16 bytes received. You can process the CRC16 bytes rece...