HC-SR04 Ultrasonic Range Sensor with Raspberry Pi
On our last post we looked at how to light a led using GPIO, and that was output. This time let's use a sensor and do some input. For this experiment I used a HC-SRO4 Ultrasonic Range Sensor and the sensor outputs 5V which needs to be dropped/converted to 3V3 so that it could be connected/used with GPIO without damaging our Raspberry Pi! Keeping all that in mind let’s go back to primary school Physics class along with Electronics in this experiment in order to explain each step in achieving today's goal! Accessories required for this project: HC-SR04 http://gadgets.mv/index.php?route=product/product&product_id=63 1kΩ Resistor & 2kΩ Resistor http://gadgets.mv/index.php?route=product/product&product_id=104 Jumper Wires http://gadgets.mv/index.php?route=product/product&product_id=152 Ultrasonic Distance Sensor: As the name indicates, ultrasonic sensors measure distance by sending a sound wave at a frequency above the range of human hearing. A basic ultrasonic sens