Search found 34 matches

by Joe
Tue Mar 27, 2018 11:51 am
Forum: General Discussion
Topic: Limit switches to cut power
Replies: 1
Views: 3104

Limit switches to cut power

For security reasons I want to use two switches additionally to the regular end switches on my linear unit. These additional switches should cut the power off. I'm using a relay module to do that. Should I cut the power of the motors or should I cut the power of roboclaw itself? How does roboclaw re...
by Joe
Tue Mar 20, 2018 3:32 am
Forum: General Discussion
Topic: 5V for arduino
Replies: 3
Views: 4347

Re: 5V for arduino

... and all of the pins provide up to 3A together?
by Joe
Fri Mar 16, 2018 9:59 am
Forum: General Discussion
Topic: 5V for arduino
Replies: 3
Views: 4347

5V for arduino

Hi, if I'm using 2 encoders with roboclaw where should I take the 5V for powering an arduino?
by Joe
Sun Feb 25, 2018 10:48 am
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 9582

Re: Doing one command after the other

Thank you that helped ;-)
by Joe
Wed Feb 21, 2018 2:27 pm
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 9582

Re: Doing one command after the other

Hi this is the relating part of my sketch and the printed buffer. RC does only the first two position commands and the last to the starting position 400. The following two (5500 and 7500) are ignored and no more serial read out. void measure{ uint8_t depth1,depth2; rc.SpeedAccelDeccelPositionM1(addr...
by Joe
Tue Feb 20, 2018 2:03 pm
Forum: Velocity and Position Control
Topic: Doing one command after the other
Replies: 9
Views: 9582

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: 9582

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: 9582

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: 9582

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: 10115

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?