Question about digital inputs

On my boebot and basic stampII in order to use the sharp analog sensors, I have to go through a circuit with an analog to Digital converter. Since I already have ADCs on some of the pins of my ArduinoMega , is it safe to say that I can go directly in without the ADC circuit being built? :)

is it safe to say that I can go directly in without the ADC circuit being built?

Your subject title says digital inputs. They have to be valid logic voltage levels high or low, the exact levels are covered in the AVR data sheet for the micro. However I think you meant what voltages can wire into an Arduino's analog input pins?

If you meant analog inputs you can directly wire any input voltage from 0 to +5vdc, nothing negitive and nothing over +5vdc.

Lefty

No, I meant what I said. There are two types of sharp IR detectors. One are digital and one are analog. I forget the model out of hundreds, but in order to hook it up to the basic stamp, I had to use the ADC chip and a few other components. I read the my arduino had some inputs with the ADConverter built in. Thus, I was asking if I could skip the ADC chips and go right in. I hope that I have explained myself.

Thank You for the reply.

P.S. Maybe the inputs with the ADC are not the Digital ones, I don't know. I just got the ArduinoMega.

:)

Maybe the inputs with the ADC are not the Digital ones,

Yes that is correct, although you can use the analogue inputs as digital ones if you change the output mode.

So basically yes the Arduino has a built in A/D converter on some inputs, and there is no need to build any external A/D circuits to support your analogue output sensor.

That's what I wanted to hear. That means I don't have to take the ADC circuits off of my old robot to use the extra sharpIR units on my new robot.

yeh! ;D