Middle school · Robocot 2016
How it all started
First lines of C++ in after-school Arduino classes with friends, experiments with motors, an LCD, a servo and the HC-SR04, an award at Robocot 2016 and the road to embedded systems.
İbrahim Taşkıran20163 min readClasses after school
I met software in middle school. After classes, a few friends and I started joining Arduino robotics trainings. The point was never to memorise something, but to make the part we wired to the board's pins work with code we wrote ourselves. That is also where I first met C++: Arduino's setup() and loop(), variables, conditions, loops and functions were all tools we learned in order to make something move. Changing one line, uploading again and watching the part on the desk behave differently turned programming from an abstract lesson into something I could touch.
First experiments: motors, an LCD, a servo and the HC-SR04
Our first projects were small, but each one taught a new idea.
- Driving a motor. This is where we learned that a DC motor cannot be wired straight to an Arduino pin and needs a motor driver in between. Setting direction with pin states and speed with PWM was the first time I saw my code control something physical.
- Writing to an LCD. First a fixed line of text, then a live sensor reading; it taught me to add a library to a project, manage the screen line by line and make data readable.
- Running a servo. Sending the servo an angle and watching the arm move there showed me how the pulse width of a signal sets a position.
- Measuring distance with the HC-SR04. The ultrasonic sensor sends a sound pulse and measures how long the echo takes to come back. Turning that time into distance with the speed of sound was the first time I put a formula into code and read data from the real world.
Once each part worked on its own, the next step was obvious: run them all together in one program.
Putting it together: the first robot
We mounted the motors, the motor driver and an HC-SR04 at the front of a four-wheel chassis and wired everything to the Arduino one cable at a time. We wrote the C++ code that reads the distance ahead and moves the robot accordingly ourselves.

When a cable sat on the wrong pin or a motor spun the wrong way, finding the fault meant checking the code, the connections and the power one after another. That was the first version of the debugging I do on embedded systems today: separate a software problem from a hardware one, change a single thing and try again.
Robocot 2016
We exhibited the robot at Robocot 2016 and won an award in the 13-14 age category. Having written the code ourselves instead of copying a ready example makes that award mean even more to me. The feeling of building something from scratch and running it in front of people stayed the same at every hackathon and competition I joined later.
TÜBİTAK middle school competitions and the heat-sensing cup
In middle school I also took part in TÜBİTAK's research project competitions for middle school students. This time I used what I had learned in class to bring my own ideas to life.

One of those projects was a heat-sensing cup. We placed a submersible, waterproof temperature sensor inside the cup to measure the temperature of the drink. Around the rim of the cup we fitted a ring-shaped LED that changed colour according to the measured temperature, so you could tell at a glance, without touching the cup, whether the drink was hot or cold.
It was a simple project, but it was very close to the core of what I do today: read a value from a sensor, interpret it and turn the result into a signal a person understands immediately. While designing it I also thought for the first time about the small but important questions a product has to answer to work in real life: keeping the part of the sensor that touches the liquid watertight, fitting the LED around the rim, and splitting the colour change into meaningful ranges.
From curiosity to embedded systems
The curiosity that began with pulling an Arduino pin high grew into bigger questions over time: how does a microcontroller read several sensors at once, how does it send data reliably, how do you build real-time control? Following those questions is how I became an embedded software developer.
At 42 Kocaeli I went deeper into memory management and systems programming in C and C++. In TEKNOFEST Hyperloop I wrote sensor reading and telemetry software on STM32. Today I work on robotics with ROS 2 and Nav2, and on image processing and text recognition with OpenCV. The boards and tools have changed, but the approach has not: get to know the part, make it work in a small experiment, then add it to the larger system.