Add or increase Analog Pins for NodeMCU or Arduino using 16 channel analog multiplexer module

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello welcome to my channel today let's talk about how to increase the analog pin for the nodemcu as you know nodemcu board only has one analog pin which is the a 0. so technically it can only allow us to measure one sensor measurement so today we'll talk about how to increase this analog pin using 16 channel analog multiplexer so on the left side of the module these are all the available analog pins from the sensors that you want to measure and there's only a output analog pin is a sig means a signal to the analog input pin of the node mcu this module only has one output so at any specific time it only allows one channel to go out subject to the signal received in term of binary combination from the mcu or any microcontroller the inputs of the binary is all digital that means either high or low for example if you want to open the channel 0 to the signal and also the node mcu so the microcontroller need to send the command to this four binaries input so that means it's a or zero voltage and if you want to go for the last channel for example so the nodemcu have to command to provide order binary into high voltage does mean a 5 volt 5 volt 5 volt 5 volt so it allows the channel 15 to go to the a0 so in reality what the node mcu do is when it sends each of the binary combination like for example one channel then it starts to measure after each measure it sends another binary combination again for second channel to go in and measure again so this process repeats measure one by one until the measurement of 16 channels the program is run so fast that only one output channel is enough next is the en pin the en pin is the confirmation pin it's an enable pin when the en is 0 volt it allows the channel to be standby if the en pin is high voltage for example 3.3 or 5 volt so it will block all the channel vcc is the power supply going in to power the module and the ground [Music] so the wiring diagram will look something like this so in this project i'll be using one potentiometer as a sensor there are three pins over here so the middle one will be connected to the analog sensors and left and right will be connected to the power supply one connected to the ground and one connected to five volt so when you are in my block page you scroll down you can read through it and if this is your first time dealing with this uh not mcu board make sure you download the bot manager as well when you scroll down at the end you will see the nodemcu with 16 channel analog multiplexer arduino code just right click and save link s just open it up when you're in the code you do not need to change anything you just verify and upload okay once done uploading you just go to tools and serial monitor so every second the node mcu will measure all the sensors so for example look at this wiring i connected at pin number 15 so the sensors number 15 has have low so when i adjust the potentiometer you see the sensor 15 is increased to the max so the rest i'm not connected so you have fake values so i return reduce back to zero value to check all the pins so i have to tuck out this yellow wire so maybe i connected to c 2 okay so we go to sensor 2 rotate the potentiometer you can see the value is increasing okay now reduce back so this is how the sensor works you
Info
Channel: Solarduino
Views: 41,404
Rating: undefined out of 5
Keywords: arduino, nodeMCU, micro controller, analog pin, increase, add, more, 16 channel, analog multiplexer, sensor, 4067, chip, uno, mega, wifi, internet, IOT, extend, module
Id: We_kBjiUkXU
Channel Id: undefined
Length: 5min 5sec (305 seconds)
Published: Mon Jun 15 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.