QuantityUnit(s) | Discount per unit | Net price per unit |
{{(typeof focus_pdata.price_list[idx+1] == 'undefined')?('≥ '+price_row.min_quantity):((price_row.min_quantity < (focus_pdata.price_list[idx+1].min_quantity - 1))?(price_row.min_quantity+' - '+(focus_pdata.price_list[idx+1].min_quantity - 1)):price_row.min_quantity)}} | {{number_format(((focus_pdata.price_old === null)?focus_pdata.price:focus_pdata.price_old) - price_row.price,2)}} THB | {{number_format(price_row.price,2)}} THB |
In-stock | ชิ้น |
Quantity (ชิ้น) |
- +
|
BUY NOW Add to cart BUY NOW Add to cart This item has already been added to your cart 0 ชิ้น
Other purchase channels
|
|
|
|
Chat with seller | |
{{ size_chart_name }} |
|
Category | shift registor |
Type | New item |
Condition | |
Type | Pre-owned Items |
Condition | |
Item status | |
Prepare duration | |
Join promotions | |
Information |
Item weight
Barcode
Created time
Last updated on
|
Item description |
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. 2>![]() |
Conditions |
|
Tags |
Every item comes with a 30-day warranty. However, there are certain conditions that apply:
The customer should not be responsible for any self-inflicted damage, such as incorrect power connections (for example, supplying 5V instead of the required 3.3V for a sensor).
The product must be in perfect condition, without any breakage or damage caused by electricity (e.g., short circuits leading to electrical fires).
The store does not accept product exchanges due to customer misunderstandings, such as purchasing the wrong size for their project or buying something without eventually using it. Customers can inquire about the product details and ensure compatibility before making a purchase by contacting us through our Line account @modulemore during business hours. Please note that there may be delays in response between 12:00 PM and 2:00 PM.
Return Policy: To initiate a product return, customers must provide the original receipt or a copy for quick verification. Returns can be sent to our store address by following these guidelines:
Please note that the store reserves the right to make the final decision regarding product replacement or refund.
Pageviews | 2,072,905 view(s) |
Visitors | 1,333,631 time(s) |
Last updated | Sep 7, 2025 |