# Multiplexing with 74HC4067

**URL:** <https://forum.xod.io/t/multiplexing-with-74hc4067/1302>\
**Category:** Uncategorized\
**Created:** [November 1, 2018, 12:20pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302 "2018-11-01T12:20:30Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 4:22pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/21 "2018-12-25T16:22:43Z")

</div>

Cool:) Maybe also change the names of in/ouputs to match that in the drawing in the beginning of the thread: instead of a,b,c,d maybe S0,S1,S2,S3 etc:)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 25, 2018, 4:47pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/22 "2018-12-25T16:47:05Z")

</div>

> [@the19thbear](#):
>
> instead of a,b,c,d maybe S0,S1,S2,S3

When I made the library, it was in relation to logica digital, I will update it for the board, what is your board hc4067?

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 5:24pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/23 "2018-12-25T17:24:00Z")

</div>

I dont remember (im not at home right now). But maybe base it on this, since its very popular with the arduino: [https://www.sparkfun.com/products/9056](https://www.sparkfun.com/products/9056)

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 5:31pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/24 "2018-12-25T17:31:17Z")

</div>

In your link, there is a “byte-to-bits” node. I cant seem to find it anywhere. Where do I find it? Thanks

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 5:31pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/25 "2018-12-25T17:31:43Z")

</div>

and MERRY CHRISTMAS!🙂

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 7:35pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/26 "2018-12-25T19:35:55Z")

</div>

And another thing: It would be nice, if the “read4067” node, had distinct outputs for each input (0-15). Right now, it only has 1 output, the VAL. Maybe even a “combined VAL”, and “Out0 VAL”, “OUT1 VAL”, “Out2 VAL”, etc etc. This is only a suggestion of course:)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 25, 2018, 7:44pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/27 "2018-12-25T19:44:39Z")

</div>

> [@the19thbear](#):
>
> In your link, there is a “byte-to-bits” node

it here [example-hc595.xodball](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/a5929174844a5bfa245aaa9eb0e0a342d249ee04.xodball)

> [@the19thbear](#):
>
> of a,b,c,d maybe S0,S1,S2,S3 etc:)

**update** …

> [@the19thbear](#):
>
> and MERRY CHRISTMAS!🙂

Happy Holidays! 🥂

> [@the19thbear](#):
>
> And another thing: It would be nice, if the “read4067” node, had distinct outputs for each input (0-15). Right now, it only has 1 output, the VAL. Maybe even a “combined VAL”, and “Out0 VAL”, “OUT1 VAL”, “Out2 VAL”, etc etc. This is only a suggestion of course:)

When I did, I thought about using the same entry selector to activate each internal process by taking a single exit.  
But it’s a good idea, I’ll keep it in mind. Only now there is a limitation of outputs to do it in C ++, I’ll see what I can do

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 8:56pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/28 "2018-12-25T20:56:21Z")

</div>

THANKS:) In my specific project, i want to take the 16 inputs, and store them and possibly manipulate them, so having access to each one of them woul be amazing:)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 25, 2018, 9:56pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/29 "2018-12-25T21:56:15Z")

</div>

test update [cesars/4067](https://xod.io/libs/cesars/4067/) 🙂

 ![4067](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/4868022fb75490db8957c7e33217769a5b076681.png)

fix S0…S3

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 25, 2018, 10:28pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/30 "2018-12-25T22:28:44Z")

</div>

Looking great! Karma should be your best friend:)

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 26, 2018, 8:47am UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/31 "2018-12-26T08:47:07Z")

</div>

Had a look at your exmple file, and i cant seem to find the bytes to bit node in it?🙂 Just whenever you have time. No stress!  
Another thing:  
Using your latest node, i get an error:

 ![2](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/748a58d7d8411bd3be726f150524d895b7fb7ed7.png)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 26, 2018, 1:20pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/32 "2018-12-26T13:20:29Z")

</div>

> [@the19thbear](#):
>
> and i cant seem to find the bytes to bit node in it

byte to bits is there in the example, I just downloaded it

In your patch I do not understand the function of the nodes on the left, they are not necessary

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 26, 2018, 1:29pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/33 "2018-12-26T13:29:55Z")

</div>

> [@the19thbear](#):
>
> i get an error:

try again, at the first error, it seems to be a bug

![test4067](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/2fc82ef71b3b744dfa51e8e7ee82b08c657cbdd9.png)

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 26, 2018, 1:47pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/34 "2018-12-26T13:47:40Z")

</div>

Yes, the nodes on the left are just left-overs from som experimentation:) And found the bytes to bits. Will try later today. (away from my arduino.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 26, 2018, 1:52pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/35 "2018-12-26T13:52:47Z")

</div>

the error refers to a gate node, not defined.  
already defined, **library updated** …

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 26, 2018, 1:54pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/36 "2018-12-26T13:54:11Z")

</div>

Ah. Ok, my mistake then.Sorry!

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 26, 2018, 4:22pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/37 "2018-12-26T16:22:35Z")

</div>

new error:

 ![3](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/e315ff6f094dba6b31f1a1e5a531a3bd37dc7b60.png)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 26, 2018, 5:06pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/38 "2018-12-26T17:06:15Z")

</div>

version library is 3.0.7? try again

I tested it in a clean installation and just downloading the library, and I did not have that error, tested in 2 PC without error

---

<div class="post-metadata">

**Author:** ![the19thbear](https://avatars.discourse-cdn.com/v4/letter/t/df788c/32.png) [@the19thbear](https://forum.xod.io/u/the19thbear)\
**Post date:** [December 26, 2018, 5:10pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/39 "2018-12-26T17:10:41Z")

</div>

Very weird. Yes 3.0.7 I just updated it again, and i get the same error.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/a1fee5e58985e6d0fc6ec692f3da5d4810b9aa1e.png)  
Weirdness. Im in the newest XOD version. v0.25.3 (2018-11-22)

This is the code for the gate:  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/7c32a9689c297ba3a404f26f3660b815aadc00f5.png)

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/f38c8b4c8af20c01c1d60e4a2dde6657a929c73e.png)

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [December 26, 2018, 5:24pm UTC](https://forum.xod.io/t/multiplexing-with-74hc4067/1302/40 "2018-12-26T17:24:43Z")

</div>

oh, fix OUT1 gate(number) to C0, OUT2 is an error, maybe of its installation, because here it does not happen

[Previous page](https://forum.xod.io/t/multiplexing-with-74hc4067/1302.md?page=1)

[Next page](https://forum.xod.io/t/multiplexing-with-74hc4067/1302.md?page=3)
