0

Is there a way to route an analog signal from a simple temperature sensor through an ADC, MCP3008, into a digital pin. I have used all the analog pins on my Arduino Mega 2560 and am trying to utilize all the digital I/Os.

Any insights on the matter would be greatly appreciated.

asked Sep 2, 2016 at 18:06

1 Answer 1

1

The MCP3008 is an SPI device. You connect it to the SPI pins of your Arduino. Then you can read 8 analog channels through it.

It requires 4 pins: MISO, MOSI, SCK and a chip select pin.

answered Sep 2, 2016 at 18:09
2
  • If you don't plan on adding anything else that uses SPI you could just connect the ChipSelect to ground, and free a pin on the Arduino. Commented Sep 3, 2016 at 10:24
  • 1
    @Gerben That is not good practice. Chip Select is not just used to multiplex the bus but also to synchronise the start and (sometimes) the end of communication. Commented Sep 3, 2016 at 11:23

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.