0
\$\begingroup\$

I am trying to read an analog input using a raspberry pi zero W, but all of the GPIO are digital. Can you guys maybe suggest on how to get around this or maybe point me to forums or guide regarding the matter? I am also a beginner in using raspberry pi. all response would be appreciated

\$\endgroup\$
  • 1
    \$\begingroup\$ what sort of precision, accuracy, and read rate do you need? there may be other ways, eg: the IBM PC analogue joystick doesn't have a DAC. \$\endgroup\$ – Jasen Jan 1 at 8:26
4
\$\begingroup\$

No analog input on the raspberry pi sorry. You either can use digital input and ADConverter or using I2C or SPI Bus with a sensor using one of these protocols.

ADS1115 is an I2C 16 bit four channel ADC.

|improve this answer|||||
\$\endgroup\$
  • 1
    \$\begingroup\$ If the sample rate is low, Onewire is also an option, e.g. DS2450 or DS2438. The latter also has a calibrated temperature sensor built in as it is meant for battery management. \$\endgroup\$ – Janka Jan 1 at 7:44
  • \$\begingroup\$ The system will read a data when a button is pressed. thank you for the response, I will look into it \$\endgroup\$ – joderick española Jan 1 at 9:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.