Home Robotics Fun calculations for programmers, robotics, and mathematicians

Fun calculations for programmers, robotics, and mathematicians

by admin

A research problem for mathematicians, robotics, and programmers.
Fun calculations for programmers, robotics, and mathematicians
In the attached file row by row records the 600 whole numbers obtained with the LEGO electric motor test bench.
The control module program gives the motors attached to the stand a command to set the power to 50 and after 5 seconds it gives a command to stop (without electric braking, by inertia). It waits for 1 second (so that all the engines have time to stop), then it reads the values of the revolutions made by the engines for 5+ seconds (in degrees) from the sensors built into the engines. The values in order are written to a file in the following format :
1 line : 2222 – number of degrees committed by 1 engine on 1 attempt
Line 2 : 2223 – number of degrees committed by 2 motors on 1 attempt
Line 3 : 2225 – number of degrees, committed by 3 motor on 1 attempt
Line 4 : 2230 – number of degrees committed by 4 motor on 1 attempt

(N-1)*4+1 line : 2240 – number of degrees accomplished by 1 engine on N attempts
(N-1)*4+2 line : 2212 – number of degrees, performed by the 2nd engine on N attempts
(N-1)*4+3 line : 2232 – number of degrees, performed by engine 3 on N attempts
(N-1)*4+4 line : 2201 – number of degrees committed by engine 4 on N attempts

After recording the sensor values are zeroed, the program repeats the above steps 150 times. The sensor values of the motors are also reset to zero before the program is started.
Fun calculations for programmers, robotics, and mathematicians
Try to get from the attached file Maximum information telling about the features of each motor and the control module as a whole 🙂

You may also like