Sensors

12 products

  • Relay Module 5V 1/2/4 Channal for Arduino and Raspberry pi

    Global Pi Shop Relay Module 5V 1/2/4 Channal for Arduino and Raspberry pi

    Relay is Relay is an electrical switch that is controlled by an electrical signal. It is used for: Control high voltage electrical devices (e.g. fans, 220V bulbs) with electrical signals from Arduino (5V). This allows the Arduino to safely control high-current devices (since the Arduino cannot directly supply high current). Relay Module is available in various types such as 1 Channel, 2 Channel, 4 Channel depending on the number of devices to be controlled. Specifications of Relay 5V Module list details Control pressure (Input) 5V DC (from Arduino) Load voltage (Output) Up to ~250V AC or 30V DC Maximum load current 10A Number of channels (Channel) 1, 2, 4 (select according to the number of devices to be controlled) Logic Control Active LOW (some models) There is an optocoupler. Some models have a circuit breaker to isolate the electrical circuit (safer). Output legs (3 legs) NO (Normally Open), NC (Normally Closed), COM (Common) Using Relay with Arduino Wiring (Example 1 Channel): Relay Pin Arduino Pin VCC 5V GND GND IN1 D7 (or as required) The IN1 leg is used to turn the relay on/off. If it is 2/4 Channel, there will be IN2, IN3, IN4 added. Example of connecting electrical equipment to a house: Warning: You should have knowledge of 220V electricity and be very careful. Use an extension cord or an electrician if you are not sure. Connection: COM → Connect to AC power (input line) NO → Connect to the device you want to turn on/off (light, fan). When Arduino sends a signal → Relay closes the circuit → Power goes to the device. Code example: int relayPin = 7; void setup() { pinMode(relayPin, OUTPUT); } void loop() { digitalWrite(relayPin, LOW); // Open relay (some models LOW means open) delay(3000); // leave open for 3 seconds digitalWrite(relayPin, HIGH); // close relay delay(3000); // wait another 3 seconds } If your relay is Active HIGH, switch LOW and HIGH. What can it be used with? Turn on/off 220V light bulbs Water pump control Order to turn on the fan/electrical appliance Make a Smart Home System

    15.00 ฿ - 89.00 ฿

  • PIR HC-SR501 motion sensor for arduino

    Global Pi Shop PIR HC-SR501 motion sensor for arduino

    20 in stock

    PIR HC-SR501 คืออะไร HC-SR501 คือเซนเซอร์ตรวจจับการเคลื่อนไหวของวัตถุที่มีความร้อน เช่น ร่างกายมนุษย์ หรือสัตว์ โดยใช้หลักการ PIR (Passive Infrared) PIR = เซนเซอร์อินฟราเรดแบบรับแสงอย่างเดียว (ไม่ปล่อยแสงเอง) เมื่อมีคนเดินผ่านบริเวณเซนเซอร์ → จะตรวจจับการเปลี่ยนแปลงของพลังงานอินฟราเรด → ส่งสัญญาณออกมา สเปคของ HC-SR501 รายการ รายละเอียด แรงดันใช้งาน 4.5V – 20V DC (ใช้กับ 5V ของ Arduino ได้เลย) แรงดันลอจิกเอาต์พุต 3.3V (สามารถอ่านได้ด้วยขา digital ของ Arduino) กระแสที่ใช้ ประมาณ 50 μA (ประหยัดพลังงานมาก) ระยะตรวจจับ ปรับได้ ~3 ถึง 7 เมตร มุมตรวจจับ ประมาณ 120 องศา เวลาตอบสนอง (Delay Time) ปรับได้ ~0.3 วินาที ถึง 5 นาที (ปรับด้วย VR) โหมดการทำงาน ปรับได้ 2 แบบ: Repeatable (H): ส่งสัญญาณซ้ำเมื่อยังมีคนอยู่ Non-Repeatable (L): ส่งสัญญาณครั้งเดียวแม้ยังมีคนอยู่ การใช้งานกับ Arduino ✅ การต่อสายกับ Arduino: HC-SR501 Pin Arduino Pin VCC 5V GND GND OUT ขา Digital เช่น D2 ✅ ตัวอย่างโค้ด Arduino (ตรวจจับการเคลื่อนไหว) int pirPin = 2; // ขาที่รับจากเซนเซอร์ int ledPin = 13; // ขาที่ใช้เปิดไฟ (LED บนบอร์ด)   void setup() { pinMode(pirPin, INPUT); pinMode(ledPin, OUTPUT); Serial.begin(9600); }   void loop() { int motion = digitalRead(pirPin);   if (motion == HIGH) { digitalWrite(ledPin, HIGH); Serial.println("มีการเคลื่อนไหว!"); } else { digitalWrite(ledPin, LOW); Serial.println("ไม่มีการเคลื่อนไหว"); }   delay(500); } 💡 การประยุกต์ใช้งาน: โปรเจกต์ รายละเอียด ระบบเตือนภัย แจ้งเตือนเมื่อมีคนเดินผ่าน ไฟอัตโนมัติ เปิดไฟเมื่อมีคนอยู่ / เดินผ่าน Smart Home ทำระบบบ้านอัจฉริยะร่วมกับ Relay ระบบกล้องวงจรปิด เริ่มบันทึกภาพเมื่อมีคนเดินผ่าน ประหยัดพลังงาน ใช้ร่วมกับ ESP32/ESP8266 ปลุกระบบจาก Sleep Mode ⭐ ข้อดี: ใช้งานง่าย ประหยัดพลังงานมาก เหมาะกับ Arduino และบอร์ด IoT ทุกชนิด ปรับระยะ-เวลาได้ตามต้องการ  

    20 in stock

    40.00 ฿

  • Micro SD Card Module for arduino

    Global Pi Shop Micro SD Card Module for arduino

    20 in stock

    Micro SD Card Module คืออะไร Micro SD Card Module คือ โมดูลที่ใช้สำหรับอ่านและเขียนข้อมูลลงในการ์ด Micro SD โดยสามารถเชื่อมต่อกับบอร์ด Arduino หรือบอร์ดไมโครคอนโทรลเลอร์อื่น ๆ ได้โดยตรง เหมาะสำหรับโปรเจกต์ที่ต้องการเก็บข้อมูล เช่น อุณหภูมิ, ความชื้น, การตรวจจับการเคลื่อนไหว, เวลา, หรือรูปภาพจากกล้อง โมดูลนี้จะมีวงจรควบคุมภายใน และสามารถสื่อสารผ่าน SPI (Serial Peripheral Interface) กับ Arduino   สเปคของ Micro SD Card Module   รายการ รายละเอียด แรงดันไฟเลี้ยง 3.3V – 5V (ใช้กับ Arduino ได้โดยตรง) อินเตอร์เฟส SPI (MISO, MOSI, SCK, CS) ความจุรองรับ การ์ด Micro SD สูงสุด 32GB (FAT16 หรือ FAT32) แรงดันระดับลอจิก มีวงจรแปลงระดับ 5V → 3.3V ในตัว ขาเชื่อมต่อ VCC, GND, MISO, MOSI, SCK, CS ขนาดการ์ด รองรับการ์ด Micro SD แบบมาตรฐาน   การใช้งานกับ Arduino ✅ การต่อสายกับ Arduino Uno SD Module Pin Arduino Uno Pin VCC 5V GND GND MISO Pin 12 MOSI Pin 11 SCK Pin 13 CS (Chip Select) Pin 10 **สำหรับบอร์ดอื่น เช่น ESP32 หรือ Mega2560, ขา SPI อาจต่างกันเล็กน้อย   ✅ ตัวอย่างโค้ด Arduino (บันทึกข้อความลงการ์ด): #include <SPI.h> #include <SD.h>   const int chipSelect = 10;   void setup() { Serial.begin(9600);   if (!SD.begin(chipSelect)) { Serial.println("Can't access SD Card"); return; } Serial.println("Successfully started using SD Card");   File dataFile = SD.open("data.txt", FILE_WRITE);   if (dataFile) { dataFile.println("Record data: Hello SD Card!"); dataFile.close(); Serial.println("Data saved successfully"); } else { Serial.println("Unable to open file."); } }   void loop() { // Able to perform repetitive tasks, such as writing sensor data every 5 seconds } 📌 การประยุกต์ใช้งาน: ✅ Data Logger (เก็บข้อมูลจากเซนเซอร์) ✅ บันทึกเหตุการณ์ (Log Event) ✅ เก็บภาพจากกล้อง (เช่นใช้ร่วมกับ ESP32-CAM) ✅ เล่นไฟล์เสียง (เช่น WAV) ✅ เก็บข้อความหรือข้อมูล JSON, CSV ⭐ ข้อดี: ง่ายต่อการใช้งานกับ Arduino ใช้พลังงานต่ำ บันทึกข้อมูลได้เยอะกว่าหน่วยความจำในบอร์ด อ่านข้อมูลจากการ์ดได้โดยตรงจากคอมพิวเตอร์  

    20 in stock

    15.00 ฿

  • OLED i2c for Arduino

    Global Pi Shop OLED i2c for Arduino

    20 in stock

    OLED I2C คือ OLED (Organic Light-Emitting Diode) คือจอแสดงผลชนิดหนึ่งที่ใช้ หลอด LED ขนาดจิ๋ว เป็นจุดพิกเซลในการแสดงผล โดยไม่ต้องมีแสงพื้นหลังเหมือน LCD เมื่อนำมาใช้กับ Arduino มักจะมาในรูปแบบโมดูล ขนาดเล็ก (0.96 นิ้ว หรือ 1.3 นิ้ว) และใช้การสื่อสารแบบ I2C (สองสาย) ทำให้ต่อวงจรง่าย ใช้ขาน้อย   I2C (Inter-Integrated Circuit) คือโปรโตคอลสื่อสารที่ใช้เพียง 2 ขา คือ: SDA (ข้อมูล) SCL (สัญญาณนาฬิกา)   สเปคของ OLED I2C รายการ รายละเอียด ขนาดจอ 0.96 นิ้ว (หรือ 1.3 นิ้ว) ความละเอียด 128x64 พิกเซล (หรือ 128x32) สีที่แสดง โมโนโครม (ขาว / ฟ้า / เหลือง) แรงดันไฟเลี้ยง 3.3V – 5V (ใช้กับ Arduino ได้โดยตรง) โปรโตคอลสื่อสาร I2C (ขา SDA / SCL) ชิปควบคุมจอ SSD1306 (นิยมที่สุด) จำนวนขา 4 ขา: VCC, GND, SDA, SCL กระแสที่ใช้ น้อยมาก (~20mA)   การใช้งานกับ Arduino ✅ การต่อสาย (กับ Arduino Uno/Nano) OLED Pin Arduino Pin VCC 5V GND GND SDA A4 SCL A5 ถ้าใช้ ESP8266/ESP32 ตำแหน่งขา SDA/SCL จะต่างออกไป   ✅ การติดตั้งไลบรารีใน Arduino IDE: ไปที่ Tools > Manage Libraries ค้นหาและติดตั้ง: Adafruit SSD1306 Adafruit GFX Library   ✅ ตัวอย่างโค้ดแสดงข้อความ: #include <Wire.h> #include <Adafruit_GFX.h> #include <Adafruit_SSD1306.h>   #define SCREEN_WIDTH 128 #define SCREEN_HEIGHT 64   Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, -1);   void setup() { if (!display.begin(SSD1306_SWITCHCAPVCC, 0x3C)) { // 0x3C = I2C address Serial.println(F("OLED not found!")); for (;;); }   display.clearDisplay(); display.setTextSize(2); display.setTextColor(SSD1306_WHITE); display.setCursor(0, 10); display.println("Hello!"); display.display(); }   void loop() { // ทำงานอื่น ๆ ได้เลย จอจะค้างข้อความไว้ }   ✅ การประยุกต์ใช้งาน: แสดงค่าเซนเซอร์ เช่น อุณหภูมิ, ความชื้น, ค่าฝุ่น ทำเมนูควบคุมระบบ แสดงข้อความ/สถานะระบบ/ไอคอน นาฬิกา, ตัวนับเวลา, สถานะ Wi-Fi ฯลฯ 📌 ข้อดีของ OLED I2C คมชัดแม้จอเล็ก ไม่ต้องใช้ backlight → ประหยัดพลังงาน ใช้ขาน้อย → เหลือ GPIO ให้ใช้อย่างอื่นได้

    20 in stock

    60.00 ฿

  • ESP32 WI-fI USB Type C board

    Global Pi Shop ESP32 WI-fI USB Type C board

    20 in stock

    ESP32 Wi-Fi USB Type-C is The ESP32 is a microcontroller board developed by Espressif Systems, which is an enhanced version of the ESP8266, with more capabilities such as: Built-in Wi-Fi and Bluetooth (BLE) More speed and RAM Better support for multi-threading and complex tasks. You can use it to program through Arduino IDE, MicroPython, or ESP-IDF. Nowadays, newer ESP32 boards come with USB Type-C ports for easy plugging in, easier to use than Micro USB and more durable. ESP32 Specifications (General) list details Main chip ESP32 (various models such as ESP32-WROOM-32, S2, C3, S3) CPU Dual-core Xtensa LX6 @ 240MHz Wi-Fi 802.11 b/g/n 2.4GHz Bluetooth Bluetooth 4.2 + BLE (some models support BT 5.0) Flash memory 4MB or more SRAM ~520KB Working pressure 3.3V (but can receive power via USB 5V, has a built-in regulator) GPIO (digital pin) Up to ~30 legs (depending on model) Analog Input (ADC) Up to 18 channels (12-bit) Analog Output (DAC) 2 channels (8-bit) Communication UART, I2C, SPI, PWM, CAN, IR, etc. USB Type-C Used for uploading programs and supplying power. Support Li-ion battery Some models have built-in charging circuitry (e.g. ESP32-C3 DevKit). Using ESP32 ✅ Suitable for work: IoT (Internet of Things) such as controlling devices via Wi-Fi Smart Home (turn on/off lights, measure temperature, control via mobile phone) Bluetooth communication, such as sending and receiving data with mobile phones ESP-NOW / MQTT / HTTP / WebSocket all work. Connect to Cloud such as Firebase, LINE Notify, Blynk, Telegram, etc. ✅ Popular usage examples: Measure temperature and humidity with DHT11/DHT22 and send it to the web. Control lights/relays via mobile app or web server Connect OLED/LED display wirelessly Use as a Wi-Fi Hotspot or Web Server Make an AI training system (some models have Camera + TensorFlow Lite) Example code to open Wi-Fi Web Server on ESP32: #include <WiFi.h> const char* ssid = "WiFi name"; const char* password = "password"; WiFiServer server(80); void setup() { Serial.begin(115200); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) { delay(500); Serial.print("."); } Serial.println("\nConnected successfully: "); Serial.println(WiFi.localIP()); server.begin(); } void loop() { WiFiClient client = server.available(); if (client) { client.println("HTTP/1.1 200 OK"); client.println("Content-Type: text/html"); client.println(); client.println("<h2>Hello from ESP32!</h2>"); delay(1000); } } 📌 Advantages of the USB Type-C model: Easy to insert, no need to worry about turning it inside out. Good current support The cable can be used with new mobile phones.

    20 in stock

    155.00 ฿

  • Magnetic Door Switch MC-38 Magnetic door switch

    Global Pi Shop Magnetic Door Switch MC-38 Magnetic door switch

    Out of stock

    MC-38 Normally Closed <Normally Closed principle is together, the signal is on, with the wired host use can not be used alone> MC-38 is normally closed: the magnet is close to the conduction, the magnet is away from the circuit breaker. MC-38A is normally open: the magnet is close to the closed (disconnected), the magnet is away from the open circuit Action distance: 18mm ± 6mm Lifetime: 1,000,000 times Switching output: often closed (together with the conductive) Open type, suitable for non-ferrous doors or windows Surface mountin

    Out of stock

    25.00 ฿

  • PS2 XY Joystick Module

    Global Pi Shop PS2 XY Joystick Module

    Out of stock

    It is used for directional control, similar to that used in video games, by providing an analog output using two potentiometers to read the position of the joystick.

    Out of stock

    30.00 ฿

  • HC-SR04 Ultrasonic Sensor

    Global Pi Shop HC-SR04 Ultrasonic Sensor

    Out of stock

    Working voltage : DC 5 V Static current : 3 mA Working temperature : 0 ~ + 70 Output way : GPIO Induction Angle : Less than 15 Detection range : 2 cm to 4 m Detecting precision : 0.3 cm + 1% Sensor size : Approx. 45.1 x 20 x 14.5mm

    Out of stock

    35.00 ฿

  • Soil Moisture Sensor Module Soil Moisture Sensor For Arduino

    Global Pi Shop Soil Moisture Sensor Module Soil Moisture Sensor For Arduino

    20 in stock

    Soil Moisture Sensor is a popular device in Smart Farm projects or automatic watering systems. It works with Arduino easily, is cheap, and is suitable for learning and experimenting. Soil Moisture Sensor Soil moisture sensor is a sensor that detects the moisture level in the soil by measuring the conductivity between the probe legs (similar to measuring the resistance of soil). Dry soil → low conductivity → low value obtained Moist soil → High conductivity → High obtained value Sensors often come with a conversion module that provides both analog and digital pins. Soil Moisture Sensor Specifications list details Supply voltage 3.3V – 5V Current used About 10mA Output signal Analog (A0) and Digital (D0) Detection range General soil moisture levels structure 2 probe legs (ground plug), signal converter board has a threshold adjustment potentiometer The Digital Output will give a HIGH or LOW value according to the threshold we set. Using with Arduino Wiring: Soil Sensor Pin Arduino Pin VCC 5V GND GND A0 (Analog) A0 D0 (Digital) D2 (if used) Analog code example: ------------------------------------------------------------------------------ int sensorPin = A0; void setup() { Serial.begin(9600); } void loop() { int value = analogRead(sensorPin); Serial.print("Soil moisture : "); Serial.println(value); delay(1000); } ---------------------------------------------------------------------------------------------- The value returned by analogRead() will be between 0–1023. High value = dry soil Low value = moist soil Digital code example: ---------------------------------------------------------------------- int sensorDigital = 2; void setup() { pinMode(sensorDigital, INPUT); Serial.begin(9600); } void loop() { int value = digitalRead(sensorDigital); if (value == LOW) { Serial.println("Moist soil"); } else { Serial.println("Dry soil"); } delay(1000); } Additional tips: Do not leave the sensor plugged into the ground for a long time (rust may occur). Use the relay together with a water pump or electric valve to automatically water plants. If you want more accuracy, try using a capacitive soil moisture sensor instead of the regular one (it is more durable and does not rust).

    20 in stock

    15.00 ฿

  • MQ-2 Smoke Gas Sensor For Arduino

    Global Pi Shop MQ-2 Smoke Gas Sensor For Arduino

    20 in stock

    The MQ-2 sensor is a very popular gas sensor for use with Arduino and other microcontroller boards, and is ideal for home gas or smoke detection projects, such as gas leak alarms. MQ-2 is The MQ-2 is a gas sensor that can detect many types of gases such as: LPG (cooking gas) Butane gas Propane gas Methane gas (CH₄) Hydrogen gas (H₂) Smoke alcohol Inside the sensor is a heating coil and a SnO₂ (tin dioxide) gas detector, whose resistance changes in the presence of gas in the air, allowing it to be converted to an electrical signal. MQ-2 specifications list details Supply voltage 5V DC Electrical power About 800mW Signal type Analog and digital (depending on module) Warm-up time About 20 seconds to 2 minutes Detectable gases LPG, Methane, Alcohol, Propane, Hydrogen, Smoke Detection range Approximately 300 - 10,000 ppm Number of legs 4 legs (VCC, GND, AOUT, DOUT) AOUT (Analog Out) – Analog signal indicating gas level. DOUT (Digital Out) – Digital signal (1 or 0) when gas level exceeds set point. Using MQ-2 with Arduino Wiring: MQ-2 Pin Arduino Pin VCC 5V GND GND AOUT A0 (Analog) DOUT D2 (Digital) (if used) Some MQ-2 modules have a potentiometer (adjuster) to set the threshold level on DOUT. Example code for use in Analog: int mq2Pin = A0; void setup() { Serial.begin(9600); } void loop() { int gasLevel = analogRead(mq2Pin); Serial.print("gasLevel: "); Serial.println(gasLevel); delay(1000); } Example of code for Digital usage: int mq2Digital = 2; void setup() { pinMode(mq2Digital, INPUT); Serial.begin(9600); } void loop() { int gasDetected = digitalRead(mq2Digital); if (gasDetected == LOW) { Serial.println("gas detect!"); } else { Serial.println("Safe"); } delay(1000); }

    20 in stock

    25.00 ฿

  • DHT11 Humidity and Temperature sensor For Arduino Nodemcu ESP32

    Global Pi Shop DHT11 Humidity and Temperature sensor For Arduino Nodemcu ESP32

    20 in stock

    The DHT11 sensor is one of the most popular sensors for measuring temperature and humidity, especially in Arduino projects because it is easy to use, cheap, and readily available. What is DHT11? DHT11 is a sensor that measures temperature and relative humidity in the air. This sensor has a capacitive humidity sensor and a thermistor temperature sensor inside, which outputs digital data, making it very easy to connect to Arduino. DHT11 specifications list details Humidity measurement range 20–90% RH (±5% RH) Temperature measurement range 0–50°C (±2°C) Supply voltage 3.3V – 5.5V Output signal Single-wire digital Read Rate 1 time/second (1Hz) Number of legs 3 legs (VCC, GND, Data) or 4 legs (if it is a module but actually uses 3 legs) Using DHT11 with Arduino Wiring: DHT11 Arduino VCC 5V GND GND DATA Digital Pin (eg. D2) Some models have a pull-up resistor (about 10KΩ) already attached to the module. If it is a bare sensor, you may need to connect your own resistance. Arduino code example: Requires DHT library, which can be installed via Library Manager. define DHTPIN 2 // The pin connected to the DHT11's Data #define DHTTYPE DHT11 // The type of sensor DHT dht(DHTPIN, DHTTYPE); void setup() { Serial.begin(9600); dht.begin(); } void loop() { float h = dht.readHumidity(); float t = dht.readTemperature(); if (isnan(h) || isnan(t)) { Serial.println("Read failed!"); return; } Serial.print("Humidity: "); Serial.print(h); Serial.print(" %\t"); Serial.print("Temperature: "); Serial.print(t); Serial.println(" *C"); delay(2000); // wait 2 seconds }

    20 in stock

    25.00 ฿

  • Last stock! 3-Axis Digital Compass Breakout Board

    Global Pi Shop 3-Axis Digital Compass Breakout Board

    2 in stock

    Specification Simple I2C interface 3.3V - 5.0VDC supply 3.3VDC logic level Low current draw 5 milli-gauss resolution Dimension: 15mm x 13mm

    2 in stock

    100.00 ฿

© 2025 บริษัท โกลบอลโทรนิค อินเตอร์เทรด จํากัด, Powered by Shopify

  • PayPal

Login

Forgot your password?

Don't have an account yet?
Create account