Skip to main content
Version: FILS English

Autonomous Light-Following Flower Robot

info

Author: Serban Lidia-Andreea
GitHub Project Link: https://github.com/UPB-PMRust-Students/fils-project-2026-lidiaserban

Description

The Autonomous Light-Following Flower Robot is a bio-inspired system that mimics plant phototropism by navigating toward the strongest light source using dual photoresistors and an STM32 Nucleo U545RE-Q. Built with the Embassy framework for asynchronous control, it balances light-seeking with active obstacle avoidance via ultrasonic sensors while monitoring environmental conditions through a DHT22 sensor and LCD. The robot utilizes a dual-rail power strategy to isolate high-torque motor noise from sensitive logic, ensuring stable, real-time performance in a standalone package.

Motivation

My motivation for this project is to apply embedded systems engineering to a nature-inspired concept. I chose a light-following robot because it provides a practical way to learn how the STM32 Nucleo U545RE-Q handles real-time sensor data and motor control. The project requires me to use the Embassy framework to solve a specific technical challenge: prioritizing obstacle avoidance while concurrently tracking light sources. Additionally, implementing a dual-rail power system with a DC-DC converter allows me to explore power management and noise isolation between high-current motors and sensitive logic circuitry.

Architecture

       ┌───────────────────────────┐
│ PRIMARY POWER SOURCE │
│ (4x Batteries) │
└─────┬───────────────┬─────┘
│ │
│ ┌──────▼──────────────────────────┐
│ │ DC-DC VOLTAGE CONVERTER │
│ │ (High-Current / Motor Rail) │
│ └──────────────┬──────────────────┘
│ │
│ ▼
┌────────────▼────────────┐ ┌──────────────────────────┐
│ STM32 U545RE-Q │ │ L9110S DRIVER │
│ (Logic / Brain Rail) │ │ (Motor Control H-Bridge)│
└────────────┬────────────┘ └──────────────▲───────────┘
│ │
├──────────────────────────────┘
│ (PWM Speed Control)

┌───────┴───────┬───────────────┬───────────────┐
│ │ │ │
┌────▼────┐ ┌─────▼─────┐ ┌─────▼─────┐ ┌─────▼─────┐
│ LIGHT │ │ DISTANCE │ │ DHT22 │ │ LCD 16x2 │
│ SENSORS │ │ (HC-SR04) │ │ (Temp/Hum)│ │ (Status) │
└─────────┘ └───────────┘ └───────────┘ └───────────┘

Log

Week 5 - 11 May

Week 12 - 18 May

Week 19 - 25 May

Hardware

The system is based on the STM32 Nucleo U545RE-Q microcontroller, which manages data processing and control. Light detection is performed using photoresistors, while an ultrasonic sensor provides obstacle detection and a temperature–humidity sensor monitors environmental conditions. Movement is achieved using DC motors controlled by an H-bridge driver with PWM signals. The structure includes wheels and a caster for stability. Power is supplied by a battery and regulated with a DC-DC converter. An LCD display is used to present system data.

Schematics

Place your KiCAD or similar schematics here in SVG format.

Bill of Materials

DeviceUsagePrice
STM32 Nucleo U545RE-QThe microcontroller~130 RON
DC MotorsThe DC motors~15 RON
Ultrasonic sensorDistance sensors~11 RON
Photo rezistorsLight sensors~10 RON
MovementWheels~11 RON
Support caster ballCaster~4 RON
Baterry caseBaterry holder~5 RON
Driver for motorH-Driver for motors~8 RON
Module for humidity sensorHumidity sensor module~7 RON
Humidity and temperature sensorHumidity and temperature sensor~18 RON
Adjustable DC voltage reducer moduleDC-DC voltage converter module~28 RON
LCDLCD Display~23RON
Total ~= 275RON

Software

LibraryDescriptionUsage
embassy-stm32Hardware Abstraction Layer (HAL) for STM32Configures GPIO, ADC for light sensors, and PWM for motors
embassy-executorAsync runtime for embedded systemsManages concurrent tasks like obstacle detection and movement
hd44780-driverLCD Controller libraryDisplays temperature, humidity, and status on the 16x2 LCD screen
dht-sensorDHT22 DriverSpecifically used to parse the digital signal from the DHT22 temperature and humidity sensor
panic-probeDebugging toolHelps you see errors in VS Code if the sensor fails to initialize
embassy-timeTimekeeping and delaysProvides the microsecond-precision delays needed to "handshake" with the DHT22 and measure its data pulses
  1. Embassy Book
  2. link ...