Skip to content

Using an external ADC and DAC with Android Things running on a Raspberry Pi.

Notifications You must be signed in to change notification settings

nickcapurso/AndroidThings-RaspPi-AnalogReadWrite

Repository files navigation

AndroidThings-RaspPi-AnalogReadWrite

Example Android Things project which reads from two potentiometers and echos the same voltage out to two respective LEDs. Since the Raspberry Pi does not have an on-board ADC or an on-board DAC, we have to use external chips to get these functionalities. I used the MCP 3002 ADC and the MCP 4025 DAC, which require SPI and I2C communication, respectively. The Pi reads from the ADC and lights one LED using the built-in PWM functions and lights the other using the DAC.

A tutorial for this repo is given on my Medium!

Fritzing Diagram

About

Using an external ADC and DAC with Android Things running on a Raspberry Pi.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages