Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EN connected to GND? #1

Open
DiegoSynth opened this issue Apr 20, 2020 · 2 comments
Open

EN connected to GND? #1

DiegoSynth opened this issue Apr 20, 2020 · 2 comments

Comments

@DiegoSynth
Copy link

1st of all, thanks a lot for the class and examples, it saves a lot of time!!

As I've seen in the code, it's not possible to connect EN to GND, and if one doesn't want to disable the multiplexer (how often does anyone disable an I/O anyway?) then anooother arduino PIN is used for this (that would make the 6th pin, which in my opinion is total overkill).

I was wondering if you were interested in allowing a "-1" value for "en" for example, or a "GND" constant in the Constructor, taking care as well of any reference to "en" attribute later on in the code.

I write to you because you are the author, and I think it would be nice to have this for the future and for everyone :)

Thanks,
Diego

@nlamprian
Copy link
Owner

Hi Diego,

To get extent that I can remember the details of the module and my library, the enable pin serves two purposes.

One consideration has to do with hardware, and yes it's not necessary in every use case. By disabling a module, you allow the use of multiple multiplexers in parallel.

Another consideration has to do with software. I use the enable pin to disable the module, as I transition between channel. My assumption here is that the current value of the sig pin could accidentally pass to the other side, and trigger an unwanted event, before the desired channel is selected.

Feel free to fork the library, and experiment with it. And if you find out that you don't have any interference problems, then go ahead and eliminate the enable pin.

@DiegoSynth
Copy link
Author

Aaaah, I haven't thought of that. You must be right, i've read about issues with false positives and most probably the way you do it gets rid of it. I have everything plugged and ready but haven't tried the software yet. I'll play with it, and if anything come back to you!
Thanks again,
Diego

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants