cancel
Showing results for 
Search instead for 
Did you mean: 

How to use STM32F103C8 with HC-SR05 Ultrasonic sensor and LCD 16x2

Mucahit.Hamarat
Associate II

Hello friends,

I want to make a parking sensor by using the  hardwares STM32F103C8, LCD 16x 2 , FTDI and HC-SR04. Main idea of the project is as you can predict: an object will come close to the sensor, after about one (100 cm) the value will start to drop from the LCD, as you get closer to the object it will be evaluated . After I build and debug the Codes when I made all connections and plug in the power sources see no distance value on the LCD. Where am I making mistake, can you help?

You can find the I2C libraries in main.c and LCD at the link:

https://mucahithamaratkultur.blogspot.com/202

2/06/stm32cubeide-ve-hc-sr04-ile-park.html

Sources that I used :

1- https://controllerstech.com/hcsr04-ultrasonic-sensor-and-stm32/ 

2- https://www.youtube.com/watch?v=ti_1ZwRolU4&ab_channel=ControllersTech

You can see the connections on my project at photos below0693W00000NsD9zQAF.jpg0693W00000NsDA4QAN.jpg0693W00000NsDA9QAN.jpg0693W00000NsDAEQA3.png0693W00000NsDAJQA3.png0693W00000NsDAOQA3.png0693W00000NsCQlQAN.png 

4 REPLIES 4

Try to deal with one problem at a time. Start perhaps with the display, make sure you can display whatever you want on the LCD, for example "Hello world!".

JW

I already did that example, brought the Hello world on the LCD,and a counting timer on the LCD. They worked. If you checked the sources above that I share, you can see that someone has successed, someone displayed the thing that I want on the LCD. So why I can't ?

MM..1
Chief II

ARM programming isnt Lego. On your design is unnecesary PCF, FTDI

Is it not Lego, REAAAALLLYYY, I thought it was? What kind of community is that? All arrogant STM developers in the world have meet here ?