c-periphery icon indicating copy to clipboard operation
c-periphery copied to clipboard

ADC - implemented?

Open habakuk1979 opened this issue 3 years ago • 3 comments
trafficstars

Hello!

have you implemented the ADC (analog inputs) in your code too?

habakuk1979 avatar Jan 01 '22 16:01 habakuk1979

The Raspberry Pi and most clones computer do not have a way to read analog inputs. This functionaly is provided by additonal hats or projects like this one: https://learn.adafruit.com/reading-a-analog-in-and-controlling-audio-volume-with-the-raspberry-pi?view=all

pezi avatar Jan 05 '22 13:01 pezi

For a LDR you can just use a capacitor https://www.instructables.com/Raspberry-Pi-GPIO-Circuits-Using-an-LDR-Analogue-S and digital pins.

sgjava avatar Jan 05 '22 15:01 sgjava

This might be implemented in the future through the IIO sysfs interface. Similar request has been made in vsergeev/python-periphery#19.

vsergeev avatar Mar 31 '23 10:03 vsergeev