Stm32

How to Build a Distance Measuring System Using STM32, Ultrasonic Sensor

In this step-by-step tutorial, we will guide you through building a distance measurement system using an STM32F103C8 microcontroller, an ultrasonic sensor (HC-SR04), an I2C LCD, and an FTDI TTL programmer. The project measures distance using the ultrasonic sensor and displays the result on the I2C LCD. Components Required STM32F103C8 microcontroller Ultrasonic sensor (HC-SR04) I2C LCD […]

How to Build a Distance Measuring System Using STM32, Ultrasonic Sensor Read More »

IR Sensor Interface With STM32

Circuit Diagram: Code: int  obstaclePin = PB1;        // This is our input pin void setup() {  pinMode(obstaclePin, INPUT);   pinMode(PB10, OUTPUT);  Serial.begin(115200);   } void loop() {  int hasObstacle = digitalRead(obstaclePin);  if (hasObstacle == LOW)  {        digitalWrite(PB10, HIGH);   // turn the LED on (HIGH is the voltage level)  }  else  {       digitalWrite(PB10, LOW);   // turn

IR Sensor Interface With STM32 Read More »