Sale!

CJMCU-111 Encoder Module

Original price was: 3,63 €.Current price is: 2,63 €. Excluding VAT

The CJMCU-111 encoder module measures rotations with precision. Perfect for robotics and autonomous vehicle projects.

Available on back-order

Domande su questo prodotto? Scrivi a Lana su WhatsApp

🎬 The product on video

Description

Tutorial: How to use CJMCU-111

The CJMCU-111 is an encoder module that measures the rotation and number of turns of a motor or mechanism. Ideal for projects requiring precision in measuring angles and turns.

What you need

  • CJMCU-111
  • Arduino UNO
  • Power cable
  • 10kΩ resistor

Steps

  1. 1. Connect the CJMCU-111 to the Arduino UNO using the following pins: VCC to 5V, GND to GND, D0 to pin 2.
  2. 2. Connect the 10kΩ resistor between pin D0 and VCC.
  3. 3. Upload the following sketch to Arduino.
  4. 4. Connect the module to the motor or mechanism to be monitored.
  5. 5. Run the code and check the values printed on the Serial Monitor console.
  6. 6. Refer to the datasheet for further details on read frequencies.
  7. 7. Adjust the read frequency based on your requirements.
  8. 8. Test the module with different turns to ensure it works correctly.

Example code

```
#include <Encoder.h>

Encoder myEncoder(2);

void setup() {
  Serial.begin(9600);
}

void loop() {
  Serial.println(myEncoder.read());
}
```

Mini project

Build a simple robot that moves forward and backward, controlling the motor rotation with the CJMCU-111.

Common mistakes

  • Forget to connect the 10kΩ resistor between D0 and VCC.
  • Connect the pins incorrectly on the CJMCU-111.
  • Do not configure the read frequency correctly.
  • Do not use the Serial Monitor console to check the values.

Recommended accessories

  • DC Motors
  • Arduino UNO
  • 10kΩ Resistor
  • Power Cable

Frequently asked questions

Which pins to use to connect the CJMCU-111?
Connect VCC to 5V, GND to GND and D0 to pin 2.

What to do if the module does not work?
Check the connectors, the resistor, and the code. Consult the datasheet for further details.

Can I use the CJMCU-111 with other microcontrollers?
Check the datasheet for compatibility with other microcontrollers.

Reviews

There are no reviews yet.

Be the first to review “CJMCU-111 Encoder Module”

Your email address will not be published. Required fields are marked *