Loading...

MOC7811 - Encoder Sensor

Rating:
89%
Encoder Sensors
₹30.00 ₹ 25.42 + 4.58 GST
In stock
SKU
PRO255

1-3 Days Express Shipping in India Available

Bulk Pricing
QTYUnit Price(Inlc. GST)
50+ ₹29.40 ₹ 24.92 + 4.49 GST
100+ ₹28.80 ₹ 24.41 + 4.39 GST
150+ ₹28.20 ₹ 23.9 + 4.3 GST
200+ ₹27.60 ₹ 23.39 + 4.21 GST

Contact us for Higher Quantities.

Contact us for Higher Quantities

The MOC7811 is a compact infrared optical sensor featuring a matched IR emitter and receiver. Perfect for rotary encoders, wheel speed detection, and positioning systems in tight spaces.

Struggling to get precise RPM readings from your custom robotics chassis, or trying to figure out why your mechanical axes aren't homing correctly? If you are building a motorized project, operating in an "open-loop" system—where you just send power to a motor and hope it spins at the right speed often leads to inaccurate navigation and sloppy control. Knowing exactly how fast your wheels are turning, or precisely what angle a robotic joint is positioned at, is the critical difference between a basic hobby toy and a professional-grade prototype.

The MOC7811 Optical Encoder Sensor is your tiny, highly reliable solution to this problem. At its core, this simple but incredibly effective slotted photointerrupter operates using a precisely matched infrared (IR) emitter and a phototransistor receiver mounted facing each other across a small air gap. When power is applied to the emitter side, the IR LED casts a continuous, invisible beam of light across this slot directly into the receiver.

The magic happens when you introduce a slotted encoder disk or a mechanical end-stop flag into that gap. Every time an opaque solid object breaks the infrared beam, the phototransistor briefly turns off, creating a distinct electrical pulse. By connecting this analog output to a comparator circuit and feeding it into your microcontroller, your Arduino, ESP32, or Raspberry Pi can count these pulses over time to calculate exact motor RPM, track linear distance traveled (odometry), or reliably detect the physical end-limit of a moving CNC track.

Specifications

  • Sensor Type: Slotted Optical Switch / Photointerrupter
  • Sensing Technology: Infrared (IR) Emitter & Phototransistor Receiver
  • Gap Width: Standard ~3mm to 5mm slot (Perfect for acrylic or PCB encoder disks)
  • Output: Analog (Requires an external comparator or ADC for clean digital logic)
  • Operating Voltage: 3.3V to 5V (Typical for IR LED and Receiver circuits)
  • Package Style: Compact black plastic housing to block ambient light interference
  • Mounting: Features two built-in mounting holes on the body for easy chassis integration

Applications

  • Robotics & Odometry: Build custom wheel encoders to track exactly how far your autonomous rover has traveled.
  • Motor Speed Control: Monitor the RPM of DC gear motors to implement precise PID control loops.
  • Industrial Automation: Use as a non-contact limit switch or object counter on small conveyor belts.
  • 3D Printers & CNC: Highly repeatable end-stop detection for linear rails and mechanical axes.
  • DIY Tachometers: Accurately measure the rotational speed of cooling fans, spindles, or any rotating shaft.

Unlock New Capabilities

  • Past Projects: If you've mastered basic obstacle avoidance using generic IR modules, you know they can be sensitive to ambient light and reflection angles.
  • The Upgrade: The MOC7811 unlocks closed-loop control. Instead of just telling a motor to "go forward," this sensor allows your microcontroller to verify that the motor is actually turning at the requested speed.

Package Includes:

  • 1 x MOC7811 - Encoder Sensor

Frequently Asked Questions (FAQ)

  • What is the MOC7811 sensor used for?
    It is used to detect the presence of an object passing through its slot, commonly used with slotted disks to measure motor speed (RPM) or position.
  • Does the MOC7811 output a digital or analog signal?
    The raw MOC7811 outputs an analog signal based on the amount of light hitting the phototransistor. You need external resistors or a comparator to convert it to a clean digital pulse.
  • Can I connect the MOC7811 directly to an Arduino?
    Yes, but you MUST use a current-limiting resistor for the internal IR LED and a pull-up resistor for the phototransistor output.
  • What voltage does the MOC7811 require?
    The internal IR LED typically drops around 1.2V to 1.5V, but the system is usually powered from a 3.3V or 5V source using the appropriate resistors.
  • How do I calculate motor RPM using this sensor?
    Count the number of pulses in a specific time frame using an interrupt, then divide by the number of slots on your encoder disk, and multiply by 60 to get RPM.
  • Why is my microcontroller missing pulses at high speeds?
    You likely need a comparator circuit (like an LM393) to square up the analog waveform into a sharp digital signal, or you need to use hardware interrupts instead of polling the pin.
  • Is the MOC7811 affected by sunlight?
    While the black plastic housing blocks most ambient light, intense direct sunlight hitting the gap can sometimes cause false readings.
  • What is the gap width of the MOC7811?
    The gap is wide enough to comfortably fit standard 3mm acrylic or PCB-based rotary encoder disks.
  • Can it detect the direction of rotation?
    A single MOC7811 can only detect speed (pulses). To detect direction, you need two sensors positioned in a quadrature arrangement.
  • What resistor value should I use for the IR LED?
    For a 5V supply, a 220Ω or 330Ω resistor is standard to limit the forward current to a safe operating level.
  • What resistor value should I use for the phototransistor?
    A 10kΩ pull-up resistor on the collector pin is standard for interfacing with microcontroller logic.
Write Your Own Review
Only registered users can write reviews. Please Sign in or create an account

How to Order?

Probots sells every Electronics Part for your next Project. You can order 10,000+ Electronic Parts Online - Arduino, Raspberry Pi, NodeMCU Development Boards, Sensors, Motors, Motor Drivers, SMPS, Plastic Enclosures etc in India directly on probots.co.in

  • Place an order online our website probots.co.in for quick and fast delivery
  • You can contact us by phone, Whatsapp or Mail for bulk enquiries, technical queries or order related enquiries before placing the order.
  • If you require a Quotation or PI for your company, send us a request mail and we will help you with it.

Delivery Time?

We delivery electronics components and parts throughout India using standard couriers like Bluedart, Delhivery & India Post.

  • Dispatch Time: 1 Working Day for most orders
  • Guranteed Delivery Time: 1-3 days within India under Express Shipping

How to buy Electronics Components in Bangalore?

  • We offer store pickups for walkin customers in Bangalore. This is the fastest way to get electronic components in Bangalore.
  • Customers can visit our store to buy parts directly
  • Alternatively, you can place orders online and select Select Pickup as the delivery option and have your order picked up by Dunzo, Porter, etc. Please contact us for confirmation before arranging a pickup.

Need Help?

For order related queries contact -

Probots sells every Electronics Part for your next Project. You can order 10,000+ Electronic Parts Online - Arduino, Raspberry Pi, NodeMCU Development Boards, Sensors, Motors, Motor Drivers, SMPS, Plastic Enclosures etc in India directly on probots.co.in

We offer specialized services for Bulk, Wholesale & B2B Customers like discounted prices, additional shipping options, customised products, etc . Customer with large quantity & regular orders qualify for the specialised discounted rates.

We also offer dedicated sales team to assist you with the order process by providing sales quotations, PI, technical support for choosing products, etc.

Note: Business Orders are processed manually and usually take 1-3 days  to process compared to placing the order directly on our website. Please plan your purchases accordingly.

Need Help?
For bulk enquiries contact us by  -

Customer also viewed

L298 Motor Driver IC
L298 Motor Driver IC
Rating:
93%
Encoder Sensors
₹179.00 ₹ 151.69 + 27.3 GST
Wireless Charging Module High Output Coil 5V, 2A
Wireless Charging Module High Output Coil 5V, 2A
Rating:
92%
Encoder Sensors
₹1,299.00 ₹ 1100.85 + 198.15 GST
28BYJ-48 Stepper Motor and ULN2003 Stepper Motor Driver
28BYJ-48 Stepper Motor and ULN2003 Stepper Motor Driver
Rating:
91%
Encoder Sensors
₹119.00 ₹ 100.85 + 18.15 GST
1 Channel Relay - 5V
1 Channel Relay - 5V
Rating:
89%
Encoder Sensors
₹59.00 ₹ 50 + 9 GST
GIC 30A6B1 90-264 / 270-460 VAC AC Analog Hour Meter Din Rail Mount Single and three phase
GIC 30A6B1 90-264 / 270-460 VAC AC Analog Hour Meter Din Rail Mount Single and three phase
Rating:
89%
Encoder Sensors
₹849.00 ₹ 719.49 + 129.51 GST
GIC MAC04D0100 SM500 - 3Ph, 4W Neutral Loss Protection 3 Phase Voltage Sequence Monitoring Relay Series
GIC MAC04D0100 SM500 - 3Ph, 4W Neutral Loss Protection 3 Phase Voltage Sequence Monitoring Relay Series
Rating:
90%
Encoder Sensors
₹1,899.00 ₹ 1609.32 + 289.68 GST
PES41 CircuitX Plastic Enclosure
PES41 CircuitX Plastic Enclosure
₹79.00 ₹ 66.95 + 12.05 GST
Multi-stranded Hookup Wire
Multi-stranded Hookup Wire
Rating:
91%
Encoder Sensors
₹70.00 ₹ 59.32 + 10.68 GST
Solder Sponge
Solder Sponge
Rating:
90%
Encoder Sensors
₹49.00 ₹ 41.53 + 7.48 GST
CircuitX Wall Mount Plastic Enclosure - Medium PEM20 Black
CircuitX Wall Mount Plastic Enclosure - Medium PEM20 Black
Rating:
90%
Encoder Sensors
₹76.00 ₹ 64.41 + 11.59 GST

Similar Products in this Category

Common Cathode 7 Segment Display 0.56" - Green
Common Cathode 7 Segment Display 0.56" - Green
Rating:
89%
Encoder Sensors
₹35.00 ₹ 29.66 + 5.34 GST
4mm to 8mm Flexible Coupler for 3D Printer CNC Shaft Metal
4mm to 8mm Flexible Coupler for 3D Printer CNC Shaft Metal
Rating:
87%
Encoder Sensors
₹149.00 ₹ 126.27 + 22.73 GST
ProMax PTB-1510 Terminal Strip Barrier Block with Transparent Cover
ProMax PTB-1510 Terminal Strip Barrier Block with Transparent Cover
₹250.00 ₹ 211.86 + 38.13 GST
5110 LCD Display Module PCD8544 48×84 pixels matrix controller
5110 LCD Display Module PCD8544 48×84 pixels matrix controller
Rating:
91%
Encoder Sensors
₹349.00 ₹ 295.76 + 53.24 GST
PB-BLDC-5840-3650 24V 470 RPM  Brushless DC Worm Gear Motor with Encoder
PB-BLDC-5840-3650 24V 470 RPM Brushless DC Worm Gear Motor with Encoder
Rating:
88%
Encoder Sensors
₹4,899.00 ₹ 4151.69 + 747.3 GST
9 Blade combination Screw driver Set with Tester
9 Blade combination Screw driver Set with Tester
Rating:
91%
Encoder Sensors
₹235.00 ₹ 199.15 + 35.85 GST
3 Pin JST GH Male Connector 1.25mm Right Angle
3 Pin JST GH Male Connector 1.25mm Right Angle
Rating:
90%
Encoder Sensors
₹26.00 ₹ 22.03 + 3.97 GST
12V  4.2A SMPS Metal Power Supply Mean Well    50.4W  LRS-75-15
12V 4.2A SMPS Metal Power Supply Mean Well 50.4W LRS-75-15
Rating:
92%
Encoder Sensors
₹1,399.00 ₹ 1185.59 + 213.41 GST

Bestselling Products

Popular Category Products

New Products

PROBOTS - ABOUT US

Probots offers Electronics Engineering Services to get your product from concept to production. We provide the following services - Circuit Designing, PCB Designing, Embedded Firmware Development, etc. We have successfully designed 100+ products in IoT, AI & ML, Automation, Robotics, Industrial Monitoring, Generic Consumer Devices, and Medical Devices.

We help customers build their own design and prototypes by supplying electronic parts. We stock a wide range of parts that we use for manufacturing products. These products are carefully sourced from best manufacturers at bulk pricings and we pass on the benefits to our customers. We sell Arduino, Raspberry Pi, IoT Sensors, ESP32, STM32 Development Boards, Electronic Components, Prototyping Tools and Robotics Parts.

Buy Arduino, Raspberry Pi, NodeMCU ESP32, Electronic Components, Plastic Enclosures and much more at Probots - India’s Largest Engineering and DIY Store

As one of India’s biggest distributors of electronic and technological components for the Embedded Systems and Robotics, we offer more than 110,000 products at a unique price-performance ratio, with maximum availability and minimum delivery times. With our broad spectrum of electronic components we are the ideal partner for component purchasing. In our online shop electronics engineers will find ICs and microcontrollers, as well as LEDs and transistors. We also offer resistors, capacitors, and pin-and-socket connectors and relays. We have the right equipment for your workplace, including soldering stations and multimeters as well as and high-quality tools. In addition, our product spectrum includes a large selection of items from plastic enclosures accessories and HDMI cables, batteries and rechargeable batteries. Have a look at our large selection of accessories. When it comes to and as well as connectors and memory cards our emphasis is on top quality at very attractive prices. Try out our fast dispatch service and top customer support, and compare our prices: We are certain that you will soon be among our satisfied customers.

WHERE TO BUY ELECTRONIC COMPONENTS ONLINE IN INDIA?

Probots sells the following items online - Arduino, Raspberry Pi Development Boards, NodeMCU ESP8266, ESP32, Sensors Modules, Electronic Components, Plastic Enclosures for Electronics, SMPS Power Suppliers, Resistors, Capacitors, and a wide range of products. You can order online on our website and we will deliver throughout India within 1-15 days.

ONLINE SHOPPING MADE EASY AT PROBOTS

If you would like to experience the best of online shopping for Electronic Modules & Components in India, you are at the right place. Probots is the ultimate destination for Electronics & Robotics, being host to a wide array of merchandise including Arduino, Raspberry Pi, NodeMCU ESP32, Sensors, Motor Drivers, Power Suppliers, SMPS, Batteries, Electronic Components, etc. You can get every part for your next project online and stop worrying about sourcing components from multiple sources. We sell products only after careful selection among multiple vendors. You can shop online at Probots from the comfort of your home and get your favourites delivered right to your doorstep.

BEST ONLINE SHOPPING SITE IN INDIA FOR ELECTRONICS & ROBOTICS

Irrespective of your project - IoT, Robotics, Python, OpenCV, AI, ML, Embedded Electronics, Automation, etc you will find all required components at probots.co.in. You will realise that the sky is the limit when it comes to the parts used in these projects and you can purchase them online on our store.

  • Plastic Enclosures
  • Electronic Modules
  • Electronics Components
  • Tools & Prototyping
  • Robotics 

BUY PLASTIC ENCLOSURES FOR ELECTRONICS IN INDIA

Probots manufactures and retails 100+plastic boxes and cases for electronic circuits. No minimum order quantity, bulk discounts available for business purchase. We make enclosures boxes for sensor nodes, controllers, IoT Products, handheld devices, wearables, wall mount devices, etc. 

Probots sells generic low cost effect enclosures, high quality premium IP65 Dust and Waterproof Enclosures, Enclosures with Transparent Lids, etc We have circuit enclosures boxes for all sizes - small, medium and large PCB boards. We also have Aluminium Enclosures, ABS enclosures, PVC Enclosures, Cabinets, Metal Boxes, etc. We also sell IP65 Waterproof PVC & Metal Cable Glands and Fan Filters

BUY Arduino Board Online India

Probots sells Arduino UNO, Arduino Mega, Arduino Nano, Arduino Pro, Mini, Micro, Lilypad, Due, and other development boards online in India. These boards come with Atmega328 and Atmega2560 and are great for learning electronics and programming. Order them online for your next robotics, electronic, IoT Project.


BUY Raspberry Pi Online India

Probots sells Raspberry Pi, Pico SBC (Single Board Computer), HDMI Displays, Raspberry Pi Starter Kit. We source them from official Distributors and offer the best quality development boards at lowest prices possible. We also sell a wide range of Raspberry Pi Accesories - Raspberry Pi Cameras & Lens, Heat sink Cases for Raspberry Pi, Raspberry Pi Sensors, Raspberry PI Power supplies, etc. Buy Raspberry Pi Online Now for your next Machine Vision Project, OpenCV Project, Image processing and recognition project!

Electronic Sensor Modules Online at Probots India

Buy Online Ultrasonic Sensors, Distance Sensors, Temperature Sensors, PIR Motion Sensors, ph Soil Sensors, Encoder Sensors, Magnetic Door Lock Sensors, Gas Sensors, Accelerometers & IMU Modules, Line Following Sensors, Force Flex Sensors, Current and Voltage Sensors, Flow Sensors, Light Sensors, Biometric Fingerprint Sensors, etc. We also have the latest electronic sensors for electronics and robotics like sound and voice sensors,  Gesture Recognition SEnsors, Load Cell Weight Sensors, etc. These sensors can be used with Arduino, Raspberry Pi, NodeMCU, ESP32 and other microcontrollers. Use them in your next electronics project. Order them online now.

Best Online Store for buying Electronic Components

Bits and pieces that make your project work are always hard to find. Probots has 500+ electronic components like Microcontroller ICs, LEDs, Header Pins, Connectors, Crystal Oscillators, Cables, Buzzers, Transistors, Motor Driver ICs,

Voltage Regulator ICs, ZIF & DIP Sockets, LED Holders, Switches, Potentiometers, LCD Displays, ICs, Resistors, Batteries & Holders, Heatsinks, Capacitors, Relays, Diodes, Heat shrink tubes, LED Displays, DIP Switches, Resistor Arrays, 7 Segment Displays, LED Strips, etc Chekout our wide range of electronic components and order them online in India now.

AFFORDABLE PARTS AT YOUR FINGERTIPS
Probots is one of the unique online electronics shopping sites in India where components are accessible to all. Check out our new arrivals to view the latest microcontrollers, sensors and ICs in the market. 

HISTORY OF PROBOTS
Becoming India’s no. 1 electronics destination is not an easy feat. Sincere efforts, digital enhancements and a team of dedicated personnel with an equally loyal customer base have made Proobts the onlie platform that it is today. The original B2C venture for electronics components was conceived in 2009 but transitioned into a full-fledged ecommerce giant within a span of just a few years. By 2012, Probots introduced 350 Indian and international brands to its platform, and this has only grown in number each passing year. Today Probots sits on top of the online electronics field with an astounding social media following, a loyalty program dedicated to its customers, and tempting, hard-to-say-no-to deals.

Probots Techno Solutions offers complete turn-key Embedded Electronics Design & Engineering Services. We can work on Product Specification through Prototyping, Proof of Concept to Production depending on individual client needs. 

Probots is one of the top Electronics Design companies based out of Bangalore. We provide range of Embedded Engineering Services that include Circuit Designing, PCB Designing, Customised IoT Hardware, Embedded Firmware Development, Hardware Prototyping, Proof of Concepts & Electronic Manufacturing Services.

With close to 10 years of solid experience in Electronics Design, we have successfully completed 100s of complex Electronic Product Designs across a wide range of domains - Consumer Products, Industrial, Medical and Aerospace Industries. Our team has completed projects for Fortune 500 companies as well as start-ups using both traditional and cutting edge technologies. 

Probots also offers consultancy, and testing services across the product and process development life cycle. 

Our biggest strength is our agile team that utilises our core experience, to deliver quick turnarounds giving you faster time-to-market.

Probots Store Reviews

4.6
8 Reviews
5 ★
500
4 ★
56
3 ★
25
2 ★
12
1 ★
29
5.0
Delivery
5.0
Quality
4.7
Products
Value: Great
Value

What Our Customers Say

Probots Electronics is highly regarded for its great selection of components and professional service. Customers frequently praise the awesome care and timely delivery provided by the team to ensure all products arrive safely.

Most relevant
Newest
Highest rating
Write a Review
📌 Showing reviews about:
No reviews found for this category. Show all reviews
Nischith shetty

Friendly staff but Too costly, price is 2x as compared to SP road.

Rajeev Ranjan Pandey

Worst experience. UPI payment of Rupee 1,609 was successfully debited, but the order was later cancelled and no refund was issued.

Varshaa Senthil kumar

The products were at reasonable cost and the service and care provided by the whole team to deliver it safe was really awesome.

Soma Dasgupta

Great selection of components. Highly recommended for electronics enthusiasts!

SANTHA KUMAR

Happy with my purchase from ProBots. Some components are slightly expensive compared to other stores, but many items are reasonably priced. Good support and service.

Arun R

Good store for IoT components. Prices could be better though.

Manoj K

Best place to buy electrical components. A bit pricey but worth it for the quality.

G C Electronics Jaipur

Good products - Timely delivery. Professional service.

Nischith shetty

Friendly staff but Too costly, price is 2x as compared to SP road.

Rajeev Ranjan Pandey

Worst experience. UPI payment of Rupee 1,609 was successfully debited, but the order was later cancelled and no refund was issued.

Varshaa Senthil kumar

The products were at reasonable cost and the service and care provided by the whole team to deliver it safe was really awesome.

Soma Dasgupta

Great selection of components. Highly recommended for electronics enthusiasts!

SANTHA KUMAR

Happy with my purchase from ProBots. Some components are slightly expensive compared to other stores, but many items are reasonably priced. Good support and service.

Arun R

Good store for IoT components. Prices could be better though.

Manoj K

Best place to buy electrical components. A bit pricey but worth it for the quality.

G C Electronics Jaipur

Good products - Timely delivery. Professional service.

  • Services (2)
  • Enclosures (211)
  • Modules (1449)
  • Components (2345)
  • Tools (260)
  • Robotics (1220)
Copyright © 2025-present Probots, Inc. All rights reserved.