Please allow me to preface my question with the fact that I am a mechanical engineer, not an electrical or software engineer. I understand inputs, outputs, etc., but am a little lacking on the circuit side of the equation...
I am building a datalogging module using an Arduino Mega2560. I am logging (4) thermocouples to an SD card and displaying data on an LCD. Here is a summary of what components I am using (and how I have them connected):
Thermo1 (MAX6675) (link)
- VCC from pin22 -- digitalWrite(thermo1_vcc_pin, HIGH)
- GND from pin23 -- digitalWrite(thermo1_gnd_pin, LOW)
- GND from pin24 -- digitalWrite(thermo1_so_pin, LOW)
- GND from pin25 -- digitalWrite(thermo1_cs_pin, LOW)
- GND from pin26 -- digitalWrite(thermo1_sck_pin, LOW)
Thermo2 (MAX6675) - same as above, using pins 27 -> 31
Thermo3 (MAX6675) - same as above, using pins 32 -> 36
Thermo4 (MAX6675) - same as above, using pins 37 -> 41
SD Card Reader (link) - VCC from 5v pin on shield (near pin53)
- GND from Gnd pin on shield (near pin53)
- DO from pin50 (MISO)
- DI from pin51 (MOSI)
- CLK from pin52 (SCK)
- CS from pin53 (labeled as "SS"?)
I2C LCD (20/4) (link) - VCC from 5v pin on shield near reset
- GND from Gnd pin on shield near reset
- SDA from pin20 (SDA)
- SCL from pin21 (SCL)
I tested all of the components individually and developed the code step-by-step until I had everything functioning as expected.
Yesterday, I assembled the "complete system" (including all four thermocouples) on a board for final confirmation and the thermocouples are now acting "wonky" (one reads ~2.5x what it should, one reads ~0.5 what it should) and the SD card isn't opening properly.
According to the datasheet that I was able to find for the MAX6675 (link), to my non-EE eye, it appears as though the SO pin can draw 50mA and the VCC can draw 0.7(1.5max)mA - am I reading the datasheet correctly? If yes, then I am attempting to pull 50mA through all (4) SO pins (24, 29, 34 and 39), totaling 200mA for the SO's alone. I was unable to (easily) find any power consumption data on the other components.
Am I looking at the current consumption all wrong? Should I be wiring this thing up differently?
I have two more brand new Mega2560 boards here, but before I start swapping components around, I wanted to know if I am pulling too much power through the board. Should I be using an external (additional) power supply for some of the components before I "let the smoke out" of the other Mega's that I have sitting here?
Thanks!