Hi All!
There are probably several ways to interface a PIC running on 5 volts to a sensor that has a maximum operating voltage of 3 volts. I understand the sensor may need its own 3 volt supply rather than a resistor divider off the 5 volts or 2 each 1N914 diodes in series with the 5 volts which may be another possibility? Okay so I think you can take the output of the PIC through a 1K resistor to the base of an NPN (2N3904) transistor and either place another 1K resistor in either between the collector and +3 volts or between the emitter to ground. Anyone know which method is best? Next question. The sensor has a pin marked "SCLK". My best guess is this is an "input" from the PIC? The sensor in an MS5541C and what I understand so far is that " SCLK " wants a 3 volt clock signal, " MCLK " is an input (Master Clock?), " Din " is "Data in" requiring a 3 volt signal and " Dout " is data out at a 3 volt level? Therefore SCLK, MCLK, DIN, will each require a transistor to provide a 3 volt signal and DOUT will need to feed a transistor to supply a 5 volt signal? Or should I go back to my doctor and have him adjust my medications?
Thanks, Ed![]()





From my experience when you start operating towards the lower limits of a device it will tend to become "spritual" (technical term)
where sometimes it will work and sometimes it won't! A company called "Analog Devices" makes an IC called the ADG3304 which has one side that you give it your 3.3 volts and the other side the 5.0 volts. Another company called "Technological Arts" makes a model AD325V14 which takes this tiny IC and puts it on a board so it will plug in to a standard 14 pin DIP socket. The device has 4 bi-directional channels and they have other versions for upto 8 channels as well as a 4 channel open drain version. I hope this is useful to others.

Bookmarks