QuantityUnit(s) | Discount per unit | Net price per unit |
{{(typeof focus_pdata.price_list[idx+1] == 'undefined')?('≥ '+price_row.min_quantity):((price_row.min_quantity < (focus_pdata.price_list[idx+1].min_quantity - 1))?(price_row.min_quantity+' - '+(focus_pdata.price_list[idx+1].min_quantity - 1)):price_row.min_quantity)}} | {{number_format(((focus_pdata.price_old === null)?focus_pdata.price:focus_pdata.price_old) - price_row.price,2)}} THB | {{number_format(price_row.price,2)}} THB |
In-stock | ชิ้น |
Quantity (ชิ้น) |
- +
|
BUY NOW Add to cart BUY NOW Add to cart This item has already been added to your cart 0 ชิ้น
Other purchase channels
|
|
|
|
Chat with seller | |
{{ size_chart_name }} |
|
Category | Distance sensor / Range finder |
Type | New item |
Condition | |
Type | Pre-owned Items |
Condition | |
Item status | |
Prepare duration | |
Join promotions | |
Information |
Item weight
Barcode
Created time
Last updated on
|
Item description |
เซนเซอร์วัดระยะด้วย ultrasonic 2 - 400 cm Ultrasonic Module HC-SR04
รายละเอียดสินค้า
ตัวอย่าง Code พร้อมการต่อวงจร ![]() /* HC-SR04 Ping distance sensor] VCC to arduino 5v GND to arduino GND Echo to Arduino pin 13 Trig to Arduino pin 12 Red POS to Arduino pin 11 Green POS to Arduino pin 10 560 ohm resistor to both LED NEG and GRD power rail More info at: http://goo.gl/kJ8Gl Original code improvements to the Ping sketch sourced from Trollmaker.com Some code and wiring inspired by http://en.wikiversity.org/wiki/User:Dstaub/robotcar */ #define trigPin 13 #define echoPin 12 #define led 11 #define led2 10 void setup() { Serial.begin (9600); pinMode(trigPin, OUTPUT); pinMode(echoPin, INPUT); pinMode(led, OUTPUT); pinMode(led2, OUTPUT); } void loop() { long duration, distance; digitalWrite(trigPin, LOW); // Added this line delayMicroseconds(2); // Added this line digitalWrite(trigPin, HIGH); // delayMicroseconds(1000); - Removed this line delayMicroseconds(10); // Added this line digitalWrite(trigPin, LOW); duration = pulseIn(echoPin, HIGH); distance = (duration / 2) / 29.1; if (distance < 4) { // This is where the LED On/Off happens digitalWrite(led, HIGH); // When the Red condition is met, the Green LED should turn off digitalWrite(led2, LOW); } else { digitalWrite(led, LOW); digitalWrite(led2, HIGH); } if (distance >= 200 || distance <= 0) { Serial.println("Out of range"); } else { Serial.print(distance); Serial.println(" cm"); } delay(500); } วิดีโอตัวอย่างการใช้งาน ![]() ![]() ![]() |
Conditions |
|
Tags |
Every item comes with a 30-day warranty. However, there are certain conditions that apply:
The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).
The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).
The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.
Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:
Please note that the store reserves the right to make the final decision regarding product replacement or refund.
Pageviews | 2,072,024 view(s) |
Visitors | 1,332,750 time(s) |
Last updated | Sep 5, 2025 |