
DIY Uncertainty
oamodular/uncertainty
This readme needs to be updated to reflect this and to talk about the many other languages that people have used to create new firmware for Uncertainty.

Repository for Nerdvana Romania's Cancer robot in the World Robot Olympiad 2025, Future Engineers Category.
Build diagrams is an open-source printed circuit board by mihaipriboi, from the mihaipriboi/WRO_Future_Engineers_2025 repository on GitHub, published under the MIT licence. It is a 2-layer board of 80 × 62 mm with 17 parts on 68 nets, routed with 196 tracks and 0 vias.
It is built around the L7805CV. Its parts include 5 ICs, 1 capacitor and 1 switch. It belongs with the robots and motor control boards and the ESP32 and AVR (ATmega, ATtiny) boards of this library.

This repository contains the documentation for the Nerdvana Cancer team's robot for the 2025 World Robot Olympiad Future Engineers competition. The robot, was designed and built by a team of three students.
Age: 19
University: 1st year, Delft University of Technology
Description: Hello! I'm Victor from Romania, and I'm very excited for my third WRO season. After competing in RoboMission, I moved to the Future Engineers category last year for a new challenge. I'm proud to say I placed 7th in the international competition in Istanbul! I've come back this year, eager to upgrade our robot and hopefully place even higher. Starting this year I took my passion for robotics into an exciting new hobby: working on the electronics for the dashboard of the TU Delft Formula Student Team. Outside of robotics, I'm a huge nerd: from coding and engineering, to photography, cinema, music, guitar, and even Formula 1.
Age: 20
University: 2nd year, University of Bucharest
Description: Wassup y'all! My name is Teodor, and I love traveling and experiencing new things. Since I was a kid, I've always been drawn to solving puzzles, playing basketball, discovering new inventions, and thinking of creative ways to do things. Also, I know how to do a backflip. 🤠
Age: 20
University: 2nd year, Politehnica University of Bucharest
Description: Hello! I am Mihai! I've been participating at WRO since 2015 and I am very excited to be part of the Nerdvana Romania team. My academic passions are programming, physics and robotics, but I also enjoy playing the piano 🎹, whatching movies 🎬, traveling ✈️ and Formula 1 🏎️🏁.
Nerdvana Romania Founder
Role: Coach
Description: Hard working young man, objective driven and ready for the long haul. I like challenges and I never back down. The harder, the better. I like being pushed over my limits just to prove myself I can do better.
Very social, I can easily blend in a team. Like to communicate a lot with others and to coordinate with other teammates. I was led and I led teams to certain objectives. I believe the only way to get where you want is to never stop trying and to never give up until you reach your destination.
Nerdvana Romania Founder
Role: Manager
Description: I am a very ambitious person, I like to work hard and to be involved in many projects. I am a very organized person and I like to have everything planned. I am a very sociable person and I like to communicate with people. I am a very responsible person and I like to take care of everything that is happening around me. I am a very creative person and I like to come up with new ideas. I am a very determined person and I like to achieve my goals.
The WRO 2025 Future Engineers - Self-Driving Cars challenge invites teams to design, build, and program a robotic vehicle capable of driving autonomously on a racetrack that changes dynamically for each round. The competition includes two main tasks: completing laps while navigating randomized obstacles and successfully performing a precise parallel parking maneuver. Teams must integrate advanced robotics concepts such as computer vision, sensor fusion, and kinematics, focusing on innovation and reliability.
This challenge emphasizes all aspects of the engineering process, including:
Points are awarded based on performance in the challenge rounds, quality of the engineering documentation, and the ability to create an innovative and robust solution. The goal is to inspire STEM learning through real-world robotics applications, teamwork, and creative problem-solving.
Learn more about the challenge here.
![]() | ![]() |
|---|---|
| Front | Back |
![]() | ![]() |
| Left | Right |
![]() | ![]() |
| Top | Bottom |
We have been participating in the Future Engineers category since 2022, the first year it was introduced in Romania. While our team has seen some changes in membership over the years, we have consistently worked together to build on our experiences. Throughout this time, we have grown and evolved, both in our skills and in our approach to robotics, developing increasingly sophisticated strategies and designs with each competition.
![]() | ![]() |
|---|---|
| 2022 National Competition | |
![]() | ![]() |
| 2022 International Competition | |
![]() | ![]() |
| 2023 National Competition | |
![]() | ![]() |
| 2023 International Competition | |
![]() | ![]() |
| 2024 National Competition | |
![]() | ![]() |
| 2024 International Competition | |
![]() | ![]() |
| 2025 National Competition | |
![]() | ![]() |
| 2025 International Competition |
Our first robot, built for the 2022 Future Engineers competition, was a large, bulky, and mostly Lego-based design, building on our previous experience with RobotMission (which was exclusively Lego Mindstorms). We experimented with adding more advanced components, including a Raspberry Pi 3 with a Pi Camera for object detection, a non-Lego motor and servo, and an Arduino to handle the electronics interface. The Raspberry Pi and Arduino communicated through a custom handshake, and we added ultrasonic sensors for wall and object detection.
3D printing was used minimally, mainly to hold components in place, with some parts even “floating” on cables. Cabling was improvised, using standard-length mother-to-mother wires without much organization. Power was supplied by a small battery pack holding six AAA rechargeable cells. Overall, it was a beginner-level robot: heavy, slow, and cumbersome, with limited processing power and a program that was challenging to run efficiently. At this stage, it did not yet have a name, unlike our later tradition of giving each robot an identity.
The idea was mostly the same as our first robot: a Lego-heavy build, but much sturdier than the flimsy predecessor. Electronics were upgraded with a faster Arduino Nano Every, and we added another ultrasonic sensor at the front for wall detection going forward, along with a bigger, stronger servo. The steering system was still imprecise, the motor remained slow, and cables were everywhere (classic “spaghetti style”).
Perhaps the biggest change was the addition of an MPU6050 gyro, which significantly improved driving straight and performing precise maneuvers, a component we would keep in our designs going forward (though we later found even better options).
Despite the imperfections, with a lot of hard work, some fair bit of luck, and sheer motivation, we managed to rank 8th place. Looking back, as we would see in the following year, the other teams were just as inexperienced, but learning quickly, a reminder that Future Engineers is as much about growth as competition.
This robot was a major tipping point for us. The base and powertrain were still Lego, but nothing like before. They were rigid, smaller, and efficient, using only what was necessary. Mechanically, this is probably my favorite robot, and the most distinct one.
We implemented an AWD system with three differentials (front, back, and a middle differential actuated directly by the motor), which was bigger, more powerful, and faster than before. The camera was upgraded to a PixyCam, removing the need for the Raspberry Pi and allowing the Arduino to handle the input from the trained camera. Crucially, we added two cameras at angles, giving us large coverage of the map.
Electrically, this was a huge leap. We moved from messy cables everywhere to a prototyping board that organized all components, with dedicated, custom-made cables to reach detached components. We also added small but useful features: a display to see data when not connected to a laptop, and a LiPo battery (larger capacity, higher voltage, lighter, smaller, and easily swappable).
Steering angle was still quite bad, and the code was complicated, messy, and hardly consistent, but the AWD system solved a major issue of losing power in turns. We also upgraded the gyro to a BMI088, which we still use today. Overall, smaller than before but still not tiny, this robot showed a significant evolution in mechanical design, electronics, and vision, laying the foundation for our future builds.
This robot brought major changes to our design. The frame was now fully 3D-printed, replacing the big, flexible Lego structure with a monocoque that was lighter, stiffer, and more compact. However, the wheels, differential, and steering system were still Lego, as printing such small components proved too brittle, introduced friction, and reduced precision (not that Lego is precise anyway).
We experimented with a 360° LiDAR, which in theory allowed us to see all walls and obstacles from any angle at any time. Our main programmer, Teo, wrote brilliant code for detecting them consistently and efficiently. The large LiDAR and its height limitations forced compromises: no AWD system this time, as fitting it alongside the LiDAR was impossible. We also reduced to a single camera, relying on the LiDAR for obstacle detection while the camera captured object color and position for tracking.
Electronics were upgraded to a much faster Teensy microcontroller, offering frequencies magnitudes higher than the Arduino Nano Every. This came with compatibility challenges and sparse documentation, but we managed to make it work. Cable management finally improved, though some wires were still visible. Steering precision improved, but not dramatically.
Going to Panama, we were confident, but color calibration issues due to lighting differences affected performance. The robot was inconsistent, and we managed the situation worse than we could have, resulting in 17th place. Meanwhile, other teams had advanced significantly with brilliant solutions we hadn't considered.
Despite the setback, this experience reinforced the essence of Future Engineers: learning, communicating, and sharing knowledge. We gained as much as we could, returned home, and immediately started designing a new, better robot, determined to surpass everything we had built before.
Oops! We decided to hold off on naming our best robot yet, which resulted in forgetting to give it a proper name at the national competition :). This robot represented the culmination of everything we had learned over the previous two long (at least it felt like it) years in Future Engineers.
Design and mechanics: Lego was minimal, just for mounting the big wheels (which we had been using for a while and saw no reason to change) and the differential (still for friction reasons). Everything else was 3D-printed, modular, and lightweight, made from translucent yellow PLA, our club color. It followed the trend: smaller, lighter, faster, and fully visible, no hidden parts, random Lego pieces, oversized LiDARs, or messy cables.
Electronics and control: We returned to Arduino for better documentation and integration (though that model had firmware issues and could break easily. One could hope!). The microcontroller was an Arduino ESP32 Nano, providing speed and wireless programming capabilities (though we ended up sticking with wired uploading due to web app limitations).
Vision and sensing: We upgraded from the PixyCam to an OpenMV camera, programmable in Python, supporting object detection with machine learning, fine-tuned resolution, FPS, and exposure settings. Distance from cubes and walls was now derived directly from the camera, eliminating the need for distance sensors.
Steering and performance: We built a custom parallelogram steering system, simple but effective. But, with large wheels, a faster motor, and reduced weight, high-speed corners caused the front wheels to skid. To solve this, we added weights over the front of the body, improving friction and stability.
This robot combined all the lessons from past competitions: modularity, lightness, precision, speed, and simplicity. It was the first design where everything we wanted actually came together, setting the stage for our international competition robot later that year.
This was the same base as our previous national robot (finally with a proper name), with the focus shifting mostly to code refinement. We worked on making the program as efficient and reliable as possible, but mechanical challenges persisted.
Despite being quite light (~300 g), the robot still skidded in high-speed corners. To counteract this, we added weights over the front wheels to improve grip, which caused the rear to lift during acceleration. Adding rear weight again shifted the problem to the front: a vicious cycle. Ultimately, the robot reached almost 600 g, and we also switched to PLA-CF filament (PLA with carbon fibers) for increased strength, which helped the thin steering pieces survive the competition.
Performance at Istanbul ranked us 7th place. It wasn't our highest potential, and while saying we were "disappointed" might be too strong, we were definitely not fully satisfied. Skidding, imprecise steering, and camera issues from auto-exposure and other settings prevented us from performing as well as in testing. This experience highlighted exactly what we needed to focus on for the next edition: minimizing skidding, improving steering precision, and resolving camera reliability issues.
For the national competition, we used the same robot with targeted upgrades. The OpenMV camera was replaced with a newer, more powerful model, offering higher resolution, faster FPS, and additional options for object detection. Its microcontroller was upgraded as well, improving processing speed and reliability.
With these changes, we were confident that previous camera issues would be resolved. Other mechanical and design aspects remained the same, allowing us to focus on fine-tuning and testing while simultaneously developing the next-generation robot. This strategy ensured we could maximize performance at the national level while preparing for the next step in our evolution.
Following the trend of evolution, our current robot is smaller, faster, more precise, and highly custom-made. Every aspect of the design reflects lessons learned from previous years.
Mechanical design:
Electronics:
Performance:
This robot represents the culmination of four years of experience: compact, fast, lightweight, and precise. With improved electronics, optimized mechanics, and programmable vision, it's now up to us to make the best of it in the next competitions.
The robot's mobility is managed by a combination of components, including the powertrain, steering system, and chassis. These elements work together to ensure the robot's smooth and efficient movement.

Between the motor and the wheels, there is a 1:2 gear ratio drivetrain that increases the speed of the robot while reducing the torque. This setup allows the robot to reach higher speeds on the track, which is essential for completing laps quickly. It's made by using a 24 teeth gear connected to the motor axle, which drives a 12 teeth gear attached to the differential input axle.

For the differential we used the work of @COPERNICON_359779 on printables.com https://www.printables.com/model/344703-lego-micro-diff-compact-modular-design/files under Creative Commons - Public Domain.

To minimize friction and maximize speed, the drivetrain combines the best of our previous Lego experience with a fully custom, precision-controlled layout. Although most structural elements are now 3D-printed, we still use two Lego axles, but only to connect with the three small internal gears of our custom 3D-printed differential. This keeps the extremely low friction and reliability of Lego's small internal gears while allowing the outer housing, tolerances, and geometry to be fully customized.
Because we transitioned to Pololu wheels, we designed a custom connector that converts the Lego axle interface to a 3 mm D-shaft, ensuring a perfectly centered, secure fit. This allowed us to retain the low-friction Lego internal gear system while benefiting from the superior grip, reduced weight, and lower rotational inertia of Pololu wheels.
The entire drivetrain is tightly enclosed inside the chassis, which was designed around it with minimal clearance. This enclosure reduces backlash, eliminates unnecessary play, and guarantees consistent alignment of the gears and axles. Every internal sliding surface is sanded, bringing friction down to nearly zero and allowing the robot to maintain high speed without compromises in stability or precision.
The result is our most efficient drivetrain yet, compact, lightweight, smooth, and engineered to take full advantage of every bit of power the motor provides.
Potential Improvements:
|
Specifications: |
Following an evaluation of different motors, we settled on a micro DC gear motor on which we attached a magnetic encoder. This motor was selected for its lightweight and compact design, which stands out among others with comparable output. Additionally, the magnetic encoder offers greater precision than its optical counterpart. We secured the motor to the chassis using a Pololu white plastic mounting bracket. As for the wheels, we used Solarbotics RW2i Wheel (internal set screw), which are 28mm diameter wheels with a 3mm D-shaft, rubber tread, and 12.7mm width, which provides excellent traction on the competition surface.
|
|
|
Where to buy the motor: https://www.pololu.com/product/3039 Where to buy the encoder: https://www.pololu.com/product/4761 Were to buy the motor bracket: https://www.pololu.com/product/1086 Where to buy the wheels: https://www.tme.eu/ro/details/pololu-1127/accesorii-pentru-robotica-si-rc/pololu/?brutto=1¤cy=RON&gad_campaignid=10591401989
Potential Improvements:
|
Specifications: |
To control the speed of the drive motor, we utilized a SparkFun Dual TB6612FNG motor driver.
Where to buy the motor driver: https://www.sparkfun.com/products/14450
Potential Improvements:

For this robot, we completely redesigned the steering system, moving away from the older parallelogram linkage and finally implementing a true Ackermann steering geometry. This upgrade allows the wheels to follow natural turning arcs, reducing slip during cornering and providing far more predictable handling at high speeds.
A major structural improvement is that the pivot point is now located inside the wheel itself, rather than outside as in previous designs. This drastically increases steering rigidity, improves response time, and eliminates a large portion of the unwanted flex that affected earlier robots.
The joints use 2 mm steel rods, which provide excellent strength-to-weight ratio and near-zero play. However, we changed the geometry of the steering linkages: the distance between the steering pivot and the tie-rod mounting point is now significantly larger. This was done intentionally to reduce the influence of servo backlash and any free movement in the servo arms. The longer lever arm means that any tiny servo play translates into much smaller unwanted wheel rotation—greatly improving precision, especially when driving straight or making micro-adjustments.
The steering knuckles, tie rod and steering column are all custom 3D-printed and tightly integrated into the chassis. The compact design reduces weight, while the enclosed mounting ensures consistent alignment and minimal lateral movement.
Overall, this is our most precise, responsive, and stable steering system to date: lighter, smoother, and far more accurate than any previous generation.



Potential Improvements:
|
Specifications: |
For steering, we selected the MG90S servo motor, favoring it for its high torque and swift response.
Where to buy the servo motor: https://cleste.ro/motor-servo-mg90s-180g.html
Potential Improvements:
Over the years, our robots transitioned from bulky, Lego-dominated builds to increasingly custom and lightweight designs. This year, the chassis is now almost entirely 3D-printed, built with PLA-CF (carbon-fiber–reinforced PLA). This material choice drastically improves stiffness, reduces flex under load, and provides far better durability than traditional PLA, especially for thin steering components and structural mounts.
By redesigning every subsystem with minimalism in mind and reducing the number of individual parts, the robot became approximately 50% lighter than last year's version while also being significantly smaller and more compact. This size reduction improves handling, center of gravity, and serviceability.
The entire chassis is tightly integrated so that all drivetrain, steering, and electronic components sit securely with minimal backlash or unwanted movement.
The chassis is organized into clear functional zones:
Rear Section: Houses the new custom 3D-printed differential, tightly enclosed to reduce vibrations and friction.
Central Section: Contains a dedicated cutout for the Li-Po battery, above which the gyro is screwed in. The custom PCB is mounted above that, screwed into the chassis as well. The compact layout ensures short signal paths and extremely clean cable management.
Front Section: Holds the servo motor, steering assembly, and the now movable camera bracket. The camera is mounted on an adjustable multi-axis bracket, allowing quick repositioning in seconds (a task that previously required major redesigns).
Overall, this year's chassis reflects a philosophy of precision, compactness, and complete customization. Every feature, from material choice to structural layout, was designed to minimize weight, reduce friction, and maximize performance.

The Camera Mount is designed to be adjustable along the horizontal axis. It screws into the chassis.

The Camera Bracket is designed to be adjustable along the vertical axis and to rotate. It screws into the Camera Mount. The OpenMV Camera lens is attached to the Camera Bracket using screws.

Potential Improvements:
The robot's power and sense management system is composed of several components, including a Li-Po battery, an Arduino Nano ESP32, an IMU sensor, and an OpenMV Cam RT1062. These components work together to provide the robot with the necessary power and sensory input to navigate its environment effectively.
|
Specifications: |
Where to buy the battery: https://hpi-racing.ro/li-po-2s-74v/acumulator-lipo-gens-ace-g-tech-soaring-450mah-74v-30c-2s1p-cu-jst-syp.html
The battery is mounted using a custom 3D-printed holder, which is secured to the chassis.
Potential Improvements:
|
Specifications: |
At previous competitions, we used many microcontrollers to manage the robot's various components. This year, we opted for the Arduino Nano ESP32, which combines the functionalities of an Arduino Nano and an ESP32. This microcontroller is capable of handling all of the robot's sensors and actuators, providing a more streamlined and efficient solution.
Where to buy the Arduino Nano ESP32: https://store.arduino.cc/products/nano-esp32
Potential Improvements:
|
Specifications: |
One importat aspect that helps the robot navigate is the inertial measurement unit (IMU). This sensor is based on BOSCH BMI088, which is a high-performance IMU with high vibration suppression. While the IMU measure the angular velocity and the acceleration of the robot, we only use the angular velocity to calculate the angle of the robot. The IMU is wired to the SDA and SCL pins and a additional interrupt pin on the arduino.
Where to buy the gyro sensor: https://www.seeedstudio.com/Grove-6-Axis-Accelerometer-Gyroscope-BMI088.html
Potential Improvements:
|
Specifications: |
The OpenMV Cam RT1062 is an improvement from last year's OpenMV Cam H7 R2, in most aspects (rezolution, processing speed, camera settings possibility). The OpenMV is a high-performance camera capable of color tracking. The best feature of this camera compared to other options (like the Pixy cam) is that is has a built-in microcontroller that can process the images and send the results to the Arduino. This way, the Arduino can focus on the robot's movement and the camera can focus on the image processing.
Additionally, we implemented a real-time feedback system using wifi that displays the detected colors and calibrated values on the camera's interface. This allows us to visually verify the accuracy of the color detection and make adjustments if necessary, while the robot is running.
Together with the Arduino Nano ESP32, the camera delivers readings at approximately 60 frames per second.
In order to have the lens separated from the camera body, we used the Camera Module Extension Cable
Where to buy the OpenMV Cam RT1062: https://openmv.io/products/openmv-cam-rt Where to buy the Camera Module Extension Cable: https://openmv.io/products/camera-module-extension-cable
Potential Improvements:
|
Specifications: |
To provide the Arduino Nano ESP32 with the required 5V, we needed to decrease the output from the 7.4V battery, which can reach up to 8.4V when fully charged. We employed a linear voltage regulator, the L7805CV, capable of converting input voltages below 35V down to a steady 5V.
Where to buy the 5V voltage regulator: https://ro.mouser.com/ProductDetail/STMicroelectronics/L7805CV?qs=9NrABl3fj%2FqplZAHiYUxWg%3D%3D
Potential Improvements:
The robot's PCB was designed using KiCad software. The PCB integrates the voltage regulator, headers for connecting the Arduino Nano ESP32, motor driver, and camera body directly on it. We used headers in order to make the connections modular and easy to disassemble if needed for maintenance or upgrades. The PCB also includes connectors for the battery, motor, servo, and IMU sensor.
| PCB Rendered |
|---|
![]() |
| Empty PCB |
![]() |
| PCB |
![]() |
Where we bought the PCB: https://jlcpcb.com/
Potential Improvements:

The motor driver can be directly managed with a single PWM pin that adjusts the motor's speed and two digital pins designated for determining the motor's rotation direction. Consequently, the use of any external library for motor manipulation was unnecessary.
We devised two functions within our control system: one to modify the motor's velocity and another to halt it effectively, incorporating a braking feature. To achieve this, we convert the desired speed from our established scale of -100 to +100 to the PWM equivalent of 0 to 1023. The motor's direction is then adjusted according to the sign of the input value.
Given the fact that the Arduino has an ESP chip, the PWM signals have to be sent using the ledc utility.
void motor_driver_setup() {
ledcSetup(DRIVER_PWM_CHANNEL, PWM_FREQ, PWM_RES);
ledcAttachPin(PWMA, DRIVER_PWM_CHANNEL);
pinMode(AIN1, OUTPUT);
pinMode(AIN2, OUTPUT);
}
void move_motor(double speed) { // move the motor with a given speed in the [-100, 100] interval
int dir = 1;
if (speed < 0) {
dir = -1;
speed *= -1;
}
else if (speed == 0) {
dir = 0;
}
speed = map_double(speed, 0, 100, 0, 1023);
if (dir == 1) { // move the motor forward
digitalWrite(AIN1, HIGH);
digitalWrite(AIN2, LOW);
}
else if (dir == -1) { // move it backwards
digitalWrite(AIN1, LOW);However, for the encoder, we required a specialized library to handle the more complex signal processing. The library we use for interfacing with the encoder is called Encoder.h.
The encoder operates with a straightforward function that we found easy to comprehend and program. In order to determine the distance in cm, we divided the returned value by 12, since the encoder measures 12 counts per revolution. Then we multiplied this with the gear ratio, wheel diameter and Pi. After that we divided by 10 to convert to cm.
Because of the way the ESP32 chip interacts with the components, in order for this library to properly work, we should select the pin numbering option as "by GPIO number", not as the default "by Arduino pin".
double read_motor_cm() { // getting the distance driven by the motor in cm
return GEAR_RATIO * WHEEL_DIAM * M_PI * (double)myEnc.read() / 12 / 10;
}For controlling the servo motor, we utilize the Servo.h library, which provides the necessary functions to manage the servo's movements. Initially, we configure the servo by establishing its range, defining the maximum and minimum angles it can achieve in both directions. This ensures that we can accurately position the servo within its operational limits.
void servo_setup() {
// attach the servo to the right pin and move it to the minimum and maximum angles
// in the end, center the servo so that we start the program moving straight
servo.attach(SERVO_PIN);
for (int deg = servo.read() - 1; deg >= ANGLE_MIN; deg--)
servo.write(deg);
custom_delay(500);
// Serial.println("after ANGLE_MIN");
for (int deg = servo.read() + 1; deg <= ANGLE_MID; deg++)
servo.write(deg);
// Serial.println("after ANGLE_MID");
for (int deg = servo.read() + 1; deg <= ANGLE_MAX; deg++)
servo.write(deg);
custom_delay(500);
// Serial.println("after ANGLE_MAX");
for (int deg = servo.read() - 1; deg >= ANGLE_MID; deg--)
servo.write(deg);
custom_delay(500);
// Serial.println("after ANGLE_MID");
goal_deg = ANGLE_MID;
}The servo motor is controlled dinamically in the loop by setting a goal angle and taking small steps towards that goal at every iteration. This way we make sure that we can send a lot of fast angle changes to the servo and get the wanted results.
The function move_servo sets the goal angle to the given parameter. If the angle is negative the motor will rotate to the right, and if it is positive, the motor will rotate to left. This way, 0 is going to be the position in which the wheels are straight. Also, the values given the motor need to be between -1 and 1, so we use a clamp function to limit the value we are going to give the motor to rotate to and an interval mapping function to map the parameter from the [-1; 1] interval to the [ANGLE_MIN; ANGLE_MAX] interval.
The function update_servo takes a small step towards the goal angle as described above.
void move_servo(double angle) { // move the servo to the angle checkpoint by setting the goal degrees to the angle value
goal_deg = map_double(angle, -1, 1, ANGLE_MIN, ANGLE_MAX);
}
void update_servo() { // update the servo, making it closer to the goal angle by a small step
int current_angle_servo = servo.read();
if (abs(current_angle_servo - goal_deg) >= ANGLE_VARIANCE_THRESHOLD) { // if we're too far off, directly write the new angle
servo.write(goal_deg);
}
else {
// increment the angle with a small step in the right direction
// making sure we don't exceed our angle limitations
if (current_angle_servo < goal_deg) {
servo.write(min(current_angle_servo + STEP, ANGLE_MAX));
}
else if (current_angle_servo > goal_deg) {
servo.write(max(current_angle_servo - STEP, ANGLE_MIN));
}
}
}
void loop() {
// other code
update_servo();
}Now that we finished implementing the functions that we need to make the robot move and steer, we have to make it see the lines that trigger the turns, the cubes and the parking walls and move accordingly. To communicate with the camera, we use the UART protocol. In order for this to work, we must link the RX0 pin on the arduino (the receiver pin) to the P4 pin on the camera (the transmitter pin) and the TX1 pin on the arduino (the transmitter pin) to the P5 pin on the camera (the receiver pin). In addition, the baud rates from the Serial0 object on the arduino and the uart object on the camera must match.
Arduino code:
void comm_setup() {
Serial.begin(9600);
// while(!Serial);
blink_led(LED_BUILTIN, 500);
Serial0.begin(19200);
while(!Serial0); // wait for the serial to properly initialize
blink_led(LED_BUILTIN, 500);
receivedMessage = "";
}
void loop() {
// execute pending commands
while (Serial0.available() > 0) { // if we have some characters waiting
char receivedChar = Serial0.read(); // we get the first character
if (receivedChar == '\n') { // if it's the end of message marker
if (CASE != PARK) { // if we want to execute commands
execute(receivedMessage); // execute the received command from the OpenMV camera
}
receivedMessage = ""; // reset the received message
}
else {
receivedMessage += receivedChar; // append characters to the received message
}
}
}Camera code:
# setup UART connection to arduino
uart = UART(3, 19200)
# 3 - the uart config, meaning that we use pins P4 as the transmitter, P5 as the receiver
# 19200 - baud rate aka frequency, must match the one set up on the arduino
# because we have a one-sided communication going on
# we can directly write messages without any supplementary checks
uart.write(msg)In order to detect colors, we have to take pictures in which to search for colors. This is the sequence that sets up the camera sensor. Due to the limitations of the sensor, we couldn't manually adjust the white balance, gain, exposure time or access its registries.
import sensor
# initialize the sensor
sensor.reset()
sensor.set_pixformat(sensor.RGB565)
sensor.set_framesize(sensor.QQVGA)
#sensor.set_framerate(40)
sensor.set_vflip(True)
sensor.set_hmirror(True)
# disable auto gain, white balance, and exposure
sensor.set_auto_gain(False) # must be turned off for color tracking
sensor.set_auto_whitebal(False) # must be turned off for color tracking
sensor.set_auto_exposure(False, exposure_us=10000) # set constant exposure for the best visibility
# skip some frames to let the camera adjust
sensor.skip_frames(time=2000)Now for the camera logic, the color tracking is pretty simple: the camera can return blobs of pixels that fit into a certain LAB threshold representing a color. We can also restrain the blob detection to a rectangle of interest and apply pixel count, bounding rectangle area and density filters as well. The reason for which we do this, is that certain colors, like green, red, blue and orange are pretty common, therefore we don't want the camera to interpret clothes or other objects outside of the map as obstacles. In addition, the orange and red colors, in some light conditions, are quite similar. This is why we apply the pixel count, bounding rectangle area and density filters, to ensure that we are seeing the correct object.
For quali we firstly scan the color of the first seen line. This will give us the direction of the run. Then, we constantly look out for lines that are over a certain area. Once we find one, we send the turn trigger to the Arduino via UART.
while (True):
clock.tick()
img = sensor.snapshot()
# find the coloured blobs corresponding to the turn lines
orange_blobs = img.find_blobs(orange_threshold, roi=lines_roi, pixels_threshold=line_blob_size, area_threshold=line_blob_size, merge=True)
blue_blobs = img.find_blobs(blue_threshold, roi=lines_roi, pixels_threshold=line_blob_size, area_threshold=line_blob_size, merge=True)
orange_blob_w = None
orange_blob_h = None
max_width = 0
max_height = 0
for blob in orange_blobs:
if blob.w() >= img.width() * 0.4: # if it meets the minimum width requirement
if blob.w() > max_width: # if it's the biggest blob yet
max_width = blob.w()
orange_blob_w = blob # biggest blob on the width
if blob.h() >= lines_roi[3] * 0.4: # if it meets the minimum height requirement
if blob.h() > max_height: # if it's the biggest blob yet
max_height = blob.h()
orange_blob_h = blob # biggest blob on the height
# if we have a blob meeting either the minimum width or height requirement we remember it
orange_blob = orange_blob_w
if not orange_blob:To utilize the gyro sensor, we needed to include the BMI088.h library. During initialization, we allocate a 10-second window to measure the sensor's drift, allowing us to refine the robot's angular readings for greater precision. Additionally, we configure the sensor's output data rate to 400Hz and set the bandwidth to 47Hz. The bandwidth determines the frequency of data sampling by the sensor; a higher bandwidth yields more precise data at the cost of increased power consumption. We also designate pin A6 as an input and attach an interrupt to it, enabling us to capture data from the sensor as soon as it becomes available.
void gyro_setup(bool debug) {
int status = accel.begin();
status = accel.setOdr(Bmi088Accel::ODR_200HZ_BW_80HZ);
status = accel.pinModeInt1(Bmi088Accel::PUSH_PULL,Bmi088Accel::ACTIVE_HIGH);
status = accel.mapDrdyInt1(true);
status = gyro.begin();
status = gyro.setOdr(Bmi088Gyro::ODR_400HZ_BW_47HZ);
status = gyro.pinModeInt3(Bmi088Gyro::PUSH_PULL,Bmi088Gyro::ACTIVE_HIGH);
status = gyro.mapDrdyInt3(true);
pinMode(INT_PIN,INPUT);
attachInterrupt(INT_PIN,gyro_drdy,RISING);
if(status < 0) {
if(debug){
Serial.print("BMI Initialization Error! error: ");
Serial.println(status);
}
}
else {
// Gyro drift calculation
if(debug) Serial.println("Starting gyro drift calculation...");Within the read_gyro function, we're retrieving data from the gyro sensor and adjusting it to account for any detected drift, enhancing the accuracy of the readings. Since the gyro provides data in radians, a conversion to degrees is necessary for our application. We're focusing solely on the rotation around the x-axis, hence we only compute the gx value, which represents the robot's angular rotation in degrees on that specific axis.
void read_gyro(bool debug) {
if(gyro_flag) {
gyro_flag = false;
gyro.readSensor();
double read_time = millis();
gx += ((gyro.getGyroX_rads() - drifts_x) * (read_time - gyro_last_read_time) * 0.001) * 180.0 / PI;
// gy += ((gyro.getGyroY_rads() - drifts_y) * (read_time - gyro_last_read_time) * 0.001) * 180.0 / PI;
// gz += ((gyro.getGyroZ_rads() - drifts_z) * (read_time - gyro_last_read_time) * 0.001) * 180.0 / PI;
gyro_last_read_time = read_time;
if(debug) {
Serial.print("Gyro: gx: ");
Serial.println(gx);
// Serial.print(" gy: ");
// Serial.print(gy);
// Serial.print(" gz: ");
// Serial.println(gz);
}
}
}For the qualifying round, we set up a basic switch-case system to guide our robot. This system tells the robot what to do next, depending on where it is. The robot knows where it is by counting how many times it has turned.
We use two main switch cases: PID and STOP_QUALI.
In the PID case, the robot moves straight and turns. It uses a special tool (PID controller) with a gyro sensor to stay on a straight line. If it sees a corner line, it gets a trigger from the camera to make a turn by adding 90 degrees to the goal angle.
case PID: {
check_and_execute_turnaround(gx);
double err = current_angle_gyro - gx;
if (millis() - last_rotate > FIRST_STOP_DELAY && turns >= 12) { // if we did 3 runs of the round
if (FINAL) {
CASE = STOP_BEFORE_FIND_PARKING; // we need to stop and search for the parking
}
else {
CASE = STOP_QUALI; // stop, challenge over
}
}
else {
// classic pid on the gyro so that we can move straight
pid_error_gyro = (err) * kp_gyro + (pid_error_gyro - pid_last_error_gyro) * kd_gyro;
pid_last_error_gyro = pid_error_gyro;
move_servo(pid_error_gyro);
}
move_motor(MOTOR_SPEED);
break;
}
case STOP_QUALI: {
// we finished the challenge, stop the robot
move_until_angle(MOTOR_SPEED, current_angle_gyro);
For the final round, we based our controller algorithm on the quali code, adding a PID controller on the camera to follow the closest cube until it is in its proximity. In order to get the closest cube to the robot we just search for the biggest red or green coloured blob in the image. After we're in the cube's proximity, we send a trigger from the camera to the arduino with the cube color so that we can start avoiding it.
img = sensor.snapshot()
# find the coloured blobs corresponding to the cubes
red_blobs = img.find_blobs(red_threshold, roi=cubes_roi, pixels_threshold=min_cube_size, area_threshold=min_cube_size, merge=True)
green_blobs = img.find_blobs(green_threshold, roi=cubes_roi, pixels_threshold=min_cube_size, area_threshold=min_cube_size, merge=True)
msg = "0\n"
max_area = 0
color = 'none'
saved_cube = None
for blob in red_blobs: # for every red blob
# if they're passing the height and density filters
# we're keeping the biggest one and its color
if is_cube(blob, orange_blob, parking_blobs) and blob.area() > max_area:
max_area = blob.area()
saved_cube = blob
color = 'red'
for blob in green_blobs: # for every green blob
# if they're passing the height and density filters
# we're keeping the biggest one and its color
if is_cube(blob, blue_blob, parking_blobs) and blob.area() > max_area:
max_area = blob.area()
saved_cube = blob
color = 'green'

The arduino part is quite simple, consisting of the quali switch but with two extra cases: FOLLOW_CUBE and AFTER_CUBE. In the FOLLOW_CUBE case we just write to the servo the steering angle calculated by the PID algorithm ran on the camera. After we get the proximity trigger from the camera, we have a custom function called pass_cube which steers us away from the cube and puts us in the AFTER_CUBE state. This case consists of two substates: in the first one the robot steers in the opposite direction to center itself again and the second one in which the robot uses a PID with the gyro to move an additional distance so that we're perfectly positioned to see the next cube. After that, we go back to the default PID case that is used in the quali code.
// hardcoded sequence that avoids a cube
void pass_cube(int cube_last) {
int angle_addition = 0;
if (cube_last == 1) // due to a slight asymmetry in the steering, when avoiding red cubes we need to steer less
angle_addition = -9;
read_gyro(false);
int start_angle = gx;
move_until_angle(MOTOR_SPEED, start_angle - cube_last * (AVOIDANCE_ANGLE + angle_addition)); // steer away from the cube
// gain some distance
if (abs(current_angle_gyro - start_angle) >= 10) // if we passed by it while crooked in regards to the goal line we need to overcompensate in order to see the next cube
move_cm_gyro(16, MOTOR_SPEED, start_angle - cube_last * (AVOIDANCE_ANGLE + angle_addition));
else
move_cm_gyro(7, MOTOR_SPEED, start_angle - cube_last * (AVOIDANCE_ANGLE + angle_addition));
CASE = AFTER_CUBE;
}case FOLLOW_CUBE: {
check_and_execute_turnaround(gx);
if (millis() - last_rotate > FIRST_STOP_DELAY && turns >= 12) { // if we did 3 runs of the obstacle round, we need to stop and search for the parking
CASE = STOP_BEFORE_FIND_PARKING;
}
else {
if (millis() - last_follow_cube > FOLLOW_CUBE_DEAD_TIME) // if we lost the cube, we just go back to the default PID case
CASE = PID;
// write to the servo the pid computed on the camera in order to follow the cube
move_servo(follow_cube_angle);
move_motor(MOTOR_SPEED);
}
break;
}
case AFTER_CUBE: {
check_and_execute_turnaround(gx);
if (millis() - last_rotate > FIRST_STOP_DELAY && turns >= 12) { // if we did 3 runs of the obstacle round, we need to stop and search for the parking
CASE = STOP_BEFORE_FIND_PARKING;
}
else {
double err = current_angle_gyro - gx + cube_last * CORRECTION_ANGLE;
if (abs(err) < 5) {
// after we avoid the cube, move forward a bit more so that we're positionedThe next challenge in this round consists in the final turnaround. If the last seen cube is red, we need to do a roundabout and complete the last lap in the opposite direction. The way we deal with this is a function that checks if we should turn around and executes it if necessary. This function is called in the PID, FOLLOW_CUBE and AFTER_CUBE cases.
void check_and_execute_turnaround(double gx) {
// if we didn't do the turnaround yet
// and we did 2 runs of the map
// and the last seen cube is red
// and some time passed since the 8th turn
// (so that we can see the first cube in the starting sequence in case this sequence had 2 cubes and we spawned between them)
if (!FINAL)
return;
if (!TURNED && turns == 8 && cube_last == 1 && millis() - last_rotate > TURNAROUND_DELAY) { // may have to take out the time condition for any case except AFTER_CUBE
move_until_angle(MOTOR_SPEED, current_angle_gyro + turn_direction * TURNAROUND_ANGLE);
if (-cube_last == turn_direction) { // if i avoided the cube on the inside, i don't have too much room
move_cm_gyro(5, MOTOR_SPEED, current_angle_gyro + turn_direction * TURNAROUND_ANGLE); // position ourselves so that we have room to turn around
}
else {
move_cm_gyro(17, MOTOR_SPEED, current_angle_gyro + turn_direction * TURNAROUND_ANGLE); // position ourselves so that we have room to turn around
}
turn_direction *= -1;
current_angle_gyro += turn_direction * 180;
move_until_angle(MOTOR_SPEED, current_angle_gyro + turn_direction * TURNAROUND_ANGLE);
TURNED = true;
CASE = PID;
}
}The final challenge in this round consists in parking the robot. The way we implement this is based on the quali. Basically we want to move as close to the outer walls as possible so that we're perfectly positioned for the parking and avoid all of the cubes. How we achieve this is by going perpendicular to the outside walls after we finish the obstacle round (see the POSITION_BEFORE_FIND_PARKING case). The goal is to position ourselves as close as possible to them. After we receive a trigger from the camera saying that we're in its proximity, we straighten ourselves out and start the basic quali code.
While moving around the map like this (in the FIND_PARKING case), we are constantly scanning for magenta blobs that represent the parking walls. When we detect them, we send a trigger from the camera to the arduino and then we have a hardcoded sequence that puts us between the walls, perfectly parallel to them, implemented in the POSITION_FOR_PARK case. After that, we move straight in order to get closer to the outer wall (see the PARK case). When we receive the trigger from the camera, move a couple of cm straight and stop the robot.
Camera code:
# find the coloured blobs corresponding to the parking walls
parking_blobs = img.find_blobs(parking_threshold, roi=parking_roi, pixels_threshold=parking_blob_size_min, area_threshold=parking_blob_size_min, merge=True)
parking_wall_blob = get_biggest_blob(parking_blobs)
# find the coloured blobs corresponding to the outside walls
wall_blobs = img.find_blobs(black_threshold, roi=wall_roi, pixels_threshold=wall_blob_size, area_threshold=wall_blob_size, merge=True)
outer_wall = get_biggest_blob(wall_blobs)
if is_parking_wall(parking_wall_blob):
# if we saw the parking walls, send the parking trigger
uart.write('P\n')
if wall_blobs:
# if the wall is big enough, send a slightly different message that helps us when parking
# if not, send the classic one
if outer_wall.pixels() >= wall_roi_area and outer_wall.area() >= wall_roi_area:
uart.write('WP\n')
else:
uart.write('W\n')
Arduino code:
case STOP_BEFORE_FIND_PARKING: {
// straighten ourselves, start searching for the parking
motor_break(1000);
CASE = POSITION_BEFORE_FIND_PARKING;
break;
}
case POSITION_BEFORE_FIND_PARKING: {
// classic pid on the gyro so that we can move perpendicular to the walls
// we don't just call the move_until_angle function so that we can still execute commands
double err = current_angle_gyro - gx - turn_direction * 90;
pid_error_gyro = (err) * kp_gyro + (pid_error_gyro - pid_last_error_gyro) * kd_gyro;
pid_last_error_gyro = pid_error_gyro;
move_servo(pid_error_gyro);
move_motor(MOTOR_SPEED);
break;
}
case FIND_PARKING: {
// classic pid on the gyro so that we can move straight
// basically immitating a quali run until we find the parking spot
double err = current_angle_gyro - gx;
pid_error_gyro = (err) * kp_gyro + (pid_error_gyro - pid_last_error_gyro) * kd_gyro;
pid_last_error_gyro = pid_error_gyro;Arduino code:
In order to clean up the code, we designed some additional functions. Whenever we want to call locomotion functions or delay functions, functions that would break the continuity of the loop function, we must do two things to make sure everything keeps working: flush the characters sent by the camera (using the flush_messages function) and read the gyro data. That's why we implemented a custom delay function and our locomotion functions are a bit atypical.
void flush_messages() { // flushing messages like this so that we don't get sections of messages
// improves the stability of the communication
while (Serial0.available() > 0) { // if we have some characters waiting
char receivedChar = Serial0.read(); // we get the first character
if (receivedChar == '\n') { // if it's the end of message marker
receivedMessage = ""; // reset the received message
}
else {
receivedMessage += receivedChar; // append characters to the received message
}
}
}
void custom_delay(long long delay_time) { // delay function that flushes all of the data
long long start_time = millis();
while (millis() - start_time < delay_time) {
read_gyro(false);
flush_messages();
}
}Functions used for locomotion:
// makes the robot move until it reaches a certain gyro angle
void move_until_angle(double speed, double gyro_offset) {
int sign = 1;
if (speed < 0) // if we're moving backwards, we need to steer in the opposite direction
sign = -1;
read_gyro(false);
double err = gyro_offset - gx;
while (abs(err) >= 10) { // while the error is too big
// pid on the gyro so that we're moving towards the goal angle
read_gyro(false);
err = gyro_offset - gx;
pid_error_gyro = (err) * kp_gyro + (pid_error_gyro - pid_last_error_gyro) * kd_gyro;
pid_last_error_gyro = pid_error_gyro;
move_servo(pid_error_gyro * sign);
update_servo();
move_motor(speed);
flush_messages();
}
}
// makes the robot move a certain distance at a certain gyro angle
void move_cm_gyro(double dis, double speed, double gyro_offset) {
double start_cm = read_motor_cm();
int sign = 1;Lastly, we receive multiple types of commands from the camera, from different triggers, to cube following and avoiding commands. All of these take various forms, therefore we need a function that parses every command and executes it. This is where the execute and valid_command functions come in handy. The execute function executes the command only if the valid_command function says it's valid.
bool valid_command(String cmd) { // function that checks the validity of a command received from the camera
if (cmd == "")
return false;
if ('0' <= cmd[0] && cmd[0] <= '9') {
if (cmd[0] > '2' || cmd[0] == '0')
return false;
if (cmd.length() != 1)
return false;
}
if (cmd[0] == '+' || cmd[0] == '-' || cmd[0] == '.')
return false;
return true;
}
// function that parses a command and executes it
void execute(String cmd) {
if (!valid_command(cmd))
return;
// the following sequence gets the number from the command (if available)
int pos = 0, sign = 1;
if (cmd[pos] == 'r' || cmd[pos] == 'g')
pos++;
// manually going over the signs since the .toDouble function wouldn't parse them on its ownCamera code:
In order to make the robot more stable in any light conditions, we had to make sure that the red, orange and magenta, respectively the green and the blue colors don't get confused in the color detection process. That's why in order to ensure the best accuracy we fine tuned our color thresholds so that we can never see magenta/orange on a red cube or blue on a green cube. The problem that remained is that we saw red in magenta/orange and green in blue. That's why we came up with a simple solution: if a red/green blob is inside another blob that can be mixed up with, such as a line blob or a parking wall blob, we simply ignore it, as it is a false cube detected.
# detects if a blob is partially inside another blob
# by checking if the center of one blob is inside the minimum area rectangle that wraps the other blob
# giving the fact that this rectangle may be crooked, we have to use a special algorithm
# that is designed to check whether a point is inside a polygon or not based on the coordinates
def is_blob_in_blob(blob, blob2):
if not blob2:
return False
polygon = blob2.min_corners()
num_vertices = len(polygon)
(x, y) = (blob.cx(), blob.cy())
inside = False
# store the first point in the polygon
(p1x, p1y) = (polygon[0][0], polygon[0][1])
# loop through each edge in the polygon
for i in range(1, num_vertices + 1):
# get the next point in the polygon
(p2x, p2y) = (polygon[i % num_vertices][0], polygon[i % num_vertices][1])
# check if the point is above the minimum y coordinate of the edge
# check if the point is below the maximum y coordinate of the edge
# check if the point is to the left of the maximum x coordinate of the edge
if y > min(p1y, p2y) and y <= max(p1y, p2y) and x <= max(p1x, p2x):In addition, we created the following functions in order to avoid code repetition or to break down complicated conditions.
# function that gets the biggest blob by size
def get_biggest_blob(blob_array):
max_area = 0
max_blob = None
for blob in blob_array:
# we're keeping the biggest parking blob
if blob.area() > max_area:
max_area = blob.area()
max_blob = blob
return max_blob
# checks if a parking wall blob meets the height and size requirements
def is_parking_wall(blob):
if not blob:
return False
if blob.pixels() >= parking_blob_size_trigger and blob.area() >= parking_blob_size_trigger:
return True
if blob.h() >= parking_blob_height_trigger:
return True
return FalseThe part files can be found in the 3d-models folder. We used and recommend the BambuLab X1-Carbon 3D printer, with the following settings:
Mount the servo on the chassis using 2 zip ties, make sure to cut the excess of the zip ties so it doesnt interfere with the steering arm.
Attach the steering column to the servo using a ⌀ 2mm metal rod, approximately 4mm in length.
Attach the tie rod to the steering column using a ⌀ 2mm metal rod, 10mm in length.
Hold the steering knuckles between the chassis and the tie rod and attach them with two ⌀ 2mm metal rod, 10mm in length.
Attach the wheels to the steering knuckles using 3mm d-shaft rods, approximately 15mm in length.
Attach the motor to the chassis using the motor bracket and M3 screws.
On the motor, attach the 24tooth spud gear.
The differential should have 3 Gear 12 Tooth Bevel(6589) inside it. Hold the differential in the designated stop at the back of the chassis, attach it using lego Axles 3L. Insert the 2 powertrain parts on each Axles 3L. Insert a 15mm D-shaft rod on each of the powertrain parts. Put the wheels on the D-shaft rods.
Solder the components on the pcb according to the electrical diagram. We recommend using soldering sockets for the Arduino and the motor driver so that they can be easily removed if needed.
Place the battery in the place provided in the chassis.
Attach the IMU to the chassis using screws. Soulder a wire on the IMU on the INT1 pin.
Screw the pcb to the chassis using M3 screws, using 10 mm spacers in the front.
Attach the camera mount to the chassis using screws.
Attach the camera bracket to the camera mount using screws.
Attach the camera to the camera mount using screws. Angle the camera slightly downwards so that it has a better view of the ground in front of the robot.
Connect all the wires according to the electrical diagram. The camera should be connected to the Arduino using the UART protocol. The IMU should be connected to the Arduino using the I2C protocol. The wires can be store bought, or you can make them yourself. We custom-made our wires to achieve the exact lengths needed and combined certain connections into single Dupont connectors—for example, the camera power, camera UART, and IMU I2C wires are each grouped within individual Dupont connectors.
(Optional) All the wires that are longer than needed can be wrapped arrond the chassis to make the robot look cleaner. You can use zip ties to secure the wires in place.
Connect the Arduino to your computer using a USB cable.
Open the Arduino IDE and install the ESP32 board manager.
Upload the code to the Arduino.
Connect the OpenMV Cam to the your computer using a USB cable.
Open the OpenMV IDE and upload the code to the OpenMV Cam.
| Component | Quantity | Cost per Unit (€) | Total (€) |
|---|---|---|---|
| 30:1 Micro Metal Gearmotor HPCB 12V | 1 | 21.00 | 21.00 |
| SparkFun Motor Driver - Dual TB6612FNG | 1 | 13.00 | 13.00 |
| Motor Servo MG90S | 1 | 4.00 | 4.00 |
| LiPo Battery (450mAh, 7.4V, 30C) | 1 | 9.00 | 9.00 |
| Arduino Nano ESP32 | 1 | 24.00 | 24.00 |
| Grove - 6-Axis Accelerometer & Gyroscope | 1 | 26.50 | 26.50 |
| OpenMV Cam RT1062 | 1 | 105.50 | 105.50 |
| PCB | 5 | 2 | 10.00 |
| Metal Rods (2mm diameter, various lengths) | 6 | 0.50 | 3.00 |
| Pololu Wheels | 2 | 10.00 | 20.00 |
| Lego Gear 12 Tooth Bevel (6589) | 3 | 0.50 | 1.50 |
| Lego Axles 3L | 2 | 0.60 | 1.20 |
Total for Components: €238.70
| Filament Use | Weight (g) | Cost (€) |
|---|---|---|
| Prototypes | 500 | 12.50 |
| Final Parts | 40 | 1.28 |
Total for 3D Printing: €27.56
| Tool | Cost (€) |
|---|---|
| Bambu Lab X1 Carbon 3D Printer | 1,100.00 |
| Soldering Kit | 46.00 |
| Multimeter | 28.00 |
| Miscellaneous Tools (e.g., pliers) | 19.00 |
Total for Tools and Equipment: €1,193.00
| Category | Total (€) |
|---|---|
| Components | 238.70 |
| 3D Printing | 13.78 |
| Other Parts Tested | 150.00 |
| Tools and Equipment | 1,193.00 |
| Shipping Approximation | 100.00 |
Grand Total: €1,695.48
Note: Costs are approximate and based on current exchange rates and market prices.
To ensure the robot's ability to adapt to any course, we developed a randomizer that generates a random sequence of colors and positions for the cubes. You can find this web application at the following link: https://nerdvana.ro/wro-fe/
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
© 2025 Nerdvana Romania| Qty | Value | Footprint | References |
|---|---|---|---|
| 2 | ~ | WRO2025_footprints:ToF_VL53L0X | U4, U5 |
| 1 | Arduino_Nano_ESP32 | Module:Arduino_Nano | A1 |
| 1 | Battery | WRO2025_footprints:Battery | BT1 |
| 1 | L7805CV | WRO2025_footprints:L7805CV | U1 |
| 1 | LOGO | LOGO | G*** |
| 1 | Motor_Servo | WRO2025_footprints:Servo Motor | M2 |
| 1 | ~ | WRO2025_footprints:Switch | SW1 |
| 1 | ~ | WRO2025_footprints:DC_GEARMOTOR | M1 |
| 1 | ~ | WRO2025_footprints:BMI088 | U3 |
| 1 | ~ | WRO2025_footprints:Start Button | B1 |
| 1 | ~ | WRO2025_footprints:Motor Driver | U2 |
| 1 | ~ | WRO2025_footprints:OPENMV_H7 | C1 |
The 13 most common of 17 parts.

oamodular/uncertainty
This readme needs to be updated to reflect this and to talk about the many other languages that people have used to create new firmware for Uncertainty.



arcoslab/open-coroco-legacy
COmpliant RObot COntroller is a free software project aiming to create an impedance controller based on a stm32 microcontroller using bldc motors and strain gauges.

formulaslug/fs-3-schematics
Electrical Design Repository for fs-3 schematics and PCBs

andreasimonetto/lopielle
MIDI synth based on Yamaha OPLL FM synthesis sound chip (YM2413)

anorimaki/selfbalancing-robot
A buck converter to generate the 5V power rail would have been a better choice because it would be more efficient (extending battery life) and eliminate the need of a second battery (the circuit could be plugged with…

It measures 80 × 62 mm and has 2 copper layers, 1.6 mm thick.
17 parts, built around the L7805CV. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.
From the mihaipriboi/WRO_Future_Engineers_2025 repository on GitHub, at the commit this page was made from: the board is build-diagrams/pcb/pcb.kicad_pcb and its schematic build-diagrams/pcb/pcb.kicad_sch. PCBKit opens the board in the browser, with nothing to install.
Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).