multiplexer with arduino ???

Hi everyone,
I started to deal with Arduino soon i need some help to use a multiplexer with arduino.

The hardware configuration.

  • Four digital outputs from the adruino as BCD from 0 .. 15 or F, inputs to the multiplexer.
  • And one digital input from the adruino with multiplexer output.

The software

A BCD output from the adruino while the count occurs with each number out on the segment, the adruino input receive 0 or 1 from multiplexer output

After finished from receiving that's 16 inputs from the multiplexer output and putting them on word

multiplexer 16 to 1.PNG

What exactly is your question? All I can see is a rather bad description of the planned hardware concept (I guess the hardware doesn't exist yet as you don't tell us concrete chip types or connections between the Arduino and the multiplexer).

You mean something like this:

Why just enter the words " Arduino multiplexer " into your favorite search engine and check out the result set.

pylon I appreciate your effort to help me,
And Idahowalker I think he understand what i mean
but the arduino input (= multiplexer output) would be in digital pin not in analog pin like in the drawing

HemaMaleek:
pylon I appreciate your effort to help me,
And Idahowalker I think he understand what i mean
but the arduino input (= multiplexer output) would be in digital pin not in analog pin like in the drawing

Have you looked at the spec sheet of the CD4051?

mmmm okey CD4053B is an analog multiplexer is digitally-controlled analog switches but in this case i use a digital switches with my multiplexer and the multiplexer output "Q" will be synchronized with the arduino BCD output.
However analog or digital, that is not heart of issue.
just i need the code

If you only need the code then you already have the hardware? What hardware do you have?