Skip to content

Crowtail- Ultrasonic Ranging Sensor


Description: This HC-SR04 has stable performance and high ranging accuracy. Compared to the Shap IR ranging module , HC-SR04 is more cheaper than it . But it has the same ranging accuracy and longer ranging distance. So we choose it to become “a family number of our Crowtail”, wish more good experience.
Model: CT0051URS



  • Power supply: 5V DC.
  • Effectual angle: <15°.
  • Ranging distance: 2cm – 500 cm.
  • Resolution: 1 cm.
  • Ultrasonic Frequency: 40k Hz.
  • Dimensions(mm):45.6(L)x34.7(W)x22.0(H)


Ultrasonic10.jpg Ultrasonic11.png
A short ultrasonic pulse is transmitted at the time 0, reflected by an object. The senor receives this signal and converts it to an electric signal. The next pulse can be transmitted when the echo is faded away. This time period is called cycle period. The recommend cycle period should be no less than 50ms. If a 10μs width trigger pulse is sent to the signal pin, the Ultrasonic module will output eight 40kHz ultrasonic signal and detect the echo back. The measured distance is proportional to the echo pulse width and can be calculated by the formula above. If no obstacle is detected, the output pin will give a 38ms high level signal.


Connect the Crowtail- Ultrasonic Ranging Sensor to the Crowtail base board as below: Crowtail- Ultrasonic Ranging Sensor11.jpg


Copy the following program to Arduino IDE and upload to your Arduino/Crowduino, you can also download the example in the Resource.

#include "Ultrasonic.h"

Ultrasonic ultrasonic(12,13);
void setup() {

void loop()

Open the Sscom32 terminal or the Serial moniter , and set the baudrate to 9600, you will see the output changing with the object distance. Ultrasonic sensor result.jpg


File:Ultrosonic ranger module Library and demo code for arduino