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

  Рет қаралды 42,052

Solarduino

Solarduino

Күн бұрын

This video shows how to add or increase Analog Pins to micro controller such as NodeMCU or Arduino boards using 16 Channel Analog Multiplexer module. Analog pins are very important for sensor measurement. NodeMCU has only one built-in Analog Pin which is not sufficient for sensor monitoring application. For more information, kindly go to my blog page.
Solarduino blog page :
solarduino.com...
We would need readers like you to support us in order to keep growing. You can support us in the following ways :
1) Donate & fund raising
2) Purchase components from our Aliexpress Affiliate links
3) Like & Share videos & posts
Aliexpress Affiliate Links :
1) Aliexpress Mainpage - s.click.aliexpr...
2) NodeMCU micro-controller - s.click.aliexp...
3) NodeMCU base - s.click.aliexpr...
4) 16 Channel Analog Multiplexer - s.click.aliexpr...
5) Arduino Starter Kit - s.click.aliexpr...
6) Relay Switches Module - s.click.aliexpr...
7) Soldering Machine - s.click.aliexpr...

Пікірлер: 47
@cmorrow132
@cmorrow132 4 ай бұрын
Thank you for this, this is the most clear demonstration I have seen. The charts and pin configuration helps a ton. I just wired (soldered) a multiplexer to my nodemcu for a garden monitoring project with multiple soil moisture sensors.
@flywittzbeats4008
@flywittzbeats4008 Жыл бұрын
My hero, such a clear explanation. Much love!
@ghoond1314
@ghoond1314 3 жыл бұрын
So i have completed the basic to connect and testing it, and it was a success. And right now im a little bit confused, im trying to connect 2 sensors (ph and TDS/ppm sensors).
@oljobo
@oljobo Жыл бұрын
Great video. Please drop the music 🙏
@hasanozgen1437
@hasanozgen1437 2 жыл бұрын
Thanks for attention
@freakmax9259
@freakmax9259 3 жыл бұрын
thanks for the blog and the video bro ....
@TheWhitde
@TheWhitde 9 ай бұрын
OK... this is cool. Sooo what it's doing is basically acting as a pin swapper for the 16 potential analog pins and routing that pin to the original A0. Problem is 4 pins to control s0-s3 is a lot on an ESP32... However on my breakout board I'm making I have a dedicated 16 port expander so could nick 4 of these to control s0-s3. Other option is a dedicated SPI 8 channel ADC with 16 or 24 bit resolution which is especially good if already using SPI as it's just 1 pin for the CS.
@vishalvats5072
@vishalvats5072 3 жыл бұрын
Sir, do we have to be very specific while connecting the 04 Select PIns of Module to the Nodemcu? Means, do we have to only choose D0 - D3 GPIO pins or we can choose any of the 16 GPIO pins? Say I just need to connect 03 Analog Sensors to the NODEMCU then also I have to provide the binary input to all 16 Analog pins of Multiplexer or can I only initialize the 03 pins of multiplexer?
@pranendra_
@pranendra_ 3 жыл бұрын
can i get 5v power for every sensors with this?
@hatsunemiku6335
@hatsunemiku6335 3 жыл бұрын
Hi bro i have fix source code for voltage sensor to measure accu 12V, but when i mixed with this code it become meessed up, for the next video can u make an example this sensor to read voltage sensor and acs712, thanks b4, oh i forget how about nodemcu base plate how to read different module on same pin?
@kennito6493
@kennito6493 2 жыл бұрын
great video! but can i use TCA9548A instead? thanks
@abdulrahman8868
@abdulrahman8868 4 жыл бұрын
Awesome keep going bro
@sumarnowae6941
@sumarnowae6941 3 жыл бұрын
Can be used to measure the voltage of a 16 s lithium battery
@namapasaran4185
@namapasaran4185 2 жыл бұрын
Sudah jadi coba belum bro ?
@Lunolux
@Lunolux 2 жыл бұрын
nice video
@oskar1504
@oskar1504 Жыл бұрын
awesome
@rohithp8868
@rohithp8868 3 жыл бұрын
Can you build a 16s bms with esp32
@MsMauroluis
@MsMauroluis 3 жыл бұрын
hi, firstly thanks for video. would like to know if possible to use corrent sensor as ZMCT103C in this analogic inputs. I needed response of charge is on. i sorry my english. i'm brasilian. and again thanks
@waqassadiq
@waqassadiq 4 жыл бұрын
Can we use 16 relays in the same manner?? If yes.. How??
@solarduino1374
@solarduino1374 4 жыл бұрын
Yes you can. Check this out that other people has done the similar project using this multiplexer. From what I understand, the multiplexer can go reverse way as well. The Signal pin of multiplexer can receive digital signal (via digital write command) instead of read analog value. You connect the signal pin to one of your Digital output pin of arduino to control the signal pin receive High or Low then using the 4 binary pins to divert the digital signal to specific channel of the 16 channels (that connected to relay). robojax.com/learn/arduino/?vid=robojax_16ch_relay_multiplexer
@waqassadiq
@waqassadiq 4 жыл бұрын
Thanks..
@kamaljitsingh1871
@kamaljitsingh1871 3 жыл бұрын
bro, please tell me what will be code setting for dc volt meter instead of all potential meters, i want to check my 16s lithium battery . You doing great work, even person like me who dont know anything , now confident to do it. please reply
@solarduino1374
@solarduino1374 3 жыл бұрын
Hi, firstly, the 16 channels are detecting 5v input or output so your each input must not more than 5V. If you are using each input to measure the lithium battery which is maximum of 4.2v then is OK. You just need the formula 5v/1023 value (each analog value receive from Arduino will be 4.887mv which is equivalent to 5v if read 1023 value). If you use nodemcu which is only supports 3.3v,a voltage divider is needed in between the multiplexer and nodemcu. If you still have query kindly email me. Thx.
@kamaljitsingh1871
@kamaljitsingh1871 3 жыл бұрын
@@solarduino1374 thanks so much for your reply. I will mail you.
@jaycheda3232
@jaycheda3232 2 жыл бұрын
can we use this with esp32
@ahmetozdemir7173
@ahmetozdemir7173 Жыл бұрын
Thanks for video. Can I ask something; I want to connect 6 same sensors (lis3mdl) with both i2c and spi connections to the esp32-e card. However, it is not possible to connect with i2c and spi protocols because the connection addresses of the sensors is same. I want to receive data from and encode it on the processor. Would it be possible to connect with CD74HC4067 card?
@aimannajmianuar3753
@aimannajmianuar3753 4 жыл бұрын
Is it necessary to assign selector on multiplexer to digital pin on NodeMcu? cuz there are selector pin on NodeMcu as well so cant we just direct connect them altogether? If can how can we assign them in codes?
@solarduino1374
@solarduino1374 4 жыл бұрын
Hi, there are many ways to program in Arduino codes which can get the same result. If you skipped to assign S0 to S3 Digital Pins which typically could also work. You can directly do digital write using GPIO pins for NodeMCU. However, you have to convert to GPIO pins for the binary combination instead using S0-S3 pins. Hope it explains.
@tanhaonguyen4447
@tanhaonguyen4447 3 жыл бұрын
Savior!!!!!!
@gil6247
@gil6247 4 жыл бұрын
Thnks bro, i owe u
@klanjabrik
@klanjabrik 3 жыл бұрын
Hmmm... its not working, i tested using potentiometer but the value is not changing.
@rohithvemulapally1350
@rohithvemulapally1350 3 жыл бұрын
I have an analog sinusoidal signal from the Function generator which I want to give to the SIG pin of MUX and control the output pins (0 to 15 ) of MUX like which pin needs to get that analog signal with Arduino? Is it possible with this 16 channel MUX
@solarduino1374
@solarduino1374 3 жыл бұрын
Hi, as long as your analog sinusoidal signal range is within 0-5V then should be fine (but not applicable for negative analog value)
@gacstibi
@gacstibi 3 жыл бұрын
is there a way to avoid the fake values on the pins that are not connected?
@solarduino1374
@solarduino1374 3 жыл бұрын
Hi, I think can be done by connect all unused pins to the common ground
@gacstibi
@gacstibi 3 жыл бұрын
@@solarduino1374ah yes, although my intention would be to connect multiple potentiometers, so no floating pins
@Deeplearning_security
@Deeplearning_security 2 жыл бұрын
multiplexer Analog values are very inconsistent! anyone can help me
@FAKEShawn
@FAKEShawn 3 жыл бұрын
THANK YOU BROO T_T
@pabloaragon7973
@pabloaragon7973 3 жыл бұрын
Hi, i am executing your code, but its show and error 'D0' was not declared in this scope
@solarduino1374
@solarduino1374 3 жыл бұрын
Hi, D0 already defined in code #define S0 D0 at the beginning. It should work. Have you modified or using different board?
@lespoon4828
@lespoon4828 3 жыл бұрын
@@solarduino1374 Hi I'm having the same prob as him, I haven't modified the code and the board I'm using is the uno r3 what do u think the prob is
@lolsos419
@lolsos419 3 жыл бұрын
i have the exact same problem
@steve16171617
@steve16171617 3 жыл бұрын
yep same problem. Why does the code not work?
@ReggaeGregy
@ReggaeGregy 3 жыл бұрын
You blog is down. Not reachable
@solarduino1374
@solarduino1374 3 жыл бұрын
Hi, it indeed has an error and it has been solved. Thanks for informing.
Analog extender for ESP-8266 and Arduino
9:41
nenioc187
Рет қаралды 66 М.
Fake watermelon by Secret Vlog
00:16
Secret Vlog
Рет қаралды 15 МЛН
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 45 МЛН
Arduino Multiplexor - MUX INPUTS & OUTPUTS - ANALOG and PWM
13:21
Electronoobs
Рет қаралды 105 М.
Multiplexing Arduino Inputs: 16 Analogue Sensors on 2 Analogue Pins!
14:49
Charis Cat // Child of an Android
Рет қаралды 13 М.
The 74HC4067 CMOS Analog Switch
12:14
Tech-Relief
Рет қаралды 1,1 М.
How To MUX Arduino Inputs & Outputs | Arduino Multiplexer
9:08
Kiyani's Lab
Рет қаралды 36 М.
Try these 16 Brilliant ESP32 projects!!!
11:18
ToP Projects Compilation
Рет қаралды 576 М.