gpiozero has the DistanceSensor (HC-SR04) class built in, so the function in the script get_distance() could be replaced and the microsecond timing will not be not needed. It also has motor and servo classes, so it should be doable.
Statistics: Posted by neilgl — Wed Mar 06, 2024 5:17 pm