산업 제조
산업용 사물 인터넷 | 산업자재 | 장비 유지 보수 및 수리 | 산업 프로그래밍 |
home  MfgRobots >> 산업 제조 >  >> Manufacturing Technology >> 제조공정

핀 3개, LED 32개, 시프트 레지스터 4개 [74HC595]

구성품 및 소모품

Arduino Nano R3
× 1
Texas Instruments Shift Register - 직렬에서 병렬로
74HC595
× 4
무납땜 브레드보드 전체 크기
× 1
LED(일반)
기호에 따라 다릅니다.
× 1
저항 100옴
LED에 따라 다릅니다.
× 1
점퍼 와이어(일반)
많습니다.
× 1

앱 및 온라인 서비스

Arduino IDE

이 프로젝트 정보

이것은 저와 같은 초보자와 arduiNOOBS를 위해 제가 만든 단계별 가이드입니다.

이 튜토리얼에서는 74HC595라는 8비트 시프트 레지스터에 대한 몇 가지 기본적인 지식에 대해 설명합니다.

이들을 함께 데이지 체인 방식으로 연결하고 HC595 라이브러리의 일부 코드를 사용하는 방법을 알아보세요.

또한 일부 시프트 레지스터에 문제가 발생했습니다. 이유를 모르겠습니다. 힘이 부족해서였을까?

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

필요한 링크:

HC595 라이브러리 - https://github.com/j-bellavance/HC595

데이터시트 - http://www.ti.com/document-viewer/SN74HC595/datasheet/specifications#SCLS0419845

추가 정보:https://rastating.github.io/using-a-74hc595-shift-register-with-an-arduino-uno/

For 루프 반복:https://www.arduino.cc/en/Tutorial/ForLoopIteration

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

팔로우할 소셜 미디어 링크(원하는 경우):

페이스북 - https://fb.me/HeathenHacks

트위터 - https://twitter.com/HeathenHacks

인스타그램 - https://instagr.am/HeathenHacks

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

<그림>

<그림>

<그림>

<그림>

<그림>

<그림>

<그림>

<그림>

<그림>

<그림>

<섹션 클래스="섹션 컨테이너 섹션 축소 가능" id="코드">

코드

<울>
  • HC595 라이브러리에서 샘플 코드를 수정했습니다.
  • HC595 라이브러리에서 편집된 샘플 코드.Arduino
    #include  const int chipCount =2; // 직렬 연결된 개수 74HC595 (최대 8개) const int latchPin =4; // 74HC595const의 핀 ST_CP(12) int clockPin =3; // 74HC595const의 핀 SH_CP(11) int dataPin =2; // 74HC595//ConstructorHC595의 핀 DS(14) ledArray(chipCount,latchPin,clockPin,dataPin);int delayMs =30;int lastPin =ledArray.lastPin();void setup() { ledArray.reset();} 무효 루프() { for (int i =0; i <=lastPin; i++) { ledArray.setPin(i, ON); 지연(delayMs); } for (int i =lastPin; i>=0; i--) { ledArray.setPin(i, OFF); 지연(delayMs); } for (int i =lastPin; i>=0; i--) { ledArray.setPin(i, TOGGLE); 지연(delayMs); } for (int i =0; i <=lastPin; i++) { ledArray.setPin(i, TOGGLE); 지연(delayMs); }}
    J. Bellavance 씨의 HC595 라이브러리
    https://github.com/j-bellavance/HC595

    회로도


    제조공정

    1. DHT11 센서(LED 및 피에조 스피커 포함)
    2. Arduino 디지털 주사위
    3. Raspberry Pi를 통한 Alexa 제어 LED
    4. 아이언맨
    5. 나를 찾기
    6. Arduino 3D 인쇄 로봇 팔
    7. Arduino 가습기 제어
    8. NeoMatrix Arduino Pong
    9. Arduino 조이스틱
    10. Arduino TEA5767 FM 라디오 수신기