Price:
US$9.95

Free Shipping

M5Stack® PLUS Module Encoder Module with MEGA328P 500mAh Battery ISP IR Transmitter UART/GPIO Port for ESP32 Kit

Compatibility

To confirm that this part fits your vehicle, please enter your vehicle's details below.

  • Year:

    Select

    • Make:

      Select

      • Model:

        Select

        • Submodel:

          Select

          • Trim:

            Select

            • Engine:

              Select

              • Clear All
              This part is compatible with 0 vehicle(s).
              Show all compatible vehicles
              This part is compatible with 1 vehicle(s) matching
              This part is not compatible with
              Recent searches

                • Year
                • Make
                • Model
                • Submodel
                • Trim
                • Engine

                  Description:

                  PLUS is a enhanced M5 module comes with Lipo battery(500mAh), gear potentiometer, IR transmitter, extend PORT B(GPIO Port), PORT C(UART Port) from M5 core and a Microphone soldering pad. Powered with MEGA328, it could be a great upgrade of the hardwre resources by adding up PLUS to your work.

                  Communication Protocol: IIC (0x62).

                  Product Features:

                  • 500mAh Battery

                  • Programmable gear potentiometer

                  • IR transmitter

                  • Including PORT B and PORT C

                  • Product Size: 4.2mm x 54.2mm x 12.8mm

                  • Product weight: 20.5g

                    Package Included:

                  • 1x M5Stack PLUS Module

                  EasyLoader

                  1.EasyLoader is a simple and fast program burner. Every product page in EasyLoader provides a product-related case program. It can be burned to the master through simple steps, and a series of function verification can be performed.(Currently EasyLoader is only available for Windows OS)

                  2.After downloading the software, double-click to run the application, connect the M5 device to the computer via the data cable, select the port parameters, and click "Burn" to start burning.

                       3.The CP210X (USB driver) needs to be installed before the EasyLoader is burned. Click here to view the driver installation tutorial

                  Example:

                  for Arduino IDE

                  The Code below plus_read_encoder.ino is incomplete. To get the complete code, please click here.

                  /*
                  * Read data from the gear potentiometer
                  * Send infrared light
                  */
                  #include <Arduino.h>
                  #include <M5Stack.h>
                  
                  #define IrPin 13
                  #define PLUS_ADDR 0x62
                  
                  // declaration
                  int32_t number = 0;
                  uint8_t press = 0;
                  
                  // initialization
                  M5.begin(true, false, false);
                  Wire.begin();
                  ledcSetup(1, 38000, 10); ledcAttachPin(IrPin, 1);// IR Pin setting
                  
                  // read data
                  Wire.requestFrom(PLUS_ADDR, 2);
                  while(Wire.available()) {
                      int8_t encode = Wire.read();
                      uint8_t press_n = Wire.read();
                      number += encode;
                      if(press_n == 0xff) {
                          press = 0;//encoder was pressed
                      }
                      else {
                          press = 1;//encoder was releaed
                      }
                  }

                  Schematic:
                   


                  Leave a Comment