Beginners Guide to Processing 18650 Cells | Cell Database


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Arduino Multiplexer Question
#1
Does anyone know if I can somehow wire multiple 16-channel multiplexers together to get more than 16 channels? I know I can just hook up the second to the next set of output pins, but would rather not waste the pins...
http://www.ebay.com/itm/291547876571

I'm not an arduino or electronics expert Wink

Thanks!
Reply


#2
Yes you can. As many as you want. First multiplexer takes 4 outputs from the arduino. On the first multiplexer hook up 4 more... and so forth...

You can also use I2C multiplexer.. Perhaps easier.
Korishan likes this post
10K followers on Youtube before 2017 ends?!  Help me get there!
YouTube / Forum system setup / My webpage  Diy Tech & Repairs

Current: 10kW Mpp Hybrid | 4kW PIP4048 | 2x PCM60x | 83kWh LiFePo4 | 10kWh 14s 18650 |  66*260W Poly
Upcoming: 14S 18650~30kWh | Automatic trip breakers, and alot more
Reply
#3
Yes. I already tried on my FCDS prototype, but there is a little correction for Daniel's post. You need 4 digital and 1 analog pins from arduino. For the next multiplexer you should connect the same digital pins and an additional analog pin and the whole process go on.

And of course you can save some pins with I2C multiplexers. 

Mike, how much pins do you need? And analogs or digitals?
daromer likes this post
Reply
#4
(09-05-2017, 07:35 PM)FERCSA Wrote: Yes. I already tried on my FCDS prototype, but there is a little correction for Daniel's post. You need 4 digital and 1 analog pins from arduino. For the next multiplexer you should connect the same digital pins and an additional analog pin and the whole process go on.

And of course you can save some pins with I2C multiplexers. 

Mike, how much pins do you need? And analogs or digitals?

I am researching this question also as I never used a MUX but need to as I build a tester for myself. 

I saw a way to address two 16:1 MUX chips by connecting the address lines in parallel, just be sure to add a 2:1 mux for the chip select line... like this: http://word-to-html-images.s3.amazonaws....16p-i1.png

That diagram is labeled funny, with lines called ABCDE, but I think the A is the chip select line and BCDE would be the address lines.  
On a 16 channel MUX spec sheet, they call the address lines A0 A1 A2 A3 and the chip select is EN... so we should put the 2:1 mux on the EN line to select one of the MUX chips at a time. The analog pin is required to do analog reads for the selected input.

I want to do some logging for up to 32x TP4056 chargers, and think I may need 4 pairs of 16:1 MUX chips to control individual slots (on or off), sense volts, sense temperature, and show an overtemp LED for each slot. 

Next I will re-read about your design and learn more about I2C.

Gary G.
Reply
#5
I'm getting into it myself so all this is theoretical to me. Here's the thing the way I understand it, the BCDE is basically the 4 bits you're trying to control. In the binary world, the 4 bits from 0000 to 1111 there's a total combinations of 16 possibilities. So by switching the digital lines on and off, like 0001 is 1 and 0010 is 2, is how you would achieve your 16 channels you can open one at a time. You also need an analog line to read the input. So the D0 to D3 controls which 'Gate' to open, and the A0 will be the one that takes the reading.

Now you can throw another 2 to 1 MUX in the equation, but you need to drive it with another digital line. You can do away with that. So what you do is drive both 16 MUX with the same 4 digital lines (D0 to D3). So you basically send the instruction to tell both MUX to let's say open Gate 1 (my term). Now the digital lines only control what Gate to open. In order to read the signal, you read through the analog lines. So if you hook one MUX to A0 and the other MUX to A1, then you just pick which MUX you want to read based on which analog input you choose.
Korishan and mike like this post
Reply
#6
That's a nifty idea. I hadn't thought of that myself. Pretty clever Smile And if you had a 4:1 MUX to start off with, you could do 64 lanes that way and use A0 - A3. Interesting.

:Two thumbs up: for you!! Big Grin
Proceed with caution. Knowledge is Power! Literally! Cool 
Knowledge is Power; Absolute Knowledge is Absolutely Shocking!
Dollar Shave Club. Best Razor I've ever used
Certified 18650 Cell Reclamation Technician
Reply
#7
Thanks for the great ideas! I decided to go with a Batrium in the end rather than building my own voltage-monitoring solution.
Reply
#8
Ok, then we can continue with this thread without ya, mike Tongue Altho, I'll probably start my own when I get to that point with my need for MUX's.
Proceed with caution. Knowledge is Power! Literally! Cool 
Knowledge is Power; Absolute Knowledge is Absolutely Shocking!
Dollar Shave Club. Best Razor I've ever used
Certified 18650 Cell Reclamation Technician
Reply


Who read this thread?
48 User(s) read this thread:
SecondHandPower (12-07-2017, 06:55 AM), Grumplestiltskin (09-16-2017, 12:22 AM), nautal (09-20-2017, 01:50 AM), SimonW (09-06-2017, 03:13 AM), horizon69 (09-05-2017, 11:40 PM), floydR (12-08-2017, 04:39 AM), Ivo Staelens (12-08-2017, 07:59 AM), Jon (09-05-2017, 09:50 PM), climax85 (09-17-2017, 05:49 AM), Geek (12-11-2017, 12:38 AM), KtB (09-04-2017, 08:31 PM), TimFr (09-10-2017, 07:09 PM), renobr (09-12-2017, 04:46 PM), Ste Collister (12-08-2017, 07:18 PM), Pavel Razzorenov (12-08-2017, 06:06 PM), CarelHassink (12-07-2017, 08:09 PM), not2bme (12-07-2017, 08:13 PM), jhnzpetrovy1926 (12-08-2017, 04:36 AM), joel0v3sgames (12-08-2017, 11:39 AM), neurocis (12-08-2017, 01:45 AM), accoelho (10-05-2017, 11:51 AM), howiegrapek (09-29-2017, 04:35 PM), dougal (09-16-2017, 05:10 PM), Al's Shed (09-04-2017, 04:02 PM), SolarWind (12-10-2017, 02:44 AM), jdeadman (12-08-2017, 04:33 PM), Sabado (09-24-2017, 04:11 PM), flight4900 (09-07-2017, 02:36 PM), FERCSA (12-08-2017, 04:57 PM), Korishan (12-08-2017, 03:22 AM), RudyLiPower (09-07-2017, 03:08 PM), owitte (12-08-2017, 03:27 PM), Lux_Gamer (09-16-2017, 05:04 PM), PaulKennett (12-08-2017, 11:17 AM), mike (12-08-2017, 04:28 AM), charlie246 (12-08-2017, 11:04 PM), wim (12-08-2017, 07:29 AM), systemtm (09-04-2017, 09:45 PM), Chiptosser (12-08-2017, 02:32 AM), Stefaan De Ridder (09-06-2017, 06:28 PM), kazbach (09-04-2017, 05:13 PM), ismaildoganw (09-05-2017, 03:02 AM), silverse2m6 (09-04-2017, 04:21 PM), Hanssing (12-07-2017, 05:14 PM), Daggerzz (09-06-2017, 07:05 PM), watts-on (12-08-2017, 10:44 AM), frnandu (09-06-2017, 11:56 AM), daromer (12-08-2017, 10:30 AM)

Forum Jump:


Users browsing this thread: 1 Guest(s)