Search found 29 matches

by Joe
Tue Feb 20, 2018 2:03 pm
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 4477

Re: Doing one command after the other

Hi, 1. the positioning commands work very well and exact 2. in my original sketch I printed the output of the buffer. This is also working for the first positioning command and when the buffer sent 0x80 the measurement command works and the next positioning command starts. After that no more buffer ...
by Joe
Fri Feb 16, 2018 8:01 am
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 4477

Re: Doing one command after the other

I got this working now for my first measurement but the next does not work. Why? void measure(){ uint8_t depth1,depth2; rc.SpeedAccelDeccelPositionM1(address, 1000, 8000, 1000, 10150, 0); while(depth1!=0x80){ //loop until distance command completes rc.ReadBuffers(address,depth1,depth2); } dialdata()...
by Joe
Thu Feb 15, 2018 9:47 am
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 4477

Re: Doing one command after the other

I was doing that by reading the position but the readout loop sometimes crashes my measurement data. So how else could I read the position without using a loop?
by Joe
Tue Feb 13, 2018 10:41 am
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 4477

Doing one command after the other

Hi, maybe someone can help me out with a piece of code ;-) I'm using an arduino mega and a roboclaw with an encoder to control a slide on a rail. I want to move my slide to a specific position then do a measurement with a digital dial and the go to the next position and measure and so on. My problem...
by Joe
Sun Jul 16, 2017 8:35 am
Forum: Velocity and Position Control
Topic: using S3 & S4 as home switches
Replies: 7
Views: 5557

Re: using S3 & S4 as home switches

SouthernAtHeart wrote: roboclaw.SpeedAccelDeccelPositionM1(address, accel, maxSpeed, deccel, -3000000, 0); //2500000 pulses is the max table length
Is for position a negative value allowed?
by Joe
Sun Jul 16, 2017 7:56 am
Forum: Velocity and Position Control
Topic: Home/Limit switches
Replies: 22
Views: 13777

Re: Home/Limit switches

acidtech wrote: Note that Mode 1. has a hardwired timeout of 3 seconds. Mode 2. has a user settable timeout in seconds.
What does timeout mean?
Where can I set modes?
by Joe
Fri Jul 14, 2017 10:53 am
Forum: General Discussion
Topic: about S3 and S4 mode
Replies: 1
Views: 1640

Re: about S3 and S4 mode

Hi, please see this thread
http://forums.ionmc.com/viewtopic.php?f=3&t=418
as a starting point
by Joe
Mon Jul 10, 2017 10:52 am
Forum: General Discussion
Topic: Roboclaw encoder read out
Replies: 2
Views: 2195

Re: Roboclaw encoder read out

Hi, thank you. I will try that end of this week and report.
by Joe
Sun Jul 09, 2017 1:05 pm
Forum: Velocity and Position Control
Topic: Home/Limit switches
Replies: 22
Views: 13777

Re: Home/Limit switches

Thank you, could you please explain the other options?
What does home(user)/limit(fwd) or limit(both)?
by Joe
Fri Jul 07, 2017 10:32 am
Forum: General Discussion
Topic: Roboclaw encoder read out
Replies: 2
Views: 2195

Roboclaw encoder read out

Hi, I'm controlling the roboclaw with an external software with arduino over serial connection. I'm using a slider control in my software to move the motor forward and backwards. When moving the motor I'd like to read the current encoder values and print this over a serial monitor. The value 'speed'...