Sale!

PLUS Module Encoder Module with MEGA328P 400mAh Battery ISP IR Transmitter UART/GPIO Port ESP32 Kit

Original price was: $103,31.Current price is: $51,88.

2000 in stock

SKU: 1538466BANG Category:

Description

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:
  • 400mAh 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.5gPackage Included:
  • 1x M5Stack PLUS Module
Related Link:EasyLoaderclick to download EasyLoader1.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 tutorialExample:for IDEThe 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 <.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 } }Copy to clipboardErrorCopied

Schematic: