0

In my project i am trying to interface both DS18b20 and MCP3208. When i interface both any one interface only working but not both(spi and 1-wire) not working simultaneously. For ds18b20 i am using using script in this link http://www.circuitbasics.com/raspberry-pi-ds18b20-temperature-sensor-tutorial/ For MCP3208 i am using this script. https://pypi.org/project/mcp3208/

  • how are you trying to make them work simultaneously? are you running each script separately in two different "terminals"? – Jaromanda X Jan 10 at 7:17
  • not running simultaneously at same time. Running in same machine. – Prakash Reddy Jan 10 at 7:24
  • "not working simultaneously" ... how do you know if "not running simultaneously" ... are you saying, if both devices are connected, only one works? which one? is it random? is it the one you run the script for? – Jaromanda X Jan 10 at 7:30
  • At first enabled spi interface and get values from mcp3208. After that enabled 1-wire and interfaced ds18b20 and got values. Now mcp3208 not giving values showing 0 value. – Prakash Reddy Jan 10 at 7:38
  • right, so what you're saying is, when both are "enabled" (how?) only 1-wire works, SPI does not ... when both "enabled", 1-wire always works, SPI never works ... is that the actual description of the problem? – Jaromanda X Jan 10 at 7:45

Your Answer

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

Browse other questions tagged or ask your own question.