Ultrasonic sensors are mounted on wheeled robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
I've mounted an action cam on my wheeled robot. So will try to shoot some fpv videos soon.
New motors and 2 additional batteries are installed on wheeled robot.
KemaState is a class for saving robot status. It records sensor values, speed and rotation, if any. In the sketch for Arduino Mega, two variables of this class are used: current and previous states.
KemaUS is a class for working with ultrasonic sensors. If the distance to the obstacle is more than 30cm, the robot moves forward, the light on the LED indicator is green. At a distance of 15 - 30 cm - it stops, the LED indicator is yellow. When the obstacle approaches less than 15 cm - the robot travels back, the LED indicator is red.
IR sensors on wheeled robot
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
My wheeled robot is turning around. The power of new motors is enough to do it.
Arduino sketch for remote control of robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613
Test of ultrasonic sensors on wheeled robot.
Description, designs, sketches and links to used parts: https://vk.com/topic-73778892_35223613