Using Shift Registers to Get UNLIMITED GPIOs for our project !!

preview_player
Показать описание
In this video, I have covered about Shift Registers and how to use them to get multiple output pins by just using 3 GPIO pins of our microcontroller.

Get the best quality components from Octopart:

Subscribe now💪🏻 to watch some amazing videos coming up soon.
__________________________________________________________
👨🏻‍💻 Important Links 👨🏻‍💻

__________________________________________________________

You can buy the merchandise from here,

__________________________________________________________
Buy the components for your projects and support techiesms💡🔌

__________________________________________________________
⏱ Time Stamps ⏱

00:00 Introduction
02:58 A brief about Shift Registers and it’s types
04:26 Using Shift Register with ESP32
04:45 Code for controlling 8 LEDs using 1 Shift Register
08:45 Using 2 Shift Registers to control 16 LEDs
11:20 What’s Next ?

__________________________________________________________

🎥 🎙 My Video Gear 🎙🎥

Camera - Canon 750d

__________________________________________________________
Get connected with techiesms everywhere..

Telegram - @techiesms

__________________________________________________________


techiesms
explore | learn | share
Рекомендации по теме
Комментарии
Автор

Should we make 5x1 Home Automation using CHOTA vala ESP8266(generic esp8266)???

techiesms
Автор

I am happy to see Indian electronics community popping out and making the lives of engineering students easier .. hats off to you sir.. keep it up🔥👏👏

shashikantsingh
Автор

74HC595 is only output shift register and you can only extend output pins so GPIO means input and output. so You can't say 595 is a GPIO extender its only a output pins extender

nasirshah
Автор

I was working on shift register today to control 16 LEDs
Using the adafruit Io platform
And boom I got your notification on shift register
Thanks for sharing

NaijaTechBoy
Автор

shift registers are fine if its a slow driven output so an alternative is do parellel latching, a chip I have used a lot for large GPIO expansion is 74HC373

pauldriscoll
Автор

I have been trying to find a video all morning which is recent enough and includes all the code. Finally found yours. Thank you so much.

GarretsonIndustries
Автор

You should look into the 74322 and compatible replacements. It gives you 8 I/O pins that you can control as a bank. It doesn't quite give you full GPIO, but it's perfect for talking to a wide bus from a limited number of GPIO pins

landonbrown
Автор

It might be worth mentioning that there is such a thing as an "analog shift register, " which works like a digital shift register, except you can shift in analog *voltage* levels, and that voltage level is retained on an output pin until the next voltage is sent, and then the voltage level shifts to another output pin. Of course that's sort of irrelevant with an Arduino UNO, since they don't have a DAC built in. They can be useful with a DAC shield though.

Calphool
Автор

Using this technique with an absolutely minimal MCU like the ESP-01 is absolutely a great solution where you need intelligent output patterns on a large number of LEDs. Once you get over 16 outputs though a chip like the M5450 or the TL5940 or MAX7209 does a better job and provides brightness control too.

alanmusicman
Автор

The 74HCT595 or variations thereof is a very good choice for expending many outputs with only three output pins from the processor. Of course there's a parallel in inversion of this which works well since when you load the inputs it captures the data at that moment in time.

What makes this chip great is that you can shift in the data first in the shift register but will not go to the output until you hit the load line.

Theoretically you could have unlimited outputs your limit is only how fast you want to refresh an output bit.

For example I use these to create a 3D LED cube meeting 16 outputs.

EricStringer
Автор

Use MCP(Ex. MCP23017) only two pin is required for expanding GPIOs, what you think using MCPs....

k.k
Автор

i also worked on shift register, controlled 6 seven segment and make a digital clock

ArjunKohli
Автор

Your excitement is huge, that is great 👍

pareshmhatre
Автор

of course, also commonly available are the PCF8574 and MCP23008/MCP23017 that work over i2c

profdc
Автор

Nice video! But I would recommend (when available on the MCU) to use GPIO expanders with an I2C interface. By changing the address of multiple I2C GPIO expanders you could control a massive amount of GPIO (example IC: MCP23017) (Edit: Thus as a addon controlling pins using I2C is very simple, not bitshifting and so on!)

leonreucher
Автор

you can use a 595 directly on an SPI bus with the proper clocking and phase. most microcontroller have hardware SPI. Often even with DMA. That is the most efficient and fastest way to IO expand with a serial to parallel shift register...

bschwand
Автор

I am using a 74HC595 shift register with the same connections but with manual control at its input (not connected to any controller). However, when I turn off the power supply and then turn it back on, I get random values at the shift register outputs. Is there a solution to avoid these garbage values at power-up?

khanlalamemes
Автор

Can we use hc165 for inputs and hc595 for outputs so that we can only 7 pins controlling multiple outputs and inputs. Is it work?

BeroGun
Автор

Great video great sound great font size. Only issue is edge of screen is truncated by my 1080p TV that I watch on so for example it's an or loop and not a for loop while you are showing code.

dannyhd
Автор

I used to use a cheap large 40 pin chip that was a large shift register and 32 outputs that could drive small relays.

wayland