I have a raspberry pi 2 how can i read the analog value ?what will be the python code
I have a raspberry pi 2 how can i read the analog value ?what will be the python code
The Raspberry Pi's GPIO only accepts digital input. To read an analog signal you will need to purchase an Analog to Digital Converter (ADC), something like a MCP3008 would work.
Yes you can use MCP3208 and the JAVA PI4J Library has full support for that.