Sunday, September 28, 2025

Ultrasonic Distance Sensor (4-pin) || TinkerCAD Circuits Input Component

 A sensor that uses sound waves to determine how far away an object is from it. It is used for measuring distances.

In other words, a sensor that uses sound waves to determine how far away an object is from it

Description:

This sensor uses sound waves to determine how far away an object is from it.

Ultrasonic Distance Sensor (4-pin) || TinkerCAD Circuits Input Component

How It Works:

This device emits sound with a very high pitch. So high, in fact that you cannot hear it. Sound takes time to travel through the air. This clever device listens for the first echo to bounce off a nearby object. It then figures out how far away the object is by measuring the time it takes for the sound to reflect off the target and echo back to it.

Connect It:

There are four pins on the bottom of this device. Power the device by connecting the Power pin to the Arduino 5V terminal and Ground to any GND terminal on an Arduino. The Trigger and Echo pins are connected to any digital or analog terminals on the Arduino. The code tells the sensor to emit its sound using the trigger pin, and waits for the echo detection from the echo pin. It converts the time it took it to a number representing the distance in inches or centimeters.

How It Is Used:

Select the device during simulation to show a region with a circle in it. The region represents the space in which the sensor can detect a large object. The circle is the target object. Select the target to move it around the region and change the distance between it and the sensor.

How It Is Used: Ultrasonic Distance Sensor (4-pin)

Get Started:

Details about component in a circuit’s working [No Get Started Circuit]

More About Ultrasonic Distance Sensor (4-pin):

To add an Ultrasonic Distance Sensor (4-pin) in Tinkercad, search for "Ultrasonic Distance Sensor (4-pin)" in the component library, drag it onto your breadboard, and connect its terminals with wires to other components in your circuit. You can then click on the Ultrasonic Distance Sensor to set its name for easy identification. 


The common 4-pin Ultrasonic Distance Sensor (such as the HC-SR04) operates using the Time-of-Flight (ToF) principle, consisting of three main components: an ultrasonic transmitter, an ultrasonic receiver, and an integrated control circuit. The four pins are VCC (Power), GND (Ground), Trig (Trigger input), and Echo (Echo output). Key specifications generally include an Operating Voltage of 5V DC and a low Operating Current typically around 15 mA (milliamperes). The sensor emits sound waves at an Ultrasonic Frequency of 40 kHz (kilohertz). Its effective Working Distance Range spans from a minimum of approximately 2 cm (centimeters) to a maximum of 400 cm or 4 m (meters), with a Ranging Accuracy of about ±3 mm (millimeters). The operational Trigger Input Signal is a 10 µs (microseconds) high pulse.

Random Nerd Tutorials – Complete Guide for Ultrasonic Sensor HC-SR04 with Arduino 

Website Title: Random Nerd Tutorials

Website Page URL: https://randomnerdtutorials.com/complete-guide-for-ultrasonic-sensor-hc-sr04/

URL recommended for: A detailed, complete guide for beginners on the widely used HC-SR04 module, covering the working principle, pinout, wiring with Arduino, and providing an example sketch with code explanation.

Instructables – Ultimate Guide for Beginner to Ultrasonic Sensor 

Website Title: Instructables

Website Page URL: https://www.instructables.com/Ultimate-Guide-for-Beginner-to-Ultrasonic-Sensor/

URL recommended for: A step-by-step tutorial, including an animated GIF image, that clearly explains the core working principle (Time of Flight and distance calculation formula), wiring, and Arduino code for the HC-SR04.

Baumer – Functionality and technology of ultrasonic sensors 

Website Title: Baumer

Website Page URL: https://www.baumer.com/us/en/service-support/function-principle/ultrasonic-sensors---function/a/Know-how_Function_Ultrasonic-sensors

URL recommended for: A professional overview of the functionality and technology, detailing the Time-of-Flight principle, distance formula (Distance=(T×C)/2), and different sensor principles like proximity and through-beam.

Adafruit Learning System – Ultrasonic Sonar Distance Sensors

Website Title: Adafruit Learning System

Website Page URL: https://learn.adafruit.com/ultrasonic-sonar-distance-sensors/overview

URL recommended for: A concise technical overview of ultrasonic sonar sensors, their common applications in robotics, and typical range specifications.

Note: Autodesk® and TinkerCAD® are trademarks of their respective company

TinkerCAD Circuits Platform related Interesting Links:

TinkerCAD Circuits Reference Handbook eBook: About Page 

Quickly Master Electronics with the TinkerCAD Circuits Reference Handbook 

…till next post, bye-bye & take care.

Frequently Asked C Programs in Interview - 01 || Blog post

 These are considered essential for coding tests and technical rounds.

  1. Check given number is perfect number or not.

  2. Check given number is Armstrong number or not.

  3. Check given number is prime number or not.

  4. Check given number is strong number or not.

  5. Check a number is odd or even.

  6. Check given number is palindrome number or not.

  7. Check given string is palindrome or not.

  8. Solve quadratic equation.

  9. Print Fibonacci series of given range.

  10. Get factorial of given number.

  11. For Floyd’s triangle.

  12. Print Pascal triangle.

  13. Generate multiplication table.

  14. Print ASCII value of all characters.

  15. Print hello world without using semicolon.

  16. Program which produces its own source code as its output.

C Program with Numbers

This section focuses on various numerical manipulations.

  1. Reverse any number.

  2. Find out sum of digit of given number.

  3. Find out power of number.

  4. Add two numbers without using addition operator.

  5. Subtract two numbers without using subtraction operator.

  6. Find largest among three numbers using binary minus operator.

  7. Find largest among three numbers using conditional operator.

  8. Find out generic root of any number.

  9. Find out prime factor of given number.

  10. Find out NCR factor of given number.

  11. Convert string to int without using library functions.

  12. Program to print 1 to 100 without using loop.

  13. Program for swapping of two numbers.

  14. Program to find largest of n numbers.

  15. Split number into digits.

  16. Count number of digits in a number.

C Program with Recursion

Recursion is presented with examples of its application.

  1. Examples of recursion in C programming (general topic).

  2. Find factorial of a number using recursion.

  3. Find GCD of two numbers using recursion.

  4. Find out sum of digits of a number using recursion.

  5. Find power of a number using function recursion.

  6. Reverse any number using recursion.

  7. Reverse a string using recursion.

  8. Binary search using recursion.

C Program with L.C.M and H.C.F.

This section covers computations of Least Common Multiple and Highest Common Factor.

  1. Find out L.C.M. of two numbers.

  2. Find out H.C.F. of two numbers.

  3. Find out G.C.D. of two numbers.

C Program with Swapping

Various methods of swapping values are included.

  1. Swap two numbers.

  2. Swap two numbers without using third variable.

  3. For swapping of two arrays.

  4. For swapping of two string.

C Program with Conversion (Number System)

Comprehensive tasks for converting numbers between different bases are listed.

  1. Convert decimal number to binary number.

  2. Convert decimal number to octal number.

  3. Convert decimal number to hexadecimal number.

  4. Convert octal number to binary number.

  5. Convert octal number to decimal number.

  6. Convert octal number to hexadecimal number.

  7. Convert hexadecimal number to binary number.

  8. Convert hexadecimal number to octal number.

  9. Convert hexadecimal number to decimal number.

  10. Convert binary number to octal number.

  11. Convert binary number to decimal number.

  12. Convert binary number to hexadecimal number.

  13. For addition of binary numbers.

  14. For multiplication of two binary numbers.

  15. Fractional binary conversion from decimal.

  16. For fractional decimal to binary fraction conversion.

  17. Convert decimal number to roman.

  18. Convert roman number to decimal number.

  19. Convert each digits of a number in words.

  20. Convert currency or number in word.

C Program with Conversion (Unit)

  1. Unit conversion.

…till next post, bye-bye & take care.