ข้อมูล
น้ำหนัก
บาร์โค้ด
ลงสินค้า
อัพเดทล่าสุด
รายละเอียดสินค้า
IC 74HC165 เป็น IC ขยายขาสัญญาณกรณีต้องการใช้อินพุตจำนวนเยอะโดยใช้อินพุตจากไมโครคอนโทรลเลอร์เพียงแค่ 4 ขา แต่สามารถอ่านสัญญาณ digital ได้ถึง 8 ขา

ตัวอย่างการต่อ Arduino กับ Shift register 74HC165 





ตัวอย่าง Code Arduino กับ Shift register 74HC165 

โหลด Library จาก 
https://github.com/InfectedBytes/ArduinoShiftIn

#include <ShiftIn.h>
// Init ShiftIn instance with one chip.
// The number in brackets defines the number of daisy-chained 74HC165 chips
// So if you are using two chips, you would write: ShiftIn<2> shift;
ShiftIn<1> shift;

void setup() {
 Serial.begin(9600);
 // declare pins: pLoadPin, clockEnablePin, dataPin, clockPin
 shift.begin(8, 9, 11, 12);
}

void displayValues() {
 for (int i = 0; i < shift.getDataWidth(); i++)
   Serial.print( shift.state(i) ); // get state of button i
 Serial.println();
}

void loop() {
 if (shift.update()) // read in all values. returns true if any button has changed
   displayValues();
 delay(1);
}







Shift Register 74HC165
The 74HC165 is an 8-bit serial-in shift register. It uses only 4 Arduino pins, while itself can read in from 8 digital pins. If the parallel load pin (PL) is LOW, the data is read from the A to H pins in parallel. When PL is HIGH, the Q pin is set to the value of the first bit. Each time you change the value from your clock pin from LOW to HIGH, the next bit is send to the Q pin. Therefore you can read in all 8 bits sequentially. Furthermore you can daisy-chain several shift registers, while still using only 4 Arduino pins!
The data sheet can be found here: SN74HC165
 
ShiftIn Library
In order to simplify the usage of shift registers, I wrote a small library that handles the communication between the Arduino and the shift register. It is hosted on Github.
เงื่อนไขอื่นๆ
Tags

นโยบายการเปลี่ยนหรือคืนสินค้า


สินค้าทุกชิ้นมีการรับประกัน 30 วันครับ

โดยมีเงื่อนไขต่างๆดังนี้

1. ลูกค้าไม่ได้เป็นผู้ทำเสียหายเอง อาธิเช่น การต่อไฟเลี้ยงไม่ถูกต้อง (เซนเซอร์รับ 3.3v เราใส่ 5v อันนี้ไม่ได้เนอะ)
2. สินค้าต้องอยู่ในสภาพสมบูรณ์ ไม่แตกหักหรือเสียหายจากไฟ (เช่นไฟฟ้าลัดวงจรจนไฟไหม้)
3. ทางร้านไม่รับเปลี่ยนสินค้าจากความเข้าใจผิดของลูกค้าเอง เช่น ขนาดไม่ตรงกับงานที่ใช้, หรือซื้อไว้แต่ไม่ได้ใช้งาน เป็นต้น ลูกค้าสามารถสอบถามข้อมูลสินค้าหากมีความคลุมเครือก่อนสั่งซื้อได้ในไลน์ร้าน @modulemore ตลอดวันทำการ ยกเว้นเวลา 12.00-14.00 ที่อาจมีการตอบช้าในช่วงนี้ 

การส่งคืนสินค้า
การส่งคืนสินค้าจำเป็น ต้องมีใบเสร็จหรือสำเนา เพื่อความรวดเร็วในการตรวจสอบครับ
สามารถส่งคืนได้ผ่านที่อยู่ของร้าน คลิ๊ก โดยเขียนเป็นลายลักษณ์อักษรกำกับดังนี้
1. รายละเอียดรายการเสียหาย
2. ลูกค้าได้ทดสอบอะไรไปบ้าง

ทางร้านขอสงวนสิทธิ์ในการตัดสินใจเปลี่ยนสินค้าหรือคืนเงินครับ

 
ไทย

สินค้าของเรา

เซนเซอร์/ โมดูล [323]

MEMBER ZONE

TRACK & TRACE

*ใส่ เบอร์มือถือ หรือ email ที่ใช้ในการสั่งซื้อ

OVERVIEW

หน้าที่เข้าชม2,073,199 ครั้ง
ผู้ชมทั้งหมด1,333,925 ครั้ง
ร้านค้าอัพเดท8 ก.ย. 2568

JOIN US

ร้านโมดูลมอร์
ร้านโมดูลมอร์
/www.modulemore.com/
Join เป็นสมาชิกร้าน
600
สมัครสมาชิกร้านนี้ เพื่อรับสิทธิพิเศษ
Choose your language
Language
Currency
Change
เปลี่ยนภาษา
รายการสั่งซื้อของฉัน
รายการสั่งซื้อของฉัน
ข้อมูลร้านค้านี้
ร้านโมดูลมอร์
โมดูลมอร์
ขาย arduino, diy, เรียน arduino, ทำหุ่นยนต์, ฝึกเขียนโปรแกรม, ตั้งแต่ระดับเริ่มต้นจนชำนาญ
เบอร์โทร : 0831710868
อีเมล : modulemore@gmail.com
ส่งข้อความติดต่อร้าน
เกี่ยวกับร้านค้านี้
สินค้าที่ดูล่าสุด
ดูสินค้าทั้งหมดในร้าน
สินค้าที่ดูล่าสุด
บันทึกเป็นร้านโปรด
Join เป็นสมาชิกร้าน
แชร์หน้านี้
แชร์หน้านี้

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