จำนวนชิ้น | ส่วนลดต่อชิ้น | ราคาสุทธิต่อชิ้น |
{{(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)}} บาท | {{number_format(price_row.price,2)}} บาท |
คงเหลือ | 144 ชิ้น |
จำนวน (ชิ้น) |
- +
|
ซื้อเลย หยิบลงตะกร้า ซื้อเลย หยิบลงตะกร้า คุณมีสินค้าชิ้นนี้ในตะกร้า 0 ชิ้น
ช่องทางสั่งซื้ออื่น ๆ
|
|
|
|
คุยกับร้านค้า | |
{{ size_chart_name }} |
|
หมวดหมู่ | Vibration/สั่น/Magnet |
สภาพ | สินค้าใหม่ |
เพิ่มเติม | |
สภาพ | สินค้ามือสอง |
เกรด | |
สถานะสินค้า | |
ระยะเวลาจัดเตรียมสินค้า | |
เข้าร่วมโปรโมชั่น | |
ข้อมูล |
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
|
รายละเอียดสินค้า |
XD-78 Reed Switch Sensor Module Magnetron Module Reed Switch Magnetic Control Switch
![]() Code: /*
Arduino with Test XD-78 Reed Switch Sensor Module Magnetron
For complete project details, visit:Arduinoshop99
*/
int led = 12; // the pin that the LED is atteched to
int sensor = 2; // the pin that the sensor is atteched to
int state = LOW; // by default, no motion detected
int val = 0; // variable to store the sensor status (value)
void setup() {
pinMode(led, OUTPUT); // initalize LED as an output
pinMode(sensor, INPUT); // initialize sensor as an input
Serial.begin(115200); // initialize serial
}
void loop(){
val = digitalRead(sensor); // read sensor value
if (val == HIGH) { // check if the sensor is LOW
digitalWrite(led, LOW); // turn LED OFF
delay(100); // delay 100 milliseconds
if (state == HIGH) {
Serial.println(" CLEAR OK ");
Serial.println("");
state = LOW; // update variable state to C
}
}
else {
digitalWrite(led, HIGH); // turn LED ON
delay(200); // delay 200 milliseconds
if (state == LOW){
Serial.println("Warning Detect Magnetic");
Serial.println("");
state = HIGH; // update variable state to HIGH
}
}
}
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
เงื่อนไขอื่นๆ |
|
Tags |