Hello, thanks for taking the time to read my post.
I’m using a Sparkfun RedBoard to interface with the Sparkfun MAX31855K thermocouple breakout. My question is on powering the breakout. In all of the examples and chip documentation I’ve read, the MAX requires ~3.3V to function. The RedBoard digital ports will put out 5V when using the Sparkfun MAX31855K software constructor (sets OUTPUT HIGH). I initially used the example code provided on github, but I changed the output to an analog value
analogWrite(VCC, 166)
which gives 3.3V on the pin (confirmed with multimeter). When I connect the MAX and look at the Serial Monitor the device returns “0” for all data using probe.readTempX.
I was playing around with changing things and found that if I did not configure the VCC pin at all, then the Serial Monitor outputs the correct temperature readings consistently. During that time, I can measure 4V on the RedBoard digital pin that the MAX VCC is connected to.
So, this method works, but it doesn’t feel correct. Shouldn’t I be powering the MAX via the VCC pin? I read that all digital pins on Redboards default to inputs. Curiously, on the Hookup guide on SF website, the following is stated for VCC: “Digital pin set to 3.3V in”. What does “in” mean here?
Useful Links
https://www.sparkfun.com/products/13266