Issues with 74HC4051 multiplexer / demultiplexer (Project)

Posted by Niccolo on Thu 12 Mar 2015 11:30 AM — 3 posts, 18,204 views.

#0
Hello Gammon, I have spent the last few hours on your tutorial on the 74HC4051 multiplexer / demultiplexer and for some cases I found it very useful: it made me understand entirely how does this multiplexer work and how to wire it. But I might have missed something.

After wiring everything as you said, the project doesn't work. The Serial outputs a list of 8 numbers as it should, but they all are around 800-900 without any reference to the sensors. I tried grounding B & C as you suggest, and wiring only two sensors, but nothing changes.

I am using your exact code, taken from here:

http://www.gammon.com.au/forum/?id=11976

And I made a Fritzing scheme of my wiring but it seems I can't post it here.

Sorry to bother you but I'm really stuck.
USA Global Moderator #1
Template:Arduino
Please post Arduino-related questions to the Arduino Forum or to StackExchange: Arduino. This saves splitting questions and answers between this forum and the Arduino ones.
Australia Forum Administrator #2
See reply #1 above.