How do I use AD4-AD7 on an Arduino Mini? Answered

I'm playing around with an Arduino Mini, and I'd like to use the additional analog inputs AD4, AD5, AD6 and AD7.  I tried initializing them as inputs and outputs using pinMode and writing to the outputs using digitalWrite, but nothing seems to happen.  Is there something more I need to do? Thanks - I'm somewhat new to Arduino and still a programming n00b. EDIT: OK, I repaired my board such that AD4 and AD5 are outputs, and AD6 and AD7 are analog inputs. AD4 and AD5 seem to be working fine now. More trouble with the AD6 and AD7, though. I'd like to see what value these ADCs are producing, so I used serial.println() to send the value back to the computer. However, when I run this line of code, it causes the Arduino to hang. What's going on here?  serial.println() works fine for sending back text and other variables, why is it having trouble here?

Asked by jeff-o 8 years ago  |  last reply 8 years ago