Interfacing Mcp3208 With Raspberry Pi

The Raspberry PI HAT - 8 Channel ADC is an 8 channel 12 bit analogue to digital converter with SPI serial interface, designed to work with the Raspberry Pi A+,. Marble blast gold controls. The Raspberry PI HAT - 8 Channel ADC is based on Microchip MCP3208 A/D converter chip, containing 8 analogue inputs and use the SPI interface to communicate with the Raspberry Pi. The Raspberry PI HAT - 8 Channel ADC  was designed to work as a single ended A/D converter.

Raspberry

So now that we bought the MCP3008 ADC lets get it up and running!Note: This is my first instructables submision so if something is wrong just tell me so and if you like my style leave a comment, also I'm from the Netherlands so my English might not be perfect.In this project we will be using a Fundruino moisture sensor, don't mind if you don't have the same sensor this process will work for any analog sensor. Also you might have the MCP3004 this project will work aswell only the wiring is slightly different so I suggest that you check the datasheet first, the datasheet is stated at the end of step 3.So lets get started! It is important to know the orientation of your chip. For the MCP3008 chip we need the following software on our Pi,Type in the command line:ls /dev/Now you should be presented with al lot of yellow text, check if spidev0.0 and spidev0.1 is in there. The position is shown by the red circle in the picture with the yellow text.

If not no worries the following instructions will tell you how to get it there. Fallout 4 settlement quests.