Тёмный

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

techiesms
Подписаться 138 тыс.
Просмотров 84 тыс.
50% 1

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 156   
@techiesms
@techiesms 2 года назад
Should we make 5x1 Home Automation using CHOTA vala ESP8266(generic esp8266)???
@amgu6596
@amgu6596 2 года назад
Yes, please
@drelectronics13
@drelectronics13 2 года назад
Yessssssssssssssssssssssss🔄
@chiranjitkarmakar838
@chiranjitkarmakar838 2 года назад
Yes
@dash5500
@dash5500 2 года назад
defiantly yes. please
@ayushsachan7518
@ayushsachan7518 2 года назад
Yes please
@shashikantsingh6555
@shashikantsingh6555 Год назад
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🔥👏👏
@neinnine
@neinnine Год назад
I guess youre new to electronics. Im not indian but the electronics online community has always been led by the indian community. From the most basic arduino projects to detailed electrical and electronics lecture theres always a good indian video of it.
@nasirshah1983
@nasirshah1983 2 года назад
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
@Tridenux
@Tridenux 2 дня назад
i think if latch gate supports binary data input, then we can use the clock to check the state of that latch and use it as input too, just reverse it. imagine you touch a latch gate-oupout with 3v, now the it saves the binary data, now using the system clock to mesure the latch state and use if-else statment or any other function we can use it as input too, but i guess we will need 2 clocks, one for checking latch state and another for retriving data/state of the gate
@TheBypasser
@TheBypasser Год назад
1. This lacks 'I' in 'GPIO' ;) 2. This is not that 'unlimited', although we used an alike approach in order to get 96 outputs without issues. 3. Too slow, mostly useful for static LEDs or relay driving or alike, yet that is the limit.
@lolaa2200
@lolaa2200 2 года назад
I'm sure this would be very interesting to some but the title is a lye so ... What you show is about adding digital output, not GPIO. GPIO does much more than just digital outputs. Title promesse you might present a chip that allows actual gpio extensions, and you don't deliver on that. Hint : MCP23s17 ;c)
@NaijaTechBoy
@NaijaTechBoy 2 года назад
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
@techiesms
@techiesms 2 года назад
Amazing...
@landonbrown5295
@landonbrown5295 Год назад
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
@k.k8221
@k.k8221 2 года назад
Use MCP(Ex. MCP23017) only two pin is required for expanding GPIOs, what you think using MCPs....
@ArjunKohli
@ArjunKohli 2 года назад
i also worked on shift register , controlled 6 seven segment and make a digital clock
@duinoblogtube2070
@duinoblogtube2070 2 года назад
I see u used the old V of arduino IDE, btw it work slow on my laptop, hello from Morocco 👋😊
@Calphool222
@Calphool222 Год назад
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.
@pauldriscoll6319
@pauldriscoll6319 Год назад
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
@WintonMc
@WintonMc Год назад
Random ask: You wouldn't like to make a RU-vid video of that would you Mr Driscoll? Everyone with a phart smone has got at least one RU-vid video in them. ;)
@pauldriscoll6319
@pauldriscoll6319 Год назад
@@WintonMc corrected the part number - my head is full of a cold and mixed up my chips lol
@pauldriscoll6319
@pauldriscoll6319 Год назад
simply write 8 bits in one go to port D, then toggle pc0 low and back to high to latch the pattern to U2 Q0-Q7 then do another write to Port D and toggle pc1 low and back high to latch that pattern to U3 Q0-Q7 .... you could add a 3rd latch and so on if you need more lines just add its LE to the next PC port (pc2) and so on - each latch uses the same pins PD0-PD7 as the inputs and LE as the latch toggle .. low sets the Q lines to match D lines High keeps them in that state. if someone really wants to get this up and running im happy to help just buzz me here
@pauldriscoll6319
@pauldriscoll6319 Год назад
@@WintonMc Never done a You-Tube Video .. life keeps me busy as it is... but here is all the details.
@kunaviniju
@kunaviniju 2 года назад
Dear can you please make a video with WT32-SC01 how to program it's with your previous home automation project Thanks
@user-mr3mf8lo7y
@user-mr3mf8lo7y Год назад
There is no such thing 'unlimited'. a) adress block/range is limited. b) MCU's flow capacity may not be capable of handling all of those requests fast enough.
@EricStringer
@EricStringer 2 года назад
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.
@profdc9501
@profdc9501 Год назад
of course, also commonly available are the PCF8574 and MCP23008/MCP23017 that work over i2c
@khanlalamemes4655
@khanlalamemes4655 21 день назад
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?
@alanmusicman3385
@alanmusicman3385 2 года назад
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.
@leonreucher1016
@leonreucher1016 Год назад
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!)
@Zer0Bero
@Zer0Bero 3 месяца назад
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?
@damnuser7792
@damnuser7792 Год назад
Not a new idea, but there is a trick: try to order PCA9505, my favorite port expander, then see MOQ and lead time! Americans screw up badly going against Russia and forgot where raw materials are coming from, so "all american-made chips" actually made in Taiwan cannot be produced any more... Does not matter if you are after Arduino-grade projects, but even Arduino (Atmega) chips where produced by Microchip and NOT available any more, all what is left is stock in some places. Unless something changes dramatically, we will end up using transistors... As for some comments below, India has a lot of very good engineers as well as large hobby community.
@SaverioFerran
@SaverioFerran Год назад
Indian videos usually are great. I've solved severa problems with them. But, but... Their pronuctiation is not very well 😅🥺. If only indias could improove their english, their videos would be sooo much better. I understan their mother thounge has different sounds than english. But it is just a friendly advice 😊👏🏻
@ionymous6733
@ionymous6733 Год назад
asking people to pause and comment for something you're about to explain is insulting. As if we don't realize we're watching a pre-recorded video or that comments help your channel. "jump through my hoop!" Just make good content and skip that.
@GrandNecro
@GrandNecro Год назад
I guess the only downside is that you can't use shiftreg to read analog signal like an analog demux can
@SecularMentat
@SecularMentat 7 месяцев назад
You might be able to get away with controlling multiple things with a MUX if you're using latch gates to hold them 'on' once they're going. Still, I've been wondering about the shift register doingthis as well.
@VndNvwYvvSvv
@VndNvwYvvSvv Год назад
I'm glad you have subtitles because you can't speak English. Thanks for the video. Maybe consider an accent neutralization course so we can understand you better.
@cpK054L
@cpK054L Год назад
No shit the MUX will only control one-output at a time. Just MUX to PsuedoDAC-R2R, problem solved, plebes
@RandomTorok
@RandomTorok 10 месяцев назад
Doesn't work. Might help if a readable copy of the circuit diagram was provided.
@FARMAN68
@FARMAN68 Год назад
Yaar Agar English me samajhna itna hi asan hota to seedhe Kisi Gore ki video dekh len ham. Tumhari video kyun dekhe. Agar ham Indians ki help karna hai to please Hindi English ko mix karke bataya karo. Aur point ki chize Hindi me hi bolo. Thank you 😊
@isaharoon1000
@isaharoon1000 Год назад
Good explanation of shift registers, but this aint GPIOs (General Purpose Input Output). There is only output here, no input.
@aykutulusan6728
@aykutulusan6728 Год назад
74XX595 is the worst choice, ns-level spike changes all outputs (ns:nanosecond)
@AlexLipkovich
@AlexLipkovich Год назад
dont use 595, use serial led driver , it the same logic, but every output have up to 70mA
@Shivam-tr8ut
@Shivam-tr8ut 2 года назад
Sir please make a project that can control home appliances using NODEMCU ESP8266 with Manual, Blynk App, IR Remote, Alexa voice command, EEPROM. I am waiting for many months for this project. I hope you will upload video soon
@82levy5
@82levy5 Год назад
Great tutorial, only the title is not accurate. The problem is that you can only use shift registers only for outputs. So it's not GPIO.
@CristiNeagu
@CristiNeagu 2 года назад
Shift registers won't get you unlimited GPIO. It will only get you outputs, but no inputs. Why not just use multiple MCP23017 IO expanders? That will give you true unlimited GPIO.
@HelderParracho
@HelderParracho 2 года назад
No, that's not true. You can cascade multiple hc165 with hc595 and have all the GPIOs you want, or only inputs or only outputs.
@CristiNeagu
@CristiNeagu 2 года назад
@@HelderParracho Ok, fair enough. MCP23017 is still the better choice.
@HelderParracho
@HelderParracho 2 года назад
@@CristiNeagu Better or not it really depends on your needs. MCP23017 is more expensive, harder to find in stock, much slower and more difficult to isolate. It might be a more compact solution though.
@keen2461
@keen2461 Год назад
Don't take it wrong, but it'd be nice to put a little effort on pronouncing english better. The strong indian accent makes it very hard to understand these, otherwise, great videos.
@FARMAN68
@FARMAN68 Год назад
I want make audio 8 in 8 out matrix. Please make a helpful video about this.
@all-about-automation
@all-about-automation 2 года назад
But we cannot use this multiplexer to read sensor data because this module generates some offset value
@janklas7079
@janklas7079 Год назад
it's a bit of nagging, but it's not unlimited. Eventually you'll run out of frequency for your serial coms.
@croydon21H
@croydon21H 2 года назад
You struggle so much to give details easily. The thumbnail is much and you make a whole video with shift register
@buddhimaamarasinghe9997
@buddhimaamarasinghe9997 2 года назад
Excellent project, Make the project in ESP 01 as well. Do a project with multiple inputs. Thanks.
@shakerileiwat4341
@shakerileiwat4341 2 года назад
Thank you , great video 👍👍👍 11:44 great idea, do it please.
@sandeepsingh_eagle
@sandeepsingh_eagle 8 месяцев назад
Really wow May I know which tool you use for those electronic animations
@vishalnarwal9482
@vishalnarwal9482 Год назад
Is it possible to use the Shift Registers along with Rainmaker App?
@nid274
@nid274 2 года назад
since you are following electronoob you might be following greatscot as well...he did something similar..oops you did something similar...
@CerebralDad
@CerebralDad Год назад
Are you able to read analog inputs with these shift registers?
@darkshadowsx5949
@darkshadowsx5949 Год назад
shorten your intro. and stop repeating the same information multiple times.
@eddiemendoza7353
@eddiemendoza7353 4 месяца назад
How can I connect an SD Card Module to this register?
@steelbrotherhoodof2359
@steelbrotherhoodof2359 Год назад
another word for simultaniously is on some place "real time".
@Hypoengg
@Hypoengg Год назад
Can someone explain me purpose of siso and pipo shift resistors. I feel like they are useless
@SerialWombat
@SerialWombat 10 месяцев назад
You might take a look at my Serial Wombat project. It basically fills the same niche of adding GPIO to Arduino, but it's firmware running on a microcontroller, so it does a bunch of smart stuff (rotary encoders, PWM, Servo, ADC, etc) that a MCP23017 or pca9685 can't over an I2C interface.
@ravindrakulkarni4359
@ravindrakulkarni4359 Год назад
How to join premium member I don't have credit card
@wali7862
@wali7862 10 месяцев назад
will this work for sensor that make use of digital pins as signal
@LedPixelAnimator
@LedPixelAnimator 2 года назад
Sir esp32 project use for smart home control 10 appliances with physical switch and with & without internet..... Arduino cloud iot.... Because there 10 devices in arduino cloud.... Shit register use 👏
@rusticagenerica
@rusticagenerica Год назад
I love how you speak English !!!!
@indian.techsupport
@indian.techsupport Год назад
You just made outputs, not general purpose input and output
@rugneshvora209
@rugneshvora209 2 года назад
this video was full of knowledge😎❤‍🔥
@andreadm4578
@andreadm4578 2 года назад
Rapaz não entendi nada do que ele falou mais deu pra entender com a imagens
@swishiestmetal6215
@swishiestmetal6215 Год назад
Sometimes I have no idea what he's saying😑
@AhmetTasdemirDJLuds
@AhmetTasdemirDJLuds 2 года назад
I was made 512 pin harness tester device with mcp23017 with i2c connection with 8ch i2c multiplexer.
@drelectronics13
@drelectronics13 2 года назад
Is anyone getting device not found error while scanning QR code in esp rainmaker app,??
@Tech-farming880
@Tech-farming880 2 года назад
Hindi ka ek channel creat karo our same video usme bhi upload krdo.
@techiesms
@techiesms 2 года назад
Dekhte h, aisa kuch socha nai h abhi
@steelbrotherhoodof2359
@steelbrotherhoodof2359 Год назад
what will you use as gpio software driver ? on your operating system.
@steelbrotherhoodof2359
@steelbrotherhoodof2359 Год назад
like a the input of the keyboard. requires keyboard.drv pre loaded. along the mouse.drv. on the msdos operating system. so i believe a omni gpio hardware. requires also. gpio.drv preloaded in the memory from boot of. but i dont know. since also the ram space need to be limited to make room for other hardware. and also a irq or a cpu cycle need to be resident reserved for that. hahahaha. i did not even see the whole video. maybe you just explained that the arduino compiler took care of that. while writeing the file away.
@Tridenux
@Tridenux 2 дня назад
amazing
@RavindraSingh-jw2sm
@RavindraSingh-jw2sm 10 месяцев назад
Element 14 ka video chipka diya .
@bschwand
@bschwand Год назад
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...
@danny117hd
@danny117hd Год назад
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.
@ProDigit80
@ProDigit80 Год назад
Before watching, 2^3=8, so use the pin as binary. The con is, that it can work with LEDs, but not very good if the output needs to be precisely timed.
@wizardnotknown
@wizardnotknown Год назад
Wtf is this channel.
@codewonderland-gaming
@codewonderland-gaming Год назад
I love this tutorial!! All your wiring diagrams are upside down though 🤣
@wayland7150
@wayland7150 Год назад
I used to use a cheap large 40 pin chip that was a large shift register and 32 outputs that could drive small relays.
@guliyevshahriyar
@guliyevshahriyar Год назад
Thx
@Tn-qb9kk
@Tn-qb9kk Год назад
Is it the same as SerDes ?
@HelderParracho
@HelderParracho 2 года назад
Why don't you use SPI to control the shift registers and get rid of all that show code?
@RaulAyanami
@RaulAyanami 7 месяцев назад
So.. no pwm
@carlosbah4623
@carlosbah4623 Год назад
¡Guau! Que bien explicado todo. ¡Gracias por compartir su conocimiento!
@bhupendrasingh9014
@bhupendrasingh9014 20 дней назад
What's your views on MCP23017 ?
@nuurqomar.
@nuurqomar. 2 года назад
In Dots matrix or running text led, 7 segment, ic shift register is usefull of that projects, but for projects with need multi input/output, more efficient use ic expander PCF8574 (8bit) or MCP23017 (16bit) with i2c communication (2 wire only)
@jnharton
@jnharton 2 года назад
Microchip makes an 8-bit one too, the MCP23008.
@CristiNeagu
@CristiNeagu 2 года назад
I don't get why people are so fascinated with shift registers when IO expanders are a thing...
@CristiNeagu
@CristiNeagu 2 года назад
@@jnharton MCP23017 can be controlled in both 8 and 16 bit modes.
@jnharton
@jnharton 2 года назад
@@CristiNeagu That’s interesting, haven’t read the datasheet in depth. My point was just that there were options.
@murugesh9338
@murugesh9338 3 месяца назад
@@CristiNeagu BECAUSE I2C is unreliable compared to SPI and Direct accessing Shift Registers. You will get to notice only if u have multi modules in to MC.
@MicroVersee
@MicroVersee Месяц назад
No
@taranagnew436
@taranagnew436 2 года назад
so you put the latch low (prepares it to receive data), send the data, and put the latch high to receive the data??
@scienceoftheuniverse9155
@scienceoftheuniverse9155 2 года назад
Wow that's awesome. Thanks indeed
@techiesms
@techiesms 2 года назад
Glad you liked it!
@duality4y
@duality4y 2 года назад
what is a GPIO and why is a pin on that register NOT a GPIO
@mr.satishfy
@mr.satishfy 2 года назад
Using addresable led can be use
@rusticagenerica
@rusticagenerica Год назад
Excellent video !! May God bless you !
@Midhun938
@Midhun938 2 года назад
🤔🤔🤔🤔 what is the thing bro. I couldn't get the whole point. Can you please make a vedio that uses this shift register setup to control something more simpler & straight forward. Something like iot control
@techiesms
@techiesms 2 года назад
Sure. I'll making a practical working project out of it
@farmerjoe2103
@farmerjoe2103 2 года назад
A bit like a USB hub accepting eight inputs into one.
@varunkoganti9067
@varunkoganti9067 Год назад
Just use a pca9685 you get 16 pwm capable gpio. Each 9685 has 4 i2c address sel bits so 0000 to 1111. That means 256gpio per i2c in theory.
@Ncky
@Ncky Год назад
And you can also use i2c mux which gives even more possibilities
@vishnubalte1184
@vishnubalte1184 2 года назад
Plz meke video in hindi language bro ,
@GarretsonIndustries
@GarretsonIndustries 9 месяцев назад
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.
@techiesms
@techiesms 9 месяцев назад
Happy Making 😇
@64-bit63
@64-bit63 Год назад
It would be cool if it used i2c protocol, them it has to use only 2 pins for data communication. There is a small delay tho but it doesn't matter really because it is really small
@wayland7150
@wayland7150 Год назад
Yes but it then takes up your I2C pins. It maybe better to bit bang the device and have another line for chip select. That way your clock and data lines can be connected to several devices.
@kkelectronics831
@kkelectronics831 2 года назад
Yes we are waiting..............
@yuvrajarora9359
@yuvrajarora9359 2 года назад
Will I be able to control relay with it
@techiesms
@techiesms 2 года назад
Yes
@yuvrajarora9359
@yuvrajarora9359 2 года назад
@@techiesms actually i was asking because you said it will trigring again and again
@Stillalive008
@Stillalive008 2 года назад
It's okay. Give more videos like this
@pareshmhatre4019
@pareshmhatre4019 2 года назад
Your excitement is huge, that is great 👍
@riseiot
@riseiot 2 года назад
Amazing explanation
@nagarava
@nagarava 2 года назад
Can I use Esp01 in place of Esp32 with this code?
@techiesms
@techiesms 2 года назад
Yes Just change the PIN number
@danieldollive4660
@danieldollive4660 Год назад
Very well and clearly explained.
@philipp9651
@philipp9651 2 года назад
good sean it on another vid but can you show how to take inputs from shift reg. so it can scan 8 inputs and show if one has changed? please
@duality4y
@duality4y 2 года назад
you need a parallel in serial out type of register.
@philipp9651
@philipp9651 2 года назад
@@duality4y thanks had that idea but would need software for reading the inputs then I can send it out to another SIPO reg
@mikejones-vd3fg
@mikejones-vd3fg 2 года назад
kool
@mattbatt1984
@mattbatt1984 2 года назад
Damn, this video is clean and informative.
Далее
74HC595 & 74HC165 Shift Registers with Arduino
40:38
Просмотров 400 тыс.
OYUNCAK DİREKSİYON İLE ARABAYI SÜRDÜ 😱
00:16
Просмотров 2,7 млн
I2C and SPI on a PCB Explained!
15:34
Просмотров 149 тыс.
Which ESP32 is Best for Your Project?
11:12
Просмотров 29 тыс.
Can the ARDUINO NANO handle 64 potentiometers?
26:55
Просмотров 16 тыс.
Fun with Transistors
24:33
Просмотров 338 тыс.
#363 Which ESP32 pins are safe to use?
11:53
Просмотров 130 тыс.