Tag: Ultrasonic Sensor
-
Smart City Mini Project Using Arduino UNO
(Street Light Automation, Smart Gate & Air Quality Alert) Smart cities are built by combining automation, sensing, and decision-making.In this project, a Smart City model was developed using an Arduino UNO and commonly available sensors to demonstrate how embedded systems can be used for urban automation. This project focuses on real-world logic, not just blinking…
-
How to make an Obstacle Avoiding Vehicle using Arduino UNO
Arduino Sketch Code Explanation The code is a simple obstacle avoidance program for a robot using an ultrasonic sensor and two motors. Let’s break down the code and explain each section: In this section, the code defines constants for motor pins (m1p, m1n, m2p, m2n) and pins for the ultrasonic sensor (echopin for echo and…
-
Interfacing a 5V Ultrasonic Sensor with 3.3V GPIO of Raspberry Pi Pico: A Voltage Divider Solution
I have an old HC-Sr04 ultrasonic sensor. I don’t know if it’s GPIO voltage compatible with the 3.3V microcontroller. On the internet, I found that the old sensors work with 5V. So, I used a voltage divider made of 1K ohm and 1.5K ohm Surface mount resistors. To bring down the 5V to a suitable…
