Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM

  Рет қаралды 99,680

Electronoobs

Electronoobs

Күн бұрын

High quality PCB prototypes: www.pcbway.com
3D & CNC service: www.pcbway.com/rapid-prototyp...
🔥Multiplexers and demultiplexers are devices that allow us to control a greater number of devices with a smaller number of inputs or outputs. We can use these devices to expand the number of inputs and outputs of a processor like Ardunio.
🔀LINKS
-------------------------------------
Tutorial Website: electronoobs.com/eng_arduino_...
Get my PCB: electronoobs.io/shop/index.ph...
My tools: electronoobs.com/eng_afiliate...
False/True T-Shirt: teespring.com/it-s-funny-beca...
🤝SUPPORT
-------------------------------------
Join my Arduino Course (Spanish): bit.ly/2JY8icE
ELECTRONOOBS.io: electronoobs.io
Donate on PayPal: www.paypal.com/donate?hosted_...
Help my projects on Patreon : / electronoobs
my Q&A page: electronoobs.io/forum/index.php
Facebook page: / electronoobs
Canal en Español: / electronoobs en español
00:00 Intro
01:45 Why use a MUX?
04:50 How it works?
07:08 MUX as output
08:05 Bit Read Function
10:08 MUX as input
11:18 More Specs
12:58 Thank you
Like share and subscribe to motivate me. Thank you
#arduino
#Modules
#tutorial

Пікірлер: 101
@ELECTRONOOBS
@ELECTRONOOBS Жыл бұрын
Join my Arduino Course (Spanish): bit.ly/2JY8icE My Tools: bit.ly/3uv8bc3 Help me on Patreon: www.patreon.com/ELECTRONOOBS
@jorgeestefania3184
@jorgeestefania3184 Жыл бұрын
you can actually turn two leds at the same time if you divide the time and frequency for each led. For example you could change the output channel every 10 ms and you would see that (virtually) different leds are on. This can also work for demultiplexing
@eatthisvr6
@eatthisvr6 9 ай бұрын
Would that work for toggle switches or would they flicker ingame?😊
@PihkalTheTihkal
@PihkalTheTihkal Жыл бұрын
You could have used a 74HC595 sipo shift register, it uses 3 control pins and gives you 8 digital outputs, but you can daisy chain them for as many digital outputs as you like while still using only 3 pins.
@laurv8370
@laurv8370 Жыл бұрын
Exactly my thoughts: use a shift register. Moreover, with a latch and output enable signals, you can also solve the issue about turning two (or more, or all) pins in the same time. But you lose the input ability hehe, I guess you can't have all.. 😛
@tunahankaratay1523
@tunahankaratay1523 Жыл бұрын
Shift registers aren't instantaneous. Although it won't be important here.
@thekitsunedev_hun
@thekitsunedev_hun Жыл бұрын
@@tunahankaratay1523 it could be used for daisy chaining pairs of mux devices
@orange_tweleve
@orange_tweleve 5 ай бұрын
​@@laurv8370for input ability yhetes the opposite of the ic , parallel to serial ic , I think it was 74hc165
@laurv8370
@laurv8370 5 ай бұрын
@@tunahankaratay1523 Shift registers ARE instantaneous. It is called latching.
@TheUnofficialMaker
@TheUnofficialMaker Жыл бұрын
I love it, Exactly what I needed. Thanks!
@jlucasound
@jlucasound Жыл бұрын
I like these! And when an overlap of channels would/could be disastrous, you have a built in safety fail safe.
@BRADASSOFFGRIDHOMESTEAD
@BRADASSOFFGRIDHOMESTEAD Жыл бұрын
I have one, and never used it. Thanks for the video!
@danielmelo3648
@danielmelo3648 11 ай бұрын
Wow, super explanation of a Multiplexer, I'm new to this term and it was fascinating to see one in use inyour channel. Thanks a lot!
@1_HighDuke
@1_HighDuke Жыл бұрын
Thanks for the great explanation!
@siv_valentin
@siv_valentin Жыл бұрын
Much simpler you can use charlieplexing on led part of optocouplers/SSRs , because it doesn't require an auxiliary ic for that task. For example with 3 i/o pins we can control up to 6 i/o devices, with 4 i/o ... up to 12 and so on. The basic formula for this is n*(n-1)=num of i/o, where n = num of i/o pins
@BenM0
@BenM0 Жыл бұрын
@Electronoobs Thanks for sharing another awesome tutorial, that's very helpful for me. regarding your digital multimeter project, instead of using a bulky ssr why you didn't choose a small digital switch like LTC1477 ? i think that fits better in your small project's PCB.
@lasersbee
@lasersbee Жыл бұрын
5:44.. Since only one output can be controlled at a time you could have used a single current limiting resistor to ground for all the LEDs.
@dellodel9502
@dellodel9502 Жыл бұрын
You make great videos Thanks for the best explanation
@marcomachado39
@marcomachado39 Жыл бұрын
Top 10, mais um excelente video.
@studentofedison421
@studentofedison421 Жыл бұрын
Awesome video, plz upload more and more videos
@buddhimaamarasinghe9997
@buddhimaamarasinghe9997 Жыл бұрын
Excellent video ,Thanks for sharing your knowledge. Do other videos soon , Thanks.
@joseraymondnn
@joseraymondnn Жыл бұрын
Hi! Thank you for this presentation. Do you know a way to read or write to multiple I/Os at the same time. I have a project where I want to read multiple PWM signals at the same time using "analog" hall effect sensors. Thank you.
@jasoncook9817
@jasoncook9817 Жыл бұрын
Thanks for this. I have a box of CD74HC4067 as I assumed them to be comparative to the MAX7219, good to know what I CAN do with them.
@CLARVO
@CLARVO Жыл бұрын
Amazing 😄 could you please make a video on shift register?
@FarizFadian
@FarizFadian 6 ай бұрын
Thanks for sharing sir.. it's very helpful & easy to understand..
@kmhooibg7577
@kmhooibg7577 Жыл бұрын
i will suggest use pt65 switch/dip switch for the multimeter
@x_emraah
@x_emraah Жыл бұрын
excellent video. but how it can be useful? for example, how we can drive 12v led strip with pwm?
@Theeceeffect
@Theeceeffect Жыл бұрын
Can I also use this mux module for expand uart pins?
@xavierortiz106
@xavierortiz106 Ай бұрын
This is a great video!
@juanhurtado2679
@juanhurtado2679 Жыл бұрын
A shift register will be better if you want more than one output at a time
@11219tt
@11219tt 14 күн бұрын
I think it's important to mention that it's not all that big of a deal that you can't select more than one thing at a time. In our world we are dealing with seconds of time. But the mux is dealing with nanoseconds. So even though it's true the mux can only do one at a time, it can do multiple in line and it willl appear to us as the same time because nanoseconds are super fast! Correct me if I'm wrong.
@OAlexisSamaO
@OAlexisSamaO Жыл бұрын
thanks this was really useful,
@nekam2000
@nekam2000 3 ай бұрын
Thank you for the video. Is there any reason why in the second method you set muxSIG to an analog pin A0 while this enable pin can only be set to high or low?
@Poult100
@Poult100 Жыл бұрын
Thanks for making this video. I was going to use one of these MUX devices to increase the digital pins of my Nano but had not considered the limitation of only being able to address one pin at a time. I now may have to use a different MCU or maybe design a latching arrangement. Which would you suggest?
@slakjawnotsayin5451
@slakjawnotsayin5451 Жыл бұрын
I'm in the same boat, wondering if there is a simple and cheap alternative that would easily add more I/O's that aren't limited to only using 1 pin at a time. I have used the 74HC595 sipo shift register method as well, but wondering if there's another way like this MUX but better?
@edmardupreez8742
@edmardupreez8742 Жыл бұрын
Do you get a version of this device that works with 3.3V microcontrollers?
@harrysharma9561
@harrysharma9561 10 ай бұрын
How to use this chip in rc transmitter and receiver project you made earlier? I want to make a 10~16ch transmitter but ran out of pins this seems viable but how to read all inputs at same time and output too. 😅
@Drxxx
@Drxxx Жыл бұрын
Super video, this is so cool, i made display 64x16 with max7219..
@GnobarEl
@GnobarEl Жыл бұрын
When the robot video series will start? Can't wait for it! 😍
@abrahammagnifico9538
@abrahammagnifico9538 Жыл бұрын
Please make a video about EMF supression, to command relays, elctrovalves..... without any noise
@PhG1961
@PhG1961 Жыл бұрын
Nice video !
@eatthisvr6
@eatthisvr6 9 ай бұрын
what do you need to have multiple inputs at the same time, ie multiple toggle switches switched on for a game
@shivavrd2154
@shivavrd2154 Жыл бұрын
My nodemcu has only one analog input. Can I use a multiplexer to read multiple analog inputs from different servo motors?
@tvamos73
@tvamos73 Жыл бұрын
Why did you choose an analog MUX if You need a digital DECODER like 74HC138?
@user-zy6td3fg5s
@user-zy6td3fg5s 2 ай бұрын
Could you tell me where I can look at that future project with a large number of capacitive sensors? You are talking about this project at 12:10
@holly-jothompson3717
@holly-jothompson3717 Жыл бұрын
Ok. So. Ive a question, is this in a general sense, the same type of thing that is used to modify or tune a vehicles various control modules. Pcm bcm tcm. In regards to the piggyback style tuning modules like hondata and demon tuning.modules. Correct?
@eatthisvr6
@eatthisvr6 9 ай бұрын
Can you use toggle switches with these? Ie on else in game won't flicker??
@ipadize
@ipadize Жыл бұрын
how can i multiplex more arms to my body?
@johnloda2417
@johnloda2417 Жыл бұрын
Do you have a link to that wiring picture at the 7:06 mark? It's a little hard to see in your video.
@sarthakmishra5418
@sarthakmishra5418 Жыл бұрын
Sir can we use more than one outputs or inputs at a time? Please reply
@SecularMentat
@SecularMentat 4 ай бұрын
This seems like the basis for TDMA (time division multiple access) multiplexing.
@EdwinNoorlander
@EdwinNoorlander Жыл бұрын
Why don’t use a 74HC595 and 74HC165?
@EdwinNoorlander
@EdwinNoorlander Жыл бұрын
Or you can use a I2C / MCP23017 or SPI MCP23S17 port expender.
@AmandeepRashwan
@AmandeepRashwan Жыл бұрын
When will you upload the homemade laser show dance device
@hamzahansari6900
@hamzahansari6900 Жыл бұрын
Can you pls make a tht version of diy Arduino, with the chip that's needed to program the Arduino. What i mean is that use all tht components except the ones that can't be such as that chip or voltage regulators. It would be very helpful Thank you
@Davidlahall
@Davidlahall Жыл бұрын
Great video...you used pwm and you said the response time of the MUX is in ns range...why not program it to select the to inputs or outputs you need at the fastest possible rate it can handle and simulate having two I/O on at the same time...more than likely you will never in this application need that fast response time. It's like pwm Led dimming to ours eyes it's dimming but it's really not.
@ShammoThePro
@ShammoThePro Жыл бұрын
Please make autonomous car
@aod_
@aod_ Жыл бұрын
Please make a Gaming Steering Wheel to play some racing games using Arduino and least number of passive components. Hope you will try my Suggested Project.
@YoomarTuNoOmar
@YoomarTuNoOmar Жыл бұрын
Can you talk about charlieplexing? I've heard it is faster, cheaper and more reliable than multiplexing, but would like you talking about it
@ShammoThePro
@ShammoThePro Жыл бұрын
Please make an autonomous car project
@Rapptor22
@Rapptor22 6 ай бұрын
You said you can switch on only one output at a time. Does this mean, that you can receive signal from only one input at a time?
@ohmslaw6856
@ohmslaw6856 Жыл бұрын
Thanks bro
@SaliyaRuchiranga
@SaliyaRuchiranga Жыл бұрын
any chance that arduino 101 PWM episode coming soon ??
@AlbertRei3424
@AlbertRei3424 Жыл бұрын
The important point with MUX is that the input signal is redirected to the selected ouput
@mohdfarhan5255
@mohdfarhan5255 7 ай бұрын
basically it short circuit like a switch right? Not like the channel reproduce the voltage? Im just wondering if I can redirect a 0.3V to whichever channel I want.
@0124akash
@0124akash 15 күн бұрын
Mux and ads1115 Is same things?
@Hi-zf4bn
@Hi-zf4bn Жыл бұрын
That module is a MUX-have for any Arduino project...😁
@BRADASSOFFGRIDHOMESTEAD
@BRADASSOFFGRIDHOMESTEAD Жыл бұрын
What software do you use for your animations?
@fahadkhan463
@fahadkhan463 Жыл бұрын
Which software?
@artinfaez4932
@artinfaez4932 Жыл бұрын
very nice
@xntumrfo9ivrnwf
@xntumrfo9ivrnwf Жыл бұрын
2:15 you said to jump to minute 00:00 if I just want to see how to use the MUX, but that took me back to the beginning of the video
@ELECTRONOOBS
@ELECTRONOOBS Жыл бұрын
hahaaha my bad! edit error
@omaral-gallab7735
@omaral-gallab7735 Жыл бұрын
Can i use this system for harvesting energy?? Anyone can help me
@GHILLIESARCADEANDMORE
@GHILLIESARCADEANDMORE Жыл бұрын
Cool
@yeimereduardosilvagomez4798
@yeimereduardosilvagomez4798 Жыл бұрын
¿Puedo conectar un mux a otro mux para poderlo usar? ¿O los mux deben ir conectados únicamente al Arduino?
@ELECTRONOOBS
@ELECTRONOOBS Жыл бұрын
si puedes!
@omsingharjit
@omsingharjit Жыл бұрын
nyc
@techbarron7383
@techbarron7383 Жыл бұрын
please make a video on how to make,wifi jammer using arduino or any module,circuits that can provide jamming👍
@surenbono6063
@surenbono6063 Жыл бұрын
...is there anyway that a Solar Cell to be multiplex to isolate shaded panels..?... I can't find anyone test this yet.. currently they use a bypass diode (series) instead...can you demonstrate the yield of solar in multiplexed connection... research sake
@mamamia980
@mamamia980 Жыл бұрын
could this be used to make 64 button midi controller?
@bagassetiawan1478
@bagassetiawan1478 Жыл бұрын
make make remember evan kale channel, he already make it for his guitar. but somehow he missing and also his channel before i download his code.
@mamamia980
@mamamia980 Жыл бұрын
@@bagassetiawan1478 is it difficult to do?
@kadyo2op64
@kadyo2op64 Жыл бұрын
Waiting for another NRF24L01+ rc car
@fench1234567
@fench1234567 9 ай бұрын
Next level = use of TDM protocol in some form.
@conorstewart2214
@conorstewart2214 Жыл бұрын
2:10 on your note about where to skip to, it says skip to 00:00. People shouldn’t skip anyway but just pointing out your mistake. Great video though.
@jumbo999614
@jumbo999614 Жыл бұрын
Is it the same as IC CD4051?
@Enigma758
@Enigma758 Жыл бұрын
No, that will handle analog signals in addition to digital, so it's not he same.
@carlosmf6954
@carlosmf6954 6 ай бұрын
👍
@yakut9876
@yakut9876 2 ай бұрын
well, the mechanical switch also considered digital.
@knowthenew8834
@knowthenew8834 9 ай бұрын
Give me Arduino uno code for digital clock signal
@stefano.a
@stefano.a Жыл бұрын
It is called multiplexEr
@jstro-hobbytech
@jstro-hobbytech Жыл бұрын
Great video. I have a bunch of them. Can they be be bit banged say for poling motion sensors. I get I couldn't cause an interrupt unless I read the sensor manually according to its address. Message me man I have something you might like to have. I bought it brand new and it might inspire a cool series of vids that not really anyone is doing and I know the topic is right up your alley, the item was by no means cheap and it has to do with digital music. I'm in Canada but I'd pay the post as a thanks for lack of patreon support for a while. I was going to post it on but you'd get to more viewers and we all live playing with opamps and such. Haha
@user-lt9hh7ml2x
@user-lt9hh7ml2x Жыл бұрын
Hi
@risingmermo
@risingmermo Жыл бұрын
Wtf?! Are you a mindreader or something? I was about to do some research on multiplexers when I got the video nofitication.
@alexybodom
@alexybodom Жыл бұрын
i just subscribed to your chanel and probably i have to unsubscribe soon because i hate when youtubers are holding and talking to the camera like you did 13-> onward and if a you tuber is telling me "im so exided guys(for you guys)" when i hear this i emidiatly leave the video so please dont do this kind of fake stuff you are providing exelent knolage in your videos but please, please don`t be like any other fake US youtuber i wish you good luck
@rubybegonia2642
@rubybegonia2642 Жыл бұрын
You're in need of some serious help.
@deepanshusonwane7398
@deepanshusonwane7398 Жыл бұрын
Bro when I needed this type of video the most you came in rescue 🥲
@ShammoThePro
@ShammoThePro Жыл бұрын
Please make an autonomous car project
@ShammoThePro
@ShammoThePro Жыл бұрын
Please make autonomous car
74HC595 & 74HC165 Shift Registers with Arduino
40:38
DroneBot Workshop
Рет қаралды 391 М.
Practical Guide to PCF8574: Adding Extra Pins for Arduino
16:46
Mario's Ideas
Рет қаралды 4,1 М.
The joker's house has been invaded by a pseudo-human#joker #shorts
00:39
Untitled Joker
Рет қаралды 10 МЛН
Luck Decides My Future Again 🍀🍀🍀 #katebrush #shorts
00:19
Kate Brush
Рет қаралды 8 МЛН
He sees meat everywhere 😄🥩
00:11
AngLova
Рет қаралды 8 МЛН
Multiplexers and DeMultiplexers
14:53
Joe Haas
Рет қаралды 162 М.
How To MUX Arduino Inputs & Outputs | Arduino Multiplexer
9:08
Kiyani's Lab
Рет қаралды 34 М.
CAN Bus: Serial Communication - How It Works?
11:25
Electronoobs
Рет қаралды 203 М.
I tried finding Hidden Gems on AliExpress AGAIN! (Part 6)
13:30
GreatScott!
Рет қаралды 852 М.
ESP8266 + Arduino + database - Control Anything from Anywhere
13:51
Electronoobs
Рет қаралды 625 М.
Solving I2C Address Conflicts - TCA9548A I2C Multiplexer
24:29
DroneBot Workshop
Рет қаралды 100 М.
EEPROM Memory - Store Anything - Arduino101
13:16
Electronoobs
Рет қаралды 100 М.
Electronic Basics #5: How to Multiplex
4:54
GreatScott!
Рет қаралды 564 М.
Samsung S24 Ultra professional shooting kit #shorts
0:12
Photographer Army
Рет қаралды 32 МЛН
Asus  VivoBook Винда за 8 часов!
1:00
Sergey Delaisy
Рет қаралды 1,1 МЛН
Cadiz smart lock official account unlocks the aesthetics of returning home
0:30