cancel
Showing results for 
Search instead for 
Did you mean: 

How to make real speeds of wheels equal?

Michael Gross
Associate II
Posted on May 17, 2017 at 20:25

We are engaged in the small project - the clever machine. We have a problem since we don't know how to equate speeds of wheels of the machine. On each wheel there is a sensor, each wheel works on the timer. So we can adjust speed, but as to make it optimum, we don't know. Model of board is stm32L476RG

#wheels #car
3 REPLIES 3
Posted on May 18, 2017 at 00:22

So calibrate and scale inputs

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Michael Gross
Associate II
Posted on May 25, 2017 at 21:17

Is sort  the best way of reduction to one value?

Posted on May 25, 2017 at 21:44

I'm not familiar with you or your project. No cites provided, little detail.

The PWM outputs allow you to control period (frequency) and pulse width (duty). If you want the pulses to come faster, reduce the period.

Ratio the periods to achieve equilibrium in the rate the wheels turn.

Conversely if you are measuring pulses, figure out how far each wheel moves after 1000 pulses have been counter, or how many pulses you see with 1 or 10 metres of travel.

Perhaps you could using floating point numbers, I assume the rates are close to parity. ie y = x * 1.0005 or y = x * 0.9995, where the scaling is inferred by x/y.

Complexity of maths, someone 12-15 should be able to solve.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..