Information
Item weight
Barcode
Created time
Last updated on
Item description
รายละเอียดสินค้า

ใช้วัดความเร็วรอบรถ Smart car โดยใช้ลำแสงยิงไปยังตัวรับ ใช้คู่กับเฟือง Encoder ที่แถมมากับรถ Smart car หรือจะทำฟันเฟืองเองก็ได้เช่นกัน

Datasheet trigger
Datasheet reader

ตัวอย่าง Code

สามารถเขียนโปรแกรมได้ทั้งแบบอ่านตรงๆด้วย digitalRead หรือ Interrupt (แนะนำ) โดยตัวอย่างนี้จะเสนอวิธีการเขียนแบบ Interrupt ครับ

CODE arduino interrupt encoder

  int U_Pin = 2;
  float Val = 0;
  float time;
  float Speed;
   
  void setup(){
   
  Serial.begin(9600);
  attachInterrupt(0,count,CHANGE);
  }
   
  void loop(){
   
  time = millis();
  Speed = (Val/40)/(time/60000) ;
  Serial.println(Speed);
  }
   
  void count(){
  Val += 1;
  }

รายละเอียดเพิ่มเติม

Features:
 
The slot type photoelectric sensor is composed of an infrared light emitting diode and an NPN phototransistor with a groove width of 5.9 mm. As long as the non-transparent object passes through the slot type, it can be triggered (used with our car code wheel) to output TTL low level. The Schmitt trigger is used to shake the pulse, which is very stable and can be used for measuring the speed of the car, measuring the distance and the like! M3 screw mounting holes at both ends.
 
Specifications:
 
Working voltage: 3.3V-5V
Output form: digital switch OUT output (0 and 1)
 
Instructions for Use:
 
1. Connect VCC and GND, the module signal indicator will light up.
2. When there is no occlusion in the module slot, the receiving tube is turned on, and the module OUT outputs a high level; when occluding, the OUT output is low, and the signal indicator is off.
3. The module OUT can be connected to the relay to form a limit switch and other functions. It can also be connected to the active buzzer module to form an alarm.
4. The OUT output interface can be directly connected to the IO port of the MCU. Generally, it is connected to an external interrupt to detect whether the sensor has a occlusion. If the motor code plate is used, the motor speed can be detected.
 
Note:
 
1. Correct wiring! Never reverse the positive and negative, causing the board electronics to burn out. 
2. Arduino players should set the MCU's I/O port to input mode/receive mode, otherwise they will not be available. Other MCUs, or more advanced control boards such as ARM, must be set to input mode/receive mode if the I/O port needs to be set to input/output mode, otherwise it cannot be used. 
3.The 51 series MCU can be used directly without setting the input/output mode.
Conditions
Tags

Exchange or return policy



Every item comes with a 30-day warranty. However, there are certain conditions that apply:

  1. 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).

  2. The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).

  3. 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:

  1. Provide a detailed description of the damaged item(s).
  2. Mention any tests or experiments conducted by the customer.

Please note that the store reserves the right to make the final decision regarding product replacement or refund.

English

Categories

TRACK & TRACE

*Enter your order ID or email used in placing an order

OVERVIEW

Pageviews2,072,402 view(s)
Visitors1,333,128 time(s)
Last updatedSep 6, 2025

JOIN US

ร้านModuleMore
ร้านModuleMore
/www.modulemore.com/en
Join as a Member
600
Become a member of this store to receive special offers and promotions
Choose your language
Language
Currency
Change
Modify language
My orders
This seller's information
ร้านModuleMore
ModuleMore
Arduino compatible board, Iot, ESP32, ESP8266, Nodemcu, Raspberry pi, micro:bit and etc.
Mobile number : 0831710868
E-mail : paheyisoicus@gmail.com
Send message to seller
About this seller
Recently viewed items
Favourite this seller
Join as a Member
Share this page
Share this page

TOP Back to top
Contact me