• Globe Online Store
    Factory-Direct Deal

  • Sign In / Register
  • |
  • Currencies:
    USD
    1. USDUS Dollar
    2. EUREuro
    3. GBPGBP
    4. AUDAUD
  • |
  • FAQs
  • |
  • Hotlines
  • Hotlines:
  • 1800 741-1388(US)
  • /
  • +86 755 29620083
live chat
>> 360 Degree Rotating Encoder Module Brick Sensor Development Board for Arduino
360 Degree Rotating Encoder Module Brick Sensor Development Board for Arduino

360 Degree Rotating Encoder Module Brick Sensor Development Board for Arduino

  1. (Be the first to write a review)
  • Item number:
  • a15100700ux0559
  • Price: $3.18
  • Sold Out
  • Free Shipping ( Wholesale Volume Discount )
  1. Product Desicription
  2. Shipping & Delivery
  3. Returns & Refund

Description:

  • By rotating the rotary encoder can be counted in the positive direction and the reverse direction during rotation of the output pulse frequency, unlike rotary potentiometer count, 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.
  • Pulse circle: 5

Working Principle:

  • Incremental encoder is a displacement of the rotary pulse signal is converted to a series of digital rotary sensors. These pulses are used to control angular displacement. In Eltra angular displacement encoder conversion using a photoelectric scanning principle. Receiver is covered with a diffraction grating, which has the same code disk window width. The receiver's job is to feel the rotation of the disc resulting changes, and change the light into corresponding electrical changes. Then the low-level signals up to a higher level, and generates no interference square pulse, which must be processed by electronic circuits. Reading systems typically employ a differential manner, about the same but the phase difference of the two waveforms different by 180°compared to the signal in order to improve the quality and stability of the output signal. Reading is then the difference between the two signals formed on the basis,thus eliminating the interference.
  • Incremental encoder has two-phase square wave is given, and their phase difference of 90 degree, often referred to as A channel and B channels.One of the channels are related to the speed of information, at the same time, through two channel signal sequence comparison, get the direction of rotation.There is also A special signal called Z or zero passage, and the channel encoder is given the absolute zero, the signal is A square wave with A channel center line of the square wave of overlap.

     

Arduino testing code.(only for your reference)

int redPin = 2;

int yellowPin = 3;

int greenPin = 4;

int aPin = 6;

int bPin = 7;

int buttonPin = 5;

 

int state = 0;

int longPeriod = 5000; // Time at green or red

int shortPeriod = 700; // Time period when changing

int targetCount = shortPeriod;

int count = 0;

 

void setup()

{

  pinMode(aPin, INPUT);

  pinMode(bPin, INPUT);

  pinMode(buttonPin, INPUT);

  pinMode(redPin, OUTPUT);

  pinMode(yellowPin, OUTPUT);

  pinMode(greenPin, OUTPUT);

}

 

void loop()

{

  count++;

  if (digitalRead(buttonPin))

  {

    setLights(HIGH, HIGH, HIGH);

  }

  else

  {

    int change = getEncoderTurn();

    int newPeriod = longPeriod + (change * 1000);  

    if (newPeriod >= 1000 && newPeriod <= 10000)

    {

      longPeriod = newPeriod;

    }

    if (count > targetCount)

    {

      setState();

      count = 0;

    }

  }

  delay(1);

}

 

int getEncoderTurn()

{

  // return -1, 0, or +1

  static int oldA = LOW;

  static int oldB = LOW;

  int result = 0;

  int newA = digitalRead(aPin);

  int newB = digitalRead(bPin);

  if (newA != oldA || newB != oldB)

  {

    // something has changed

    if (oldA == LOW && newA == HIGH)

    {

      result = -(oldB * 2 - 1);

    }

  }

  oldA = newA;

  oldB = newB;

  return result;

}

 

int setState()

  {

    if (state == 0)

    {

      setLights(HIGH, LOW, LOW);

      targetCount = longPeriod;

      state = 1;

    }

    else if (state == 1)

    {

      setLights(HIGH, HIGH, LOW);

      targetCount = shortPeriod;

      state = 2;

    }

    else if (state == 2)

    {

      setLights(LOW, LOW, HIGH);

      targetCount = longPeriod;

      state = 3;

    }

    else if (state == 3)

    {

      setLights(LOW, HIGH, LOW);

      targetCount = shortPeriod;

      state = 0;

    }

  }

 

void setLights(int red, int yellow, int green)

{

  digitalWrite(redPin, red);

  digitalWrite(yellowPin, yellow);

  digitalWrite(greenPin, green);

}


Country of ManufactureCHINA
MaterialElectric Part
Net Weight8g
Package Content1 x Rotation Encoder Module
Main ColorBlack
Working VoltageDC 5V
Total Size31 x 19 x 31mm/1.2" x 1.2" x 0.75"(L*W*H)
Fixing Hole Diameter2.5mm
Fixing Hole Center Distance14mm/0.55"
Product NameRotation Encoder Module
Terminal Quantity5-pin
Customer Reviews
  • Average Customer Review (0 customer reviews)
  • 5
  • Write Review
  1. (0)
  1. (0)
  1. (0)
  1. (0)
  1. (0)
1.Tell us what you think about this item.Write a comment on this product and share your opinion with other people.Please make sure that your review focus on this item.
2.You can earn reward points when you login in and write a review.
3.Your review will become effective within 24 hours.
Write a review for 360 Degree Rotating Encoder Module Brick Sensor Development Board for Arduino
  • Rating:
  1. NOTE:
  2. HTML is not translated!
Other Choice (in stock)
  • $7.95
  • Free Shipping
  • $8.35
  • Free Shipping
  • $8.10
  • Free Shipping
Your View History
You have not viewed any products, let's go now!
close
Copyright © 2006-2017 SourcingMap Ltd. All Rights Reserved.