Analog sensor reading using raspberry pi can be tricky. The problem with raspberry pi is that it does not have any builtin analog to digital converter that's why we need to use external analog to digital (ADC) ICs. In this tutorial we will use MCP3208 12 bit ADC and we will learn how raspberry pi communicate with MCP3208 using SPI.
Outline of this tutorial:
1. Analog Input
2. ADC setup
3. Serial peripheral Interface (SPI) using raspberry pi.
I've describe elaborately how raspberry pi transmits data to the chip, decode the received data from MCP3208 and explanation of the function spi.xfer2([6| (channel 2),channel 6,0]). People get a little confused understanding the function of xfer2() and it's meaning.
Read it in detail and download the tutorial contents from the link below:
https://arduinotoday.blogspot.com/202...
Download proteus 8.10 simulation software from here:
Смотрите видео Raspberry Pi MCP3208 analog input | Rpi- Proteus Series Ep-3 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Microcontrollers Explained 04 Март 2022, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,030 раз и оно понравилось 14 людям.