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


  • 50 ohm Easy Fit Twist On BNC Plug for RG58 5mm Cable

    50 ohm Easy Fit Twist On BNC Plug for RG58 5mm Cable

    50 ohm BNC Plug Quickfit Twist-on plug

    For use with RG58 or other 5mm cable.

    Simple to use:

    1. Strip cable back.

    2. Inner core is gripped by the claws down the plug

    3. twist until screen is held by thread.

    Please go to part no BSQ for 75 ohm CCTV twist-on BNC plugs

    BCQ
    £1.75
  • CR1220 Lithium Coin Cell 12 x  2mm

    CR1220 Lithium Coin Cell 12 x 2mm

    High Quality Lithium Coin Cell. 3 Volt. Extremely Long Life. 12 X 2.0mm.

    CR1220
    £0.75
  • 12V DC 5A Adaptor Power Supply

    12V DC 5A Adaptor Power Supply

    Switchmode Flat (Regulated) Power Supply. 12VDC (Single voltage) 5 Amps.

    Complete with mains lead with 3 pin UK mains plug

    Now built with interference filters

    5.5 x 2.1mm (Centre Positive) output plug. 

    Suitable for most CCTV Systems, cameras and anyhthing that uses 12VDC up to 5 amps

    BSM1250
    £15.50
  • Splitter Lead 2.1 x 5.5mm DC Socket to 4 x DC Plugs

    Splitter Lead 2.1 x 5.5mm DC Socket to 4 x DC Plugs

    4 Way DC Power Splitter Lead. 2.1 X 5.5mm Socket to 4 DC 2.1 X 5.5mm Plugs.

    For splitting low voltage from one power source to 4 units, ie CCTV cameras. 

    LROX4
    £5.50
  • 2.1 x 5.5mm DC Line Plug with Screw Terminal Block

    2.1 x 5.5mm DC Line Plug with Screw Terminal Block

    DC Line Plug 2.1 x 5.5mm with 2 way screw terminal block connection Marked + and -

    RXP
    £0.75
  • 2.1 x 5.5mm DC Line Socket with Screw Terminal Block

    2.1 x 5.5mm DC Line Socket with Screw Terminal Block

    DC Line Socket (Female) 2.1 x 5.5mm with 2 way screw terminal block connection Marked + and -

    Accepts 2.1 x 5.5mm Plugs.

    RXL
    £0.75
  • Data Logger Shield with Real Time Clock for Arduino

    Data Logger Shield with Real Time Clock for Arduino

    Data Logger Shield with Real Time Clock for Arduino Uno 

    This Arduino compatible shield allows the logging and storage data from an Arduino project to an SD card.

    Having a built in Real Time Clock (RTC) insures data accuracyover long time periods and at times where your project may suffer from power loss. Supplied with a CR1220 lithium battery. 

    AUDL
    £4.50
  • Waterproof Digital Temperature Probe for Arduino DS18B20

    Waterproof Digital Temperature Probe for Arduino DS18B20

    Waterproof digital temperature probe for Arduino and other microcontroler projects

     
    This probe has a DS18B20 digital temperature IC inside a waterproof probe. It will give you a digital output that will vary depending on temperature.
     
    Voltage : 3.3 to 5VDC
    Temperature : -55C to 110C
    Length : 1M

    Example project: 
     

    DS18B20 High Accuracy Digital Thermometer.

     
    This DS18B20 digital thermometer is extremely useful as a tool for measuring temperature for all kinds of different applications. It has a very wide temperature range (-55°C to 110°C) and high accuracy, especially at temperatures between -10°C to 85°C.  In this project, we will be using an Arduino to read the temperature from the probe and display it on an LCD screen equipped with a KY1602 module.
     
    Here’s what you will need: 
     
    Tools
     
    Components

    Libraries

    Step 1
    First, you will need to connect the probe to the breadboard. This should be easy to do since the probe comes with pre-tinned leads. Simply push the ends of the leads into the breadboard sockets and use a 4.6kΩ pull-up resistor on the data pin as shown in fig.1. Now, you will need to connect the Arduino to the breadboard. Use the jumper leads to connect the male to male jumper leads to connect the power, ground and digital pin to the breadboard. 
     
    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 your 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 <DS18B20.h>
    #include <LCD_I2C.h>
    
    


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


    Initialize the LCD display and turn on the LCD backlight. This is done inside the void setup function:
     
    void setup() {
    lcd.begin();
    lcd.backlight();
    }
     
    


    Start a while loop. This is done inside the void loop function:
     
    void loop() {
    while (ds.selectNext()) {
     
    


    Set the cursor to the first character and display the temperature in ºF and ºC:
     
    lcd.setCursor(0,0);
      lcd.print(ds.getTempC());
      lcd.print((char)223);
      lcd.print("C");
      lcd.setCursor(0,1);
      lcd.print(ds.getTempF());
      lcd.print((char)223);
      lcd.print("F");
      }
     
    


    Choose how often to update the screen (in this case, 800ms):
     
      delay(800);
    }
     
    


    The completed code should look like this:
     
    #include <DS18B20.h>
    #include <LCD_I2C.h>
    
    DS18B20 ds(12);
    LCD_I2C lcd(0x27, 16, 2);
    
    void setup() {
      lcd.begin();
      lcd.backlight();
    }
    
    void loop() {
      while (ds.selectNext()) {
      lcd.setCursor(0,0);
      lcd.print(ds.getTempC());
      lcd.print((char)223);
      lcd.print("C");
      lcd.setCursor(0,1);
      lcd.print(ds.getTempF());
      lcd.print((char)223);
      lcd.print("F");
      }
      delay(800);
    }
    
     
    
    Step 4
    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 5
    Done! If the connections are correct and there are no errors with the code, the LCD should display the temperature. 
     
    DS18B20
    £3.50
  • Ultra HD 5 Megapixel Varifocal 2.8-12mm White Eyeball Dome Camera 30M Night Vision

    Ultra HD 5 Megapixel Varifocal 2.8-12mm White Eyeball Dome Camera 30M Night Vision

    Ultra HD 5 Megapixel Varifocal White Eyeball Dome Camera with 30M Night Vision

    An outdoor or indoor camera in a robust metal casing. 

    5 Megapixels HD gives an super high definition image with true colours. 

    Close up to wide-angle 2.8-12mm Varifocal Megapixel lens,

    Easy angle & focusing adjustment .Can be mounted to cover any direction.

    This camera can be set for lower, older definitions such as 960H, 4MP or 2MP to be compatible with older HD DVRs.  Please phone 020 8452 0161 if you need this adjustment

    Specification:

    Image Sensor: 1/2.5" CMOS Sensor
    Resolution: 5.0 Megapixel, 2592(H)×1944(V)
    Lux: 0.05 IR off, 0 IR on
    Lens: Fixed 2.8-12mm with IR Cut Filter
    Wide Dynamic Range: Digital
    Noise Reduction: Digital
    Auto White Balance: Yes
    AGC: Yes
    Anti-Fog Dual Glass: Yes
    Power Reqd: 12VDC 750mA 
    Infra-red Source: 24pcs x 14µ SMD IR LEDs
    Infra Red Beam: 30 Metres
    Terminations: BNC & DC 2.1 x 5.5mm on Flying Leads
    Size: D120 X H98mm

    CVM30W
    £47.75

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