Ultrasonic sensor Module HC-SR04
  • Ultrasonic sensor Module HC-SR04

Ultrasonic sensor Module HC-SR04

XBAXAH_ultrasonic
lei9.75
Tax included
Quantity
970 Items

  We deliver to lockers!

Pick up your orders anytime, hassle-free!

  Fast Delivery!

Orders placed by 2:00 PM are shipped the same day. Delivered within 24h!

  2-Year Warranty

Reliable products, worry-free!

  Easy 14-Day Returns

Unused items? No questions asked!

Description

Descrierea produsului:

Tensiune: 5V
Tensiune HIGH: 5V
Tensiune LOW: 0V
Unghiul senzorului: 15 grade
DIstanta detectata: 2cm - 450cm
Precizie: 0.3cm

Exemplu de conectare:

Wiring:

Exemplu cod: 

/*
* Define the pins you want to use as trigger and echo.
*/

#define ECHOPIN 2 // Pin to receive echo pulse
#define TRIGPIN 3 // Pin to send trigger pulse

/*
* setup function
* Initialize the serial line (D0 & D1) at 115200.
* Then set the pin defined to receive echo in INPUT
* and the pin to trigger to OUTPUT.
*/

void setup()
{
Serial.begin(115200);
pinMode(ECHOPIN, INPUT);
pinMode(TRIGPIN, OUTPUT);
}

/*
* loop function.
*/


void loop()
{
// Start Ranging
digitalWrite(TRIGPIN, LOW);
delayMicroseconds(2);
digitalWrite(TRIGPIN, HIGH);
delayMicroseconds(10);
digitalWrite(TRIGPIN, LOW);
// Compute distance
float distance = pulseIn(ECHOPIN, HIGH);
distance= distance/58;
Serial.println(distance);
delay(200);
}

Continutul coletului:

1x Modul senzor Ultrasonic - detector distanta HC-SR04

Product Details
XBAXAH_ultrasonic
6427854030726
970 Items
Comments (0)
Grade
No customer reviews for the moment.
16 other products in the same category:

Reference: IJZYRO_L7815CV

L7815CV

(0)
lei7.23
More
In stock

Reference: WBLRLT_L7824CV

L7824CV

(0)
lei7.23
More
In stock