Counting Arduino Help

Hey All,

I have an idea for an Arduino project but I'm having a little trouble starting out. If some insight could be provided, that would be greatly appreciated!

I have purchased an Arduino Uno and a Voice Box Shield. What I want to do is be able to "count" different outputs. I would like to hook up a plug to Arduino (it would have up to 26 leads) then have a single probe on the other end. Then the probe would touch different wires in the circuit and based on which one is circuit is completed, the voice box would say "1", "2", ect.

The circuits that I would hook this up too always be linear and I wouldn't have to worry about having two out puts hooked up to one input.

In a nut shell, I would like to design an Arduino that would help perform up to 26 continunity tests and based give me a number for each of the circuits that it completes.

The Arduino UNO has 19 inputs available if the serial interface TX pin is used for the communication with the Voice Box shield. So you need additional hardware to realise your project.

It may be a problem on my side (I'm not a speaking English natively) but I don't understand what the probes should do. Are you testing PCBs? If yes, the speaking of a number is probably much too slow to happen when you get a signal from one of the components (although this depends heavily on the circuitry).

What you probably need is a parallel-in/serial-out shift register chip (p.e. 74HC165N), with 4 of them your able to read 32 input lines using only 3-4 pins on your Arduino.

What if I only wanted 10 inputs. Would that make things a lot simplier?

If the inputs will simply test for TTL level: yes.

You haven't answered my second paragraph:

It may be a problem on my side (I'm not a speaking English natively) but I don't understand what the probes should do. Are you testing PCBs? If yes, the speaking of a number is probably much too slow to happen when you get a signal from one of the components (although this depends heavily on the circuitry).

I think you're just asking for the Arduino to play a short recording when one of twenty six circuits is completed. I assume you would treat each input like a switch input (pulled up [or down] and then pulled down [or up] when the circuit is completed). With that many inputs I think you'd need to use pylon's suggestion of a shift register to read them all. You sketch would need to poll all the inputs, detect when any input changes, and play the recording associated with that input each time a circuit is completed. Voice shields are available to play recordings. I don't know whether there would be any sizing issues with the voice shield (I guess you'd need it to hold twenty six separate recordings) but I'm sure you can look that up easily enough.

PeterH

That sounds exactly like what I'm trying to do. I think that I can make due with only using 10 inputs. Would I still need to get additional hardware for this?

10 inputs are provided by a standard UNO, you don't need additional hardware for that.

What do you mean by poll all the inputs?

Is there a simple way to detect when an input would go from an open circuit to a closed circuit?

Yes, there is: digitalRead().

By polling he means that you call this routine for every input pin you have connected and react if this is the case.