industrial io(iio)
The mcp320x driver interface is through sysfs. The first device will be found here /sys/bus/iio/devices/iio:device0 # ls /sys/bus/iio/devices/iio\:device0 dev in_voltage2-voltage3_raw in_voltage5_raw name in_voltage-voltage_scale in_voltage2_raw in_voltage6-voltage7_raw of_node in_voltage0-voltage1_raw in_voltage3_raw in_voltage6_raw power in_voltage0_raw in_voltage4-voltage5_raw in_voltage7_raw subsystem in_voltage1_raw in_voltage4_raw in_voltage_scale uevent # cat /sys/bus/iio/devices/iio\:device0/in_voltage0_raw 514 |
[링크 : https://jumpnowtek.com/rpi/Using-mcp3008-ADCs-with-Raspberry-Pis.html]
[링크 : https://github.com/scottellis/mcp3008-poll/blob/master/mcp3008-poll.c]
'embeded > raspberry pi' 카테고리의 다른 글
rpi3b에서 wayvnc 빌드 + 실행하기 (0) | 2022.08.10 |
---|---|
raspberrypi wayland compositor 설정 (0) | 2022.08.10 |
PI 400 써봄 (0) | 2022.05.25 |
라즈베리 파이2 / 마인크래프트 (0) | 2022.03.18 |
rpi opencv python pid servo (0) | 2022.03.08 |