IOT Based Project Wiring: 1.VCC to Pin 2 (VCC) 2.GND to Pin 6 (GND) 3.TRIG to Pin 12 (GPIO18) 4.connect the 330Ω resistor to ECHO. On its end you connect it to Pin 18 (GPIO24) and through a 470Ω resistor you connect it also to Pin6 (GND).
Packages: sudo iwlist wlan0 scan sudo pip install wifi
How to run:
- Create sudo nano ultrasonic_distance.py
- Put the code which is in ds.py
- Set the Wifi ssid & key
- Now Run & it will show its work