Turns

Hello,

 

 

What's the best way of turning? We have 2 DC motors, one on each wheel. To turn right I was sending forward command to the left motor and backward to the right motor but I'm having diffculty to keep track. The min PWM to give first spin changes drastically in every situtaion.  We have a digital compass and and I'm thinking relying only to that for this decision but it would be better if I had a look up table with tick numbers of encoders for each desired degree.

 

 How do you do turns in general?

 

 

 

if you have one wheel

if you have one wheel forwards and one backwards, it’ll turn pretty tightly, like, if your design is good enough, it should turn within its own footprint. Usually, though, you can just have one go and it’ll turn. 

Are you using the compass to make sure you turn 90 degrees? are you even trying to make 90 degree turns?

Yeah but i’m unable keep

Yeah but i’m unable  keep track of the degree turned accurately. WIth compass I can say turn until compass hits desired degree but in the loop when the motors will stop, the error might be too large. Would a look up table be better? x ticks for each motore = y degrees etc?

two wheels ,one omni wheel …

you can make one motor turns the two wheels and the other one can be used to turn omni wheel that will be perpendicular to the other two wheels ,that will make your robot turns very good ,wont it :b

yes teto but its too late to

yes teto but its too late to cgange the design for this :frowning: there’s 2 weeks deadline and the body is put together already. I though about that late.

**im very sorry**<br><p>im very sorry I couldn`t help you , I hope i can help you in the future ;D