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

  Рет қаралды 83,944

techiesms

techiesms

Күн бұрын

Пікірлер: 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 4 күн бұрын
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
@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...
@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 KZbin video of that would you Mr Driscoll? Everyone with a phart smone has got at least one KZbin 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.
@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!)
@sandeepsingh_eagle
@sandeepsingh_eagle 8 ай бұрын
Really wow May I know which tool you use for those electronic animations
@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
@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.
@ArjunKohli
@ArjunKohli 2 жыл бұрын
i also worked on shift register , controlled 6 seven segment and make a digital clock
@rusticagenerica
@rusticagenerica Жыл бұрын
Excellent video !! May God bless you !
@k.k8221
@k.k8221 2 жыл бұрын
Use MCP(Ex. MCP23017) only two pin is required for expanding GPIOs, what you think using MCPs....
@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.
@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)
@duinoblogtube2070
@duinoblogtube2070 2 жыл бұрын
I see u used the old V of arduino IDE, btw it work slow on my laptop, hello from Morocco 👋😊
@wali7862
@wali7862 10 ай бұрын
will this work for sensor that make use of digital pins as signal
@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.
@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??
@khanlalamemes4655
@khanlalamemes4655 22 күн бұрын
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?
@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
@jobin6784
@jobin6784 2 жыл бұрын
Excellent explanation
@techiesms
@techiesms 2 жыл бұрын
Glad it was helpful! Just Share it with others as well!!
@GrandNecro
@GrandNecro Жыл бұрын
I guess the only downside is that you can't use shiftreg to read analog signal like an analog demux can
@all-about-automation
@all-about-automation 2 жыл бұрын
But we cannot use this multiplexer to read sensor data because this module generates some offset value
@Tn-qb9kk
@Tn-qb9kk Жыл бұрын
Is it the same as SerDes ?
@carlosbah4623
@carlosbah4623 Жыл бұрын
¡Guau! Que bien explicado todo. ¡Gracias por compartir su conocimiento!
@shakerileiwat4341
@shakerileiwat4341 2 жыл бұрын
Thank you , great video 👍👍👍 11:44 great idea, do it please.
@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
@profdc9501
@profdc9501 Жыл бұрын
of course, also commonly available are the PCF8574 and MCP23008/MCP23017 that work over i2c
@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?
@user-mr3mf8lo7y
@user-mr3mf8lo7y 2 жыл бұрын
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.
@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 😊👏🏻
@AlexLipkovich
@AlexLipkovich Жыл бұрын
dont use 595, use serial led driver , it the same logic, but every output have up to 70mA
@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.
@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.
@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.
@buddhimaamarasinghe9997
@buddhimaamarasinghe9997 2 жыл бұрын
Excellent project, Make the project in ESP 01 as well. Do a project with multiple inputs. Thanks.
@cpK054L
@cpK054L Жыл бұрын
No shit the MUX will only control one-output at a time. Just MUX to PsuedoDAC-R2R, problem solved, plebes
@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.
@RandomTorok
@RandomTorok 10 ай бұрын
Doesn't work. Might help if a readable copy of the circuit diagram was provided.
@janklas7079
@janklas7079 Жыл бұрын
it's a bit of nagging, but it's not unlimited. Eventually you'll run out of frequency for your serial coms.
@FARMAN68
@FARMAN68 Жыл бұрын
I want make audio 8 in 8 out matrix. Please make a helpful video about this.
@croydon21H
@croydon21H 2 жыл бұрын
You struggle so much to give details easily. The thumbnail is much and you make a whole video with shift register
@CerebralDad
@CerebralDad Жыл бұрын
Are you able to read analog inputs with these shift registers?
@aykutulusan6728
@aykutulusan6728 Жыл бұрын
74XX595 is the worst choice, ns-level spike changes all outputs (ns:nanosecond)
@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
@Tridenux
@Tridenux 4 күн бұрын
amazing
@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.
@vishalnarwal9482
@vishalnarwal9482 Жыл бұрын
Is it possible to use the Shift Registers along with Rainmaker App?
@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?
@isaharoon1000
@isaharoon1000 Жыл бұрын
Good explanation of shift registers, but this aint GPIOs (General Purpose Input Output). There is only output here, no input.
@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 😊
@rugneshvora209
@rugneshvora209 2 жыл бұрын
this video was full of knowledge😎❤‍🔥
@drelectronics13
@drelectronics13 2 жыл бұрын
Is anyone getting device not found error while scanning QR code in esp rainmaker app,??
@rusticagenerica
@rusticagenerica Жыл бұрын
I love how you speak English !!!!
@shobhitkumawat
@shobhitkumawat 2 жыл бұрын
Jahanpanah tussi great ho 🙇‍♂️
@techiesms
@techiesms 2 жыл бұрын
🙌🏻🙌🏻
@swishiestmetal6215
@swishiestmetal6215 Жыл бұрын
Sometimes I have no idea what he's saying😑
@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.
@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...
@MicroVersee
@MicroVersee Ай бұрын
No
@guliyevshahriyar
@guliyevshahriyar Жыл бұрын
Thx
@wizardnotknown
@wizardnotknown 2 жыл бұрын
Wtf is this channel.
@AhmetTasdemirDJLuds
@AhmetTasdemirDJLuds 2 жыл бұрын
I was made 512 pin harness tester device with mcp23017 with i2c connection with 8ch i2c multiplexer.
@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
@andreadm4578
@andreadm4578 2 жыл бұрын
Rapaz não entendi nada do que ele falou mais deu pra entender com a imagens
@bhupendrasingh9014
@bhupendrasingh9014 22 күн бұрын
What's your views on MCP23017 ?
@RaulAyanami
@RaulAyanami 7 ай бұрын
So.. no pwm
@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.
@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.
@codewonderland-gaming
@codewonderland-gaming Жыл бұрын
I love this tutorial!! All your wiring diagrams are upside down though 🤣
@mr.satishfy
@mr.satishfy 2 жыл бұрын
Using addresable led can be use
@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
@duality4y
@duality4y 2 жыл бұрын
what is a GPIO and why is a pin on that register NOT a GPIO
@scienceoftheuniverse9155
@scienceoftheuniverse9155 2 жыл бұрын
Wow that's awesome. Thanks indeed
@techiesms
@techiesms 2 жыл бұрын
Glad you liked it!
@HelderParracho
@HelderParracho 2 жыл бұрын
Why don't you use SPI to control the shift registers and get rid of all that show code?
@RavindraSingh-jw2sm
@RavindraSingh-jw2sm 10 ай бұрын
Element 14 ka video chipka diya .
@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.
@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.
@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 👏
@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.
@vishnubalte1184
@vishnubalte1184 2 жыл бұрын
Plz meke video in hindi language bro ,
@kkelectronics831
@kkelectronics831 2 жыл бұрын
Yes we are waiting..............
@indian.techsupport
@indian.techsupport Жыл бұрын
You just made outputs, not general purpose input and output
@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.
@pareshmhatre4019
@pareshmhatre4019 2 жыл бұрын
Your excitement is huge, that is great 👍
@Stillalive008
@Stillalive008 2 жыл бұрын
It's okay. Give more videos like this
@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
@GarretsonIndustries
@GarretsonIndustries 10 ай бұрын
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 10 ай бұрын
Happy Making 😇
@ravindrakulkarni4359
@ravindrakulkarni4359 Жыл бұрын
How to join premium member I don't have credit card
@danieldollive4660
@danieldollive4660 Жыл бұрын
Very well and clearly explained.
@riseiot
@riseiot 2 жыл бұрын
Amazing explanation
@mattbatt1984
@mattbatt1984 2 жыл бұрын
Damn, this video is clean and informative.
@ENI232
@ENI232 2 жыл бұрын
very clear and concise video!
@nagarava
@nagarava 2 жыл бұрын
Can I use Esp01 in place of Esp32 with this code?
@techiesms
@techiesms 2 жыл бұрын
Yes Just change the PIN number
@lkdhruw
@lkdhruw 2 жыл бұрын
Even though I have used these ICs a lot of times but still I got to know some new information 👍
@techiesms
@techiesms 2 жыл бұрын
Glad to hear that
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 26 МЛН
Spongebob ate Michael Jackson 😱 #meme #spongebob #gmod
00:14
Mr. LoLo
Рет қаралды 10 МЛН
إخفاء الطعام سرًا تحت الطاولة للتناول لاحقًا 😏🍽️
00:28
حرف إبداعية للمنزل في 5 دقائق
Рет қаралды 42 МЛН
小天使和小丑太会演了!#小丑#天使#家庭#搞笑
00:25
家庭搞笑日记
Рет қаралды 35 МЛН
74HC595 & 74HC165 Shift Registers with Arduino
40:38
DroneBot Workshop
Рет қаралды 400 М.
The BEST EVER IOT Project using ESP32 🔥🔥 | PCBGOGO
19:44
Every Apartment needs this Upgrade! (WhatsApp/Telegram Notifications)
10:05
Negative Time is Real, Physicists Confirm. Kind Of.
6:59
Sabine Hossenfelder
Рет қаралды 16 М.
MCP23017 Port Expander and ESPHome: Add More I/O Pins to Your Project
20:39
DIY haptic input knob: BLDC motor + round LCD
2:11
scottbez1
Рет қаралды 2,2 МЛН
Hacker's Guide to UART Root Shells
17:40
Flashback Team
Рет қаралды 484 М.
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 26 МЛН