2017-05-17 11:25 AM
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 #car2017-05-17 03:22 PM
So calibrate and scale inputs
2017-05-25 12:17 PM
Is sort the best way of reduction to one value?
2017-05-25 02:44 PM
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.