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:
Watch video Raspberry Pi MCP3208 analog input | Rpi- Proteus Series Ep-3 online without registration, duration hours minute second in high quality. This video was added by user Microcontrollers Explained 04 March 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,030 once and liked it 14 people.