3 pinos, 32 LEDs, 4 registros de deslocamento [74HC595]
Componentes e suprimentos
![]() |
| × | 1 | |||
![]() |
| × | 4 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 | |||
![]() |
| × | 1 |
Aplicativos e serviços online
![]() |
|
Sobre este projeto
Este é um guia passo a passo que criei para iniciantes e arduiNOOBS como eu.
Neste tutorial, estaríamos discutindo alguns conhecimentos básicos sobre o registrador de deslocamento de 8 bits chamado 74HC595.
Aprenda como conectá-los em série e usar alguns códigos da Biblioteca HC595.
Além disso, encontrei um problema com alguns dos registradores de deslocamento. Não sei por quê. Foi por falta de energia?
*************************************************** ****************************
LINKS NECESSÁRIOS:
Biblioteca HC595 - https://github.com/j-bellavance/HC595
Folha de dados - http://www.ti.com/document-viewer/SN74HC595/datasheet/specifications#SCLS0419845
Mais informações:https://rastating.github.io/using-a-74hc595-shift-register-with-an-arduino-uno/
Para iteração de loop:https://www.arduino.cc/en/Tutorial/ForLoopIteration
*************************************************** ****************************
Links de mídia social a seguir (quer dizer, se você quiser):
Facebook - https://fb.me/HeathenHacks
Twitter - https://twitter.com/HeathenHacks
Instagram - https://instagr.am/HeathenHacks
*************************************************** ****************************










Código
- Amostra de código editada da biblioteca HC595.
Código de amostra editado da biblioteca HC595. Arduino
#includeconst int chipCount =2; // Número de 74HC595 conectados em série (máximo de 8) const int latchPin =4; // Pino ST_CP (12) do 74HC595const int clockPin =3; // Pino SH_CP (11) do 74HC595const int dataPin =2; // Pin DS (14) do 74HC595 // ConstructorHC595 ledArray (chipCount, latchPin, clockPin, dataPin); int delayMs =30; int lastPin =ledArray.lastPin (); void setup () {ledArray.reset ();} void loop () {para (int i =0; i <=lastPin; i ++) {ledArray.setPin (i, ON); atraso (delayMs); } para (int i =lastPin; i> =0; i--) {ledArray.setPin (i, OFF); atraso (delayMs); } para (int i =lastPin; i> =0; i--) {ledArray.setPin (i, TOGGLE); atraso (delayMs); } para (int i =0; i <=lastPin; i ++) {ledArray.setPin (i, TOGGLE); atraso (delayMs); }}
Biblioteca HC595 do Sr. J. Bellavance
https://github.com/j-bellavance/HC595Esquemas

Processo de manufatura