![]() ![]() The wiring diagram is shown in the picture.Ĭonnect the ground pin to the GND pin on the Arduino board, connect the power output to 5V. Connecting the HC SR04 to the ArduinoĬonnecting the ultrasonic distance sensor to the Arduino board is easy enough. Dividing by 148 will give data in inches. On the controller side, the received signal should be translated into distance using formulas.ĭividing the pulse width by 58.2 will give data in centimeters.When the pulses reach the obstacle, they will bounce off it and will be received by the receiver R, which will provide an input signal at the Echo output.The ultrasonic rangefinder HC-SR04 connected to the Arduino will convert the signal into 8 pulses with a frequency of 40 kHz that will be sent forward through the transmitter.To send a pulse of 10 microseconds to the Trig output.To receive data, you need to perform the following sequence of actions: The positive type of power contact – +5V.The sensor is equipped with four pins (standard 2, 54 mm): The current strength in the passive state is up to 2 mA.The operating parameter of the current strength is 15 mA.The HC SR04 ultrasonic rangefinder has the following technical parameters: The HC-SR04 Arduino module kit also includes a receiver and a transmitter. Its operation is not significantly affected by electromagnetic radiation and solar energy. The Arduino distance sensor is a non-contact type device and provides highly accurate measurement and stability. Optimal for measurement are objects with a smooth surface. Note: Since the operation principle is based on ultrasound, this sensor is not suitable for determining the distance to sound-absorbing objects. It is this time interval that becomes the characteristic that helps determine the distance to the object. Ultrasonic signals generated by the receiver, reflected from the obstacle, return to it after a certain period of time. ![]() ![]() The ability of the ultrasonic sensor to determine the distance to an object is based on the sonar principle – by sending a beam of ultrasound and receiving its reflection with a delay, the device determines the presence of objects and the distance to them. 3 Conclusions The Distance Sensor in Arduino Projects ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |