Hello!We have prepared a small tutorial with Raspberry Pi + UltrasonicSensor + Servo Motor. I would try another Raspberry Pi application forbeginners; I looked among the pieces I had at my disposal, and found somethinginteresting; I searched the internet for information about the parts I have,how to control them individually, and now I will try to combine them to make anapplication for learning purposes.Components used in this project:- Raspberry Pi;- Ultrasonic Sensor HC SR-04;- Servo Motor SG90;- PCA9685 PWM Driver.The first step is to install a library, which will help us usethe PWM driver PCA9685 (Figure 1), useful to control a servomotor, an LED or adc motor. Information can be found at this link:https://learn.adafruit.com/adafruit-16-channel-servo-driver-with-raspberry-pi/using-the-adafruit-library.Figure 1We start by opening Terminal Window and writing the command:sudo pip3 installadafruit-circuitpython-servokitWe are waiting for the package installation to be completed.The control of the SG 90 servomotor (Figure 2) is easy, we onlyneed a few program lines written in Thonny IDE:fromadafruit_servokit import ServoKitkit = ServoKit(channels = 16)We import and initialize the ServoKit class.Then, to move the actuator to an angle we want, we add thecommand:kit.servo [0] .angle= 0Figure 2The HC SR-04 ultrasonic sensor (Figure 3) is affordable, easy touse at 5V.Figure 3The electronic scheme according to which the connections aremade is the following:Figure 4The servomotor is connected to channel 0 of PCA9685; a supplyvoltage of 5V is required for the servomotor and the ultrasonic sensor, and a3.3V for the logic circuit of the PCA9685; PCA9685 driver, SDA and SCL pinsconnect SDA and SCL pins on the Raspberry Pi (physical pins 3 and 5); for theultrasonic sensor, the Trig pin -> GPIO23 (physical pin 16) and Echo ->GPIO24 (physical pin 18).Practical realization of the project (Figure 5):Figure 5The distance is displayed in centimeters, with two decimals, theprogram is run in Thonny Python (Figure 6):Figure 6Thanks to the PCBWay team for this activity!We expect as much from you!Success!