I am a Second year Master's student, pursuing ESE. I am interested in Embedded systems and like developing applications using various development boards like the STM32F407 Discovery, Pi Pico, and Arduino.
Nothing here yet.
Hi Mohsin Zafar , Sorry, I was actually busy with some college work, and couldn't respond. I hope you got your project working. Anyway, my email is nanotiruturaj@gmail.com , feel free to contact me anytime. Happy New Year! Thank You
Hi, I am glad you found this helpful. As for your question, add a break statement, after this line: https://github.com/Ruturajn/Interfacing-sg90-servo-motor-with-stm32f407-DISC1/blob/3e0aa99a50e7068b4328bb2417f0585d83dc0296/main.c#L49, and that should move the motor from 0 to 180, and then back to 0, and stop.