Encoder Module for M5Stack FACES ESP32 Pocket Computer with 12pcs RGB LED MEGA328 Inside I2C M5Stack® for Arduino - products that work with official Arduino boards COD

Brand: M5Stack

{{$productInfo.reviewAmount.average}} out of 5

5 Star 6 (100.0%)
4 Star 0 (0.0%)
3 Star 0 (0.0%)
2 Star 0 (0.0%)
1 Star 0 (0.0%)
6 Reviews
ID: 1538395
Sold: 0 SKUC83418 Stocks: 0
US$00.00
Price alert
Ship From:
CN
No shipping method is available for this product to your location.
Shipping: US$00.00
to via
Shipping time: Arrival time = dispatch + shipping time
QTY:
This qualifies as a wholesale order,place an inquiry to receive our best price.Enquire Now!
Recommendation
    You May Also Like
    • Product details
    • Specification
    • Reviews (0)
    • Customer Q&As
    • Shipping & Payment

    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:

                    ENCODER is compatible with FACE Kit. You can have it replace the keycoard panel inside the FACE kit. It is designed for rotary encoder control, integrated Mega328 microprocessor inside and LEDs around the encoder.

                    The series communication protocol between M5 core and ENCODER is IIC (adress: 0x5E)

                    Product Features:

                    • 12 RGB Led
                    • IIC communication
                    • Simple API for programming
                    • Mega328 inside
                    • Encoder detection
                    • Product Size: 58.2mm x 54.2mm x 10mm
                    • Product weight: 17g

                    EasyLoader


                    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

                    Function:

                    Control single RGB

                      /*      Parameter:          led_index: 0 ~ 11          r, g, b: 0 ~ 254  */  void Led(int led_index, int r, int g, int b){      // IIC send data      Wire.beginTransmission(Faces_Encoder_I2C_ADDR);      Wire.write(led_index);      Wire.write(r);      Wire.write(g);      Wire.write(b);      Wire.endTransmission();  }

                    Read encoder increment

                      void get_encoder_increment(void){      int temp_encoder_increment;        // IIC read data      Wire.requestFrom(Faces_Encoder_I2C_ADDR, 3);      if(Wire.available()){         temp_encoder_increment = Wire.read();// get increment         button_state = Wire.read();// get button value      }      if(temp_encoder_increment > 127){//anti-clockwise          direction = 1;// flag for encoder direction          encoder_increment = 256 - temp_encoder_increment;      }      else{// clockwise          direction = 0;          encoder_increment = temp_encoder_increment;      }  }

                    Package Included:

                    • 1x M5Stack ENCODER Module
                    • Encoder turnpanel

                     

                    Example:

                    for IDE

                    If you want the complete code faces_encoder.ino, please click here.

                      /*  * faces_encoder.ino  */  #include <M5Stack.h>    #define Faces_Encoder_I2C_ADDR     0X5E    // declaration  int encoder_increment;//positive: clockwise nagtive: anti-clockwise  uint16_t encoder_value=0;  int button_state;  uint8_t direction;//0: clockwise 1: anti-clockwise  int temp_encoder_increment;    // initialization  M5.begin();  Wire.begin();    // get data from ENCONDER  Wire.requestFrom(Faces_Encoder_I2C_ADDR, 3);  if(Wire.available()){      temp_encoder_increment = Wire.read();// the first byte: increment      button_state = Wire.read();// the second byte: button value  }    // IIC send data, 4bytes  Wire.beginTransmission(Faces_Encoder_I2C_ADDR);  Wire.write(led_index);  Wire.write(r);  Wire.write(g);  Wire.write(b);  Wire.endTransmission();







                    Customers who view this item also bought

                    Customer Reviews

                    Customer Q&As

                    Shipping Methods

                    The total estimated time it takes to receive your order is shown below:
                    • You place your order
                    • (Processing time)
                    • We ship your order
                    • (Shipping time)
                    • Delivery!
                    Total Estimated Delivery Time
                    The total delivery time is calculated from the time your order is placed until the time it is delivered to you. Total delivery time is broken down into processing time and shipping time.
                    Processing time: The time it takes to prepare your item(s) to ship from our warehouse. This includes preparing your items, performing quality checks, and packing for shipment.
                    Shipping time: The time for your item(s) to travel from our warehouse to your destination.
                    Recommended shipping methods for your country/region are shown below:
                    Ship to: Ship From
                    CN Warehouse
                    • CN Warehouse
                    • HK Warehouse
                    • USA Warehouse
                    • FR Warehouse
                    • AU Warehouse
                    • UK Warehouse
                    • GWTR Warehouse
                    • RU Warehouse
                    • ES Warehouse
                    • CZ Warehouse
                    • AE Warehouse
                    • BR Warehouse
                    • JP Warehouse
                    • PL Warehouse
                    This warehouse cannot ship to your location.
                    Shipping method(s) Shipping time Tracking information
                    Note:
                    (1) The shipping time mentioned above refers to the estimated time of business days that the shipment will take after an order has been shipped.
                    (2) Business days do not include Saturday/Sunday and any public holidays.
                    (3) These estimates are based on normal circumstances and are not a guarantee of delivery times.
                    (4) We are not responsible for the failures or delays in delivery resulting from any force majeure event, such as natural disaster, bad weather, war, customs issues, and any other event beyond our direct control.
                    (5) Expedited shipping can not be used for PO Box addresses

                    Payment methods

                    We support the following payment methods.Click for more information if you are confused about how to pay.
                    *We currently offer COD payments for Saudi Arabia, United Arab Emirates, Kuwait, Oman, Bahrain, Qatar, Thailand, Singapore, Malaysia, Philippines, Indonesia, Viet Nam, India. We will send a confirmation code to your mobile phone to verify that your contact details are correct. Please ensure you follow all the instructions contained in the message.
                    *Paying with Installment (credit card) or Boleto Bancário is only available for orders with shipping addresses in Brazil.

                    Wholesale Inquiry

                    • *
                    • *
                    • *
                    • 0/300
                    • *
                    • United States
                      • United States
                      • United Kingdom
                      • Canada
                      • Spain
                      • Australia
                      • Russian Federation
                      • France
                      • Brazil
                      • Italy
                      • Germany
                      • Netherlands
                      • Ukraine
                      • Argentina
                      • India
                      • Ireland
                      • Andorra
                      • United Arab Emirates
                      • Afghanistan
                      • Antigua and Barbuda
                      • Anguilla
                      • Albania
                      • Albasitan
                      • Armenia
                      • Netherlands Antilles
                      • Angola
                      • Antarctica
                      • American Samoa
                      • Austria
                      • Aruba
                      • Azerbaijan
                      • Bosnia and Herzegovina
                      • Barbados
                      • Bangladesh
                      • Belgium
                      • Burkina Faso
                      • Bulgaria
                      • Bahrain
                      • Burundi
                      • Benin
                      • Bermuda
                      • Brunei Darussalam
                      • Bolivia
                      • Bahamas
                      • Bhutan
                      • Bouvet Island
                      • Botswana
                      • Belarus
                      • Belize
                      • Cocos (Keeling) Islands
                      • Democratic Republic of the Congo
                      • Central African Republic
                      • Republic of the Congo
                      • Switzerland
                      • Cote D'Ivoire
                      • Cook Islands
                      • Chile
                      • Cameroon
                      • Colombia
                      • Costa Rica
                      • Cuba
                      • Cape Verde
                      • Cyprus
                      • Czech Republic
                      • Djibouti
                      • Denmark
                      • Dominica
                      • Dominican Republic
                      • Algeria
                      • Ecuador
                      • Estonia
                      • Egypt
                      • Western Sahara
                      • Eritrea
                      • Ethiopia
                      • Finland
                      • Fiji
                      • Falkland Islands (Malvinas)
                      • Micronesia, Federated States of
                      • Faroe Islands
                      • Gabon
                      • Grenada
                      • Georgia
                      • French Guiana
                      • Guernsey
                      • Ghana
                      • Gibraltar
                      • Greenland
                      • Gambia
                      • Guinea
                      • Guadeloupe
                      • Equatorial Guinea
                      • Greece
                      • South Georgia and the South Sandwich Islands
                      • Guatemala
                      • Guam
                      • Guinea-bissau
                      • Guyana
                      • Hong Kong, China
                      • Heard and Mc Donald Islands
                      • Honduras
                      • Croatia
                      • Haiti
                      • Hungary
                      • Indonesia
                      • Israel
                      • British Indian Ocean Territory
                      • Iraq
                      • Iran (Islamic Republic of)
                      • Iceland
                      • Jersey Island
                      • Jamaica
                      • Jordan
                      • Japan
                      • Kenya
                      • Kyrgyzstan
                      • Cambodia
                      • Kiribati
                      • Comoros
                      • Saint Kitts and Nevis
                      • Korea, Democratic People's Republic of
                      • Korea, Republic of
                      • Kuwait
                      • Cayman Islands
                      • Kazakhstan
                      • Lao People's Democratic Republic
                      • Lebanon
                      • Saint Lucia
                      • Liechtenstein
                      • Sri Lanka
                      • Liberia
                      • Lesotho
                      • Lithuania
                      • Luxembourg
                      • Latvia
                      • Libyan Arab Jamahiriya
                      • Morocco
                      • Monaco
                      • Moldova, Republic of
                      • Montenegro
                      • Madagascar
                      • Marshall Islands
                      • Macedonia
                      • Mali
                      • Myanmar
                      • Mongolia
                      • Macau, China
                      • Northern Mariana Islands
                      • Martinique
                      • Mauritania
                      • Montserrat
                      • Malta
                      • Mauritius
                      • Maldives
                      • Malawi
                      • Mexico
                      • Malaysia
                      • Mozambique
                      • Namibia
                      • New Caledonia
                      • Niger
                      • Norfolk Island
                      • Nigeria
                      • Nicaragua
                      • Norway
                      • Nepal
                      • Nauru
                      • Niue
                      • New Zealand
                      • Oman
                      • Panama
                      • Peru
                      • French Polynesia
                      • Papua New Guinea
                      • Philippines
                      • Pakistan
                      • Poland
                      • St. Pierre and Miquelon
                      • Saint Pierre and Miquelon
                      • Pitcairn
                      • Puerto Rico
                      • Palestine
                      • Portugal
                      • Palau
                      • Paraguay
                      • Qatar
                      • Reunion
                      • Romania
                      • Serbia
                      • Rwanda
                      • Saudi Arabia
                      • Solomon Islands
                      • Seychelles
                      • Sudan
                      • Sweden
                      • Singapore
                      • St. Helena
                      • Slovenia
                      • Svalbard and Jan Mayen Islands
                      • Slovakia (Slovak Republic)
                      • Sierra Leone
                      • San Marino
                      • Senegal
                      • Somalia
                      • Suriname
                      • Sao Tome and Principe
                      • El Salvador
                      • Syrian Arab Republic
                      • Swaziland
                      • Turks and Caicos Islands
                      • Chad
                      • French Southern Territories
                      • Togo
                      • Thailand
                      • Tajikistan
                      • Tokelau
                      • Turkmenistan
                      • Tunisia
                      • Tonga
                      • East Timor
                      • Turkey
                      • Trinidad and Tobago
                      • Tuvalu
                      • Taiwan, China
                      • Tanzania, United Republic of
                      • Uganda
                      • United States Minor Outlying Islands
                      • Uruguay
                      • Uzbekistan
                      • Vatican City State (Holy See)
                      • Saint Vincent and the Grenadines
                      • Venezuela
                      • Virgin Islands (British)
                      • Virgin Islands (U.S.)
                      • Viet Nam
                      • Vanuatu
                      • Wallis and Futuna Islands
                      • Samoa
                      • Mayotte
                      • South Africa
                      • Zambia
                      • Zimbabwe
                      *
                    • *
                    • Submit
                    Customers Who View This Item Also View