So the concept here is that, we have an ultrasonic sensor to sense the distance of any object in front of it. The microcontroller gets the sensor reading and has a threshold set, if the threshold is crossed then it sends out signal to the computer via serial communication. The python code running on computer is responsible to read this signal and act upon it, by opeing another tab.
This is the circuit schematic. we can see the sensor connected to microcontroller via the power & ground wires, and trigger and echo wires.Full Video Demonstration:
Comments