Jump to content
  • 0

Reading a Digital Temperature Sensor with AD2


drc1

Question

Hi,

Firstly, I apologise if this is very obvious, I'm a bit of novice at the moment!

I would like to know if its possible to read the sensor values from a digital temperature sensor that communicates via I2C with the AD2. I know that the logic/protocol analyser is able to read/display the output if configured correctly, but I was wondering if it is also possible to display the actual temperature (rather than just the hex output) via a lookup table in the same way as with say an arduino (eg. https://randomnerdtutorials.com/guide-for-ds18b20-temperature-sensor-with-arduino/). This example uses a sensor that communicates via onewire, but I assume the concept is similar. Is this possible with waveforms/WF SDK?

Thanks!

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Hi @drc1

The easiest would be writing a java-script in the Protocol/I2C/Custom or Script tool.
See the Examples in these and the Help Tab/ Script.

You can also use the WF SDK for custom application or script.
See the SDK/ samples/ py/ Digital_I2c.py or Digital_I2c_PmodAcl.py or Digital_I2c_PmodGyro.py examples.

image.thumb.png.881c380c918bbd4d15f7285b63462730.png

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...