เจ้าของร้านค้านี้ ไม่ได้เข้าสู่ระบบเป็นระยะเวลา 33 วัน แล้ว

KY-040 Rotary Encoder Module Brick Sensor Development Board for arduino DIY

KY-040 Rotary Encoder Module Brick Sensor Development Board for arduino DIY
KY-040 Rotary Encoder Module Brick Sensor Development Board for arduino DIYKY-040 Rotary Encoder Module Brick Sensor Development Board for arduino DIY
หมวดหมู่ Sensor Module
ราคา 70.00 บาท
สถานะสินค้า พร้อมส่ง
ลงสินค้า 30 เม.ย. 2559
อัพเดทล่าสุด 12 ส.ค. 2562
จำนวน
ชิ้น
หยิบลงตะกร้า
บัตรประชาชน
บุ๊คแบ๊งค์
คุ้มครองโดย LnwPay

  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.

   ******************

   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);

   }

   }

วิธีการชำระเงิน

บมจ. ธนาคารกสิกรไทย สาขาถนนบางนา-ตราด ออมทรัพย์
ธนาคารกรุงเทพ จำกัด (มหาชน) สาขาโฮมโปรบางนา สะสมทรัพย์
ธนาคารไทยพาณิชย์ จำกัด (มหาชน) สาขาโฮมโปรสุวรรณภูมิ ออมทรัพย์
ธนาคารทหารไทยธนชาต จำกัด (มหาชน) สาขาเซ็นทรัลพลาซา บางนา ออมทรัพย์
บมจ. ธนาคารกรุงไทย สาขาเซ็นทรัลบางนา ออมทรัพย์

MEMBER

STATISTICS

เปิดร้าน7 เม.ย. 2559

CONTACT US

087-151-4727
รายการสั่งซื้อของฉัน
เข้าสู่ระบบด้วย
เข้าสู่ระบบ
สมัครสมาชิก

ยังไม่มีบัญชีเทพ สร้างบัญชีใหม่ ไม่มีค่าใช้จ่าย
สมัครสมาชิก (ฟรี)
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านขายดีจริงจัง
ขายดีจริงจัง
สินค้าอีเล็คโทรนิกส์สำหรับทำโปรเจ็คต่างๆ รับสั่งซื้ออุปกรณ์จากต่างประเทศสำหรับบริษัทห้างร้าน นักเรียน นักศึกษา
เบอร์โทร : 087-151-4727
อีเมล : apisitmi@windowslive.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

TOP เลื่อนขึ้นบนสุด
พูดคุย-สอบถาม