Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Python • Re: Using a 4-20 mA Transmitter with a Raspberry Pi

$
0
0
Hi ghp,

Thanks so much for responding to my question! I have tried and read through your advice as well as other forums for communicating with a MCP4725 via a I2C Raspberry Pi interface but none have worked. Using:

Code:

i2cdetect -y 1
I can see my device is being registered at 0x60 correctly. Whether I use the following approaches to send a signal to the device:

Code:

bus.write_i2c_block_data()#ordac.value()


I get the same result: the code runs successfully but there is no different to the output of my MCP4725 device. It may be likely that the command byte is not structured correctly but I do not know exactly what it should look like. Would you possibly be able to advise on this, please?

Many thanks,
jessieolough

Statistics: Posted by jessieolough — Fri Aug 29, 2025 2:19 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles