China factories

China factory - Oky Newstar Technology Co., Ltd

Oky Newstar Technology Co., Ltd

  • China,Shenzhen ,Guangdong
  • Active Member

Leave a Message

we will call you back quickly!

Submit Requirement
China Magnetic Rotary Encoder Module for Arduino With Demo Code
China Magnetic Rotary Encoder Module for Arduino With Demo Code

  1. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  2. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  3. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  4. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  5. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  6. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  7. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  8. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  9. China Magnetic Rotary Encoder Module for Arduino With Demo Code
  10. China Magnetic Rotary Encoder Module for Arduino With Demo Code

Magnetic Rotary Encoder Module for Arduino With Demo Code

  1. MOQ: 1 Piece/Pieces
  2. Price:
  3. Get Latest Price
Delivery Time 3-5 workdays after payment
Payment Terms L/C,D/A,D/P,T/T,Western Union,MoneyGram
Supply Ability 1000 Piece/Pieces per Day
pack size 5cm x 4cm x 3cm
Weight 50g
The module this rotation counts are not limited.
Rotary encoder can be counted by rotating forward
Place of Origin Guangdong China (Mainland)
Brand Name Oky Newstar
Model Number oky3431

View Detail Information

Contact Now Ask for best deal
Get Latest Price Request a quote
  1. Product Details
  2. Company Details

Product Specification

Delivery Time 3-5 workdays after payment Payment Terms L/C,D/A,D/P,T/T,Western Union,MoneyGram
Supply Ability 1000 Piece/Pieces per Day pack size 5cm x 4cm x 3cm
Weight 50g The module this rotation counts are not limited.
Rotary encoder can be counted by rotating forward Place of Origin Guangdong China (Mainland)
Brand Name Oky Newstar Model Number oky3431
High Light shields for arduinoarduino sensors kit

 

 

 

Magnetic Rotary Encoder Module for Arduino With Demo Code

Rotary encoder module for arduino with demo code

 

 

Specifications:

 

Rotary encoder can be counted by rotating forward and reverse direction during rotation of the output pulse frequency,
Unlike counter rotating potentiometer, this rotation counts are not limited.
With the buttons on the rotary encoder can be reset to its initial state, that starts counting from 0.

 


******************
ARDUINO test code:
const int interruptA = 0; / / Interrupt 0 (pin 2)
const int interruptB = 1; / / Interrupt 1 (pin 3)

int CLK = 2; / / PIN2
int DAT = 3; / / PIN3
int BUTTON = 4; / / PIN4
int LED1 = 5; / / PIN5
int LED2 = 6; / / PIN6
int COUNT = 0;

void setup ()
  {
   attachInterrupt (interruptA, RoteStateChanged, FALLING);
  / / AttachInterrupt (interruptB, buttonState, FALLING);
   pinMode (CLK, INPUT);
   digitalWrite (2, HIGH); / / Pull High Restance
   pinMode (DAT, INPUT);
   digitalWrite (3, HIGH); / / Pull High Restance
   pinMode (BUTTON, INPUT);
   digitalWrite (4, HIGH); / / Pull High Restance
   pinMode (LED1, OUTPUT);
   pinMode (LED2, OUTPUT);
    Serial.begin (9600);
  }

void loop ()
{
   if (! (digitalRead (BUTTON)))
     {
      COUNT = 0;
      Serial.println ("STOP COUNT = 0");
      digitalWrite (LED1, LOW);
      digitalWrite (LED2, LOW);
      delay (2000);
     }
      Serial.println (COUNT);
}

/ / -------------------------------------------
void RoteStateChanged () / / When CLK FALLING READ DAT
{
  if (digitalRead (DAT)) / / When DAT = HIGH IS FORWARD
    {
     COUNT;
     digitalWrite (LED1, HIGH);
     digitalWrite (LED2, LOW);
     delay (20);
    }
  else / / When DAT = LOW IS BackRote
    {
     COUNT -;
     digitalWrite (LED2, HIGH);
     digitalWrite (LED1, LOW);
     delay (20);
    }
}

 

Factory Pictures

 

 

Competitive Advantage:

 

1. Convenient & Friendly Customer Service
2. Low Prices Direct From Factory Suppliers
3. Fast Delivery Around the World. 
4. High Quality With Global Standards. 
5. 1 Year Factory Warranty
6. Safe Shipping Way and Payment

 

Company Details

Bronze Gleitlager

,

Bronze Sleeve Bushings

 and 

Graphite Plugged Bushings

 from Quality China Factory
  • Business Type:

    Manufacturer,Distributor/Wholesaler,Exporter,Seller

  • Year Established:

    2004

  • Total Annual:

    150 Million-200 Million

  • Employee Number:

    100~300

  • Ecer Certification:

    Active Member

Oky Newstar Technology Co., Ltd is subsidiary of Okystar Technology Group Co.,Ltd,which holds 4 subsidiary companies and more than 1500 skilled workers and 50 technicians.   Oky Newstar Tech Co.,Ltd built in 2004.It is one of the professional leading exporters of educational DIY produ... Oky Newstar Technology Co., Ltd is subsidiary of Okystar Technology Group Co.,Ltd,which holds 4 subsidiary companies and more than 1500 skilled workers and 50 technicians.   Oky Newstar Tech Co.,Ltd built in 2004.It is one of the professional leading exporters of educational DIY produ...

+ Read More

Get in touch with us

  • Reach Us
  • Oky Newstar Technology Co., Ltd
  • Room1105, Block B, Chinto Technology Building, Minzhi Road, LongHua, ShenZhen city, GuangDong province, China
  • https://www.diyelectronicskit.com/

Leave a Message, we will call you back quickly!

Email

Check your email

Phone Number

Check your phone number

Requirement Details

Your message must be between 20-3,000 characters!

Submit Requirement