Electronic – How to a chip power up, recieve, send information with only 2 pins

communicationserial

On my 3D printer(cube)'s cartridge there is a chip with only two pins. The 3D printer can through those 2 pins tell how much plastic it's left in the cartridge.

My question is:
How can a chip power up, recieve, send information with only 2 pins?

Best Answer

In addition to one wire, there is a possibility that the sensor isn't an IC at all, but some passive device. it could be some sort of strain gauge that weighs the filament if it rests on it, or so. I guess I'd have to see it :)