The cookie settings on this website are adjusted to allow all cookies so that you have the very best experience. If you continue without changing your cookie settings, we'll assume that you are happy to receive all cookies on our website. However, if you would like to, you can change your settings at any time using the Change cookie settings link in the Special menu. 
    
 
+44 (0)20-84520161 Contact Us
Now FREE Delivery on UK mainland orders over £30+VAT

Ultrasonic Ranging Module for Arduino

  • Details

  • Recommended

  • Send

Details

Item Number
HCSR04
Item Condition
New
Price
£2.50 (inc VAT £3.00)

Options

Quantity


  • 7 Segment Display Common Cathode High Efficiency Red 7.62mm 0.3"

    7 Segment Display Common Cathode High Efficiency Red 7.62mm 0.3"

    7 Segment Display Common Cathode High Efficiency Red 7.62mm (0.3") 2000mcd.

    Z76RC
    £2.00
  • Stripboard 2.5mm 0.1 inch Spacing 95 x 127mm

    Stripboard 2.5mm 0.1 inch Spacing 95 x 127mm

    Stripboard 2.54mm - 0.1 inch Copper Strips perforated at 0.1 inch (2.54mm) sacing 95 X 127mm

    CQ127
    £2.75
  • Pack of 100 Single Sided  PCB Pins to fit Pierced Boards, Veroboard, Stripboard

    Pack of 100 Single Sided PCB Pins to fit Pierced Boards, Veroboard, Stripboard

    Pack of 100 Single Sided Circuit Pins to fit 0.1 inch 2.5mm Strip Board, Matrix Board & Plain Board

    CQP1
    £2.00
  • Prototype Breadboard with 400 points

    Prototype Breadboard with 400 points

    Solderless Plug-In Breadboard 0.1 inch - 2.54mm spacing.

    400 Points. 2 x 30 x 5 commoned points. 4 rows of 25 points. Self-adhesive backing, or use free-standing.

    deal for experiments & prototyping.

    BB400T
    £4.00
  • Nylon Nut M3 Pack of 10

    Nylon Nut M3 Pack of 10

    Nylon Nut. M3 (3mm dia Metric thread) 10 pack

    30YNT
    £0.75
  • SG90 Micro Servo 9g

    SG90 Micro Servo 9g

    SG90 Micro Servo for Arduino and other microcontroller projects

     
    This micro servo is the most popular 9g servo in the world.
    It is used for Radio Control models, robotics plus many other uses.
    Compatible with Arduino and other microcontroller projects.
    Supplied with 3 different servo horns and fixing screws.
     
     
    Voltage : 5VDC
    Speed : 60 Degrees in 0.12 second
    Torque : 1.8kg/cm
    Wire Length : 150mm
    Size : 23x12.2x29mm
    Weight : 9g
    SG90
    £2.75
  • Buck Converter DC-DC Step Down 3A Voltage regulator

    Buck Converter DC-DC Step Down 3A Voltage regulator

    3A DC-DC Step Down Voltage Regulator (Buck Converter)

     
    This tiny step down voltage regulator uses high frequency switching to make a very efficient DC-DC converter. It can take 4.5V to 28V and lower it to between 0.8V and 20V at up to 3A (output). The voltage is set with the small in built potentiometer.
     
    Voltage in : 4.5V - 28VDC
    Voltage out : 0.8V- 20VDC
    Switching Frequency : 1 - 1.5MHz
    Maximum Output Current : 3A
    Dimensions : 22mm x 17mm
    BCD3A
    £2.50
  • PIR Sensor Module for Arduino

    PIR Sensor Module for Arduino

    PIR sensor module for Arduino and other microcontroller projects

     
    The HCSR501 is a PIR (Passive Infra-Red) sensor that can detect the presence of people by measuring the infrared radiation radiated by the body. It can be used in a vast and diverse number of projects, including but not limited to: automated lighting systems, burglar alarms, automated door systems, etc.

    Principle of operation
    All objects with a temperature above absolute zero (0 kelvin) emit electromagnetic radiation. The higher the temperature of the object, the smaller the wavelength of the radiation emitted. The normal human body temperature is 37°C (310.2 kelvin) and it therefore emitts infrared radiation (mostly at a wavelength of 12µm). The PIR sensor can sense when a person has walked into its field of view by measuring the difference in the infrared radiation received from the ambient environment and the human body. 
     
    Voltage : 5-20VDC
    Power Consumption: 64mA
    Logic output: 3.3V
    Range: 7 metres, (<120°)
    Lock Time: 200 miliseconds
    Operating temperature range: between -15°C and 70°C
     
    HCSR501
    £2.50
  • WS2812 High Brightness Individually Addressable RGB LED Strip Cut to Length

    WS2812 High Brightness Individually Addressable RGB LED Strip Cut to Length

    WS2812 RGB LED Strip Cut to Length 

    The WS2812 is a smart RGB (Red, Green, Blue) LED module that is capable of displaying up to 16,777,216 colours at 256 different levels of brightness per LED. Each LED can be controlled individually using a microcontroller (e.g. Arduino, NodeMCU).

    The LEDs are mounted on a flexible PCB and are cut to length (minimum 10 LEDs, max. 720 LEDs). 

    Specifications:

    LED Density: 144 LEDs/metre
    Input Voltage: 5V DC


     

    WS2812B-S
    £0.30

Send to Friend

: *
: *
: *
Type the characters you see in the picture:


*

Ultrasonic ranging module for Arduino and other microcontroller projects

 
This is a module with a 40kHz ultrasonic transmitter / receiver pair mounted on the front of a small PCB, with the required control circuitry on the back.
It sends a short 40kHz square wave out, and calculates the distance by recording the time it takes the wave to return to the sensor.
 
Voltage : 5VDC
Working Range : 20mm to 4500mm
Accuracy : 2mm


Example project: 

 
HC SR04 Distance Measurement Tool
 
This article will demonstrate how to build a simple distance measuring device using the HC SR05 ultrasonic sensor board. This project can be used standalone as a way of measuring short distances or, it can be incorporated into other projects that require distance measuring. This sensor works best when the two transceivers are parallel to a solid surface, at a distance between 2cm to 450cm. 
 
Here’s what you will need:
 
Tools
Step 1
First, you will need to connect the HCSR04 sensor to the Arduino. Simply use the male to female jumper leads to connect the two together as described below and in fig.1:

HCSR04                                      Arduino
VCC-----------------------------------------5V
Trig------------------------------------------D3
Echo----------------------------------------D2
GND---------------------------------------GND
 
Step 2
Solder the KY1602 module onto the 1602 LCD screen. Pin 1 on the KY1602 module is the one closest to the 4 data and power pins. Once soldered, you can now connect the LCD display to the Arduino as shown in fig. 1.


                                                                               fig. 1

 

Step 3
Connect the Arduino to a computer and install the libraries mentioned above. If you need help installing the libraries, CLICK HERE for a quick tutorial.
 

Step 4
You can now start writing the code to get this all working:


First, clear the IDE window. Then, include the aforementioned libraries:
 
   
#include <HCSR04.h>
#include <LCD_I2C.h>
   



Initialize the HCSR04 sensor. The numbers in the brackets correspond to the trigger and echo pins respectively:

   
HCSR04 hc(3, 2);
   

 

Initialize the KY1602 I2C LCD driver (address 0x27 in this example) and specify the LCD display (in this case 16 characters, 2 rows):

LCD_I2C lcd(0x27, 16, 2);
   


 

Begin the void setup function. Initialize the LCD screen and turn on the backlight:

   
void setup()
{
  lcd.begin();
  lcd.backlight();
}  


Begin the void loop function. Set the cursor to the first character:

void loop()
{
    lcd.setCursor(0,0);


Print the distance calculated by the sensor on the LCD screen:

    lcd.print(hc.dist());
   

 

Add 100ms delay:

delay(100);                
}
   

 

The completed code should look like this:

#include <HCSR04.h>
#include <LCD_I2C.h>

HCSR04 hc(3, 2);
LCD_I2C lcd(0x27, 16, 2);

void setup()
{
  lcd.begin();
  lcd.backlight();
}

void loop()
{
    lcd.setCursor(0,0);
    lcd.print(hc.dist());
    delay(100);                
}

   

 

 
Step 5
Press the “Upload” button at the top (button with tick, located below “File”). The IDE will now compile the code and upload it to your Arduino (this will take a few moments).
 
Step 6
All done! The LCD will now start to display the distance calculated by the sensor.
 

 

Recently Viewed


Trustpilot