I'm trying to build
this project.
This project is supposed to cycle through each analog input, output each signal individually to the A0 pin of the Arduino, and then Serial.print the value of each analog input.
I can't seem to get it working after many tweaks and tries.
What happens is that as the code cycles through the analog inputs of the 4051, each input gets an arbitrary number. If I connect a single potentiometer to the 4051 and ONLY check the single input it is on, it works fine. But when I introduce another potentiometer I immediately start having problems again.
I'm using 100k potentiometers if that matters. I'm also using the CD74HC4051E version. In the tutorial, the M74HC4051B1 version is used. I don't believe there is a difference between them, is there?
If there is a difference between the two 4051 chips, how can I change my circuit to allow for it?