Otto is an intermediate project made with Arduino. It's a simple robot that scan the surrounding area and print the distances of the objects on the serial monitor.
The official repository: https://github.com/Fix-22/Otto
It's made with the help of two libraries:
Ultrasonic.h by Erick
Simões;
Servo.h;
The support base is made of cardboard. But you can use any material you want.
On the right side there is a space for an external battery.
The CreationOtto was created on 01/04/2021 in a single day. I want ot make it just for fun. The materials are not the best but still resistant enough. The entire base is made of recycled cardboard. Inside the cardboard there is the Servo that makes the Ultrasonic sensor move.
The Ultrasonic sensor is on the Servo that makes it move. Otto scan the surrounding area with the dealy of 5 seconds. It scan 30 degrees at a time until it get to 180 degrees. After that, turn back.
This is an example of 30 degrees scan:
angle =0;
digitalWrite(led1, HIGH);
servo.write(angle);
delay(100);
digitalWrite(led1, LOW);
digitalWrite(led2, HIGH);
Serial.print("Distance in cm: ");
Serial.println(ultrasonic.distanceRead());
delay(5000);
Comments
Please log in or sign up to comment.